{"type": "func", "start": 4054384, "end": 4054506, "name": "CustomSongWidget::updateProgressBar", "pseudocode": "// \n// CustomSongWidget::updateProgressBar from 0x3ddd70 to 0x3dddea (122 bytes)\n// \n// 3 xrefs:\n// > CustomSongWidget::startMonitorDownload @ 0x3dddfc\n// > CustomSongWidget::init @ 0x3df710\n// > CustomSongWidget::updateDownloadProgress @ 0x3dfa34\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  cocos2d::CCSprite *m_sliderBar; // r6\n  cocos2d::CCSprite *m_sliderGroove; // r3\n  float v4; // s14\n  void (__fastcall *setTextureRect)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // r7\n  float v6; // r3\n  cocos2d::CCRect v7; // [sp+Ch] [bp-18h] BYREF\n\n  m_sliderBar = a1->m_sliderBar;\n  m_sliderGroove = a1->m_sliderGroove;\n  v4 = m_sliderGroove->m_obRect.size.width - 4.0;\n  setTextureRect = m_sliderBar->setTextureRect;\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 = m_sliderGroove->m_obRect.size.width - 4.0;\n  cocos2d::CCRect::CCRect(&v7, 0.0, 0.0, v6, 8.0);\n  setTextureRect(m_sliderBar, &v7);\n}", "assembly": "; \n; CustomSongWidget::updateProgressBar from 0x3ddd70 to 0x3dddea (122 bytes)\n; \n; 3 xrefs:\n; > CustomSongWidget::startMonitorDownload @ 0x3dddfc\n; > CustomSongWidget::init @ 0x3df710\n; > CustomSongWidget::updateDownloadProgress @ 0x3dfa34\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x3ddd70\nVMOV.F32        S14, #4.0                                              ; +0x2, 0x3ddd72\nLDR             R4, =(__stack_chk_guard_ptr - 0x3DDD86)                ; +0x6, 0x3ddd76\nSUB             SP, SP, #0x24                                          ; +0x8, 0x3ddd78\nBIC.W           R1, R1, R1,ASR#31                                      ; +0xa, 0x3ddd7a\nVLDR            S13, =100.0                                            ; +0xe, 0x3ddd7e\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x12, 0x3ddd82\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x14, 0x3ddd84\nLDR.W           R6, [R0,#0x14C]                                        ; +0x16, 0x3ddd86\nADD             R5, SP, #0x24+var_18                                   ; +0x1a, 0x3ddd8a\nLDR             R3, [R4]                                               ; +0x1c, 0x3ddd8c\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x1e, 0x3ddd8e\nLDR.W           R3, [R0,#0x148]                                        ; +0x20, 0x3ddd90\nMOV             R0, R5; this                                           ; +0x24, 0x3ddd94\nVLDR            S15, [R3,#0x158]                                       ; +0x26, 0x3ddd96\nLDR             R3, [R6]                                               ; +0x2a, 0x3ddd9a\nVSUB.F32        S14, S15, S14                                          ; +0x2c, 0x3ddd9c\nLDR.W           R7, [R3,#0x230]                                        ; +0x30, 0x3ddda0\nVMOV            S15, R1                                                ; +0x34, 0x3ddda4\nMOVS            R1, #0; float                                          ; +0x38, 0x3ddda8\nMOV             R2, R1; float                                          ; +0x3a, 0x3dddaa\nMOV.W           R3, #0x41000000                                        ; +0x3c, 0x3dddac\nSTR             R3, [SP,#0x24+var_24]; float                           ; +0x40, 0x3dddb0\nVCVT.F32.S32    S15, S15                                               ; +0x42, 0x3dddb2\nVDIV.F32        S15, S15, S13                                          ; +0x46, 0x3dddb6\nVMUL.F32        S15, S14, S15                                          ; +0x4a, 0x3dddba\nVCMPE.F32       S14, S15                                               ; +0x4e, 0x3dddbe\nVMRS            APSR_nzcv, FPSCR                                       ; +0x52, 0x3dddc2\nITE LE                                                                 ; +0x56, 0x3dddc6\nVMOVLE          R3, S14                                                ; +0x58, 0x3dddc8\nVMOVGT          R3, S15; float                                         ; +0x5c, 0x3dddcc\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x60, 0x3dddd0\nMOV             R0, R6                                                 ; +0x64, 0x3dddd4\nMOV             R1, R5                                                 ; +0x66, 0x3dddd6\nBLX             R7                                                     ; +0x68, 0x3dddd8\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x6a, 0x3dddda\nLDR             R3, [R4]                                               ; +0x6c, 0x3ddddc\nCMP             R2, R3                                                 ; +0x6e, 0x3dddde\nBEQ             loc_3DDDE6                                             ; +0x70, 0x3ddde0\nBLX             __stack_chk_fail                                       ; +0x72, 0x3ddde2\nADD             SP, SP, #0x24 ; '$'                                    ; +0x76, 0x3ddde6\nPOP             {R4-R7,PC}                                             ; +0x78, 0x3ddde8", "xrefs": ["CustomSongWidget::startMonitorDownload @ 0x3dddfc", "CustomSongWidget::init @ 0x3df710", "CustomSongWidget::updateDownloadProgress @ 0x3dfa34"], "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"}