//
// sub_8E28C8 from 0x8e28c8 to 0x8e292c (100 bytes)
//
// 2 xrefs:
// > __gnu_Unwind_RaiseException @ 0x8e2af0
// > __gnu_Unwind_Resume @ 0x8e2b74
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_8E28C8(int a1, int a2)
{
int v4; // r0
int v5; // r0
do
{
if ( sub_8E273C((_DWORD *)a1, *(_DWORD *)(a2 + 64)) )
goto LABEL_2;
*(_DWORD *)(a1 + 20) = *(_DWORD *)(a2 + 64);
v4 = (*(int (__fastcall **)(int, int, int))(a1 + 16))(1, a1, a2);
}
while ( v4 == 8 );
if ( v4 != 7 )
LABEL_2:
abort();
nullsub_8();
v5 = restore_core_regs(a2 + 4);
return sub_8E292C(v5);
}