//
// sub_1000A203C from 0x1000a203c to 0x1000a218c (336 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x100092868
//
// 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:31 +0000
//
__int64 __fastcall sub_1000A203C(__int64 a1, _QWORD *a2, char *a3)
{
__int64 v6; // x22
char *v7; // x1
__int64 v8; // x20
_BOOL4 v9; // w0
_BOOL4 v10; // w22
__int64 result; // x0
__int64 v12; // x22
__int64 v13; // x0
__int64 v14; // x21
__int64 v15; // x0
_BOOL8 v16; // x3
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v18; // [xsp+1Fh] [xbp-21h]
v6 = *(_QWORD *)(a1 + 1088);
v7 = a3;
if ( a3[23] < 0 )
v7 = *(char **)a3;
sub_100009900(__p, v7);
cocos2d::CCDictionary::removeObjectForKey(v6, (char *)__p);
if ( v18 < 0 )
operator delete(__p[0]);
v8 = sub_1000C335C(a3);
sub_100009900(__p, "-1");
v9 = sub_1000045BC(a2, __p);
v10 = v9;
if ( v18 < 0 )
{
operator delete(__p[0]);
if ( v10 )
{
LABEL_7:
result = *(_QWORD *)(a1 + 1256);
if ( result )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 344LL))(result, v8);
return result;
}
}
else if ( v9 )
{
goto LABEL_7;
}
v12 = sub_1000A72B8(a2, ":");
if ( (unsigned int)sub_1002E757C(v12) )
{
v13 = cocos2d::CCArray::stringAtIndex(v12, 0);
v14 = cocos2d::CCString::intValue(v13);
}
else
{
v14 = 0;
}
if ( (unsigned int)sub_1002E757C(v12) < 2 )
{
v16 = 0;
}
else
{
v15 = cocos2d::CCArray::stringAtIndex(v12, 1);
v16 = (unsigned int)cocos2d::CCString::intValue(v15) != 0;
}
result = *(_QWORD *)(a1 + 1256);
if ( result )
return (*(__int64 (__fastcall **)(__int64, __int64, __int64, _BOOL8))(*(_QWORD *)result + 336LL))(
result,
v8,
v14,
v16);
return result;
}