//
// sub_10009DC80 from 0x10009dc80 to 0x10009de0c (396 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x10009423c
//
// 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:29 +0000
//
void __fastcall sub_10009DC80(__int64 a1, _QWORD *a2, __int64 *a3)
{
bool v5; // w0
bool v6; // w21
__int64 v7; // x20
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x0
void (__fastcall ***v13)(_QWORD); // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v15; // [xsp+1Fh] [xbp-21h]
if ( *((char *)a3 + 23) < 0 )
a3 = (__int64 *)*a3;
sub_1000ADC9C(a1, a3);
*(_BYTE *)(a1 + 912) = 1;
sub_100009900(__p, "-1");
v5 = sub_1000045BC(a2, __p);
v6 = v5;
if ( v15 < 0 )
{
operator delete(__p[0]);
if ( v6 )
return;
}
else if ( v5 )
{
return;
}
v7 = sub_1000A72B8(a2, ",");
if ( (unsigned int)sub_1002E757C(v7) )
{
v8 = cocos2d::CCArray::stringAtIndex(v7, 0);
*(_DWORD *)(a1 + 892) = cocos2d::CCString::intValue(v8);
}
if ( (unsigned int)sub_1002E757C(v7) >= 2 )
{
v9 = cocos2d::CCArray::stringAtIndex(v7, 1);
*(_DWORD *)(a1 + 896) = cocos2d::CCString::intValue(v9);
}
if ( (unsigned int)sub_1002E757C(v7) >= 3 )
{
v10 = cocos2d::CCArray::stringAtIndex(v7, 2);
*(_DWORD *)(a1 + 900) = cocos2d::CCString::intValue(v10);
}
if ( (unsigned int)sub_1002E757C(v7) >= 4 )
{
v11 = cocos2d::CCArray::stringAtIndex(v7, 3);
*(_DWORD *)(a1 + 904) = cocos2d::CCString::intValue(v11);
}
if ( (unsigned int)sub_1002E757C(v7) >= 5 )
{
v12 = cocos2d::CCArray::stringAtIndex(v7, 4);
*(_DWORD *)(a1 + 908) = cocos2d::CCString::intValue(v12);
}
if ( (*(_BYTE *)(a1 + 932) & 1) == 0 && (unsigned int)sub_1002E757C(v7) >= 4 )
{
*(_OWORD *)(a1 + 916) = *(_OWORD *)(a1 + 892);
*(_BYTE *)(a1 + 932) = 1;
}
v13 = *(void (__fastcall ****)(_QWORD))(a1 + 1440);
if ( v13 )
(**v13)(v13);
}