//
// CustomSongLayer::onSongBrowser from 0x1001c317c to 0x1001c31e0 (100 bytes)
//
// 1 xrefs:
// > CustomSongLayer::init @ 0x1001c2840
//
// 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 11:00:16 +0000
//
__int64 __fastcall CustomSongLayer::onSongBrowser(__int64 a1)
{
_QWORD *v2; // x20
__int64 v3; // x19
int HighestChildZ; // w0
v2 = (_QWORD *)sub_100302C44();
v2[74] = a1 + 664;
v3 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v2) + 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);
}