//
// CustomSongLayer::onSongBrowser from 0x100215920 to 0x10021597b (91 bytes)
//
// 1 xrefs:
// > CustomSongLayer::init @ 0x100214f13
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall CustomSongLayer::onSongBrowser(CustomSongLayer *a1, cocos2d::CCObject *a2)
{
GJSongBrowser *v2; // r14
cocos2d::CCScene *m_pRunningScene; // rbx
int HighestChildZ; // eax
v2 = GJSongBrowser::create();
v2->m_delegate = &a1->GJDropDownLayerDelegate;
m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;
HighestChildZ = cocos2d::CCScene::getHighestChildZ(m_pRunningScene);
((void (__fastcall *)(cocos2d::CCScene *, GJSongBrowser *, _QWORD))m_pRunningScene->addChild_0)(
m_pRunningScene,
v2,
(unsigned int)(HighestChildZ + 1));
((void (__fastcall *)(GJSongBrowser *, _QWORD))v2->showLayer)(v2, 0);
}