//
// sub_100121D1C from 0x100121d1c to 0x100121d84 (104 bytes)
//
// 3 xrefs:
// > sub_100121328 @ 0x100121354
// > sub_100121D1C @ 0x100121d4c
// > sub_100121D84 @ 0x100121da8
//
// 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 10:59:16 +0000
//
__int64 __fastcall sub_100121D1C(__int64 a1)
{
__int64 v2; // x0
int DownloadProgress; // w0
bool v4; // zf
v2 = MusicDownloadManager::sharedState(a1);
DownloadProgress = MusicDownloadManager::getDownloadProgress(v2, *(unsigned int *)(*(_QWORD *)(a1 + 336) + 316LL));
if ( *(_QWORD *)(a1 + 336) )
v4 = DownloadProgress == -1;
else
v4 = 1;
if ( !v4 )
return sub_1001203B8(a1, DownloadProgress);
cocos2d::CCNode::unschedule(a1, sub_100121D1C, 0);
return CustomSongWidget::updateSongInfo(a1);
}