//
// CustomSongLayer::onNewgroundsBrowser from 0x140165100 to 0x140165200 (256 bytes)
//
// 2 xrefs:
// > CustomSongLayer::init @ 0x1401641a2
// > ??> @ 0x140917e88
//
// 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 CustomSongLayer::onNewgroundsBrowser()
{
cocos2d::CCObject *v0; // rbx
__int64 (__fastcall *v1)(__int64); // rdx
v0 = (cocos2d::CCObject *)operator new(0x298u);
FLAlertLayer::FLAlertLayer((__int64)v0);
*(_QWORD *)v0 = &NewgroundsInfoLayer::`vftable';
*((_QWORD *)v0 + 40) = &NewgroundsInfoLayer::`vftable';
*((_QWORD *)v0 + 41) = &NewgroundsInfoLayer::`vftable';
*((_QWORD *)v0 + 42) = &NewgroundsInfoLayer::`vftable';
*((_QWORD *)v0 + 43) = &NewgroundsInfoLayer::`vftable';
*((_QWORD *)v0 + 44) = &NewgroundsInfoLayer::`vftable';
*((_QWORD *)v0 + 51) = &NewgroundsInfoLayer::`vftable';
*((_QWORD *)v0 + 54) = &NewgroundsInfoLayer::`vftable';
*((_QWORD *)v0 + 68) = &NewgroundsInfoLayer::`vftable';
if ( (unsigned __int8)NewgroundsInfoLayer::init(v0) )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);
v0 = nullptr;
}
v1 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v0 + 1064LL);
if ( v1 == FLAlertLayer::show )
return FLAlertLayer::show((__int64)v0);
else
return v1((__int64)v0);
}