//
// SongSelectNode::showCustomSongSelect from 0x140168c00 to 0x140168d60 (352 bytes)
//
// 3 xrefs:
// > SongSelectNode::onOpenCustomSong @ 0x140168bef
// > SongSelectNode::FLAlert_Clicked @ 0x140168dd7
// > ??> @ 0x14091802c
//
// 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:28 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall SongSelectNode::showCustomSongSelect(__int64 a1)
{
__int64 v2; // rbx
cocos2d::CCObject *v3; // rdi
__int64 v4; // rax
__int64 (__fastcall *v5)(__int64); // rdx
v2 = a1 + 336;
if ( !a1 )
v2 = 0;
v3 = (cocos2d::CCObject *)operator new(0x2C8u);
FLAlertLayer::FLAlertLayer((__int64)v3);
*(_QWORD *)v3 = &CustomSongLayer::`vftable';
*((_QWORD *)v3 + 40) = &CustomSongLayer::`vftable';
*((_QWORD *)v3 + 41) = &CustomSongLayer::`vftable';
*((_QWORD *)v3 + 42) = &CustomSongLayer::`vftable';
*((_QWORD *)v3 + 43) = &CustomSongLayer::`vftable';
*((_QWORD *)v3 + 44) = &CustomSongLayer::`vftable';
*((_QWORD *)v3 + 51) = &CustomSongLayer::`vftable';
*((_QWORD *)v3 + 54) = &CustomSongLayer::`vftable';
*((_QWORD *)v3 + 68) = &CustomSongLayer::`vftable';
*((_QWORD *)v3 + 83) = &CustomSongLayer::`vftable';
*((_QWORD *)v3 + 84) = &CustomSongLayer::`vftable';
*((_QWORD *)v3 + 85) = 0;
*((_QWORD *)v3 + 86) = 0;
*((_QWORD *)v3 + 88) = 0;
if ( CustomSongLayer::init((__int64)v3, v2) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
v3 = nullptr;
}
v4 = a1 + 328;
if ( !a1 )
v4 = 0;
*((_QWORD *)v3 + 88) = v4;
v5 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1064LL);
if ( v5 == CustomSongLayer::show )
return CustomSongLayer::show((__int64)v3);
else
return v5((__int64)v3);
}