{"type": "func", "start": 10689416, "end": 10689592, "name": "CustomSFXWidget::updateProgressBar", "pseudocode": "// \n// CustomSFXWidget::updateProgressBar from 0xa31b88 to 0xa31c38 (176 bytes)\n// \n// 4 xrefs:\n// > CustomSFXWidget::startMonitorDownload @ 0xa31c50\n// > CustomSFXWidget::init @ 0xa33024\n// > CustomSFXWidget::updateDownloadProgress @ 0xa33894\n// > <???> @ 0x31c50\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  float v2; // s0\n  float v3; // s2\n  cocos2d::CCSprite *m_progressBarSprite; // x20\n  void (__fastcall *setTextureRect)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // x21\n  cocos2d::CCRect v6; // [xsp+48h] [xbp+48h] BYREF\n\n  if ( a2 < 0 )\n    a2 = 0;\n  v2 = a1->m_progressOutlineSprite->m_obRect.size.width - 4.0;\n  v3 = (float)((float)a2 / 100.0) * v2;\n  if ( v2 <= v3 )\n    v3 = a1->m_progressOutlineSprite->m_obRect.size.width - 4.0;\n  m_progressBarSprite = a1->m_progressBarSprite;\n  setTextureRect = m_progressBarSprite->setTextureRect;\n  cocos2d::CCRect::CCRect(&v6, 0.0, 0.0, v3, 8.0);\n  setTextureRect(m_progressBarSprite, &v6);\n}", "assembly": "; \n; CustomSFXWidget::updateProgressBar from 0xa31b88 to 0xa31c38 (176 bytes)\n; \n; 4 xrefs:\n; > CustomSFXWidget::startMonitorDownload @ 0xa31c50\n; > CustomSFXWidget::init @ 0xa33024\n; > CustomSFXWidget::updateDownloadProgress @ 0xa33894\n; > <???> @ 0x31c50\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\nCMP             W1, WZR                                                ; +0x0, 0xa31b88\nCSEL            W1, W1, WZR, GE                                        ; +0x4, 0xa31b8c\nSTP             X29, X30, [SP,#var_60]!                                ; +0x8, 0xa31b90\nSCVTF           S0, W1                                                 ; +0xc, 0xa31b94\nMOV             X29, SP                                                ; +0x10, 0xa31b98\nLDR             S2, =0x42C80000                                        ; +0x14, 0xa31b9c\nLDR             X2, [X0,#0x1A0]                                        ; +0x18, 0xa31ba0\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x1c, 0xa31ba4\nFDIV            S2, S0, S2                                             ; +0x20, 0xa31ba8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x24, 0xa31bac\nLDR             S1, [X2,#0x1B0]                                        ; +0x28, 0xa31bb0\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x2c, 0xa31bb4\nFMOV            S0, #4.0                                               ; +0x30, 0xa31bb8\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x34, 0xa31bbc\nFSUB            S0, S1, S0                                             ; +0x38, 0xa31bc0\nLDR             X1, [X1]                                               ; +0x3c, 0xa31bc4\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x40, 0xa31bc8\nFMUL            S2, S2, S0                                             ; +0x44, 0xa31bcc\nFCMPE           S0, S2                                                 ; +0x48, 0xa31bd0\nB.GT            loc_A31BDC                                             ; +0x4c, 0xa31bd4\nFMOV            S2, S0; float                                          ; +0x50, 0xa31bd8\nFMOV            S0, WZR; float                                         ; +0x54, 0xa31bdc\nLDR             X20, [X0,#0x1A8]                                       ; +0x58, 0xa31be0\nADD             X1, X29, #0x60+var_18                                  ; +0x5c, 0xa31be4\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x60, 0xa31be8\nMOV             X0, X1; this                                           ; +0x64, 0xa31bec\nLDR             X2, [X20]                                              ; +0x68, 0xa31bf0\nFMOV            S1, S0; float                                          ; +0x6c, 0xa31bf4\nFMOV            S3, #8.0; float                                        ; +0x70, 0xa31bf8\nLDR             X21, [X2,#0x460]                                       ; +0x74, 0xa31bfc\nBL              _ZN7cocos2d6CCRectC2Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x78, 0xa31c00\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x7c, 0xa31c04\nMOV             X0, X20                                                ; +0x80, 0xa31c08\nBLR             X21                                                    ; +0x84, 0xa31c0c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x88, 0xa31c10\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x8c, 0xa31c14\nLDR             X0, [X19]                                              ; +0x90, 0xa31c18\nCMP             X1, X0                                                 ; +0x94, 0xa31c1c\nB.NE            loc_A31C34                                             ; +0x98, 0xa31c20\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x9c, 0xa31c24\nLDR             X21, [SP,#0x60+var_40]                                 ; +0xa0, 0xa31c28\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xa4, 0xa31c2c\nRET                                                                    ; +0xa8, 0xa31c30\nBL              .__stack_chk_fail                                      ; +0xac, 0xa31c34", "xrefs": ["CustomSFXWidget::startMonitorDownload @ 0xa31c50", "CustomSFXWidget::init @ 0xa33024", "CustomSFXWidget::updateDownloadProgress @ 0xa33894", "<???> @ 0x31c50"], "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"}