{"type": "func", "start": 10696788, "end": 10696892, "name": "CustomSFXWidget::updateDownloadProgress", "pseudocode": "// \n// CustomSFXWidget::updateDownloadProgress from 0xa33854 to 0xa338bc (104 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x72450\n// > CustomSFXWidget::startMonitorDownload @ 0xa31c60\n// > CustomSFXWidget::startMonitorDownload @ 0xa31c74\n// > CustomSFXWidget::downloadFailed @ 0xa33838\n// > CustomSFXWidget::updateDownloadProgress @ 0xa338a4\n// > <???> @ 0x122bc68\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 CustomSFXWidget::updateDownloadProgress(CustomSFXWidget *a1, float a2)\n{\n  MusicDownloadManager *v3; // x0\n  int SFXDownloadProgress; // w1\n  cocos2d::SEL_SCHEDULE v5; // 0:x1.16\n\n  v3 = MusicDownloadManager::sharedState();\n  SFXDownloadProgress = MusicDownloadManager::getSFXDownloadProgress(v3, a1->m_sfxObject->m_sfxID);\n  if ( SFXDownloadProgress == -1 || !a1->m_sfxObject )\n  {\n    v5.adj = 0;\n    v5.ptr = (void (__cdecl *)(float))CustomSFXWidget::updateDownloadProgress;\n    cocos2d::CCNode::unschedule(a1, v5);\n    CustomSFXWidget::updateSFXInfo(a1);\n  }\n  else\n  {\n    CustomSFXWidget::updateProgressBar(a1, SFXDownloadProgress);\n  }\n}", "assembly": "; \n; CustomSFXWidget::updateDownloadProgress from 0xa33854 to 0xa338bc (104 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x72450\n; > CustomSFXWidget::startMonitorDownload @ 0xa31c60\n; > CustomSFXWidget::startMonitorDownload @ 0xa31c74\n; > CustomSFXWidget::downloadFailed @ 0xa33838\n; > CustomSFXWidget::updateDownloadProgress @ 0xa338a4\n; > <???> @ 0x122bc68\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             X29, X30, [SP,#var_20]!                                ; +0x0, 0xa33854\nMOV             X29, SP                                                ; +0x4, 0xa33858\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xa3385c\nMOV             X19, X0                                                ; +0xc, 0xa33860\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x10, 0xa33864\nLDR             X1, [X19,#0x150]                                       ; +0x14, 0xa33868\nLDR             W1, [X1,#0x38]; int                                    ; +0x18, 0xa3386c\nBL              _ZN20MusicDownloadManager22getSFXDownloadProgressEi; MusicDownloadManager::getSFXDownloadProgress(int) ; +0x1c, 0xa33870\nCMN             W0, #1                                                 ; +0x20, 0xa33874\nMOV             W1, W0; int                                            ; +0x24, 0xa33878\nB.EQ            loc_A33898                                             ; +0x28, 0xa3387c\nLDR             X0, [X19,#0x150]                                       ; +0x2c, 0xa33880\nCBZ             X0, loc_A33898                                         ; +0x30, 0xa33884\nMOV             X0, X19; this                                          ; +0x34, 0xa33888\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0xa3388c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0xa33890\nB               _ZN15CustomSFXWidget17updateProgressBarEi; CustomSFXWidget::updateProgressBar(int) ; +0x40, 0xa33894\nADRP            X1, #_ZN15CustomSFXWidget22updateDownloadProgressEf_ptr@PAGE ; +0x44, 0xa33898\nMOV             X0, X19                                                ; +0x48, 0xa3389c\nMOV             X2, #0                                                 ; +0x4c, 0xa338a0\nLDR             X1, [X1,#_ZN15CustomSFXWidget22updateDownloadProgressEf_ptr@PAGEOFF]; CustomSFXWidget::updateDownloadProgress(float) ... ; +0x50, 0xa338a4\nBL              _ZN7cocos2d6CCNode10unscheduleEMNS_8CCObjectEFvfE; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0x54, 0xa338a8\nMOV             X0, X19; this                                          ; +0x58, 0xa338ac\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x5c, 0xa338b0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x60, 0xa338b4\nB               _ZN15CustomSFXWidget13updateSFXInfoEv; CustomSFXWidget::updateSFXInfo(void) ; +0x64, 0xa338b8", "xrefs": ["<???> @ 0x72450", "CustomSFXWidget::startMonitorDownload @ 0xa31c60", "CustomSFXWidget::startMonitorDownload @ 0xa31c74", "CustomSFXWidget::downloadFailed @ 0xa33838", "CustomSFXWidget::updateDownloadProgress @ 0xa338a4", "<???> @ 0x122bc68"], "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"}