//
// sub_10009B8D8 from 0x10009b8d8 to 0x10009b9f8 (288 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x100092c74
//
// 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 ***__fastcall sub_10009B8D8(__int64 a1, _QWORD *a2, char *__s))(_QWORD, __int64)
{
char *v3; // x20
__int64 v6; // x21
__int64 v7; // x0
__int64 v8; // x21
_BOOL4 v9; // w0
_BOOL4 v10; // w22
__int64 v11; // x0
__int64 (__fastcall ***result)(_QWORD, __int64); // x0
__int64 v13; // x20
__int64 v14; // x0
__int64 CString; // x0
void *__p[2]; // [xsp+18h] [xbp-38h] BYREF
char v17; // [xsp+2Fh] [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]);
v8 = sub_1000BBC70(v7, v3, 1);
sub_100009900(__p, "-1");
v9 = sub_1000045BC(a2, __p);
v10 = v9;
if ( v17 < 0 )
{
operator delete(__p[0]);
if ( v10 )
goto LABEL_7;
}
else if ( v9 )
{
LABEL_7:
v11 = *(_QWORD *)(a1 + 1400);
if ( v11 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 8LL))(v11, v8);
return (__int64 (__fastcall ***)(_QWORD, __int64))sub_1000ADE4C(a1, v3);
}
v13 = GameLevelManager::sharedState();
v14 = sub_1003065B0("messages_%i_%i", 1, 0);
CString = cocos2d::CCString::getCString(v14);
sub_1000ADE4C(v13, CString);
result = *(__int64 (__fastcall ****)(_QWORD, __int64))(a1 + 1400);
if ( result )
return (__int64 (__fastcall ***)(_QWORD, __int64))(**result)(result, v8);
return result;
}