//
// sub_1003052C0 from 0x1003052c0 to 0x1003053a0 (224 bytes)
//
// 4 xrefs:
// > MenuLayer::init @ 0x100304c50
// > sub_100305024 @ 0x100305068
// > MenuLayer::musicActionFinished @ 0x1003053ac
// > sub_1003053B4 @ 0x1003053c0
//
// 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:07 +0000
//
__int64 __fastcall sub_1003052C0(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x0
void *v4; // x20
double *v5; // x0
float v6; // [xsp+0h] [xbp-30h] BYREF
__int64 v7; // [xsp+8h] [xbp-28h] BYREF
result = *(_QWORD *)(a1 + 488);
if ( result )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 584LL))(result, 1);
v3 = MusicDownloadManager::sharedState();
result = sub_1001E1D14(v3);
if ( (_DWORD)result )
{
v4 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"exMark_001.png");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v4 + 160LL))(v4, 0.8);
v5 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 488) + 328LL))(*(_QWORD *)(a1 + 488));
sub_100026438(&v7, v5);
sub_1000262BC(&v6, (float)(*(float *)&v7 + -8.0) * 0.8, *((float *)&v7 + 1) + -7.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v4 + 184LL))(v4, &v6);
return (*(__int64 (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 488) + 464LL))(
*(_QWORD *)(a1 + 488),
v4,
10);
}
}
return result;
}