//
// LevelInfoLayer::onLevelOptions from 0x1002af220 to 0x1002af2db (187 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::init @ 0x1002abdf2
//
// 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:28:00 +0000
//
void __fastcall LevelInfoLayer::onLevelOptions(__int64 a1)
{
__int64 v1; // rax
__int128 *v2; // rax
char *v3; // rax
__int64 v4; // rbx
__int128 v5; // [rsp-38h] [rbp-38h] BYREF
void *v6; // [rsp-28h] [rbp-28h]
if ( !*(_BYTE *)(a1 + 488) )
{
v1 = *(_QWORD *)(a1 + 504);
if ( *(_DWORD *)(v1 + 1140) != 4 )
{
if ( (*(_BYTE *)(v1 + 392) & 1) != 0 )
{
sub_10001AD30(&v5, *(const void **)(v1 + 408), *(_QWORD *)(v1 + 400));
}
else
{
v2 = (__int128 *)(v1 + 392);
v6 = *((void **)v2 + 2);
v5 = *v2;
}
if ( (v5 & 1) != 0 )
{
v4 = *((_QWORD *)&v5 + 1);
operator delete(v6);
if ( !v4 )
return;
}
else if ( !((unsigned __int8)v5 >> 1) )
{
return;
}
v3 = sub_10029F7C0(*(_QWORD *)(a1 + 504));
(*(void (__fastcall **)(char *))(*(_QWORD *)v3 + 1312LL))(v3);
}
}
}