//
// sub_10009985C from 0x10009985c to 0x1000999a4 (328 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x100093384
//
// 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:27 +0000
//
void __fastcall sub_10009985C(__int64 a1, _QWORD *a2, char *__s)
{
int v3; // w20
_BOOL4 v6; // w0
_BOOL4 v7; // w21
_QWORD *v8; // x0
void (**v9)(void); // x8
void (***v10)(void); // x0
void *__p[2]; // [xsp+0h] [xbp-50h] BYREF
char v12; // [xsp+17h] [xbp-39h]
_QWORD v13[3]; // [xsp+18h] [xbp-38h] BYREF
v3 = (int)__s;
cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1088), __s);
memset(v13, 0, sizeof(v13));
sub_1000B32AC(v3, "_");
sub_100009900(__p, "-1");
v6 = sub_1000045BC(a2, __p);
v7 = v6;
if ( v12 < 0 )
{
operator delete(__p[0]);
if ( v7 )
{
LABEL_3:
v8 = *(_QWORD **)(a1 + 1360);
if ( v8 )
{
v9 = (void (**)(void))(*v8 + 8LL);
LABEL_10:
(*v9)();
goto LABEL_11;
}
goto LABEL_11;
}
}
else if ( v6 )
{
goto LABEL_3;
}
sub_100009900(__p, "");
sub_1000CB7C4(a1, 0, __p, 0);
if ( v12 < 0 )
operator delete(__p[0]);
v10 = *(void (****)(void))(a1 + 1360);
if ( v10 )
{
v9 = *v10;
goto LABEL_10;
}
LABEL_11:
__p[0] = v13;
sub_100018250((void ***)__p);
}