Started moving around static methods/fields

This commit is contained in:
Pazaz 2022-04-25 00:49:33 -04:00
parent bed128bd19
commit 6ba1f2f808
305 changed files with 5027 additions and 5075 deletions

View file

@ -0,0 +1,22 @@
import org.openrs2.deob.annotation.OriginalArg;
import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
public class IntUtils {
@OriginalMember(owner = "client!ra", name = "b", descriptor = "(III)I")
public static int pow(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1) {
@Pc(15) int local15 = 1;
while (arg0 > 1) {
if ((arg0 & 0x1) != 0) {
local15 *= arg1;
}
arg1 *= arg1;
arg0 >>= 0x1;
}
if (arg0 == 1) {
return local15 * arg1;
} else {
return local15;
}
}
}