//
// CustomSongLayer::onOptions from 0x140164940 to 0x140164a4c (268 bytes)
//
// 2 xrefs:
// > CustomSongLayer::init @ 0x14016433a
// > ??> @ 0x140917e40
//
// 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:27:26 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall CustomSongLayer::onOptions(__int64 a1)
{
__int64 v1; // rbx
cocos2d::CCObject *v2; // rdi
__int64 (__fastcall *v3)(__int64); // rdx
v1 = *(_QWORD *)(a1 + 680);
v2 = (cocos2d::CCObject *)operator new(0x2B0u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*(_QWORD *)v2 = &SongOptionsLayer::`vftable';
*((_QWORD *)v2 + 40) = &SongOptionsLayer::`vftable';
*((_QWORD *)v2 + 41) = &SongOptionsLayer::`vftable';
*((_QWORD *)v2 + 42) = &SongOptionsLayer::`vftable';
*((_QWORD *)v2 + 43) = &SongOptionsLayer::`vftable';
*((_QWORD *)v2 + 44) = &SongOptionsLayer::`vftable';
*((_QWORD *)v2 + 51) = &SongOptionsLayer::`vftable';
*((_QWORD *)v2 + 54) = &SongOptionsLayer::`vftable';
*((_QWORD *)v2 + 68) = &SongOptionsLayer::`vftable';
*((_QWORD *)v2 + 83) = 0;
if ( (unsigned __int8)SongOptionsLayer::init(v2, v1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
v2 = nullptr;
}
v3 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1064LL);
if ( v3 == FLAlertLayer::show )
return FLAlertLayer::show((__int64)v2);
else
return v3((__int64)v2);
}