//
// CustomSongLayer::onSongBrowser from 0x97e1e4 to 0x97e254 (112 bytes)
//
// 3 xrefs:
// > ??> @ 0x596e0
// > CustomSongLayer::init @ 0x980994
// > ??> @ 0x1542100
//
// This function is hookable on this platform (idp: arm, 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:57:49 +0000
//
__int64 __fastcall CustomSongLayer::onSongBrowser(CustomSongLayer *this, cocos2d::CCObject *a2)
{
char *v2; // x20
cocos2d::CCDirector *v3; // x0
cocos2d::CCDirector *v4; // x19
cocos2d::CCScene *v5; // x20
void (__fastcall *v6)(cocos2d::CCScene *, cocos2d::CCDirector *, _QWORD); // x21
int HighestChildZ; // w0
v2 = (char *)this + 664;
v3 = (cocos2d::CCDirector *)GJSongBrowser::create(this);
*((_QWORD *)v3 + 74) = v2;
v4 = v3;
v5 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v3) + 272);
v6 = *(void (__fastcall **)(cocos2d::CCScene *, cocos2d::CCDirector *, _QWORD))(*(_QWORD *)v5 + 464LL);
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v5);
v6(v5, v4, (unsigned int)(HighestChildZ + 1));
return (*(__int64 (__fastcall **)(cocos2d::CCDirector *, _QWORD))(*(_QWORD *)v4 + 1328LL))(v4, 0);
}