{"type": "func", "start": 7619592, "end": 7619936, "name": "CustomSongWidget::updateError", "pseudocode": "// \n// CustomSongWidget::updateError from 0x744408 to 0x744560 (344 bytes)\n// \n// 3 xrefs:\n// > CustomSongWidget::downloadSongFailed @ 0x748588\n// > CustomSongWidget::loadSongInfoFailed @ 0x749680\n// > <???> @ 0x4cc98\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::updateError(CustomSongWidget *a1, GJSongError a2)\n{\n  cocos2d::CCLabelBMFont *m_errorLabel; // x0\n  void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x2\n  _BYTE v6[8]; // [xsp+30h] [xbp+30h] BYREF\n\n  m_errorLabel = a1->m_errorLabel;\n  setColor = m_errorLabel->setColor;\n  v6[0] = -1;\n  v6[1] = 50;\n  v6[2] = 25;\n  setColor(m_errorLabel, (const cocos2d::ccColor3B *)v6);\n  switch ( a2 )\n  {\n    case NotAllowed:\n      a1->m_errorLabel->setString(a1->m_errorLabel, \"Song is not allowed for use.\");\n      break;\n    case DownloadCancelled:\n      a1->m_errorLabel->setString(a1->m_errorLabel, \"Download canceled.\");\n      break;\n    case FailedToFetch:\n      a1->m_errorLabel->setString(a1->m_errorLabel, \"Failed to fetch song info.\");\n      if ( !a1->m_isMusicLibrary )\n        goto LABEL_6;\nLABEL_9:\n      cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 140.0, 0.35, 0.0);\n      goto LABEL_7;\n    default:\n      a1->m_errorLabel->setString(a1->m_errorLabel, \"Download failed. Please try later.\");\n      break;\n  }\n  if ( a1->m_isMusicLibrary )\n    goto LABEL_9;\nLABEL_6:\n  cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 230.0, 0.4, 0.0);\nLABEL_7:\n  CustomSongWidget::showError(a1, 0);\n}", "assembly": "; \n; CustomSongWidget::updateError from 0x744408 to 0x744560 (344 bytes)\n; \n; 3 xrefs:\n; > CustomSongWidget::downloadSongFailed @ 0x748588\n; > CustomSongWidget::loadSongInfoFailed @ 0x749680\n; > <???> @ 0x4cc98\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_40]!                                ; +0x0, 0x744408\nMOV             X29, SP                                                ; +0x4, 0x74440c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x744410\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x744414\nLDR             X2, [X0,#0x178]                                        ; +0x10, 0x744418\nMOV             X19, X0                                                ; +0x14, 0x74441c\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x18, 0x744420\nMOV             X0, X2                                                 ; +0x1c, 0x744424\nMOV             W21, W1                                                ; +0x20, 0x744428\nLDR             X3, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x74442c\nADD             X1, X29, #0x40+var_10                                  ; +0x28, 0x744430\nLDR             X2, [X2]                                               ; +0x2c, 0x744434\nLDR             X3, [X3]                                               ; +0x30, 0x744438\nSTR             X3, [X29,#0x40+var_8]                                  ; +0x34, 0x74443c\nMOV             W3, #0xFFFFFFFF                                        ; +0x38, 0x744440\nLDR             X2, [X2,#0x420]                                        ; +0x3c, 0x744444\nSTRB            W3, [X29,#0x40+var_10]                                 ; +0x40, 0x744448\nMOV             W3, #0x32 ; '2'                                        ; +0x44, 0x74444c\nSTRB            W3, [X29,#0x40+var_F]                                  ; +0x48, 0x744450\nMOV             W3, #0x19                                              ; +0x4c, 0x744454\nSTRB            W3, [X29,#0x40+var_E]                                  ; +0x50, 0x744458\nBLR             X2                                                     ; +0x54, 0x74445c\nCMP             W21, #2                                                ; +0x58, 0x744460\nB.EQ            loc_74453C                                             ; +0x5c, 0x744464\nCMP             W21, #3                                                ; +0x60, 0x744468\nB.EQ            loc_74451C                                             ; +0x64, 0x74446c\nCMP             W21, #1                                                ; +0x68, 0x744470\nB.EQ            loc_7444E0                                             ; +0x6c, 0x744474\nLDR             X2, [X19,#0x178]                                       ; +0x70, 0x744478\nADRL            X1, aDownloadFailed; \"Download failed. Please try later.\" ; +0x74, 0x74447c\nMOV             X0, X2                                                 ; +0x7c, 0x744484\nLDR             X2, [X2]                                               ; +0x80, 0x744488\nLDR             X2, [X2,#0x390]                                        ; +0x84, 0x74448c\nBLR             X2                                                     ; +0x88, 0x744490\nLDRB            W0, [X19,#0x1ED]                                       ; +0x8c, 0x744494\nCBNZ            W0, loc_744504                                         ; +0x90, 0x744498\nLDR             S0, flt_744568; float                                  ; +0x94, 0x74449c\nLDR             X0, [X19,#0x178]; this                                 ; +0x98, 0x7444a0\nLDR             S1, flt_74456C; float                                  ; +0x9c, 0x7444a4\nFMOV            S2, WZR; float                                         ; +0xa0, 0x7444a8\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0xa4, 0x7444ac\nMOV             X0, X19; this                                          ; +0xa8, 0x7444b0\nMOV             W1, #0; bool                                           ; +0xac, 0x7444b4\nBL              _ZN16CustomSongWidget9showErrorEb; CustomSongWidget::showError(bool) ; +0xb0, 0x7444b8\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xb4, 0x7444bc\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xb8, 0x7444c0\nLDR             X0, [X20]                                              ; +0xbc, 0x7444c4\nCMP             X1, X0                                                 ; +0xc0, 0x7444c8\nB.NE            loc_74455C                                             ; +0xc4, 0x7444cc\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xc8, 0x7444d0\nLDR             X21, [SP,#0x40+var_20]                                 ; +0xcc, 0x7444d4\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xd0, 0x7444d8\nRET                                                                    ; +0xd4, 0x7444dc\nLDR             X2, [X19,#0x178]                                       ; +0xd8, 0x7444e0\nADRL            X1, aFailedToFetchS; \"Failed to fetch song info.\"      ; +0xdc, 0x7444e4\nMOV             X0, X2                                                 ; +0xe4, 0x7444ec\nLDR             X2, [X2]                                               ; +0xe8, 0x7444f0\nLDR             X2, [X2,#0x390]                                        ; +0xec, 0x7444f4\nBLR             X2                                                     ; +0xf0, 0x7444f8\nLDRB            W0, [X19,#0x1ED]                                       ; +0xf4, 0x7444fc\nCBZ             W0, loc_74449C                                         ; +0xf8, 0x744500\nLDR             S0, flt_744560; float                                  ; +0xfc, 0x744504\nLDR             X0, [X19,#0x178]; this                                 ; +0x100, 0x744508\nLDR             S1, flt_744564; float                                  ; +0x104, 0x74450c\nFMOV            S2, WZR; float                                         ; +0x108, 0x744510\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x10c, 0x744514\nB               loc_7444B0                                             ; +0x110, 0x744518\nLDR             X2, [X19,#0x178]                                       ; +0x114, 0x74451c\nADRL            X1, aDownloadCancel; \"Download canceled.\"              ; +0x118, 0x744520\nMOV             X0, X2                                                 ; +0x120, 0x744528\nLDR             X2, [X2]                                               ; +0x124, 0x74452c\nLDR             X2, [X2,#0x390]                                        ; +0x128, 0x744530\nBLR             X2                                                     ; +0x12c, 0x744534\nB               loc_744494                                             ; +0x130, 0x744538\nLDR             X2, [X19,#0x178]                                       ; +0x134, 0x74453c\nADRL            X1, aSongIsNotAllow; \"Song is not allowed for use.\"    ; +0x138, 0x744540\nMOV             X0, X2                                                 ; +0x140, 0x744548\nLDR             X2, [X2]                                               ; +0x144, 0x74454c\nLDR             X2, [X2,#0x390]                                        ; +0x148, 0x744550\nBLR             X2                                                     ; +0x14c, 0x744554\nB               loc_744494                                             ; +0x150, 0x744558\nBL              .__stack_chk_fail                                      ; +0x154, 0x74455c", "xrefs": ["CustomSongWidget::downloadSongFailed @ 0x748588", "CustomSongWidget::loadSongInfoFailed @ 0x749680", "<???> @ 0x4cc98"], "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"}