//
// sub_61FEC from 0x61fec to 0x6200a (30 bytes)
//
// 5 xrefs:
// > sub_45018 @ 0x45196
// > sub_60B04 @ 0x60be0
// > sub_65494 @ 0x65630
// > sub_65494 @ 0x657cc
// > sub_66E98 @ 0x66eb2
//
// 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_61FEC(int a1, unsigned int a2, _DWORD *a3)
{
int result; // r0
int v5; // r1
result = 31;
if ( a2 <= 8 && a3 )
{
v5 = *(_DWORD *)(a1 + 4 * a2 + 67176);
result = 0;
*a3 = v5;
if ( !v5 )
return 9;
}
return result;
}