//
// sub_1000A2D08 from 0x1000a2d08 to 0x1000a2f34 (556 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x100094dc4
//
// 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:32 +0000
//
__int64 __fastcall sub_1000A2D08(__int64 a1, std::string *a2, char *__s)
{
__int64 v5; // x21
std::string::size_type v6; // x21
_BOOL4 v7; // w0
int v8; // w21
__int64 result; // x0
__int64 v10; // x22
__int64 v11; // x0
__int64 v12; // x20
__int64 v13; // x0
const char *CString; // x0
__int64 v15; // x21
__int64 v16; // x0
int v17; // w0
__int64 v18; // x0
bool v19; // w8
int v20; // w0
__int64 v21; // x0
__int64 v22; // x0
__int64 v23; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v25; // [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 ( v25 < 0 )
operator delete(__p[0]);
v6 = std::string::find(a2, 58, 0);
sub_100009900(__p, "-1");
v7 = sub_1000045BC(a2, __p);
v8 = v6 == -1 || v7;
if ( v25 < 0 )
{
operator delete(__p[0]);
if ( v8 )
{
LABEL_10:
result = *(_QWORD *)(a1 + 1264);
if ( result )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 56LL))(result);
return result;
}
}
else if ( v8 )
{
goto LABEL_10;
}
if ( SHIBYTE(a2->__r_.__value_.__r.__words[2]) < 0 )
a2 = (std::string *)a2->__r_.__value_.__r.__words[0];
sub_100009900(__p, (char *)a2);
v10 = sub_1000A72B8(__p, ":");
if ( v25 < 0 )
operator delete(__p[0]);
v11 = cocos2d::CCArray::stringAtIndex(v10, 0);
v12 = cocos2d::CCString::intValue(v11);
if ( (unsigned int)sub_1002E757C(v10) < 2 )
{
v15 = 0;
}
else
{
v13 = cocos2d::CCArray::stringAtIndex(v10, 1);
CString = (const char *)cocos2d::CCString::getCString(v13);
v15 = atoll(CString);
}
if ( (*(_BYTE *)(a1 + 448) & 1) != 0 || (*(_BYTE *)(a1 + 449) & 1) == 0 )
{
if ( (unsigned int)sub_1002E757C(v10) < 3 )
{
v19 = 0;
}
else
{
v18 = cocos2d::CCArray::stringAtIndex(v10, 2);
v19 = (unsigned int)cocos2d::CCString::intValue(v18) != 0;
}
v20 = 0;
*(_BYTE *)(a1 + 450) = v19;
*(_DWORD *)(a1 + 440) = 0;
}
else
{
if ( (unsigned int)sub_1002E757C(v10) < 3 )
{
v17 = 0;
}
else
{
v16 = cocos2d::CCArray::stringAtIndex(v10, 2);
v17 = cocos2d::CCString::intValue(v16);
}
*(_DWORD *)(a1 + 440) = v17;
if ( (unsigned int)sub_1002E757C(v10) < 4 )
{
v20 = 0;
}
else
{
v23 = cocos2d::CCArray::stringAtIndex(v10, 3);
v20 = cocos2d::CCString::intValue(v23);
}
}
*(_DWORD *)(a1 + 444) = v20;
v21 = *(_QWORD *)(a1 + 1264);
if ( v21 )
return (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v21 + 48LL))(v21, v12, v15);
v22 = sub_100306828();
return sub_100306AC0(v22, "ThreadsChangedNotification", 0);
}