//
// sub_10009B79C from 0x10009b79c to 0x10009b8bc (288 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x100092cec
//
// 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:28 +0000
//
__int64 __fastcall sub_10009B79C(__int64 a1, char *a2, __int64 *a3)
{
__int64 *v3; // x22
__int64 v6; // x20
_BOOL4 v7; // w0
_BOOL4 v8; // w22
__int64 v9; // x0
__int64 v10; // x0
__int64 v11; // x21
__int64 result; // x0
void *v13[2]; // [xsp+0h] [xbp-50h] BYREF
char v14; // [xsp+17h] [xbp-39h]
void *__p[2]; // [xsp+18h] [xbp-38h] BYREF
char v16; // [xsp+2Fh] [xbp-21h]
v3 = a3;
if ( *((char *)a3 + 23) < 0 )
v3 = (__int64 *)*a3;
v6 = sub_1000BBC70(a1, v3, 1);
sub_1000ADC9C(a1, v3);
sub_100009900(__p, "-1");
v7 = sub_1000045BC(a2, __p);
v8 = v7;
if ( v16 < 0 )
{
operator delete(__p[0]);
if ( v8 )
goto LABEL_14;
}
else if ( v7 )
{
LABEL_14:
result = *(_QWORD *)(a1 + 1392);
if ( result )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 8LL))(result, v6);
return result;
}
if ( a2[23] < 0 )
a2 = *(char **)a2;
sub_100009900(v13, a2);
v9 = sub_1000A8FB4(v13, 0);
v10 = sub_1000BEFC8(v9);
v11 = v10;
if ( v14 < 0 )
{
operator delete(v13[0]);
if ( !v11 )
goto LABEL_14;
}
else if ( !v10 )
{
goto LABEL_14;
}
cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 1136), v11, *(int *)(v11 + 316));
result = *(_QWORD *)(a1 + 1392);
if ( result )
return (**(__int64 (__fastcall ***)(__int64, __int64))result)(result, v11);
return result;
}