From 0857c2c6f031df8d13c8b90ec442b8a491595e27 Mon Sep 17 00:00:00 2001 From: Drew T <50529377+Druthulu@users.noreply.github.com> Date: Thu, 13 Aug 2026 16:58:57 -0600 Subject: [PATCH] =?UTF-8?q?feat(decomp):=20worker=20gate=20=E2=80=94=20+1?= =?UTF-8?q?=20fns=20x0=20propagated=20(fleet=2095.2%)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ov_SC03_089/ov_SC03_089_jr_80189168.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/ov_SC03_089/ov_SC03_089_jr_80189168.c b/src/ov_SC03_089/ov_SC03_089_jr_80189168.c index a44cb41a1..aa25c8b20 100644 --- a/src/ov_SC03_089/ov_SC03_089_jr_80189168.c +++ b/src/ov_SC03_089/ov_SC03_089_jr_80189168.c @@ -2990,7 +2990,23 @@ void func_8018935C(void *a0) { } -INCLUDE_ASM("asm/ov_SC03_089/nonmatchings/ov_SC03_089_jr_80189168", func_8018940C); +#include "common.h" + +typedef struct { s32 w[4]; } B16_local; + +extern B16_local D_800A5EA8; +extern B16_local D_801C3C98; +extern s32 D_800A5EB0; +extern s32 func_8004787C(s32 a0); +extern void func_80028620(s32 a0, void *a1); + +void func_8018940C(void *a0) { + D_800A5EA8 = D_801C3C98; + D_800A5EB0 = func_8004787C(*(s16 *)((s32)a0 + 0xFE)) * 6 / 4096 - 3; + *(u16 *)((s32)a0 + 0xFE) = (*(u16 *)((s32)a0 + 0xFE) + 0x71) & 0xFFF; + func_80028620(2, &D_800A5EA8); +} + /* ยง71 sibling-first: func_80185634 (same TU, already MATCHed) is the exact template.