From 6e22d640a4f4199fb99fa1ea1c722f565a38784d Mon Sep 17 00:00:00 2001 From: Drew T <50529377+Druthulu@users.noreply.github.com> Date: Fri, 14 Aug 2026 18:32:42 -0600 Subject: [PATCH] =?UTF-8?q?feat(phase-31):=20t6-recover=20gate=20=E2=80=94?= =?UTF-8?q?=20+1=20fns=20x0=20propagated=20(fleet=2095.3%)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ov_SC03_107/ov_SC03_107_jr_801380E0.c | 32 ++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/ov_SC03_107/ov_SC03_107_jr_801380E0.c b/src/ov_SC03_107/ov_SC03_107_jr_801380E0.c index f45099292..b5e83b12c 100644 --- a/src/ov_SC03_107/ov_SC03_107_jr_801380E0.c +++ b/src/ov_SC03_107/ov_SC03_107_jr_801380E0.c @@ -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) */