//
// LevelSettingsLayer::onSettings from 0x14045a230 to 0x14045a29e (110 bytes)
//
// 2 xrefs:
// > LevelSettingsLayer::init @ 0x140459ff7
// > ??> @ 0x140927bf0
//
// 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 11:32:31 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall LevelSettingsLayer::onSettings(__int64 a1)
{
__int64 v1; // rdi
cocos2d::CCObject *v2; // rax
cocos2d::CCObject *v3; // rbx
_QWORD *v5; // [rsp+30h] [rbp+8h]
v1 = *(_QWORD *)(a1 + 816);
v5 = operator new(0x478u);
v2 = (cocos2d::CCObject *)LevelOptionsLayer::LevelOptionsLayer(v5);
v3 = v2;
if ( v2 )
{
if ( (unsigned __int8)LevelOptionsLayer::init(v2, v1) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
v3 = nullptr;
}
}
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);
}