//
// sub_10009F470 from 0x10009f470 to 0x10009f52c (188 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x100094708
//
// 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:30 +0000
//
_QWORD *__fastcall sub_10009F470(__int64 a1, _QWORD *a2, char *__s)
{
__int64 v5; // x21
_BOOL4 v6; // w20
_QWORD *result; // x0
__int64 v8; // x8
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v10; // [xsp+1Fh] [xbp-21h]
v5 = *(_QWORD *)(a1 + 1088);
if ( __s[23] < 0 )
__s = *(char **)__s;
sub_100009900(__p, __s);
cocos2d::CCDictionary::removeObjectForKey(v5, (char *)__p);
if ( v10 < 0 )
operator delete(__p[0]);
sub_100009900(__p, "-1");
v6 = sub_1000045BC(a2, __p);
if ( v10 < 0 )
operator delete(__p[0]);
result = *(_QWORD **)(a1 + 1256);
if ( result )
{
v8 = 16;
if ( v6 )
v8 = 24;
return (_QWORD *)(*(__int64 (**)(void))(*result + v8))();
}
return result;
}