//
// sub_9A4C8 from 0x9a4c8 to 0x9a4ea (34 bytes)
//
// 2 xrefs:
// > sub_99B7C @ 0x99d10
// > sub_9A50C @ 0x9a596
//
// 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_9A4C8(int a1, _DWORD *a2)
{
int result; // r0
if ( !*a2 )
return 2;
if ( *a2 == 1 )
return 3;
result = a2[1];
if ( !result )
return *(_DWORD *)(*(_DWORD *)(a1 + 128) + 69188);
return result;
}