{"type": "func", "start": 8815800, "end": 8815976, "name": "CustomSongWidget::updateProgressBar", "pseudocode": "// \n// CustomSongWidget::updateProgressBar from 0x8684b8 to 0x868568 (176 bytes)\n// \n// 4 xrefs:\n// > CustomSongWidget::startMonitorDownload @ 0x868580\n// > CustomSongWidget::init @ 0x86b9fc\n// > CustomSongWidget::updateDownloadProgress @ 0x86c54c\n// > <???> @ 0x7d830\n// \n// This function is hookable on this platform (idp: arm, 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 12:55:41 +0000\n// \n\n__int64 __fastcall CustomSongWidget::updateProgressBar(CustomSongWidget *this, int a2)\n{\n  float v2; // s0\n  float v3; // s2\n  __int64 v4; // x20\n  void (__fastcall *v5)(__int64, _BYTE *); // x21\n  _BYTE v7[16]; // [xsp+48h] [xbp+48h] BYREF\n\n  if ( a2 < 0 )\n    a2 = 0;\n  v2 = *(float *)(*((_QWORD *)this + 57) + 432LL) - 4.0;\n  v3 = (float)((float)a2 / 100.0) * v2;\n  if ( v2 <= v3 )\n    v3 = *(float *)(*((_QWORD *)this + 57) + 432LL) - 4.0;\n  v4 = *((_QWORD *)this + 58);\n  v5 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 1136LL);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v7, 0.0, 0.0, v3, 8.0);\n  v5(v4, v7);\n  return _stack_chk_guard;\n}", "assembly": "; \n; CustomSongWidget::updateProgressBar from 0x8684b8 to 0x868568 (176 bytes)\n; \n; 4 xrefs:\n; > CustomSongWidget::startMonitorDownload @ 0x868580\n; > CustomSongWidget::init @ 0x86b9fc\n; > CustomSongWidget::updateDownloadProgress @ 0x86c54c\n; > <???> @ 0x7d830\n; \n; This function is hookable on this platform (idp: arm, 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 12:55:41 +0000\n; \nCMP             W1, WZR                                                ; +0x0, 0x8684b8\nCSEL            W1, W1, WZR, GE                                        ; +0x4, 0x8684bc\nSTP             X29, X30, [SP,#var_60]!                                ; +0x8, 0x8684c0\nSCVTF           S0, W1                                                 ; +0xc, 0x8684c4\nMOV             X29, SP                                                ; +0x10, 0x8684c8\nLDR             S2, =0x42C80000                                        ; +0x14, 0x8684cc\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x18, 0x8684d0\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x1c, 0x8684d4\nFDIV            S2, S0, S2                                             ; +0x20, 0x8684d8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x24, 0x8684dc\nLDR             X2, [X0,#0x1C8]                                        ; +0x28, 0x8684e0\nFMOV            S0, #4.0                                               ; +0x2c, 0x8684e4\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x30, 0x8684e8\nLDR             S1, [X2,#0x1B0]                                        ; +0x34, 0x8684ec\nFSUB            S0, S1, S0                                             ; +0x38, 0x8684f0\nLDR             X1, [X1]                                               ; +0x3c, 0x8684f4\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x40, 0x8684f8\nFMUL            S2, S2, S0                                             ; +0x44, 0x8684fc\nFCMPE           S0, S2                                                 ; +0x48, 0x868500\nB.GT            loc_86850C                                             ; +0x4c, 0x868504\nFMOV            S2, S0; float                                          ; +0x50, 0x868508\nFMOV            S0, WZR; float                                         ; +0x54, 0x86850c\nLDR             X20, [X0,#0x1D0]                                       ; +0x58, 0x868510\nADD             X1, X29, #0x60+var_18                                  ; +0x5c, 0x868514\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x60, 0x868518\nMOV             X0, X1; this                                           ; +0x64, 0x86851c\nLDR             X2, [X20]                                              ; +0x68, 0x868520\nFMOV            S1, S0; float                                          ; +0x6c, 0x868524\nFMOV            S3, #8.0; float                                        ; +0x70, 0x868528\nLDR             X21, [X2,#0x470]                                       ; +0x74, 0x86852c\nBL              _ZN7cocos2d6CCRectC2Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x78, 0x868530\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x7c, 0x868534\nMOV             X0, X20                                                ; +0x80, 0x868538\nBLR             X21                                                    ; +0x84, 0x86853c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x88, 0x868540\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x8c, 0x868544\nLDR             X0, [X19]                                              ; +0x90, 0x868548\nCMP             X1, X0                                                 ; +0x94, 0x86854c\nB.NE            loc_868564                                             ; +0x98, 0x868550\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x9c, 0x868554\nLDR             X21, [SP,#0x60+var_40]                                 ; +0xa0, 0x868558\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xa4, 0x86855c\nRET                                                                    ; +0xa8, 0x868560\nBL              .__stack_chk_fail                                      ; +0xac, 0x868564", "xrefs": ["CustomSongWidget::startMonitorDownload @ 0x868580", "CustomSongWidget::init @ 0x86b9fc", "CustomSongWidget::updateDownloadProgress @ 0x86c54c", "<???> @ 0x7d830"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}