//
// LocalLevelManager::getLevelsInNameGroups from 0x1006c9ef0 to 0x1006ca054 (356 bytes)
//
// 1 xrefs:
// > LocalLevelManager::dataLoaded @ 0x1006cb1c9
//
// This function is hookable on this platform (idp: pc, 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 12:35:35 +0000
//
_QWORD *__fastcall LocalLevelManager::getLevelsInNameGroups(__int64 a1)
{
__int64 v1; // rbx
unsigned int v2; // r15d
char *v3; // r12
__int64 v4; // rax
__int64 v5; // r13
__int64 v6; // rbx
void *v7; // rdi
char *v8; // r14
__int64 v9; // r12
char *v10; // rbx
_QWORD *v13; // [rsp+8h] [rbp-48h]
__int128 v14; // [rsp+10h] [rbp-40h] BYREF
void *__p; // [rsp+20h] [rbp-30h]
v1 = a1;
v13 = cocos2d::CCDictionary::create();
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 360)) )
{
v2 = 0;
v3 = (char *)&v14;
do
{
v4 = sub_1007FEFE0(*(_QWORD *)(v1 + 360), v2);
v5 = v4;
v6 = v4 + 344;
if ( (*(_BYTE *)(v4 + 344) & 1) != 0 )
{
sub_10001AD30(v3, *(const void **)(v4 + 360), *(_QWORD *)(v4 + 352));
}
else
{
__p = *(void **)(v4 + 360);
v14 = *(_OWORD *)v6;
}
v7 = v13;
v8 = v3;
v9 = cocos2d::CCDictionary::objectForKey((__int64)v13, v3);
if ( (v14 & 1) != 0 )
{
v7 = __p;
operator delete(__p);
}
if ( !v9 )
{
v9 = sub_1007FE900(v7);
if ( (*(_BYTE *)v6 & 1) != 0 )
{
v10 = v8;
sub_10001AD30(v8, *(const void **)(v5 + 360), *(_QWORD *)(v5 + 352));
}
else
{
__p = *(void **)(v6 + 16);
v14 = *(_OWORD *)v6;
v10 = v8;
}
cocos2d::CCDictionary::setObject((__int64)v13, v9, v10);
if ( (v14 & 1) != 0 )
operator delete(__p);
}
sub_1007FEBF0(v9, v5);
++v2;
v1 = a1;
v3 = v8;
}
while ( v2 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 360)) );
}
return v13;
}