//
// CustomSFXWidget::startDownload from 0x1006b8490 to 0x1006b8548 (184 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:35:28 +0000
//
__int64 __fastcall CustomSFXWidget::startDownload(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // r14
__m128 v3; // xmm0
__m128 v4; // xmm2
_BYTE v6[40]; // [rsp+8h] [rbp-28h] BYREF
*(_BYTE *)(a1 + 491) = 0;
v1 = MusicDownloadManager::sharedState();
MusicDownloadManager::downloadSFX(v1, *(_DWORD *)(a1 + 496));
v2 = *(_QWORD *)(a1 + 464);
v3 = (__m128)*(unsigned int *)(*(_QWORD *)(a1 + 456) + 432LL);
v3.f32[0] = v3.f32[0] + -4.0;
v4 = v3;
v4.f32[0] = fminf(v3.f32[0] * 0.0, v3.f32[0]);
sub_100278270((__int64)v6, 0.0, 0.0, v4, (__m128)0x41000000u);
*(double *)v3.i64 = (*(double (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v2 + 1136LL))(v2, v6);
CustomSFXWidget::showLoadingArt(a1, *(double *)v3.i64, 0.0);
cocos2d::CCNode::unschedule(a1, (__int64)CustomSFXWidget::updateDownloadProgress, 0);
return cocos2d::CCNode::schedule_1(a1, (__int64)CustomSFXWidget::updateDownloadProgress, 0, COERCE_DOUBLE(1023969417));
}