//
// LocalLevelManager::getAllLevelsInDict from 0x10025e6c4 to 0x10025e7c8 (260 bytes)
//
// 2 xrefs:
// > GameLevelManager::createNewLevel @ 0x1000a6434
// > sub_1000A6658 @ 0x1000a66e8
//
// 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 11:01:37 +0000
//
__int64 __fastcall LocalLevelManager::getAllLevelsInDict(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x21
__int64 v4; // x0
__int64 v5; // x22
char *v6; // x1
unsigned __int64 v7; // x9
unsigned __int8 v8; // w8
void *__p[2]; // [xsp+0h] [xbp-60h] BYREF
__int64 v11; // [xsp+10h] [xbp-50h]
void *v12[2]; // [xsp+18h] [xbp-48h] BYREF
unsigned __int8 v13; // [xsp+2Fh] [xbp-31h]
v2 = cocos2d::CCDictionary::create(a1);
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 360)) )
{
v3 = 0;
do
{
v4 = sub_1002E75A0(*(_QWORD *)(a1 + 360), v3);
v5 = v4;
if ( *(char *)(v4 + 367) < 0 )
{
sub_1000097D0(__p, *(void **)(v4 + 344), *(_QWORD *)(v4 + 352));
}
else
{
*(_OWORD *)__p = *(_OWORD *)(v4 + 344);
v11 = *(_QWORD *)(v4 + 360);
}
if ( v11 >= 0 )
v6 = (char *)__p;
else
v6 = (char *)__p[0];
sub_100009900(v12, v6);
if ( SHIBYTE(v11) < 0 )
operator delete(__p[0]);
v7 = v13;
v8 = v13;
if ( (v13 & 0x80u) != 0 )
v7 = (unsigned __int64)v12[1];
if ( v7 )
{
cocos2d::CCDictionary::setObject(v2, v5, v12);
v8 = v13;
}
if ( (v8 & 0x80) != 0 )
operator delete(v12[0]);
v3 = (unsigned int)(v3 + 1);
}
while ( (unsigned int)v3 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 360)) );
}
return v2;
}