From 67d40e03204489d3f6ba20d662f971ba1239dd7e Mon Sep 17 00:00:00 2001 From: DodongoRex <257213629+DodongoRex@users.noreply.github.com> Date: Sun, 1 Feb 2026 12:12:52 -0500 Subject: [PATCH] Decompile func_80048CE4 (marina) --- src/marina.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/marina.c b/src/marina.c index 43c590e..c33669c 100644 --- a/src/marina.c +++ b/src/marina.c @@ -1,5 +1,7 @@ #include "common.h" +extern u8 D_800EF5E1; + #pragma GLOBAL_ASM("asm/nonmatchings/marina/func_80048600.s") #pragma GLOBAL_ASM("asm/nonmatchings/marina/func_800486F4.s") @@ -12,7 +14,23 @@ #pragma GLOBAL_ASM("asm/nonmatchings/marina/func_80048C94.s") -#pragma GLOBAL_ASM("asm/nonmatchings/marina/func_80048CE4.s") +s32 func_80048CE4(void) { + u8 v = D_800EF5E1; + + if (v == 1) { + return 1; + } + + if (v < 0x2E) { + return 0; + } + + if (v < 0x37) { + return 2; + } + + return 3; +} #pragma GLOBAL_ASM("asm/nonmatchings/marina/func_80048D30.s")