//
// LevelSettingsLayer::onSettings from 0x140321040 to 0x1403210ae (110 bytes)
//
// 2 xrefs:
// > LevelSettingsLayer::init @ 0x140320e08
// > ??> @ 0x1406d4bec
//
// 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
//
// Hidden C++ exception states: #wind=1
void LevelSettingsLayer::onSettings(LevelSettingsLayer *a1, cocos2d::CCObject *a2)
{
LevelSettingsObject *m_settingsObject; // rdi
LevelOptionsLayer *v3; // rax
cocos2d::CCObject *v4; // rbx
LevelOptionsLayer *v5; // [rsp+30h] [rbp+8h]
m_settingsObject = a1->m_settingsObject;
v5 = (LevelOptionsLayer *)operator new(0x3F8u);
v3 = LevelOptionsLayer::LevelOptionsLayer(v5);
v4 = v3;
if ( v3 )
{
if ( LevelOptionsLayer::init(v3, m_settingsObject) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
((void (__fastcall *)(cocos2d::CCObject *, __int64))v4->~CCObject)(v4, 1);
v4 = nullptr;
}
}
((void (__fastcall *)(cocos2d::CCObject *))v4->__vftable[14].update)(v4);
}