{"type": "func", "start": 5697832, "end": 5697988, "name": "CustomSFXWidget::updateError", "pseudocode": "// \n// CustomSFXWidget::updateError from 0x56f128 to 0x56f1c4 (156 bytes)\n// \n// 1 xrefs:\n// > CustomSFXWidget::downloadSFXFailed @ 0x56f1f0\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 CustomSFXWidget::updateError(CustomSFXWidget *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  _DWORD v6[2]; // [sp+0h] [bp-8h] BYREF\n\n  v6[0] = a1;\n  v6[1] = a2;\n  a1->m_errorLabel->setVisible(a1->m_errorLabel, 1);\n  m_errorLabel = a1->m_errorLabel;\n  v4 = m_errorLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  LOWORD(v6[0]) = 13055;\n  setColor = v4->setColor;\n  BYTE2(v6[0]) = 25;\n  setColor(m_errorLabel, (const cocos2d::ccColor3B *)v6);\n  ((void (*)(void))a1->m_errorLabel->setString)();\n  cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 230.0, 0.4, 0.0);\n}", "assembly": "; \n; CustomSFXWidget::updateError from 0x56f128 to 0x56f1c4 (156 bytes)\n; \n; 1 xrefs:\n; > CustomSFXWidget::downloadSFXFailed @ 0x56f1f0\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, 0x56f128\nMOV             R5, R0                                                 ; +0x2, 0x56f12a\nLDR             R4, =(__stack_chk_guard_ptr - 0x56F13A)                ; +0x4, 0x56f12c\nMOV             R6, R1                                                 ; +0x6, 0x56f12e\nLDR.W           R0, [R0,#0x120]                                        ; +0x8, 0x56f130\nMOVS            R1, #1                                                 ; +0xc, 0x56f134\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x56f136\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x56f138\nLDR             R3, [R4]                                               ; +0x12, 0x56f13a\nSTR             R3, [SP,#8+var_4]                                      ; +0x14, 0x56f13c\nLDR             R3, [R0]                                               ; +0x16, 0x56f13e\nLDR.W           R3, [R3,#0xA4]                                         ; +0x18, 0x56f140\nBLX             R3                                                     ; +0x1c, 0x56f144\nLDR.W           R0, [R5,#0x120]                                        ; +0x1e, 0x56f146\nMOVS            R2, #0xFF                                              ; +0x22, 0x56f14a\nMOV             R1, SP                                                 ; +0x24, 0x56f14c\nLDR             R3, [R0]                                               ; +0x26, 0x56f14e\nSTRB.W          R2, [SP,#8+var_8]                                      ; +0x28, 0x56f150\nMOVS            R2, #0x32 ; '2'                                        ; +0x2c, 0x56f154\nSTRB.W          R2, [SP,#8+var_7]                                      ; +0x2e, 0x56f156\nMOVS            R2, #0x19                                              ; +0x32, 0x56f15a\nLDR.W           R3, [R3,#0x210]                                        ; +0x34, 0x56f15c\nSTRB.W          R2, [SP,#8+var_6]                                      ; +0x38, 0x56f160\nBLX             R3                                                     ; +0x3c, 0x56f164\nCMP             R6, #2                                                 ; +0x3e, 0x56f166\nLDR.W           R0, [R5,#0x120]                                        ; +0x40, 0x56f168\nBEQ             loc_56F182                                             ; +0x44, 0x56f16c\nCMP             R6, #3                                                 ; +0x46, 0x56f16e\nBEQ             loc_56F18E                                             ; +0x48, 0x56f170\nCMP             R6, #1                                                 ; +0x4a, 0x56f172\nBNE             loc_56F19A                                             ; +0x4c, 0x56f174\nLDR             R3, [R0]                                               ; +0x4e, 0x56f176\nLDR             R1, =(aFailedToFetchS_0 - 0x56F182); \"Failed to fetch SFX info.\" ; +0x50, 0x56f178\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x52, 0x56f17a\nADD             R1, PC; \"Failed to fetch SFX info.\"                    ; +0x56, 0x56f17e\nB               loc_56F1A4                                             ; +0x58, 0x56f180\nLDR             R3, [R0]                                               ; +0x5a, 0x56f182\nLDR             R1, =(aSfxIsNotAllowe - 0x56F18E); \"SFX is not allowed for use.\" ; +0x5c, 0x56f184\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x5e, 0x56f186\nADD             R1, PC; \"SFX is not allowed for use.\"                  ; +0x62, 0x56f18a\nB               loc_56F1A4                                             ; +0x64, 0x56f18c\nLDR             R3, [R0]                                               ; +0x66, 0x56f18e\nLDR             R1, =(aDownloadCancel - 0x56F19A); \"Download canceled.\" ; +0x68, 0x56f190\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x6a, 0x56f192\nADD             R1, PC; \"Download canceled.\"                           ; +0x6e, 0x56f196\nB               loc_56F1A4                                             ; +0x70, 0x56f198\nLDR             R3, [R0]                                               ; +0x72, 0x56f19a\nLDR             R1, =(aDownloadFailed_0 - 0x56F1A6); \"Download failed. Please try again later\"... ; +0x74, 0x56f19c\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x76, 0x56f19e\nADD             R1, PC; \"Download failed. Please try again later\"...   ; +0x7a, 0x56f1a2\nBLX             R3                                                     ; +0x7c, 0x56f1a4\nLDR             R2, flt_56F1C4; float                                  ; +0x7e, 0x56f1a6\nMOVS            R3, #0; float                                          ; +0x80, 0x56f1a8\nLDR.W           R0, [R5,#0x120]; this                                  ; +0x82, 0x56f1aa\nLDR             R1, flt_56F1C8; float                                  ; +0x86, 0x56f1ae\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x88, 0x56f1b0\nLDR             R2, [SP,#8+var_4]                                      ; +0x8c, 0x56f1b4\nLDR             R3, [R4]                                               ; +0x8e, 0x56f1b6\nCMP             R2, R3                                                 ; +0x90, 0x56f1b8\nBEQ             loc_56F1C0                                             ; +0x92, 0x56f1ba\nBLX             __stack_chk_fail                                       ; +0x94, 0x56f1bc\nADD             SP, SP, #8                                             ; +0x98, 0x56f1c0\nPOP             {R4-R6,PC}                                             ; +0x9a, 0x56f1c2", "xrefs": ["CustomSFXWidget::downloadSFXFailed @ 0x56f1f0"], "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"}