{"type": "func", "start": 4298050540, "end": 4298050660, "name": "CustomSFXWidget::updateProgressBar", "pseudocode": "// \n// CustomSFXWidget::updateProgressBar from 0x1002f0bec to 0x1002f0c64 (120 bytes)\n// \n// 3 xrefs:\n// > CustomSFXWidget::init @ 0x1002f089c\n// > CustomSFXWidget::startMonitorDownload @ 0x1002f1310\n// > CustomSFXWidget::updateDownloadProgress @ 0x1002f1650\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 __fastcall CustomSFXWidget::updateProgressBar(CustomSFXWidget *a1, int a2)\n{\n  cocos2d::CCSprite *m_progressBarSprite; // x19\n  float v3; // s0\n  float v4; // s2\n  float v5[4]; // [xsp+0h] [xbp-20h] BYREF\n\n  m_progressBarSprite = a1->m_progressBarSprite;\n  v3 = a1->m_progressOutlineSprite->m_obRect.size.width + -4.0;\n  if ( v3 <= (float)((float)((float)(a2 & (unsigned int)~(a2 >> 31)) / 100.0) * v3) )\n    v4 = a1->m_progressOutlineSprite->m_obRect.size.width + -4.0;\n  else\n    v4 = (float)((float)(a2 & (unsigned int)~(a2 >> 31)) / 100.0) * v3;\n  sub_100022990(v5, 0.0, 0.0, v4, 8.0);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float *))m_progressBarSprite->setTextureRect)(m_progressBarSprite, v5);\n}", "assembly": "; \n; CustomSFXWidget::updateProgressBar from 0x1002f0bec to 0x1002f0c64 (120 bytes)\n; \n; 3 xrefs:\n; > CustomSFXWidget::init @ 0x1002f089c\n; > CustomSFXWidget::startMonitorDownload @ 0x1002f1310\n; > CustomSFXWidget::updateDownloadProgress @ 0x1002f1650\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1002f0bec\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002f0bf0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002f0bf4\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002f0bf8\nBIC             W8, W1, W1,ASR#31                                      ; +0x10, 0x1002f0bfc\nLDP             X9, X19, [X0,#0x1A0]                                   ; +0x14, 0x1002f0c00\nLDR             S0, [X9,#0x1B0]                                        ; +0x18, 0x1002f0c04\nFMOV            S1, #-4.0                                              ; +0x1c, 0x1002f0c08\nFADD            S0, S0, S1                                             ; +0x20, 0x1002f0c0c\nUCVTF           S1, W8                                                 ; +0x24, 0x1002f0c10\nMOV             W8, #0x42C80000                                        ; +0x28, 0x1002f0c14\nFMOV            S2, W8                                                 ; +0x2c, 0x1002f0c18\nFDIV            S1, S1, S2                                             ; +0x30, 0x1002f0c1c\nFMUL            S1, S1, S0                                             ; +0x34, 0x1002f0c20\nFCMP            S0, S1                                                 ; +0x38, 0x1002f0c24\nFCSEL           S2, S1, S0, GT                                         ; +0x3c, 0x1002f0c28\nMOV             X0, SP                                                 ; +0x40, 0x1002f0c2c\nFMOV            S0, WZR                                                ; +0x44, 0x1002f0c30\nFMOV            S1, WZR                                                ; +0x48, 0x1002f0c34\nFMOV            S3, #8.0                                               ; +0x4c, 0x1002f0c38\nBL              sub_100022990                                          ; +0x50, 0x1002f0c3c\nLDR             X8, [X19]                                              ; +0x54, 0x1002f0c40\nLDR             X8, [X8,#0x460]                                        ; +0x58, 0x1002f0c44\nMOV             X1, SP                                                 ; +0x5c, 0x1002f0c48\nMOV             X0, X19                                                ; +0x60, 0x1002f0c4c\nBLR             X8                                                     ; +0x64, 0x1002f0c50\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x68, 0x1002f0c54\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x6c, 0x1002f0c58\nADD             SP, SP, #0x30 ; '0'                                    ; +0x70, 0x1002f0c5c\nRET                                                                    ; +0x74, 0x1002f0c60", "xrefs": ["CustomSFXWidget::init @ 0x1002f089c", "CustomSFXWidget::startMonitorDownload @ 0x1002f1310", "CustomSFXWidget::updateDownloadProgress @ 0x1002f1650"], "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"}