//
// sub_10038D8A0 from 0x10038d8a0 to 0x10038d908 (104 bytes)
//
// 3 xrefs:
// > sub_10038D538 @ 0x10038d558
// > sub_10038D8A0 @ 0x10038d8d0
// > sub_10038D908 @ 0x10038d91c
//
// 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:36 +0000
//
__int64 __fastcall sub_10038D8A0(__int64 a1)
{
__int64 v2; // x0
int SFXDownloadProgress; // w0
bool v4; // zf
v2 = MusicDownloadManager::sharedState();
SFXDownloadProgress = MusicDownloadManager::getSFXDownloadProgress(v2, *(_DWORD *)(*(_QWORD *)(a1 + 336) + 56LL));
if ( *(_QWORD *)(a1 + 336) )
v4 = SFXDownloadProgress == -1;
else
v4 = 1;
if ( !v4 )
return sub_10038CB2C(a1, SFXDownloadProgress);
cocos2d::CCNode::unschedule((unsigned int *)a1, (unsigned __int64)sub_10038D8A0, 0);
return sub_10038CC88(a1);
}