{"type": "func", "start": 4296007992, "end": 4296008196, "name": "CustomSongWidget::downloadSongFinished", "pseudocode": "// \n// CustomSongWidget::downloadSongFinished from 0x1000fe138 to 0x1000fe204 (204 bytes)\n// \n// 2 xrefs:\n// > sub_1000FE314 @ 0x1000fe318\n// > <???> @ 0x100787218\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::downloadSongFinished(CustomSongWidget *a1, int a2)\n{\n  int m_customSongID; // w8\n  float v5; // s0\n  float v6; // s1\n\n  if ( a1->m_hasSFX )\n  {\n    CustomSongWidget::downloadAssetFinished(a1, a2, (GJAssetType)1);\n  }\n  else\n  {\n    m_customSongID = a1->m_customSongID;\n    if ( m_customSongID == a2 && m_customSongID != 0 )\n    {\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_errorLabel->setColor)(\n        a1->m_errorLabel,\n        &unk_100636BC9);\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_errorLabel->setString)(\n        a1->m_errorLabel,\n        \"Download complete.\");\n      if ( a1->m_isMusicLibrary )\n      {\n        v5 = 140.0;\n        v6 = 0.35;\n      }\n      else\n      {\n        v5 = 230.0;\n        v6 = 0.4;\n      }\n      cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, v5, v6, 0.0);\n      CustomSongWidget::showError(a1, 1);\n    }\n  }\n}", "assembly": "; \n; CustomSongWidget::downloadSongFinished from 0x1000fe138 to 0x1000fe204 (204 bytes)\n; \n; 2 xrefs:\n; > sub_1000FE314 @ 0x1000fe318\n; > <???> @ 0x100787218\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, 0x1000fe138\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000fe13c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000fe140\nMOV             X19, X0                                                ; +0xc, 0x1000fe144\nLDRB            W8, [X0,#0x209]                                        ; +0x10, 0x1000fe148\nCMP             W8, #1                                                 ; +0x14, 0x1000fe14c\nB.NE            loc_1000FE168                                          ; +0x18, 0x1000fe150\nMOV             X0, X19                                                ; +0x1c, 0x1000fe154\nMOV             W2, #1                                                 ; +0x20, 0x1000fe158\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x24, 0x1000fe15c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x28, 0x1000fe160\nB               CustomSongWidget__downloadAssetFinished                ; +0x2c, 0x1000fe164\nLDR             W8, [X19,#0x1F0]                                       ; +0x30, 0x1000fe168\nCMP             W8, W1                                                 ; +0x34, 0x1000fe16c\nCCMP            W8, #0, #4, EQ                                         ; +0x38, 0x1000fe170\nB.NE            loc_1000FE184                                          ; +0x3c, 0x1000fe174\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x40, 0x1000fe178\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x44, 0x1000fe17c\nRET                                                                    ; +0x48, 0x1000fe180\nLDR             X0, [X19,#0x178]                                       ; +0x4c, 0x1000fe184\nLDR             X8, [X0]                                               ; +0x50, 0x1000fe188\nLDR             X8, [X8,#0x420]                                        ; +0x54, 0x1000fe18c\nADRL            X1, unk_100636BC9                                      ; +0x58, 0x1000fe190\nBLR             X8                                                     ; +0x60, 0x1000fe198\nLDR             X0, [X19,#0x178]                                       ; +0x64, 0x1000fe19c\nLDR             X8, [X0]                                               ; +0x68, 0x1000fe1a0\nLDR             X8, [X8,#0x390]                                        ; +0x6c, 0x1000fe1a4\nADRL            X1, aDownloadComple; \"Download complete.\"              ; +0x70, 0x1000fe1a8\nBLR             X8                                                     ; +0x78, 0x1000fe1b0\nLDRB            W8, [X19,#0x1ED]                                       ; +0x7c, 0x1000fe1b4\nLDR             X0, [X19,#0x178]                                       ; +0x80, 0x1000fe1b8\nCMP             W8, #1                                                 ; +0x84, 0x1000fe1bc\nB.NE            loc_1000FE1D8                                          ; +0x88, 0x1000fe1c0\nMOV             W8, #0x430C0000                                        ; +0x8c, 0x1000fe1c4\nFMOV            S0, W8                                                 ; +0x90, 0x1000fe1c8\nADRP            X8, #dword_1006353A4@PAGE                              ; +0x94, 0x1000fe1cc\nLDR             S1, [X8,#dword_1006353A4@PAGEOFF]                      ; +0x98, 0x1000fe1d0\nB               loc_1000FE1E8                                          ; +0x9c, 0x1000fe1d4\nMOV             W8, #0x43660000                                        ; +0xa0, 0x1000fe1d8\nFMOV            S0, W8                                                 ; +0xa4, 0x1000fe1dc\nADRP            X8, #dword_10063537C@PAGE                              ; +0xa8, 0x1000fe1e0\nLDR             S1, [X8,#dword_10063537C@PAGEOFF]                      ; +0xac, 0x1000fe1e4\nFMOV            S2, WZR                                                ; +0xb0, 0x1000fe1e8\nBL              cocos2d__CCLabelBMFont__limitLabelWidth                ; +0xb4, 0x1000fe1ec\nMOV             X0, X19                                                ; +0xb8, 0x1000fe1f0\nMOV             W1, #1                                                 ; +0xbc, 0x1000fe1f4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc0, 0x1000fe1f8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xc4, 0x1000fe1fc\nB               CustomSongWidget__showError                            ; +0xc8, 0x1000fe200", "xrefs": ["sub_1000FE314 @ 0x1000fe318", "<???> @ 0x100787218"], "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"}