mirror of
https://github.com/Druthulu/BFM-decomp
synced 2026-09-30 07:31:59 -04:00
feat(phase-31): worker gate — +2 fns x0 propagated (fleet 95.3%)
This commit is contained in:
@@ -2940,7 +2940,27 @@ INCLUDE_ASM("asm/ov_SC02_000/nonmatchings/ov_SC02_000_jr_8018173C", func_8018259
|
||||
|
||||
INCLUDE_ASM("asm/ov_SC02_000/nonmatchings/ov_SC02_000_jr_8018173C", func_801825E0);
|
||||
|
||||
INCLUDE_ASM("asm/ov_SC02_000/nonmatchings/ov_SC02_000_jr_8018173C", func_80182630);
|
||||
#include "common.h"
|
||||
|
||||
extern s32 func_801399F0(s32);
|
||||
extern void func_80139914(s32 a0);
|
||||
|
||||
void func_80182630(s32 a0)
|
||||
{
|
||||
u8 *s0 = (u8 *)a0;
|
||||
register s32 v0 asm("v0");
|
||||
register s32 v1 asm("v1");
|
||||
|
||||
v0 = func_801399F0(*(s32 *)(s0 + 0x198));
|
||||
if (v0 != 0) {
|
||||
func_80139914(*(s32 *)(s0 + 0x198));
|
||||
v0 = s0[0x4D];
|
||||
v1 = s0[0x214];
|
||||
s0[0x4D] = v0 - 1;
|
||||
s0[0x214] = v1 + 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// @class: plumbing
|
||||
@@ -4167,7 +4187,18 @@ extern s16 D_800B9A0E;
|
||||
}
|
||||
|
||||
|
||||
INCLUDE_ASM("asm/ov_SC02_000/nonmatchings/ov_SC02_000_jr_8018173C", func_80189898);
|
||||
#include "common.h"
|
||||
|
||||
extern s32 func_8012E544(s32 a0);
|
||||
extern s32 func_8012AD50(void *a0);
|
||||
|
||||
void func_80189898(void) {
|
||||
s32 result = func_8012E544(0x338);
|
||||
if (result != 0) {
|
||||
func_8012AD50((void *)result);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
extern void (*D_8018F724[])(void);
|
||||
|
||||
Reference in New Issue
Block a user