{"type": "func", "start": 4298053100, "end": 4298053204, "name": "CustomSFXWidget::updateDownloadProgress", "pseudocode": "// \n// CustomSFXWidget::updateDownloadProgress from 0x1002f15ec to 0x1002f1654 (104 bytes)\n// \n// 3 xrefs:\n// > CustomSFXWidget::startMonitorDownload @ 0x1002f131c\n// > CustomSFXWidget::updateDownloadProgress @ 0x1002f161c\n// > CustomSFXWidget::downloadFailed @ 0x1002f1668\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 __fastcall CustomSFXWidget::updateDownloadProgress(CustomSFXWidget *a1, float a2)\n{\n  MusicDownloadManager *v3; // x0\n  int SFXDownloadProgress; // w0\n  bool v5; // zf\n  cocos2d::SEL_SCHEDULE v6; // 0:x1.16\n\n  v3 = MusicDownloadManager::sharedState();\n  SFXDownloadProgress = MusicDownloadManager::getSFXDownloadProgress(v3, a1->m_sfxObject->m_sfxID);\n  if ( a1->m_sfxObject )\n    v5 = SFXDownloadProgress == -1;\n  else\n    v5 = 1;\n  if ( v5 )\n  {\n    v6.ptr = (void (__cdecl *)(float))CustomSFXWidget::updateDownloadProgress;\n    v6.adj = 0;\n    cocos2d::CCNode::unschedule(a1, v6);\n    CustomSFXWidget::updateSFXInfo(a1);\n  }\n  else\n  {\n    CustomSFXWidget::updateProgressBar(a1, SFXDownloadProgress);\n  }\n}", "assembly": "; \n; CustomSFXWidget::updateDownloadProgress from 0x1002f15ec to 0x1002f1654 (104 bytes)\n; \n; 3 xrefs:\n; > CustomSFXWidget::startMonitorDownload @ 0x1002f131c\n; > CustomSFXWidget::updateDownloadProgress @ 0x1002f161c\n; > CustomSFXWidget::downloadFailed @ 0x1002f1668\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002f15ec\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002f15f0\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002f15f4\nMOV             X19, X0                                                ; +0xc, 0x1002f15f8\nBL              MusicDownloadManager__sharedState                      ; +0x10, 0x1002f15fc\nLDR             X8, [X19,#0x150]                                       ; +0x14, 0x1002f1600\nLDR             W1, [X8,#0x38]                                         ; +0x18, 0x1002f1604\nBL              MusicDownloadManager__getSFXDownloadProgress           ; +0x1c, 0x1002f1608\nLDR             X8, [X19,#0x150]                                       ; +0x20, 0x1002f160c\nCMP             X8, #0                                                 ; +0x24, 0x1002f1610\nCCMN            W0, #1, #4, NE                                         ; +0x28, 0x1002f1614\nB.NE            loc_1002F1640                                          ; +0x2c, 0x1002f1618\nADRL            X1, CustomSFXWidget__updateDownloadProgress            ; +0x30, 0x1002f161c\nMOV             X0, X19                                                ; +0x38, 0x1002f1624\nMOV             X2, #0                                                 ; +0x3c, 0x1002f1628\nBL              cocos2d__CCNode__unschedule                            ; +0x40, 0x1002f162c\nMOV             X0, X19                                                ; +0x44, 0x1002f1630\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x48, 0x1002f1634\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x4c, 0x1002f1638\nB               CustomSFXWidget__updateSFXInfo                         ; +0x50, 0x1002f163c\nMOV             X1, X0                                                 ; +0x54, 0x1002f1640\nMOV             X0, X19                                                ; +0x58, 0x1002f1644\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x1002f1648\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x1002f164c\nB               CustomSFXWidget__updateProgressBar                     ; +0x64, 0x1002f1650", "xrefs": ["CustomSFXWidget::startMonitorDownload @ 0x1002f131c", "CustomSFXWidget::updateDownloadProgress @ 0x1002f161c", "CustomSFXWidget::downloadFailed @ 0x1002f1668"], "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"}