pk1Code static method
Implementation
static int pk1Code(MobiPk1 pk1, int i) {
int dx = pk1.x1a2 + i;
int ax = pk1.x1a0[i];
int cx = 0x015a;
int bx = 0x4e35;
int temp = ax;
ax = pk1.si;
pk1.si = temp;
temp = ax;
ax = dx;
dx = temp;
if (ax != 0) {
ax *= bx;
}
temp = ax;
ax = cx;
cx = temp;
if (ax != 0) {
ax *= pk1.si;
cx += ax;
}
temp = ax;
ax = pk1.si;
pk1.si = temp;
ax *= bx;
dx *= cx;
ax += 1;
pk1.x1a2 = dx;
pk1.x1a0[i] = ax;
return ax ^ dx;
}