mirror of
https://github.com/Druthulu/BFM-decomp
synced 2026-09-26 21:36:06 -04:00
feat(phase-31): t6-recover gate — +1 fns x0 propagated (fleet 95.3%)
This commit is contained in:
@@ -1256,7 +1256,37 @@ DEFINE_func_80139A8C() /* dedup: shared engine-core @0x80139a8c (src/shared) */
|
||||
DEFINE_func_80139B18() /* dedup: shared engine-core @0x80139b18 (src/shared) */
|
||||
|
||||
|
||||
INCLUDE_ASM("asm/ov_SC03_107/nonmatchings/ov_SC03_107_jr_801380E0", func_80139BE0);
|
||||
extern unsigned char D_80182A74[];
|
||||
|
||||
void func_80139BE0(int param_1)
|
||||
{
|
||||
extern unsigned char D_80182A74[];
|
||||
int v;
|
||||
if ((*(unsigned int *)(param_1 + 8) & 0x2000) == 0) {
|
||||
int t = *(unsigned char *)(param_1 + 0x22) & 0x60;
|
||||
int h = *(unsigned short *)(param_1 + 0x18);
|
||||
unsigned int idx;
|
||||
__asm__("" : "=r"(t) : "0"(t));
|
||||
idx = (unsigned char)t;
|
||||
if (h < 7) {
|
||||
if (h >= 2) {
|
||||
v = D_80182A74[idx >> 5];
|
||||
} else {
|
||||
v = D_80182A74[0];
|
||||
}
|
||||
} else {
|
||||
v = D_80182A74[0];
|
||||
}
|
||||
*(short *)(param_1 + 0x2e) = 3;
|
||||
*(short *)(param_1 + 0x2c) = v;
|
||||
}
|
||||
*(short *)(param_1 + 0x34) = *(short *)(param_1 + 0x2c) * 6;
|
||||
{
|
||||
int x = *(short *)(param_1 + 0x2e);
|
||||
*(short *)(param_1 + 0x36) = x * 12 + (x - 1) * 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
DEFINE_func_80139C7C() /* dedup: shared engine-core @0x80139c7c (src/shared) */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user