//
// sub_1000996A8 from 0x1000996a8 to 0x100099824 (380 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x100092ea0
//
// 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_1000996A8(__int64 a1, _QWORD *a2, char *a3)
{
__int64 v6; // x0
char *CString; // x1
_BOOL4 v8; // w0
_BOOL4 v9; // w20
_QWORD *v10; // x0
void (**v11)(void); // x8
unsigned __int64 v12; // x8
void (***v13)(void); // x0
void *__p[2]; // [xsp+8h] [xbp-68h] BYREF
char v15; // [xsp+1Fh] [xbp-51h]
void *v16[3]; // [xsp+20h] [xbp-50h] BYREF
void *v17[2]; // [xsp+38h] [xbp-38h] BYREF
unsigned __int8 v18; // [xsp+4Fh] [xbp-21h]
v6 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1088), a3);
if ( v6 )
CString = (char *)cocos2d::CCString::getCString(v6);
else
CString = "";
sub_100009900(v17, CString);
cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1088), a3);
memset(v16, 0, sizeof(v16));
sub_1000B32AC((int)a3, "_");
sub_100009900(__p, "-1");
v8 = sub_1000045BC(a2, __p);
v9 = v8;
if ( v15 < 0 )
{
operator delete(__p[0]);
if ( v9 )
goto LABEL_6;
}
else if ( v8 )
{
LABEL_6:
v10 = *(_QWORD **)(a1 + 1360);
if ( !v10 )
goto LABEL_16;
v11 = (void (**)(void))(*v10 + 8LL);
goto LABEL_15;
}
v12 = v18;
if ( (v18 & 0x80u) != 0 )
v12 = (unsigned __int64)v17[1];
if ( v12 )
sub_1000CB7C4(a1, 0, v17, 0xFFFFFFFFLL);
v13 = *(void (****)(void))(a1 + 1360);
if ( v13 )
{
v11 = *v13;
LABEL_15:
(*v11)();
}
LABEL_16:
__p[0] = v16;
sub_100018250((void ***)__p);
if ( (char)v18 < 0 )
operator delete(v17[0]);
}