//
// CustomSongWidget::startMonitorDownload from 0x14016bb80 to 0x14016bc36 (182 bytes)
//
// 4 xrefs:
// > CustomSongWidget::init @ 0x14016a67e
// > CustomSongWidget::startDownload @ 0x14016bb71
// > CustomSongWidget::downloadSongStarted @ 0x14016e183
// > ??> @ 0x140918134
//
// 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:29 +0000
//
__int64 __fastcall CustomSongWidget::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);
LOBYTE(v5) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 456) + 336LL))(*(_QWORD *)(a1 + 456), v5);
cocos2d::CCNode::unschedule(a1, CustomSongWidget::updateDownloadProgress);
return cocos2d::CCNode::schedule(a1, CustomSongWidget::updateDownloadProgress);
}