{"type": "func", "start": 4296004672, "end": 4296004776, "name": "CustomSongWidget::updateDownloadProgress", "pseudocode": "// \n// CustomSongWidget::updateDownloadProgress from 0x1000fd440 to 0x1000fd4a8 (104 bytes)\n// \n// 3 xrefs:\n// > CustomSongWidget::startMonitorDownload @ 0x1000fcb74\n// > CustomSongWidget::updateDownloadProgress @ 0x1000fd470\n// > CustomSongWidget::downloadFailed @ 0x1000fd4cc\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 CustomSongWidget::updateDownloadProgress(CustomSongWidget *a1, float a2)\n{\n  MusicDownloadManager *v3; // x0\n  int DownloadProgress; // w0\n  bool v5; // zf\n  cocos2d::SEL_SCHEDULE v6; // 0:x1.16\n\n  v3 = MusicDownloadManager::sharedState();\n  DownloadProgress = MusicDownloadManager::getDownloadProgress(v3, a1->m_songInfoObject->m_songID);\n  if ( a1->m_songInfoObject )\n    v5 = DownloadProgress == -1;\n  else\n    v5 = 1;\n  if ( v5 )\n  {\n    v6.ptr = (void (__cdecl *)(float))CustomSongWidget::updateDownloadProgress;\n    v6.adj = 0;\n    cocos2d::CCNode::unschedule(a1, v6);\n    CustomSongWidget::updateSongInfo(a1);\n  }\n  else\n  {\n    CustomSongWidget::updateProgressBar(a1, DownloadProgress);\n  }\n}", "assembly": "; \n; CustomSongWidget::updateDownloadProgress from 0x1000fd440 to 0x1000fd4a8 (104 bytes)\n; \n; 3 xrefs:\n; > CustomSongWidget::startMonitorDownload @ 0x1000fcb74\n; > CustomSongWidget::updateDownloadProgress @ 0x1000fd470\n; > CustomSongWidget::downloadFailed @ 0x1000fd4cc\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, 0x1000fd440\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000fd444\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000fd448\nMOV             X19, X0                                                ; +0xc, 0x1000fd44c\nBL              MusicDownloadManager__sharedState                      ; +0x10, 0x1000fd450\nLDR             X8, [X19,#0x150]                                       ; +0x14, 0x1000fd454\nLDR             W1, [X8,#0x13C]                                        ; +0x18, 0x1000fd458\nBL              MusicDownloadManager__getDownloadProgress              ; +0x1c, 0x1000fd45c\nLDR             X8, [X19,#0x150]                                       ; +0x20, 0x1000fd460\nCMP             X8, #0                                                 ; +0x24, 0x1000fd464\nCCMN            W0, #1, #4, NE                                         ; +0x28, 0x1000fd468\nB.NE            loc_1000FD494                                          ; +0x2c, 0x1000fd46c\nADRL            X1, CustomSongWidget__updateDownloadProgress           ; +0x30, 0x1000fd470\nMOV             X0, X19                                                ; +0x38, 0x1000fd478\nMOV             X2, #0                                                 ; +0x3c, 0x1000fd47c\nBL              cocos2d__CCNode__unschedule                            ; +0x40, 0x1000fd480\nMOV             X0, X19                                                ; +0x44, 0x1000fd484\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x48, 0x1000fd488\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x4c, 0x1000fd48c\nB               CustomSongWidget__updateSongInfo                       ; +0x50, 0x1000fd490\nMOV             X1, X0                                                 ; +0x54, 0x1000fd494\nMOV             X0, X19                                                ; +0x58, 0x1000fd498\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x1000fd49c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x1000fd4a0\nB               CustomSongWidget__updateProgressBar                    ; +0x64, 0x1000fd4a4", "xrefs": ["CustomSongWidget::startMonitorDownload @ 0x1000fcb74", "CustomSongWidget::updateDownloadProgress @ 0x1000fd470", "CustomSongWidget::downloadFailed @ 0x1000fd4cc"], "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"}