{"type": "func", "start": 7629784, "end": 7629888, "name": "CustomSongWidget::updateDownloadProgress", "pseudocode": "// \n// CustomSongWidget::updateDownloadProgress from 0x746bd8 to 0x746c40 (104 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x59718\n// > CustomSongWidget::startMonitorDownload @ 0x7440ec\n// > CustomSongWidget::startMonitorDownload @ 0x744100\n// > CustomSongWidget::downloadFailed @ 0x746b54\n// > CustomSongWidget::updateDownloadProgress @ 0x746c28\n// > <???> @ 0x122ade8\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::updateDownloadProgress(CustomSongWidget *a1, float a2)\n{\n  MusicDownloadManager *v3; // x0\n  int DownloadProgress; // w1\n  cocos2d::SEL_SCHEDULE v5; // 0:x1.16\n\n  v3 = MusicDownloadManager::sharedState();\n  DownloadProgress = MusicDownloadManager::getDownloadProgress(v3, a1->m_songInfoObject->m_songID);\n  if ( DownloadProgress == -1 || !a1->m_songInfoObject )\n  {\n    v5.adj = 0;\n    v5.ptr = (void (__cdecl *)(float))CustomSongWidget::updateDownloadProgress;\n    cocos2d::CCNode::unschedule(a1, v5);\n    CustomSongWidget::updateSongInfo(a1);\n  }\n  else\n  {\n    CustomSongWidget::updateProgressBar(a1, DownloadProgress);\n  }\n}", "assembly": "; \n; CustomSongWidget::updateDownloadProgress from 0x746bd8 to 0x746c40 (104 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x59718\n; > CustomSongWidget::startMonitorDownload @ 0x7440ec\n; > CustomSongWidget::startMonitorDownload @ 0x744100\n; > CustomSongWidget::downloadFailed @ 0x746b54\n; > CustomSongWidget::updateDownloadProgress @ 0x746c28\n; > <???> @ 0x122ade8\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, 0x746bd8\nMOV             X29, SP                                                ; +0x4, 0x746bdc\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x746be0\nMOV             X19, X0                                                ; +0xc, 0x746be4\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x10, 0x746be8\nLDR             X1, [X19,#0x150]                                       ; +0x14, 0x746bec\nLDR             W1, [X1,#0x13C]; int                                   ; +0x18, 0x746bf0\nBL              _ZN20MusicDownloadManager19getDownloadProgressEi; MusicDownloadManager::getDownloadProgress(int) ; +0x1c, 0x746bf4\nCMN             W0, #1                                                 ; +0x20, 0x746bf8\nMOV             W1, W0; int                                            ; +0x24, 0x746bfc\nB.EQ            loc_746C1C                                             ; +0x28, 0x746c00\nLDR             X0, [X19,#0x150]                                       ; +0x2c, 0x746c04\nCBZ             X0, loc_746C1C                                         ; +0x30, 0x746c08\nMOV             X0, X19; this                                          ; +0x34, 0x746c0c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0x746c10\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0x746c14\nB               _ZN16CustomSongWidget17updateProgressBarEi; CustomSongWidget::updateProgressBar(int) ; +0x40, 0x746c18\nADRP            X1, #_ZN16CustomSongWidget22updateDownloadProgressEf_ptr@PAGE ; +0x44, 0x746c1c\nMOV             X0, X19                                                ; +0x48, 0x746c20\nMOV             X2, #0                                                 ; +0x4c, 0x746c24\nLDR             X1, [X1,#_ZN16CustomSongWidget22updateDownloadProgressEf_ptr@PAGEOFF]; CustomSongWidget::updateDownloadProgress(float) ... ; +0x50, 0x746c28\nBL              _ZN7cocos2d6CCNode10unscheduleEMNS_8CCObjectEFvfE; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0x54, 0x746c2c\nMOV             X0, X19; this                                          ; +0x58, 0x746c30\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x5c, 0x746c34\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x60, 0x746c38\nB               _ZN16CustomSongWidget14updateSongInfoEv; CustomSongWidget::updateSongInfo(void) ; +0x64, 0x746c3c", "xrefs": ["<???> @ 0x59718", "CustomSongWidget::startMonitorDownload @ 0x7440ec", "CustomSongWidget::startMonitorDownload @ 0x744100", "CustomSongWidget::downloadFailed @ 0x746b54", "CustomSongWidget::updateDownloadProgress @ 0x746c28", "<???> @ 0x122ade8"], "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"}