{"type": "func", "start": 4296007732, "end": 4296007932, "name": "CustomSongWidget::updateError", "pseudocode": "// \n// CustomSongWidget::updateError from 0x1000fe034 to 0x1000fe0fc (200 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::loadSongInfoFailed @ 0x1000fdfe8\n// > CustomSongWidget::downloadSongFailed @ 0x1000fe370\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::updateError(CustomSongWidget *a1, GJSongError a2)\n{\n  cocos2d::CCLabelBMFont *m_errorLabel; // x0\n  const char *v5; // x1\n  float v6; // s0\n  float v7; // s1\n  __int16 v8; // [xsp+Ch] [xbp-14h] BYREF\n  char v9; // [xsp+Eh] [xbp-12h]\n\n  m_errorLabel = a1->m_errorLabel;\n  v9 = 25;\n  v8 = 13055;\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))m_errorLabel->setColor)(m_errorLabel, &v8);\n  if ( (unsigned int)(a2 - 1) > 2 )\n    v5 = \"Download failed. Please try later.\";\n  else\n    v5 = off_100787328[a2 - 1];\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_errorLabel->setString)(a1->m_errorLabel, v5);\n  if ( a1->m_isMusicLibrary )\n  {\n    v6 = 140.0;\n    v7 = 0.35;\n  }\n  else\n  {\n    v6 = 230.0;\n    v7 = 0.4;\n  }\n  cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, v6, v7, 0.0);\n  CustomSongWidget::showError(a1, 0);\n}", "assembly": "; \n; CustomSongWidget::updateError from 0x1000fe034 to 0x1000fe0fc (200 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::loadSongInfoFailed @ 0x1000fdfe8\n; > CustomSongWidget::downloadSongFailed @ 0x1000fe370\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1000fe034\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000fe038\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000fe03c\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000fe040\nMOV             X20, X1                                                ; +0x10, 0x1000fe044\nMOV             X19, X0                                                ; +0x14, 0x1000fe048\nLDR             X0, [X0,#0x178]                                        ; +0x18, 0x1000fe04c\nMOV             W8, #0x19                                              ; +0x1c, 0x1000fe050\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0x20, 0x1000fe054\nMOV             W8, #0x32FF                                            ; +0x24, 0x1000fe058\nSTRH            W8, [SP,#0x20+var_14]                                  ; +0x28, 0x1000fe05c\nLDR             X8, [X0]                                               ; +0x2c, 0x1000fe060\nLDR             X8, [X8,#0x420]                                        ; +0x30, 0x1000fe064\nADD             X1, SP, #0x20+var_14                                   ; +0x34, 0x1000fe068\nBLR             X8                                                     ; +0x38, 0x1000fe06c\nLDR             X0, [X19,#0x178]                                       ; +0x3c, 0x1000fe070\nLDR             X8, [X0]                                               ; +0x40, 0x1000fe074\nLDR             X8, [X8,#0x390]                                        ; +0x44, 0x1000fe078\nSUB             W9, W20, #1                                            ; +0x48, 0x1000fe07c\nCMP             W9, #2                                                 ; +0x4c, 0x1000fe080\nB.HI            loc_1000FE098                                          ; +0x50, 0x1000fe084\nADRL            X10, off_100787328; \"Failed to fetch song info.\"       ; +0x54, 0x1000fe088\nLDR             X1, [X10,W9,UXTW#3]                                    ; +0x5c, 0x1000fe090\nB               loc_1000FE0A0                                          ; +0x60, 0x1000fe094\nADRL            X1, aDownloadFailed; \"Download failed. Please try later.\" ; +0x64, 0x1000fe098\nBLR             X8                                                     ; +0x6c, 0x1000fe0a0\nLDRB            W8, [X19,#0x1ED]                                       ; +0x70, 0x1000fe0a4\nLDR             X0, [X19,#0x178]                                       ; +0x74, 0x1000fe0a8\nCMP             W8, #1                                                 ; +0x78, 0x1000fe0ac\nB.NE            loc_1000FE0C8                                          ; +0x7c, 0x1000fe0b0\nMOV             W8, #0x430C0000                                        ; +0x80, 0x1000fe0b4\nFMOV            S0, W8                                                 ; +0x84, 0x1000fe0b8\nADRP            X8, #dword_1006353A4@PAGE                              ; +0x88, 0x1000fe0bc\nLDR             S1, [X8,#dword_1006353A4@PAGEOFF]                      ; +0x8c, 0x1000fe0c0\nB               loc_1000FE0D8                                          ; +0x90, 0x1000fe0c4\nMOV             W8, #0x43660000                                        ; +0x94, 0x1000fe0c8\nFMOV            S0, W8                                                 ; +0x98, 0x1000fe0cc\nADRP            X8, #dword_10063537C@PAGE                              ; +0x9c, 0x1000fe0d0\nLDR             S1, [X8,#dword_10063537C@PAGEOFF]                      ; +0xa0, 0x1000fe0d4\nFMOV            S2, WZR                                                ; +0xa4, 0x1000fe0d8\nBL              cocos2d__CCLabelBMFont__limitLabelWidth                ; +0xa8, 0x1000fe0dc\nMOV             X0, X19                                                ; +0xac, 0x1000fe0e0\nMOV             W1, #0                                                 ; +0xb0, 0x1000fe0e4\nBL              CustomSongWidget__showError                            ; +0xb4, 0x1000fe0e8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xb8, 0x1000fe0ec\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xbc, 0x1000fe0f0\nADD             SP, SP, #0x30 ; '0'                                    ; +0xc0, 0x1000fe0f4\nRET                                                                    ; +0xc4, 0x1000fe0f8", "xrefs": ["CustomSongWidget::loadSongInfoFailed @ 0x1000fdfe8", "CustomSongWidget::downloadSongFailed @ 0x1000fe370"], "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"}