//
// sub_10009C27C from 0x10009c27c to 0x10009c3c8 (332 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x100092930
//
// 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_10009C27C(__int64 a1, _QWORD *a2, char *__s))(void)
{
char *v3; // x20
__int64 v6; // x22
__int64 v7; // x0
_BOOL4 v8; // w0
_BOOL4 v9; // w22
_BOOL8 v10; // x0
_BOOL4 v11; // w21
_DWORD *v12; // x21
float v13; // s0
__int64 (***result)(void); // x0
__int64 (**v15)(void); // x8
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v17; // [xsp+1Fh] [xbp-21h]
v3 = __s;
if ( __s[23] < 0 )
v3 = *(char **)__s;
v6 = *(_QWORD *)(a1 + 1088);
sub_100009900(__p, v3);
v7 = cocos2d::CCDictionary::removeObjectForKey(v6, (char *)__p);
if ( v17 < 0 )
operator delete(__p[0]);
sub_1000BBC70(v7, v3, 1);
sub_100009900(__p, "-1");
v8 = sub_1000045BC(a2, __p);
v9 = v8;
if ( v17 < 0 )
{
operator delete(__p[0]);
if ( v9 )
{
LABEL_12:
result = *(__int64 (****)(void))(a1 + 1360);
if ( !result )
return result;
v15 = *result + 1;
return (__int64 (***)(void))(*v15)();
}
}
else if ( v8 )
{
goto LABEL_12;
}
sub_100009900(__p, "-2");
v10 = sub_1000045BC(a2, __p);
v11 = v10;
if ( v17 < 0 )
{
operator delete(__p[0]);
if ( v11 )
goto LABEL_11;
}
else if ( v10 )
{
LABEL_11:
v12 = (_DWORD *)GameManager::sharedState(v10);
v12[260] = 0;
v13 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;
v12[259] = (int)v13;
v12[258] = (int)v13;
goto LABEL_12;
}
result = *(__int64 (****)(void))(a1 + 1360);
if ( !result )
return result;
v15 = *result;
return (__int64 (***)(void))(*v15)();
}