//
// CustomSFXWidget::updateProgressBar from 0x140162550 to 0x1401625d2 (130 bytes)
//
// 3 xrefs:
// > CustomSFXWidget::updateDownloadProgress @ 0x140162522
// > CustomSongWidget::updateDownloadProgress @ 0x14016c325
// > ??> @ 0x140917db0
//
// 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
//
// Merged with: CustomSFXWidget::updateProgressBar, CustomSongWidget::updateProgressBar
__int64 __fastcall CustomSFXWidget::updateProgressBar(__int64 a1, int a2)
{
__int64 v2; // rdi
__int64 (__fastcall *v3)(__int64, __int64); // rbx
__int64 v4; // rax
_BYTE v6[24]; // [rsp+30h] [rbp-18h] BYREF
v2 = *(_QWORD *)(a1 + 464);
v3 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 992LL);
if ( a2 < 0 )
a2 = 0;
cocos2d::CCRect::CCRect(
(cocos2d::CCRect *)v6,
0.0,
0.0,
fminf(
*(float *)(*(_QWORD *)(a1 + 456) + 432LL) - 4.0,
(float)((float)a2 / 100.0) * (float)(*(float *)(*(_QWORD *)(a1 + 456) + 432LL) - 4.0)),
8.0);
return v3(v2, v4);
}