phase12: match func_80086DBC (704 bodies / 713 regions)

This commit is contained in:
Christopher Williams
2026-09-25 00:26:13 -04:00
parent c6bc651dbc
commit c74cd4100d
3 changed files with 865 additions and 841 deletions
+840 -841
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -401,6 +401,7 @@
0x8008352C 0x8008355C src/func_8008352C.c
0x80085B44 0x80085B80 src/func_80085B44.c
0x80085B80 0x80085B90 src/func_80085B80.c
0x80086DBC 0x80086DFC src/func_80086DBC.c
0x80089314 0x80089338 src/func_80089314.c
0x800893E8 0x80089434 src/func_800893E8.c
0x80089B30 0x80089B88 src/func_80089B30.c
1 # Code-region registry: one C region per matched function.
401 0x8008352C
402 0x80085B44
403 0x80085B80
404 0x80086DBC
405 0x80089314
406 0x800893E8
407 0x80089B30
+24
View File
@@ -0,0 +1,24 @@
/*
* func_80086DBC — 64 bytes at 0x80086DBC..0x80086DFC
*
* Reads the unsigned global g_80122354. Values below 5 return zero; otherwise the
* helper func_8009AE2C is called and its signed 16-bit result is returned.
*
* The global's unsigned type is byte-required: it produces the target's `sltiu`
* rather than a signed comparison. The short return type is also required because
* the target sign-extends the helper result after the call.
*
* LIMITS: the global's meaning and helper behavior are not inferred. Its address,
* unsigned threshold 5, call target, return widths, branch, frame, and sign-extension
* are byte evidence.
*/
extern unsigned int g_80122354;
extern short func_8009AE2C(void);
short func_80086DBC(void)
{
if (g_80122354 < 5)
return 0;
return func_8009AE2C();
}