mirror of
https://github.com/Druthulu/BFM-decomp
synced 2026-09-26 13:33:34 -04:00
feat(decomp): ox wave em overlays — 1 banked
Committed before the main batch: gate_main reverts on failure and would take these with it.
This commit is contained in:
@@ -467,7 +467,42 @@ void func_800CBD0C(void *arg0) {
|
||||
}
|
||||
|
||||
|
||||
INCLUDE_ASM("asm/md_MAIN_019/nonmatchings/md_MAIN_019", func_800CBD68);
|
||||
void func_800CBD68(s32 a0) {
|
||||
extern s32 D_800CC830;
|
||||
extern s32 D_800CC834;
|
||||
extern void func_80146578(void);
|
||||
extern void func_8001CD9C(s32 a0, s32 a1);
|
||||
extern void func_800233CC(void *a0, u16 a1);
|
||||
extern void func_800CBF80(void *a0);
|
||||
extern void func_80149374(s32 a0, s32 a1);
|
||||
extern void func_800D1FC8(void *a0, s32 a1);
|
||||
extern void func_80146CA0(void *a0);
|
||||
extern void func_80162CCC_w19(void *a0) __asm__("func_80162CCC");
|
||||
|
||||
s32 iVar1;
|
||||
s32 iVar2;
|
||||
void *ptr;
|
||||
|
||||
iVar1 = *(s32 *)(a0 + 0x4C);
|
||||
iVar2 = ((s32 (*)(void))func_80146578)();
|
||||
ptr = &D_800CC830;
|
||||
*(s32 *)(a0 + 0x20) = iVar2;
|
||||
if (iVar2 != 0) {
|
||||
func_8001CD9C(iVar2, (s32)ptr);
|
||||
func_800233CC(ptr, 0x60);
|
||||
*(u16 *)(iVar2 + 0x1A) = 0x3000;
|
||||
*(u16 *)(iVar2 + 0x18) = 0x3000;
|
||||
D_800CC834 = 0;
|
||||
func_800CBF80((void *)a0);
|
||||
*(s32 *)(iVar2 + 4) = *(s32 *)(iVar2 + 4) | 0x50000000;
|
||||
func_80149374(iVar1, a0 + 4);
|
||||
func_800D1FC8((void *)a0, 6);
|
||||
func_80146CA0((void *)a0);
|
||||
} else {
|
||||
func_80162CCC_w19((void *)a0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extern void func_800CBF80(void *a0);
|
||||
extern void func_80146E90(s32 *a0, s32 a1);
|
||||
|
||||
Reference in New Issue
Block a user