{"type": "func", "start": 7618564, "end": 7618740, "name": "CustomSongWidget::updateProgressBar", "pseudocode": "// \n// CustomSongWidget::updateProgressBar from 0x744004 to 0x7440b4 (176 bytes)\n// \n// 4 xrefs:\n// > CustomSongWidget::startMonitorDownload @ 0x7440cc\n// > CustomSongWidget::init @ 0x7461c0\n// > CustomSongWidget::updateDownloadProgress @ 0x746c18\n// > <???> @ 0x5b7e8\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 CustomSongWidget::updateProgressBar(CustomSongWidget *a1, int a2)\n{\n  float v2; // s0\n  float v3; // s2\n  cocos2d::CCSprite *m_sliderBar; // 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_sliderGroove->m_obRect.size.width - 4.0;\n  v3 = (float)((float)a2 / 100.0) * v2;\n  if ( v2 <= v3 )\n    v3 = a1->m_sliderGroove->m_obRect.size.width - 4.0;\n  m_sliderBar = a1->m_sliderBar;\n  setTextureRect = m_sliderBar->setTextureRect;\n  cocos2d::CCRect::CCRect(&v6, 0.0, 0.0, v3, 8.0);\n  setTextureRect(m_sliderBar, &v6);\n}", "assembly": "; \n; CustomSongWidget::updateProgressBar from 0x744004 to 0x7440b4 (176 bytes)\n; \n; 4 xrefs:\n; > CustomSongWidget::startMonitorDownload @ 0x7440cc\n; > CustomSongWidget::init @ 0x7461c0\n; > CustomSongWidget::updateDownloadProgress @ 0x746c18\n; > <???> @ 0x5b7e8\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, 0x744004\nCSEL            W1, W1, WZR, GE                                        ; +0x4, 0x744008\nSTP             X29, X30, [SP,#var_60]!                                ; +0x8, 0x74400c\nSCVTF           S0, W1                                                 ; +0xc, 0x744010\nMOV             X29, SP                                                ; +0x10, 0x744014\nLDR             S2, =0x42C80000                                        ; +0x14, 0x744018\nLDR             X2, [X0,#0x1C0]                                        ; +0x18, 0x74401c\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x1c, 0x744020\nFDIV            S2, S0, S2                                             ; +0x20, 0x744024\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x24, 0x744028\nLDR             S1, [X2,#0x1B0]                                        ; +0x28, 0x74402c\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x2c, 0x744030\nFMOV            S0, #4.0                                               ; +0x30, 0x744034\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x34, 0x744038\nFSUB            S0, S1, S0                                             ; +0x38, 0x74403c\nLDR             X1, [X1]                                               ; +0x3c, 0x744040\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x40, 0x744044\nFMUL            S2, S2, S0                                             ; +0x44, 0x744048\nFCMPE           S0, S2                                                 ; +0x48, 0x74404c\nB.GT            loc_744058                                             ; +0x4c, 0x744050\nFMOV            S2, S0; float                                          ; +0x50, 0x744054\nFMOV            S0, WZR; float                                         ; +0x54, 0x744058\nLDR             X20, [X0,#0x1C8]                                       ; +0x58, 0x74405c\nADD             X1, X29, #0x60+var_18                                  ; +0x5c, 0x744060\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x60, 0x744064\nMOV             X0, X1; this                                           ; +0x64, 0x744068\nLDR             X2, [X20]                                              ; +0x68, 0x74406c\nFMOV            S1, S0; float                                          ; +0x6c, 0x744070\nFMOV            S3, #8.0; float                                        ; +0x70, 0x744074\nLDR             X21, [X2,#0x460]                                       ; +0x74, 0x744078\nBL              _ZN7cocos2d6CCRectC2Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x78, 0x74407c\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x7c, 0x744080\nMOV             X0, X20                                                ; +0x80, 0x744084\nBLR             X21                                                    ; +0x84, 0x744088\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x88, 0x74408c\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x8c, 0x744090\nLDR             X0, [X19]                                              ; +0x90, 0x744094\nCMP             X1, X0                                                 ; +0x94, 0x744098\nB.NE            loc_7440B0                                             ; +0x98, 0x74409c\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x9c, 0x7440a0\nLDR             X21, [SP,#0x60+var_40]                                 ; +0xa0, 0x7440a4\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xa4, 0x7440a8\nRET                                                                    ; +0xa8, 0x7440ac\nBL              .__stack_chk_fail                                      ; +0xac, 0x7440b0", "xrefs": ["CustomSongWidget::startMonitorDownload @ 0x7440cc", "CustomSongWidget::init @ 0x7461c0", "CustomSongWidget::updateDownloadProgress @ 0x746c18", "<???> @ 0x5b7e8"], "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"}