// // CustomSFXWidget::updateProgressBar from 0xb5dc44 to 0xb5dcf4 (176 bytes) // // 4 xrefs: // > CustomSFXWidget::startMonitorDownload @ 0xb5df54 // > CustomSFXWidget::updateDownloadProgress @ 0xb5f154 // > CustomSFXWidget::init @ 0xb5fdd0 // > @ 0x49dc8 // // 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 13:02:10 +0000 // __int64 __fastcall CustomSFXWidget::updateProgressBar(CustomSFXWidget *this, int a2) { float v2; // s0 float v3; // s2 __int64 v4; // x20 void (__fastcall *v5)(__int64, _BYTE *); // x21 _BYTE v7[16]; // [xsp+48h] [xbp+48h] BYREF if ( a2 < 0 ) a2 = 0; v2 = *(float *)(*((_QWORD *)this + 57) + 432LL) - 4.0; v3 = (float)((float)a2 / 100.0) * v2; if ( v2 <= v3 ) v3 = *(float *)(*((_QWORD *)this + 57) + 432LL) - 4.0; v4 = *((_QWORD *)this + 58); v5 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 1136LL); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v7, 0.0, 0.0, v3, 8.0); v5(v4, v7); return _stack_chk_guard; }