//
// sub_62E6E8 from 0x62e6e8 to 0x62e70c (36 bytes)
//
// 6 xrefs:
// > sub_630064 @ 0x630fa6
// > sub_630064 @ 0x63100e
// > sub_630064 @ 0x631024
// > sub_630064 @ 0x631060
// > sub_630064 @ 0x631080
// > sub_630064 @ 0x631140
//
// 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_62E6E8(int result, int a2)
{
int (*v2)(void); // r3
if ( *(_DWORD *)(result + 12) != a2 )
{
*(_DWORD *)(result + 12) = a2;
if ( a2 == 17 )
--*(_DWORD *)(*(_DWORD *)(result + 64) + 16);
v2 = (int (*)(void))dword_AAF698[a2];
if ( v2 )
return v2();
}
return result;
}