//
// LevelInfoLayer::onLevelOptions from 0x1402fee10 to 0x1402feeb0 (160 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::init @ 0x1402f9479
// > ??> @ 0x1406d42ec
//
// 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
//
void LevelInfoLayer::onLevelOptions(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
char v2; // al
GJGameLevel *m_level; // rdx
bool v5; // bl
GameLevelOptionsLayer *v6; // rax
_BYTE v7[16]; // [rsp+28h] [rbp-30h] BYREF
__int64 v8; // [rsp+38h] [rbp-20h]
v2 = 0;
v5 = true;
if ( !a1->m_isBusy )
{
m_level = a1->m_level;
if ( m_level->m_levelType != SearchResult )
{
sub_14003BDB0((__int64)v7, (__int64)&m_level->m_levelString);
v2 = 3;
if ( v8 )
v5 = false;
}
}
if ( (v2 & 1) != 0 )
sub_14003A830((__int64)v7);
if ( !v5 )
{
v6 = GameLevelOptionsLayer::create(a1->m_level);
v6->show(v6);
}
}