//
// CustomSFXWidget::startMonitorDownload from 0x140161fb0 to 0x14016205c (172 bytes)
//
// 3 xrefs:
// > CustomSFXWidget::init @ 0x1401617b2
// > CustomSFXWidget::onDownload @ 0x140161fa4
// > ??> @ 0x140917d74
//
// 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 11:27:25 +0000
//
__int64 __fastcall CustomSFXWidget::startMonitorDownload(__int64 a1)
{
__int64 v1; // rdi
void (__fastcall *v3)(__int64, __int64); // rbx
__int64 v4; // rax
__int64 v5; // rdx
_BYTE v7[24]; // [rsp+30h] [rbp-18h] BYREF
v1 = *(_QWORD *)(a1 + 464);
v3 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 992LL);
cocos2d::CCRect::CCRect(
(cocos2d::CCRect *)v7,
0.0,
0.0,
fminf(
*(float *)(*(_QWORD *)(a1 + 456) + 432LL) - 4.0,
(float)(*(float *)(*(_QWORD *)(a1 + 456) + 432LL) - 4.0) * 0.0),
8.0);
v3(v1, v4);
CustomSFXWidget::showLoadingArt(a1, v5);
cocos2d::CCNode::unschedule(a1, CustomSFXWidget::updateDownloadProgress);
return cocos2d::CCNode::schedule(a1, CustomSFXWidget::updateDownloadProgress);
}