{"type": "func", "start": 4298053432, "end": 4298053608, "name": "CustomSFXWidget::updateError", "pseudocode": "// \n// CustomSFXWidget::updateError from 0x1002f1738 to 0x1002f17e8 (176 bytes)\n// \n// 1 xrefs:\n// > CustomSFXWidget::downloadSFXFailed @ 0x1002f1724\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 CustomSFXWidget::updateError(CustomSFXWidget *a1, GJSongError a2)\n{\n  cocos2d::CCLabelBMFont *m_errorLabel; // x0\n  const char *v5; // x1\n  __int16 v6; // [xsp+Ch] [xbp-14h] BYREF\n  char v7; // [xsp+Eh] [xbp-12h]\n\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_errorLabel->setVisible)(a1->m_errorLabel, 1);\n  m_errorLabel = a1->m_errorLabel;\n  v7 = 25;\n  v6 = 13055;\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))m_errorLabel->setColor)(m_errorLabel, &v6);\n  if ( (unsigned int)(a2 - 1) > 2 )\n    v5 = \"Download failed. Please try again later.\";\n  else\n    v5 = off_1007E7AC0[a2 - 1];\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_errorLabel->setString)(a1->m_errorLabel, v5);\n  cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 230.0, 0.4, 0.0);\n}", "assembly": "; \n; CustomSFXWidget::updateError from 0x1002f1738 to 0x1002f17e8 (176 bytes)\n; \n; 1 xrefs:\n; > CustomSFXWidget::downloadSFXFailed @ 0x1002f1724\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, 0x1002f1738\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002f173c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002f1740\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002f1744\nMOV             X20, X1                                                ; +0x10, 0x1002f1748\nMOV             X19, X0                                                ; +0x14, 0x1002f174c\nLDR             X0, [X0,#0x170]                                        ; +0x18, 0x1002f1750\nLDR             X8, [X0]                                               ; +0x1c, 0x1002f1754\nLDR             X8, [X8,#0x148]                                        ; +0x20, 0x1002f1758\nMOV             W1, #1                                                 ; +0x24, 0x1002f175c\nBLR             X8                                                     ; +0x28, 0x1002f1760\nLDR             X0, [X19,#0x170]                                       ; +0x2c, 0x1002f1764\nMOV             W8, #0x19                                              ; +0x30, 0x1002f1768\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0x34, 0x1002f176c\nMOV             W8, #0x32FF                                            ; +0x38, 0x1002f1770\nSTRH            W8, [SP,#0x20+var_14]                                  ; +0x3c, 0x1002f1774\nLDR             X8, [X0]                                               ; +0x40, 0x1002f1778\nLDR             X8, [X8,#0x420]                                        ; +0x44, 0x1002f177c\nADD             X1, SP, #0x20+var_14                                   ; +0x48, 0x1002f1780\nBLR             X8                                                     ; +0x4c, 0x1002f1784\nLDR             X0, [X19,#0x170]                                       ; +0x50, 0x1002f1788\nLDR             X8, [X0]                                               ; +0x54, 0x1002f178c\nLDR             X8, [X8,#0x390]                                        ; +0x58, 0x1002f1790\nSUB             W9, W20, #1                                            ; +0x5c, 0x1002f1794\nCMP             W9, #2                                                 ; +0x60, 0x1002f1798\nB.HI            loc_1002F17B0                                          ; +0x64, 0x1002f179c\nADRL            X10, off_1007E7AC0; \"Failed to fetch SFX info.\"        ; +0x68, 0x1002f17a0\nLDR             X1, [X10,W9,UXTW#3]                                    ; +0x70, 0x1002f17a8\nB               loc_1002F17B8                                          ; +0x74, 0x1002f17ac\nADRL            X1, aDownloadFailed_0; \"Download failed. Please try again later\"... ; +0x78, 0x1002f17b0\nBLR             X8                                                     ; +0x80, 0x1002f17b8\nLDR             X0, [X19,#0x170]                                       ; +0x84, 0x1002f17bc\nMOV             W8, #0x43660000                                        ; +0x88, 0x1002f17c0\nFMOV            S0, W8                                                 ; +0x8c, 0x1002f17c4\nADRP            X8, #dword_10063537C@PAGE                              ; +0x90, 0x1002f17c8\nLDR             S1, [X8,#dword_10063537C@PAGEOFF]                      ; +0x94, 0x1002f17cc\nFMOV            S2, WZR                                                ; +0x98, 0x1002f17d0\nBL              cocos2d__CCLabelBMFont__limitLabelWidth                ; +0x9c, 0x1002f17d4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa0, 0x1002f17d8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa4, 0x1002f17dc\nADD             SP, SP, #0x30 ; '0'                                    ; +0xa8, 0x1002f17e0\nRET                                                                    ; +0xac, 0x1002f17e4", "xrefs": ["CustomSFXWidget::downloadSFXFailed @ 0x1002f1724"], "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"}