//
// sub_1000A4074 from 0x1000a4074 to 0x1000a42ac (568 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x10009241c
//
// 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
//
void __fastcall sub_1000A4074(_QWORD *a1, char *a2, char *a3)
{
__int64 v6; // x22
char *v7; // x1
__int64 v8; // x0
__int64 v9; // x22
__int64 v10; // x0
__int64 v11; // x20
__int64 v12; // x0
const char *CString; // x0
_BOOL4 v14; // w0
_BOOL4 v15; // w22
__int64 v16; // x0
__int64 v17; // x21
__int64 v18; // x0
char *v19; // x1
__int64 v20; // x0
_BOOL8 v21; // x21
__int64 v22; // x23
__int64 v23; // x22
__int64 v24; // x24
__int64 v25; // x0
__int64 v26; // x0
void *__p[2]; // [xsp+8h] [xbp-48h] BYREF
char v28; // [xsp+1Fh] [xbp-31h]
v6 = a1[136];
v7 = a3;
if ( a3[23] < 0 )
v7 = *(char **)a3;
sub_100009900(__p, v7);
cocos2d::CCDictionary::removeObjectForKey(v6, (char *)__p);
if ( v28 < 0 )
operator delete(__p[0]);
v8 = sub_1000A72B8(a3, "_");
if ( v8 && (v9 = v8, (unsigned int)sub_1002E757C(v8) >= 3) )
{
v10 = cocos2d::CCArray::stringAtIndex(v9, 1);
v11 = cocos2d::CCString::intValue(v10);
v12 = cocos2d::CCArray::stringAtIndex(v9, 2);
CString = (const char *)cocos2d::CCString::getCString(v12);
a1[67] = atoll(CString);
}
else
{
v11 = 0;
}
sub_100009900(__p, "-1");
v14 = sub_1000045BC(a2, __p);
v15 = v14;
if ( v28 < 0 )
{
operator delete(__p[0]);
if ( v15 )
{
LABEL_11:
v16 = a1[158];
if ( v16 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 40LL))(v16, v11);
return;
}
}
else if ( v14 )
{
goto LABEL_11;
}
if ( a2[23] < 0 )
a2 = *(char **)a2;
sub_100009900(__p, a2);
v17 = sub_1000A72B8(__p, "#");
if ( v28 < 0 )
operator delete(__p[0]);
if ( (unsigned int)sub_1002E757C(v17) )
{
v18 = cocos2d::CCArray::stringAtIndex(v17, 0);
v19 = (char *)cocos2d::CCString::getCString(v18);
}
else
{
v19 = "";
}
sub_100009900(__p, v19);
if ( (unsigned int)sub_1002E757C(v17) < 2 )
{
v21 = 0;
}
else
{
v20 = cocos2d::CCArray::stringAtIndex(v17, 1);
v21 = (unsigned int)cocos2d::CCString::intValue(v20) != 0;
}
v22 = sub_1000C6018(__p);
v23 = sub_1002E736C(v22);
LODWORD(v24) = sub_1002E757C(v22);
while ( (int)v24 > 0 )
{
v24 = (unsigned int)(v24 - 1);
v25 = sub_1002E75A0(v22, v24);
sub_1002E74E0(v23, v25);
}
v26 = a1[158];
if ( v26 )
(*(void (__fastcall **)(__int64, __int64, __int64, _BOOL8))(*(_QWORD *)v26 + 32LL))(v26, v11, v23, v21);
if ( v28 < 0 )
operator delete(__p[0]);
}