//
// sub_10030364C from 0x10030364c to 0x1003036c8 (124 bytes)
//
// 4 xrefs:
// > MenuLayer::dMenuLayer @ 0x10030370c
// > sub_100303710 @ 0x100303714
// > sub_100303718 @ 0x100303720
// > sub_10030372C @ 0x100303738
//
// 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:03:06 +0000
//
__int64 __fastcall sub_10030364C(_QWORD *a1)
{
__int64 v2; // x0
__int64 v3; // x0
*a1 = off_10092A410;
a1[40] = off_10092A8B8;
a1[41] = &off_10092A928;
a1[42] = off_10092A940;
a1[43] = off_10092A960;
a1[44] = off_10092A988;
a1[51] = &off_10092A9B8;
a1[52] = &off_10092A9D0;
a1[53] = off_10092A9E8;
v2 = MusicDownloadManager::sharedState();
v3 = MusicDownloadManager::removeMusicDownloadDelegate(v2, (__int64)(a1 + 53));
*(_QWORD *)(GameManager::sharedState(v3) + 576) = 0;
MenuLayer::willClose(a1);
return cocos2d::CCLayer::dCCLayer(a1);
}