{"type": "func", "start": 5369503440, "end": 5369503567, "name": "CustomSFXWidget::updateProgressBar", "pseudocode": "// \n// CustomSFXWidget::updateProgressBar from 0x1400c1ed0 to 0x1400c1f4f (127 bytes)\n// \n// 2 xrefs:\n// > CustomSFXWidget::updateDownloadProgress @ 0x1400c1e98\n// > <???> @ 0x1406c7fb0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CustomSFXWidget::updateProgressBar(CustomSFXWidget *a1, int a2)\n{\n  cocos2d::CCSprite *m_progressBarSprite; // rbx\n  cocos2d::CCSprite_vtbl *v3; // rdi\n  const cocos2d::CCRect *v4; // rax\n  cocos2d::CCRect v5; // [rsp+30h] [rbp-18h] BYREF\n\n  m_progressBarSprite = a1->m_progressBarSprite;\n  v3 = m_progressBarSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  if ( a2 < 0 )\n    a2 = 0;\n  cocos2d::CCRect::CCRect(\n    &v5,\n    0.0,\n    0.0,\n    fminf(\n      a1->m_progressOutlineSprite->m_obRect.size.width - 4.0,\n      (float)((float)a2 / 100.0) * (float)(a1->m_progressOutlineSprite->m_obRect.size.width - 4.0)),\n    8.0);\n  v3->setTextureRect_0(m_progressBarSprite, v4);\n}", "assembly": "; \n; CustomSFXWidget::updateProgressBar from 0x1400c1ed0 to 0x1400c1f4f (127 bytes)\n; \n; 2 xrefs:\n; > CustomSFXWidget::updateDownloadProgress @ 0x1400c1e98\n; > <???> @ 0x1406c7fb0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400c1ed0\npush    rdi                                                            ; +0x5, 0x1400c1ed5\nsub     rsp, 40h                                                       ; +0x6, 0x1400c1ed6\nmov     rax, [rcx+1A0h]                                                ; +0xa, 0x1400c1eda\nxorps   xmm2, xmm2                                                     ; +0x11, 0x1400c1ee1\nmov     rbx, [rcx+1A8h]                                                ; +0x14, 0x1400c1ee4\nxorps   xmm1, xmm1                                                     ; +0x1b, 0x1400c1eeb\nlea     rcx, [rsp+48h+var_18]                                          ; +0x1e, 0x1400c1eee\nmovss   xmm3, dword ptr [rax+1B0h]                                     ; +0x23, 0x1400c1ef3\nxor     eax, eax                                                       ; +0x2b, 0x1400c1efb\nsubss   xmm3, cs:dword_140622FF0                                       ; +0x2d, 0x1400c1efd\nmov     rdi, [rbx]                                                     ; +0x35, 0x1400c1f05\ntest    edx, edx                                                       ; +0x38, 0x1400c1f08\ncmovs   edx, eax                                                       ; +0x3a, 0x1400c1f0a\nmovd    xmm0, edx                                                      ; +0x3d, 0x1400c1f0d\ncvtdq2ps xmm0, xmm0                                                    ; +0x41, 0x1400c1f11\ndivss   xmm0, cs:dword_1406232BC                                       ; +0x44, 0x1400c1f14\nmulss   xmm0, xmm3                                                     ; +0x4c, 0x1400c1f1c\nminss   xmm3, xmm0                                                     ; +0x50, 0x1400c1f20\nmovss   xmm0, cs:dword_140623068                                       ; +0x54, 0x1400c1f24\nmovss   [rsp+48h+var_28], xmm0                                         ; +0x5c, 0x1400c1f2c\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x62, 0x1400c1f32\nmov     rdx, rax                                                       ; +0x68, 0x1400c1f38\nmov     rcx, rbx                                                       ; +0x6b, 0x1400c1f3b\ncall    qword ptr [rdi+3D0h]                                           ; +0x6e, 0x1400c1f3e\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x74, 0x1400c1f44\nadd     rsp, 40h                                                       ; +0x79, 0x1400c1f49\npop     rdi                                                            ; +0x7d, 0x1400c1f4d\nretn                                                                   ; +0x7e, 0x1400c1f4e", "xrefs": ["CustomSFXWidget::updateDownloadProgress @ 0x1400c1e98", "<???> @ 0x1406c7fb0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}