//
// sub_1000A21A8 from 0x1000a21a8 to 0x1000a22a4 (252 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x100094550
//
// 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
//
void __fastcall sub_1000A21A8(__int64 a1, char *a2, char *a3)
{
__int64 v6; // x22
char *v7; // x1
__int64 v8; // x21
_BOOL4 v9; // w22
__int64 v10; // x20
__int64 v11; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v13; // [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 ( v13 < 0 )
operator delete(__p[0]);
v8 = sub_1000C335C(a3);
sub_100009900(__p, "-1");
v9 = sub_1000045BC(a2, __p);
if ( v13 < 0 )
operator delete(__p[0]);
v10 = *(_QWORD *)(a1 + 1256);
if ( v9 )
{
if ( v10 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 280LL))(v10, v8);
}
else if ( v10 )
{
if ( a2[23] < 0 )
a2 = *(char **)a2;
v11 = atoi(a2);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v10 + 272LL))(v10, v8, v11);
}
}