//
// LocalLevelManager::getCreatedLevels from 0x1006cab30 to 0x1006cabb7 (135 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::loadPage @ 0x10048462c
//
// 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
//
__int64 __fastcall LocalLevelManager::getCreatedLevels(__int64 a1, int a2)
{
__int64 v3; // rbx
__int64 v4; // rax
unsigned int *v5; // rax
__int64 *v6; // r15
unsigned __int64 v7; // r12
__int64 v8; // rsi
if ( a2 <= 0 )
return *(_QWORD *)(a1 + 360);
v3 = sub_1007FE900(a1);
v4 = *(_QWORD *)(a1 + 360);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
if ( *v5 )
{
v6 = *((__int64 **)v5 + 2);
v7 = (unsigned __int64)&v6[*v5 - 1];
do
{
v8 = *v6;
if ( !*v6 )
break;
if ( *(_DWORD *)(v8 + 916) == a2 )
sub_1007FEBF0(v3, v8);
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}
return v3;
}