From bf1b266e0788a69ef3c829c05da2b1c11296ed21 Mon Sep 17 00:00:00 2001 From: Drew T <50529377+Druthulu@users.noreply.github.com> Date: Fri, 4 Sep 2026 18:24:21 -0600 Subject: [PATCH] =?UTF-8?q?feat(phase-31):=20S79=20#7=20(1)=20=E2=80=94=20?= =?UTF-8?q?md=5FMAIN=5F003:=20func=5F800D06BC=20(33=20ins)=20+=20func=5F80?= =?UTF-8?q?0D0100=20(29=20ins)=20banked=20from=20their=20close-0=20drafts;?= =?UTF-8?q?=20both=20are=20-O0-island=20bodies=20(the=20standalone=20check?= =?UTF-8?q?er=20needed=20--o0,=20the=20gate's=20Makefile=20wildcard=20alre?= =?UTF-8?q?ady=20compiled=20the=20TU=20right);=20byte-identical=20dd1b32ec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/md_MAIN_003/md_MAIN_003_o0e.c | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/src/md_MAIN_003/md_MAIN_003_o0e.c b/src/md_MAIN_003/md_MAIN_003_o0e.c index 14224a370e..02900dd139 100644 --- a/src/md_MAIN_003/md_MAIN_003_o0e.c +++ b/src/md_MAIN_003/md_MAIN_003_o0e.c @@ -96,7 +96,14 @@ extern u8 D_800AF680; * reproduces the target bytes regardless of the TU's compile flags. No C externs * shipped (link-time resolution). */ -INCLUDE_ASM("asm/md_MAIN_003/nonmatchings/md_MAIN_003_o0e", func_800D0100); +extern u8 D_800AF630[]; +extern void (*D_800D363C[])(void); + +void func_800D0100(void) { + register u8 *p = D_800AF630; + D_800D363C[*(u16 *)(p + 0xA3B4)](); +} + INCLUDE_ASM("asm/md_MAIN_003/nonmatchings/md_MAIN_003_o0e", func_800D0174); @@ -340,7 +347,23 @@ void func_800D0664(void) { * way; frame/mask (32/0xC0010000,-16) copied from it. All immediates decimal * (maspsx rejects hex in __asm__ strings). No C externs shipped (link-time resolution). */ -INCLUDE_ASM("asm/md_MAIN_003/nonmatchings/md_MAIN_003_o0e", func_800D06BC); +extern void func_800D12D0(void); +extern void func_800118AC(void); +extern s32 D_800EC890; +extern u8 D_800AF630[]; + +void func_800D06BC(void) { + register u8 *base; + + base = &D_800AF630; + func_800D12D0(); + D_800EC890 += 4; + if (D_800EC890 >= 0x80) { + D_800EC890 = 0x80; + func_800118AC(); + } +} +