{"type": "func", "start": 4055132, "end": 4055294, "name": "CustomSongWidget::updateError", "pseudocode": "// \n// CustomSongWidget::updateError from 0x3de05c to 0x3de0fe (162 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::loadSongInfoFailed @ 0x3e07aa\n// > CustomSongWidget::downloadSongFailed @ 0x3e0bbe\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; // r0\n  cocos2d::CCLabelBMFont_vtbl *v4; // r3\n  void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // r3\n  float v6; // r1\n  float v7; // r2\n  _DWORD v8[2]; // [sp+0h] [bp-8h] BYREF\n\n  v8[0] = a1;\n  v8[1] = a2;\n  m_errorLabel = a1->m_errorLabel;\n  v4 = m_errorLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  LOWORD(v8[0]) = 13055;\n  setColor = v4->setColor;\n  BYTE2(v8[0]) = 25;\n  setColor(m_errorLabel, (const cocos2d::ccColor3B *)v8);\n  ((void (*)(void))a1->m_errorLabel->setString)();\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 0x3de05c to 0x3de0fe (162 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::loadSongInfoFailed @ 0x3e07aa\n; > CustomSongWidget::downloadSongFailed @ 0x3e0bbe\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\nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x3de05c\nMOV             R5, R0                                                 ; +0x2, 0x3de05e\nLDR             R4, =(__stack_chk_guard_ptr - 0x3DE06E)                ; +0x4, 0x3de060\nMOV             R6, R1                                                 ; +0x6, 0x3de062\nLDR.W           R0, [R0,#0x124]                                        ; +0x8, 0x3de064\nMOVS            R2, #0xFF                                              ; +0xc, 0x3de068\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3de06a\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x3de06c\nMOV             R1, SP                                                 ; +0x12, 0x3de06e\nLDR             R3, [R4]                                               ; +0x14, 0x3de070\nSTR             R3, [SP,#8+var_4]                                      ; +0x16, 0x3de072\nLDR             R3, [R0]                                               ; +0x18, 0x3de074\nSTRB.W          R2, [SP,#8+var_8]                                      ; +0x1a, 0x3de076\nMOVS            R2, #0x32 ; '2'                                        ; +0x1e, 0x3de07a\nSTRB.W          R2, [SP,#8+var_7]                                      ; +0x20, 0x3de07c\nMOVS            R2, #0x19                                              ; +0x24, 0x3de080\nLDR.W           R3, [R3,#0x210]                                        ; +0x26, 0x3de082\nSTRB.W          R2, [SP,#8+var_6]                                      ; +0x2a, 0x3de086\nBLX             R3                                                     ; +0x2e, 0x3de08a\nCMP             R6, #2                                                 ; +0x30, 0x3de08c\nLDR.W           R0, [R5,#0x124]                                        ; +0x32, 0x3de08e\nBEQ             loc_3DE0A8                                             ; +0x36, 0x3de092\nCMP             R6, #3                                                 ; +0x38, 0x3de094\nBEQ             loc_3DE0B4                                             ; +0x3a, 0x3de096\nCMP             R6, #1                                                 ; +0x3c, 0x3de098\nBNE             loc_3DE0C0                                             ; +0x3e, 0x3de09a\nLDR             R3, [R0]                                               ; +0x40, 0x3de09c\nLDR             R1, =(aFailedToFetchS - 0x3DE0A8); \"Failed to fetch song info.\" ; +0x42, 0x3de09e\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x44, 0x3de0a0\nADD             R1, PC; \"Failed to fetch song info.\"                   ; +0x48, 0x3de0a4\nB               loc_3DE0CA                                             ; +0x4a, 0x3de0a6\nLDR             R3, [R0]                                               ; +0x4c, 0x3de0a8\nLDR             R1, =(aSongIsNotAllow - 0x3DE0B4); \"Song is not allowed for use.\" ; +0x4e, 0x3de0aa\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x50, 0x3de0ac\nADD             R1, PC; \"Song is not allowed for use.\"                 ; +0x54, 0x3de0b0\nB               loc_3DE0CA                                             ; +0x56, 0x3de0b2\nLDR             R3, [R0]                                               ; +0x58, 0x3de0b4\nLDR             R1, =(aDownloadCancel - 0x3DE0C0); \"Download canceled.\" ; +0x5a, 0x3de0b6\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x5c, 0x3de0b8\nADD             R1, PC; \"Download canceled.\"                           ; +0x60, 0x3de0bc\nB               loc_3DE0CA                                             ; +0x62, 0x3de0be\nLDR             R3, [R0]                                               ; +0x64, 0x3de0c0\nLDR             R1, =(aDownloadFailed - 0x3DE0CC); \"Download failed. Please try later.\" ; +0x66, 0x3de0c2\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x68, 0x3de0c4\nADD             R1, PC; \"Download failed. Please try later.\"           ; +0x6c, 0x3de0c8\nBLX             R3                                                     ; +0x6e, 0x3de0ca\nLDRB.W          R3, [R5,#0x161]                                        ; +0x70, 0x3de0cc\nLDR.W           R0, [R5,#0x124]; this                                  ; +0x74, 0x3de0d0\nCBZ             R3, loc_3DE0DC                                         ; +0x78, 0x3de0d4\nLDR             R1, =0x430C0000                                        ; +0x7a, 0x3de0d6\nLDR             R2, =0x3EB33333                                        ; +0x7c, 0x3de0d8\nB               loc_3DE0E0                                             ; +0x7e, 0x3de0da\nLDR             R1, flt_3DE108; float                                  ; +0x80, 0x3de0dc\nLDR             R2, flt_3DE10C; float                                  ; +0x82, 0x3de0de\nMOVS            R3, #0; float                                          ; +0x84, 0x3de0e0\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x86, 0x3de0e2\nMOV             R0, R5; this                                           ; +0x8a, 0x3de0e6\nMOVS            R1, #0; bool                                           ; +0x8c, 0x3de0e8\nBL              _ZN16CustomSongWidget9showErrorEb; CustomSongWidget::showError(bool) ; +0x8e, 0x3de0ea\nLDR             R2, [SP,#8+var_4]                                      ; +0x92, 0x3de0ee\nLDR             R3, [R4]                                               ; +0x94, 0x3de0f0\nCMP             R2, R3                                                 ; +0x96, 0x3de0f2\nBEQ             loc_3DE0FA                                             ; +0x98, 0x3de0f4\nBLX             __stack_chk_fail                                       ; +0x9a, 0x3de0f6\nADD             SP, SP, #8                                             ; +0x9e, 0x3de0fa\nPOP             {R4-R6,PC}                                             ; +0xa0, 0x3de0fc", "xrefs": ["CustomSongWidget::loadSongInfoFailed @ 0x3e07aa", "CustomSongWidget::downloadSongFailed @ 0x3e0bbe"], "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"}