//
// CustomSongLayer::onSongBrowser from 0x1001f8f00 to 0x1001f8f5b (91 bytes)
//
// 1 xrefs:
// > CustomSongLayer::init @ 0x1001f84e3
//
// 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 12:26:49 +0000
//
__int64 __fastcall CustomSongLayer::onSongBrowser(__int64 a1, __int64 a2)
{
_QWORD *v2; // r14
__int64 v3; // rbx
int HighestChildZ; // eax
v2 = (_QWORD *)GJSongBrowser::create();
v2[74] = a1 + 664;
v3 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(a1, a2) + 272);
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v3);
(*(void (__fastcall **)(__int64, _QWORD *, _QWORD))(*(_QWORD *)v3 + 464LL))(v3, v2, (unsigned int)(HighestChildZ + 1));
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*v2 + 1328LL))(v2, 0);
}