//
// sub_1005278F8 from 0x1005278f8 to 0x100527990 (152 bytes)
//
// 1 xrefs:
// > sub_1005277DC @ 0x100527850
//
// 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:07:15 +0000
//
__int64 __fastcall sub_1005278F8(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x20
_QWORD *v4; // x20
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
result = MusicDownloadManager::sharedState();
v3 = *(_QWORD *)(result + 408);
if ( v3 )
{
result = sub_1002E757C(*(_QWORD *)(result + 408));
if ( (_DWORD)result )
{
sub_100009900(__p, "SFX Credits");
v4 = URLViewLayer::create((__int64)__p, v3);
if ( v6 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 100);
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*v4 + 1328LL))(v4, 0);
}
}
return result;
}