{"type": "func", "start": 7639716, "end": 7639928, "name": "CustomSongWidget::downloadSongFinished", "pseudocode": "// \n// CustomSongWidget::downloadSongFinished from 0x7492a4 to 0x749378 (212 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x74938c\n// > <???> @ 0x500e8\n// > <???> @ 0x1161918\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::downloadSongFinished(CustomSongWidget *a1, int a2)\n{\n  if ( a1->m_hasSFX )\n  {\n    CustomSongWidget::downloadAssetFinished(a1, a2, (GJAssetType)1);\n  }\n  else if ( CustomSongWidget::verifySongID(a1, a2) )\n  {\n    a1->m_errorLabel->setColor(a1->m_errorLabel, (const cocos2d::ccColor3B *)&unk_ECD700);\n    a1->m_errorLabel->setString(a1->m_errorLabel, \"Download complete.\");\n    if ( a1->m_isMusicLibrary )\n      cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 140.0, 0.35, 0.0);\n    else\n      cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 230.0, 0.4, 0.0);\n    CustomSongWidget::showError(a1, 1);\n  }\n}", "assembly": "; \n; CustomSongWidget::downloadSongFinished from 0x7492a4 to 0x749378 (212 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x74938c\n; > <???> @ 0x500e8\n; > <???> @ 0x1161918\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, 0x7492a4\nMOV             X29, SP                                                ; +0x4, 0x7492a8\nLDRB            W3, [X0,#0x209]                                        ; +0x8, 0x7492ac\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x7492b0\nCBNZ            W3, loc_749340                                         ; +0x10, 0x7492b4\nMOV             X19, X0                                                ; +0x14, 0x7492b8\nBL              _ZN16CustomSongWidget12verifySongIDEi; CustomSongWidget::verifySongID(int) ; +0x18, 0x7492bc\nUXTB            W0, W0                                                 ; +0x1c, 0x7492c0\nCBNZ            W0, loc_7492D4                                         ; +0x20, 0x7492c4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x24, 0x7492c8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x28, 0x7492cc\nRET                                                                    ; +0x2c, 0x7492d0\nLDR             X2, [X19,#0x178]                                       ; +0x30, 0x7492d4\nADRL            X1, off_ECD6F0                                         ; +0x34, 0x7492d8\nMOV             X0, X2                                                 ; +0x3c, 0x7492e0\nADD             X1, X1, #(unk_ECD700 - 0xECD6F0)                       ; +0x40, 0x7492e4\nLDR             X2, [X2]                                               ; +0x44, 0x7492e8\nLDR             X2, [X2,#0x420]                                        ; +0x48, 0x7492ec\nBLR             X2                                                     ; +0x4c, 0x7492f0\nLDR             X2, [X19,#0x178]                                       ; +0x50, 0x7492f4\nADRL            X1, aDownloadComple; \"Download complete.\"              ; +0x54, 0x7492f8\nMOV             X0, X2                                                 ; +0x5c, 0x749300\nLDR             X2, [X2]                                               ; +0x60, 0x749304\nLDR             X2, [X2,#0x390]                                        ; +0x64, 0x749308\nBLR             X2                                                     ; +0x68, 0x74930c\nLDRB            W0, [X19,#0x1ED]                                       ; +0x6c, 0x749310\nCBNZ            W0, loc_749350                                         ; +0x70, 0x749314\nLDR             S0, flt_749380; float                                  ; +0x74, 0x749318\nLDR             X0, [X19,#0x178]; this                                 ; +0x78, 0x74931c\nLDR             S1, flt_749384; float                                  ; +0x7c, 0x749320\nFMOV            S2, WZR; float                                         ; +0x80, 0x749324\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x84, 0x749328\nMOV             X0, X19; this                                          ; +0x88, 0x74932c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x8c, 0x749330\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x90, 0x749334\nMOV             W1, #1; bool                                           ; +0x94, 0x749338\nB               _ZN16CustomSongWidget9showErrorEb; CustomSongWidget::showError(bool) ; +0x98, 0x74933c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x9c, 0x749340\nMOV             W2, #1                                                 ; +0xa0, 0x749344\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xa4, 0x749348\nB               _ZN16CustomSongWidget21downloadAssetFinishedEi11GJAssetType; CustomSongWidget::downloadAssetFinished(int,GJAssetType) ; +0xa8, 0x74934c\nLDR             S0, flt_749378; float                                  ; +0xac, 0x749350\nLDR             X0, [X19,#0x178]; this                                 ; +0xb0, 0x749354\nLDR             S1, flt_74937C; float                                  ; +0xb4, 0x749358\nFMOV            S2, WZR; float                                         ; +0xb8, 0x74935c\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0xbc, 0x749360\nMOV             X0, X19; this                                          ; +0xc0, 0x749364\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xc4, 0x749368\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xc8, 0x74936c\nMOV             W1, #1; bool                                           ; +0xcc, 0x749370\nB               _ZN16CustomSongWidget9showErrorEb; CustomSongWidget::showError(bool) ; +0xd0, 0x749374", "xrefs": ["`non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x74938c", "<???> @ 0x500e8", "<???> @ 0x1161918"], "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"}