//
// sub_10002C5E8 from 0x10002c5e8 to 0x10002c684 (156 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::init @ 0x100029608
//
// 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 10:57:28 +0000
//
void __fastcall sub_10002C5E8(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x8
void *v4; // x20
__int64 v5; // x0
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v7; // [xsp+10h] [xbp-20h]
if ( (*(_BYTE *)(a1 + 488) & 1) == 0 )
{
v2 = *(_QWORD *)(a1 + 504);
if ( *(_DWORD *)(v2 + 1140) != 4 )
{
if ( *(char *)(v2 + 415) < 0 )
{
sub_1000097D0(__p, *(void **)(v2 + 392), *(_QWORD *)(v2 + 400));
}
else
{
v3 = v2 + 392;
*(_OWORD *)__p = *(_OWORD *)v3;
v7 = *(_QWORD *)(v3 + 16);
}
if ( v7 >= 0 )
v4 = (void *)SHIBYTE(v7);
else
v4 = __p[1];
if ( (SHIBYTE(v7) & 0x8000000000000000LL) != 0 )
operator delete(__p[0]);
if ( v4 )
{
v5 = GameLevelOptionsLayer::create(*(_QWORD *)(a1 + 504));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}
}
}
}