{"type": "func", "start": 6971488, "end": 6971610, "name": "CustomSFXWidget::updateProgressBar", "pseudocode": "// \n// CustomSFXWidget::updateProgressBar from 0x6a6060 to 0x6a60da (122 bytes)\n// \n// 3 xrefs:\n// > CustomSFXWidget::startMonitorDownload @ 0x6a6258\n// > CustomSFXWidget::updateDownloadProgress @ 0x6a6ea2\n// > CustomSFXWidget::init @ 0x6a7c52\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:56:30 +0000\n// \n\nint __fastcall CustomSFXWidget::updateProgressBar(CustomSFXWidget *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; CustomSFXWidget::updateProgressBar from 0x6a6060 to 0x6a60da (122 bytes)\n; \n; 3 xrefs:\n; > CustomSFXWidget::startMonitorDownload @ 0x6a6258\n; > CustomSFXWidget::updateDownloadProgress @ 0x6a6ea2\n; > CustomSFXWidget::init @ 0x6a7c52\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:56:30 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x6a6060\nVMOV.F32        S14, #4.0                                              ; +0x2, 0x6a6062\nLDR             R4, =(__stack_chk_guard_ptr - 0x6A6076)                ; +0x6, 0x6a6066\nSUB             SP, SP, #0x24                                          ; +0x8, 0x6a6068\nBIC.W           R1, R1, R1,ASR#31                                      ; +0xa, 0x6a606a\nVLDR            S13, =100.0                                            ; +0xe, 0x6a606e\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x12, 0x6a6072\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x14, 0x6a6074\nLDR.W           R6, [R0,#0x150]                                        ; +0x16, 0x6a6076\nADD             R5, SP, #0x24+var_18                                   ; +0x1a, 0x6a607a\nLDR             R3, [R4]                                               ; +0x1c, 0x6a607c\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x1e, 0x6a607e\nLDR.W           R3, [R0,#0x14C]                                        ; +0x20, 0x6a6080\nMOV             R0, R5; this                                           ; +0x24, 0x6a6084\nVLDR            S15, [R3,#0x158]                                       ; +0x26, 0x6a6086\nLDR             R3, [R6]                                               ; +0x2a, 0x6a608a\nVSUB.F32        S14, S15, S14                                          ; +0x2c, 0x6a608c\nLDR.W           R7, [R3,#0x238]                                        ; +0x30, 0x6a6090\nVMOV            S15, R1                                                ; +0x34, 0x6a6094\nMOVS            R1, #0; float                                          ; +0x38, 0x6a6098\nMOV             R2, R1; float                                          ; +0x3a, 0x6a609a\nMOV.W           R3, #0x41000000                                        ; +0x3c, 0x6a609c\nSTR             R3, [SP,#0x24+var_24]; float                           ; +0x40, 0x6a60a0\nVCVT.F32.S32    S15, S15                                               ; +0x42, 0x6a60a2\nVDIV.F32        S15, S15, S13                                          ; +0x46, 0x6a60a6\nVMUL.F32        S15, S14, S15                                          ; +0x4a, 0x6a60aa\nVCMPE.F32       S14, S15                                               ; +0x4e, 0x6a60ae\nVMRS            APSR_nzcv, FPSCR                                       ; +0x52, 0x6a60b2\nITE LE                                                                 ; +0x56, 0x6a60b6\nVMOVLE          R3, S14                                                ; +0x58, 0x6a60b8\nVMOVGT          R3, S15; float                                         ; +0x5c, 0x6a60bc\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x60, 0x6a60c0\nMOV             R0, R6                                                 ; +0x64, 0x6a60c4\nMOV             R1, R5                                                 ; +0x66, 0x6a60c6\nBLX             R7                                                     ; +0x68, 0x6a60c8\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x6a, 0x6a60ca\nLDR             R3, [R4]                                               ; +0x6c, 0x6a60cc\nCMP             R2, R3                                                 ; +0x6e, 0x6a60ce\nBEQ             loc_6A60D6                                             ; +0x70, 0x6a60d0\nBLX             __stack_chk_fail                                       ; +0x72, 0x6a60d2\nADD             SP, SP, #0x24 ; '$'                                    ; +0x76, 0x6a60d6\nPOP             {R4-R7,PC}                                             ; +0x78, 0x6a60d8", "xrefs": ["CustomSFXWidget::startMonitorDownload @ 0x6a6258", "CustomSFXWidget::updateDownloadProgress @ 0x6a6ea2", "CustomSFXWidget::init @ 0x6a7c52"], "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"}