//
// CustomSongLayer::onNCSBrowser from 0x140164ff0 to 0x1401650fb (267 bytes)
//
// 3 xrefs:
// > CustomSongLayer::init @ 0x14016404a
// > ??> @ 0x140917e70
// > ??> @ 0x140917e7c
//
// 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::onNCSBrowser(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
__int64 (__fastcall *v3)(__int64); // rdx
v2 = (cocos2d::CCObject *)operator new(0x2A8u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*(_QWORD *)v2 = &NCSInfoLayer::`vftable';
*((_QWORD *)v2 + 40) = &NCSInfoLayer::`vftable';
*((_QWORD *)v2 + 41) = &NCSInfoLayer::`vftable';
*((_QWORD *)v2 + 42) = &NCSInfoLayer::`vftable';
*((_QWORD *)v2 + 43) = &NCSInfoLayer::`vftable';
*((_QWORD *)v2 + 44) = &NCSInfoLayer::`vftable';
*((_QWORD *)v2 + 51) = &NCSInfoLayer::`vftable';
*((_QWORD *)v2 + 54) = &NCSInfoLayer::`vftable';
*((_QWORD *)v2 + 68) = &NCSInfoLayer::`vftable';
*((_QWORD *)v2 + 83) = &NCSInfoLayer::`vftable';
if ( (unsigned __int8)NCSInfoLayer::init(v2, a1) )
{
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);
}