//
// LocalLevelManager::getAllLevelsWithName from 0x1001c8b8c to 0x1001c8c6c (224 bytes)
//
// 1 xrefs:
// > EditLevelLayer::verifyLevelName @ 0x1000ebe6c
//
// 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
//
__int64 __fastcall LocalLevelManager::getAllLevelsWithName(__int64 a1, _QWORD *a2)
{
__int64 v4; // x21
__int64 v5; // x22
__int64 v6; // x0
__int64 v7; // x23
_BOOL4 v8; // w0
_BOOL4 v9; // w24
void *__p[2]; // [xsp+0h] [xbp-50h] BYREF
__int64 v12; // [xsp+10h] [xbp-40h]
v4 = sub_10024A15C(a1);
if ( (unsigned int)sub_10024A36C(*(_QWORD *)(a1 + 352)) )
{
v5 = 0;
while ( 1 )
{
v6 = sub_10024A388(*(_QWORD *)(a1 + 352), v5);
v7 = v6;
if ( *(char *)(v6 + 367) < 0 )
{
sub_1000097D0(__p, *(void **)(v6 + 344), *(_QWORD *)(v6 + 352));
}
else
{
*(_OWORD *)__p = *(_OWORD *)(v6 + 344);
v12 = *(_QWORD *)(v6 + 360);
}
v8 = sub_1000045BC(__p, a2);
v9 = v8;
if ( SHIBYTE(v12) < 0 )
break;
if ( v8 )
goto LABEL_8;
LABEL_9:
v5 = (unsigned int)(v5 + 1);
if ( (unsigned int)v5 >= (unsigned int)sub_10024A36C(*(_QWORD *)(a1 + 352)) )
return v4;
}
operator delete(__p[0]);
if ( !v9 )
goto LABEL_9;
LABEL_8:
sub_10024A2D0(v4, v7);
goto LABEL_9;
}
return v4;
}