//
// sub_10009E5B4 from 0x10009e5b4 to 0x10009e694 (224 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x10009476c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:58:29 +0000
//
__int64 __fastcall sub_10009E5B4(__int64 a1, const char *a2, const char *a3)
{
const char *v3; // x21
__int64 result; // x0
__int64 v7; // x20
__int64 v8; // x0
__int64 v9; // x1
__int64 v10; // x19
__int64 v11; // x1
v3 = a3;
sub_1000D94D0(a1 + 720, a3);
if ( v3[23] < 0 )
v3 = *(const char **)v3;
atoi(v3);
if ( a2[23] < 0 )
a2 = *(const char **)a2;
result = atoi(a2);
v7 = result;
if ( (int)result <= 0 )
{
v10 = *(_QWORD *)(a1 + 1280);
if ( v10 )
{
v11 = sub_1000A6C58();
return (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v10 + 8LL))(v10, v11, v7);
}
}
else
{
v8 = sub_1000A6C58();
v9 = v8;
if ( v8 )
{
*(_DWORD *)(v8 + 344) = v7;
*(_BYTE *)(v8 + 395) = 1;
}
result = *(_QWORD *)(a1 + 1280);
if ( result )
return (**(__int64 (__fastcall ***)(__int64, __int64))result)(result, v9);
}
return result;
}