//
// sub_8E36AC from 0x8e36ac to 0x8e370c (96 bytes)
//
// 10 xrefs:
// > __gnu_unwind_execute @ 0x8e3750
// > __gnu_unwind_execute @ 0x8e3800
// > __gnu_unwind_execute @ 0x8e38d4
// > __gnu_unwind_execute @ 0x8e391c
// > __gnu_unwind_execute @ 0x8e3944
// > __gnu_unwind_execute @ 0x8e3970
// > __gnu_unwind_execute @ 0x8e39c4
// > __gnu_unwind_execute @ 0x8e39f0
// > __gnu_unwind_execute @ 0x8e3a40
// > __gnu_unwind_execute @ 0x8e3a70
//
// 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_8E36AC(int *a1)
{
int *v1; // r3
char v2; // r3
unsigned int v3; // r3
if ( *((_BYTE *)a1 + 8) )
{
v2 = *((_BYTE *)a1 + 8) - 1;
goto LABEL_5;
}
if ( *((_BYTE *)a1 + 9) )
{
--*((_BYTE *)a1 + 9);
v1 = (int *)a1[1];
a1[1] = (int)(v1 + 1);
*a1 = *v1;
v2 = 3;
LABEL_5:
*((_BYTE *)a1 + 8) = v2;
v3 = *a1;
*a1 <<= 8;
return HIBYTE(v3);
}
return 176;
}