{"type": "func", "start": 5121528, "end": 5121650, "name": "CustomSongWidget::updateProgressBar", "pseudocode": "// \n// CustomSongWidget::updateProgressBar from 0x4e25f8 to 0x4e2672 (122 bytes)\n// \n// 3 xrefs:\n// > CustomSongWidget::startMonitorDownload @ 0x4e2684\n// > CustomSongWidget::init @ 0x4e4c6c\n// > CustomSongWidget::updateDownloadProgress @ 0x4e4fec\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:51:02 +0000\n// \n\nint __fastcall CustomSongWidget::updateProgressBar(CustomSongWidget *this, int a2)\n{\n  int v2; // r6\n  int v3; // r3\n  float v4; // s14\n  int (__fastcall *v5)(int, _BYTE *); // r7\n  float v6; // r3\n  _BYTE v8[16]; // [sp+Ch] [bp-18h] BYREF\n\n  v2 = *((_DWORD *)this + 84);\n  v3 = *((_DWORD *)this + 83);\n  v4 = *(float *)(v3 + 344) - 4.0;\n  v5 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v2 + 568);\n  if ( v4 > (float)(v4 * (float)((float)(a2 & ~(a2 >> 31)) / 100.0)) )\n    v6 = v4 * (float)((float)(a2 & ~(a2 >> 31)) / 100.0);\n  else\n    v6 = *(float *)(v3 + 344) - 4.0;\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v8, 0.0, 0.0, v6, 8.0);\n  return v5(v2, v8);\n}", "assembly": "; \n; CustomSongWidget::updateProgressBar from 0x4e25f8 to 0x4e2672 (122 bytes)\n; \n; 3 xrefs:\n; > CustomSongWidget::startMonitorDownload @ 0x4e2684\n; > CustomSongWidget::init @ 0x4e4c6c\n; > CustomSongWidget::updateDownloadProgress @ 0x4e4fec\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:51:02 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x4e25f8\nVMOV.F32        S14, #4.0                                              ; +0x2, 0x4e25fa\nLDR             R4, =(__stack_chk_guard_ptr - 0x4E260E)                ; +0x6, 0x4e25fe\nSUB             SP, SP, #0x24                                          ; +0x8, 0x4e2600\nBIC.W           R1, R1, R1,ASR#31                                      ; +0xa, 0x4e2602\nVLDR            S13, =100.0                                            ; +0xe, 0x4e2606\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x12, 0x4e260a\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x14, 0x4e260c\nLDR.W           R6, [R0,#0x150]                                        ; +0x16, 0x4e260e\nADD             R5, SP, #0x24+var_18                                   ; +0x1a, 0x4e2612\nLDR             R3, [R4]                                               ; +0x1c, 0x4e2614\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x1e, 0x4e2616\nLDR.W           R3, [R0,#0x14C]                                        ; +0x20, 0x4e2618\nMOV             R0, R5; this                                           ; +0x24, 0x4e261c\nVLDR            S15, [R3,#0x158]                                       ; +0x26, 0x4e261e\nLDR             R3, [R6]                                               ; +0x2a, 0x4e2622\nVSUB.F32        S14, S15, S14                                          ; +0x2c, 0x4e2624\nLDR.W           R7, [R3,#0x238]                                        ; +0x30, 0x4e2628\nVMOV            S15, R1                                                ; +0x34, 0x4e262c\nMOVS            R1, #0; float                                          ; +0x38, 0x4e2630\nMOV             R2, R1; float                                          ; +0x3a, 0x4e2632\nMOV.W           R3, #0x41000000                                        ; +0x3c, 0x4e2634\nSTR             R3, [SP,#0x24+var_24]; float                           ; +0x40, 0x4e2638\nVCVT.F32.S32    S15, S15                                               ; +0x42, 0x4e263a\nVDIV.F32        S15, S15, S13                                          ; +0x46, 0x4e263e\nVMUL.F32        S15, S14, S15                                          ; +0x4a, 0x4e2642\nVCMPE.F32       S14, S15                                               ; +0x4e, 0x4e2646\nVMRS            APSR_nzcv, FPSCR                                       ; +0x52, 0x4e264a\nITE LE                                                                 ; +0x56, 0x4e264e\nVMOVLE          R3, S14                                                ; +0x58, 0x4e2650\nVMOVGT          R3, S15; float                                         ; +0x5c, 0x4e2654\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x60, 0x4e2658\nMOV             R0, R6                                                 ; +0x64, 0x4e265c\nMOV             R1, R5                                                 ; +0x66, 0x4e265e\nBLX             R7                                                     ; +0x68, 0x4e2660\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x6a, 0x4e2662\nLDR             R3, [R4]                                               ; +0x6c, 0x4e2664\nCMP             R2, R3                                                 ; +0x6e, 0x4e2666\nBEQ             loc_4E266E                                             ; +0x70, 0x4e2668\nBLX             __stack_chk_fail                                       ; +0x72, 0x4e266a\nADD             SP, SP, #0x24 ; '$'                                    ; +0x76, 0x4e266e\nPOP             {R4-R7,PC}                                             ; +0x78, 0x4e2670", "xrefs": ["CustomSongWidget::startMonitorDownload @ 0x4e2684", "CustomSongWidget::init @ 0x4e4c6c", "CustomSongWidget::updateDownloadProgress @ 0x4e4fec"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}