{"type": "func", "start": 5370160464, "end": 5370160594, "name": "CustomSFXWidget::updateProgressBar", "pseudocode": "// \n// CustomSFXWidget::updateProgressBar from 0x140162550 to 0x1401625d2 (130 bytes)\n// \n// 3 xrefs:\n// > CustomSFXWidget::updateDownloadProgress @ 0x140162522\n// > CustomSongWidget::updateDownloadProgress @ 0x14016c325\n// > <???> @ 0x140917db0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:25 +0000\n// \n\n// Merged with: CustomSFXWidget::updateProgressBar, CustomSongWidget::updateProgressBar\n__int64 __fastcall CustomSFXWidget::updateProgressBar(__int64 a1, int a2)\n{\n  __int64 v2; // rdi\n  __int64 (__fastcall *v3)(__int64, __int64); // rbx\n  __int64 v4; // rax\n  _BYTE v6[24]; // [rsp+30h] [rbp-18h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 464);\n  v3 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 992LL);\n  if ( a2 < 0 )\n    a2 = 0;\n  cocos2d::CCRect::CCRect(\n    (cocos2d::CCRect *)v6,\n    0.0,\n    0.0,\n    fminf(\n      *(float *)(*(_QWORD *)(a1 + 456) + 432LL) - 4.0,\n      (float)((float)a2 / 100.0) * (float)(*(float *)(*(_QWORD *)(a1 + 456) + 432LL) - 4.0)),\n    8.0);\n  return v3(v2, v4);\n}", "assembly": "; \n; CustomSFXWidget::updateProgressBar from 0x140162550 to 0x1401625d2 (130 bytes)\n; \n; 3 xrefs:\n; > CustomSFXWidget::updateDownloadProgress @ 0x140162522\n; > CustomSongWidget::updateDownloadProgress @ 0x14016c325\n; > <???> @ 0x140917db0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:25 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140162550\npush    rdi                                                            ; +0x5, 0x140162555\nsub     rsp, 40h                                                       ; +0x6, 0x140162556\nmov     rax, [rcx+1C8h]                                                ; +0xa, 0x14016255a\nxorps   xmm2, xmm2                                                     ; +0x11, 0x140162561\nmov     rdi, [rcx+1D0h]                                                ; +0x14, 0x140162564\nxorps   xmm1, xmm1                                                     ; +0x1b, 0x14016256b\nlea     rcx, [rsp+48h+var_18]                                          ; +0x1e, 0x14016256e\nmovss   xmm3, dword ptr [rax+1B0h]                                     ; +0x23, 0x140162573\nmov     rax, [rdi]                                                     ; +0x2b, 0x14016257b\nsubss   xmm3, cs:dword_140835450                                       ; +0x2e, 0x14016257e\nmov     rbx, [rax+3E0h]                                                ; +0x36, 0x140162586\nxor     eax, eax                                                       ; +0x3d, 0x14016258d\ntest    edx, edx                                                       ; +0x3f, 0x14016258f\ncmovs   edx, eax                                                       ; +0x41, 0x140162591\nmovd    xmm0, edx                                                      ; +0x44, 0x140162594\ncvtdq2ps xmm0, xmm0                                                    ; +0x48, 0x140162598\ndivss   xmm0, cs:dword_1408357B0                                       ; +0x4b, 0x14016259b\nmulss   xmm0, xmm3                                                     ; +0x53, 0x1401625a3\nminss   xmm3, xmm0                                                     ; +0x57, 0x1401625a7\nmovss   xmm0, cs:dword_1408354D4                                       ; +0x5b, 0x1401625ab\nmovss   [rsp+48h+var_28], xmm0                                         ; +0x63, 0x1401625b3\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x69, 0x1401625b9\nmov     rdx, rax                                                       ; +0x6f, 0x1401625bf\nmov     rcx, rdi                                                       ; +0x72, 0x1401625c2\ncall    rbx                                                            ; +0x75, 0x1401625c5\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x77, 0x1401625c7\nadd     rsp, 40h                                                       ; +0x7c, 0x1401625cc\npop     rdi                                                            ; +0x80, 0x1401625d0\nretn                                                                   ; +0x81, 0x1401625d1", "xrefs": ["CustomSFXWidget::updateDownloadProgress @ 0x140162522", "CustomSongWidget::updateDownloadProgress @ 0x14016c325", "<???> @ 0x140917db0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}