//
// LocalLevelManager::getLevelsInNameGroups from 0x1005f7000 to 0x1005f7164 (356 bytes)
//
// 1 xrefs:
// > LocalLevelManager::dataLoaded @ 0x1005f7f5f
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCDictionary *__fastcall LocalLevelManager::getLevelsInNameGroups(LocalLevelManager *a1)
{
__int128 v1; // xmm0
LocalLevelManager *v2; // rbx
unsigned int v3; // r15d
char *v4; // r12
__int64 v5; // rax
__int64 v6; // r13
__int64 v7; // rbx
void *v8; // rdi
char *v9; // r14
char *v10; // rsi
cocos2d::CCObject *v11; // r12
char *v12; // rbx
cocos2d::CCDictionary *v15; // [rsp+8h] [rbp-48h]
__int128 v16; // [rsp+10h] [rbp-40h] BYREF
void *__p; // [rsp+20h] [rbp-30h]
v2 = a1;
v15 = cocos2d::CCDictionary::create();
if ( (unsigned int)sub_100720070(a1->m_localLevels) )
{
v3 = 0;
v4 = (char *)&v16;
do
{
v5 = sub_1007200C0(v2->m_localLevels, v3);
v6 = v5;
v7 = v5 + 344;
if ( (*(_BYTE *)(v5 + 344) & 1) != 0 )
{
sub_100006B70(v4, *(const void **)(v5 + 360), *(_QWORD *)(v5 + 352), *(double *)&v1);
}
else
{
__p = *(void **)(v5 + 360);
v1 = *(_OWORD *)v7;
v16 = *(_OWORD *)v7;
}
v8 = v15;
v9 = v4;
v10 = v4;
v11 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey_1((__int64)v15, v4);
if ( (v16 & 1) != 0 )
{
v8 = __p;
operator delete(__p);
}
if ( !v11 )
{
v11 = (cocos2d::CCObject *)sub_10071F9E0(v8, v10);
if ( (*(_BYTE *)v7 & 1) != 0 )
{
v12 = v9;
sub_100006B70(v9, *(const void **)(v6 + 360), *(_QWORD *)(v6 + 352), *(double *)&v1);
}
else
{
__p = *(void **)(v7 + 16);
v1 = *(_OWORD *)v7;
v16 = *(_OWORD *)v7;
v12 = v9;
}
cocos2d::CCDictionary::setObject_1((__int64)v15, v11, v12);
if ( (v16 & 1) != 0 )
operator delete(__p);
}
sub_10071FCD0(v11, v6);
++v3;
v2 = a1;
v4 = v9;
}
while ( v3 < (unsigned int)sub_100720070(a1->m_localLevels) );
}
return v15;
}