{"type": "func", "start": 6972224, "end": 6972380, "name": "CustomSFXWidget::updateError", "pseudocode": "// \n// CustomSFXWidget::updateError from 0x6a6340 to 0x6a63dc (156 bytes)\n// \n// 1 xrefs:\n// > CustomSFXWidget::downloadSFXFailed @ 0x6a6de4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:56:30 +0000\n// \n\nint __fastcall CustomSFXWidget::updateError(int a1, int a2)\n{\n  int *v3; // r0\n  int v4; // r3\n  void (__fastcall *v5)(int *, _DWORD *); // r3\n  _DWORD v7[2]; // [sp+0h] [bp-8h] BYREF\n\n  v7[0] = a1;\n  v7[1] = a2;\n  (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 288) + 172))(*(_DWORD *)(a1 + 288), 1);\n  v3 = *(int **)(a1 + 288);\n  v4 = *v3;\n  LOWORD(v7[0]) = 13055;\n  v5 = *(void (__fastcall **)(int *, _DWORD *))(v4 + 536);\n  BYTE2(v7[0]) = 25;\n  v5(v3, v7);\n  (*(void (**)(void))(**(_DWORD **)(a1 + 288) + 464))();\n  return cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 288), 230.0, 0.4, 0.0);\n}", "assembly": "; \n; CustomSFXWidget::updateError from 0x6a6340 to 0x6a63dc (156 bytes)\n; \n; 1 xrefs:\n; > CustomSFXWidget::downloadSFXFailed @ 0x6a6de4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:56:30 +0000\n; \nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x6a6340\nMOV             R5, R0                                                 ; +0x2, 0x6a6342\nLDR             R4, =(__stack_chk_guard_ptr - 0x6A6352)                ; +0x4, 0x6a6344\nMOV             R6, R1                                                 ; +0x6, 0x6a6346\nLDR.W           R0, [R0,#0x120]                                        ; +0x8, 0x6a6348\nMOVS            R1, #1                                                 ; +0xc, 0x6a634c\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x6a634e\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x6a6350\nLDR             R3, [R4]                                               ; +0x12, 0x6a6352\nSTR             R3, [SP,#8+var_4]                                      ; +0x14, 0x6a6354\nLDR             R3, [R0]                                               ; +0x16, 0x6a6356\nLDR.W           R3, [R3,#0xAC]                                         ; +0x18, 0x6a6358\nBLX             R3                                                     ; +0x1c, 0x6a635c\nLDR.W           R0, [R5,#0x120]                                        ; +0x1e, 0x6a635e\nMOVS            R2, #0xFF                                              ; +0x22, 0x6a6362\nMOV             R1, SP                                                 ; +0x24, 0x6a6364\nLDR             R3, [R0]                                               ; +0x26, 0x6a6366\nSTRB.W          R2, [SP,#8+var_8]                                      ; +0x28, 0x6a6368\nMOVS            R2, #0x32 ; '2'                                        ; +0x2c, 0x6a636c\nSTRB.W          R2, [SP,#8+var_7]                                      ; +0x2e, 0x6a636e\nMOVS            R2, #0x19                                              ; +0x32, 0x6a6372\nLDR.W           R3, [R3,#0x218]                                        ; +0x34, 0x6a6374\nSTRB.W          R2, [SP,#8+var_6]                                      ; +0x38, 0x6a6378\nBLX             R3                                                     ; +0x3c, 0x6a637c\nCMP             R6, #2                                                 ; +0x3e, 0x6a637e\nLDR.W           R0, [R5,#0x120]                                        ; +0x40, 0x6a6380\nBEQ             loc_6A639A                                             ; +0x44, 0x6a6384\nCMP             R6, #3                                                 ; +0x46, 0x6a6386\nBEQ             loc_6A63A6                                             ; +0x48, 0x6a6388\nCMP             R6, #1                                                 ; +0x4a, 0x6a638a\nBNE             loc_6A63B2                                             ; +0x4c, 0x6a638c\nLDR             R3, [R0]                                               ; +0x4e, 0x6a638e\nLDR             R1, =(aFailedToFetchS_0 - 0x6A639A); \"Failed to fetch SFX info.\" ; +0x50, 0x6a6390\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x52, 0x6a6392\nADD             R1, PC; \"Failed to fetch SFX info.\"                    ; +0x56, 0x6a6396\nB               loc_6A63BC                                             ; +0x58, 0x6a6398\nLDR             R3, [R0]                                               ; +0x5a, 0x6a639a\nLDR             R1, =(aSfxIsNotAllowe - 0x6A63A6); \"SFX is not allowed for use.\" ; +0x5c, 0x6a639c\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x5e, 0x6a639e\nADD             R1, PC; \"SFX is not allowed for use.\"                  ; +0x62, 0x6a63a2\nB               loc_6A63BC                                             ; +0x64, 0x6a63a4\nLDR             R3, [R0]                                               ; +0x66, 0x6a63a6\nLDR             R1, =(aDownloadCancel - 0x6A63B2); \"Download canceled.\" ; +0x68, 0x6a63a8\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x6a, 0x6a63aa\nADD             R1, PC; \"Download canceled.\"                           ; +0x6e, 0x6a63ae\nB               loc_6A63BC                                             ; +0x70, 0x6a63b0\nLDR             R3, [R0]                                               ; +0x72, 0x6a63b2\nLDR             R1, =(aDownloadFailed_0 - 0x6A63BE); \"Download failed. Please try again later\"... ; +0x74, 0x6a63b4\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x76, 0x6a63b6\nADD             R1, PC; \"Download failed. Please try again later\"...   ; +0x7a, 0x6a63ba\nBLX             R3                                                     ; +0x7c, 0x6a63bc\nLDR             R2, flt_6A63DC; float                                  ; +0x7e, 0x6a63be\nMOVS            R3, #0; float                                          ; +0x80, 0x6a63c0\nLDR.W           R0, [R5,#0x120]; this                                  ; +0x82, 0x6a63c2\nLDR             R1, flt_6A63E0; float                                  ; +0x86, 0x6a63c6\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x88, 0x6a63c8\nLDR             R2, [SP,#8+var_4]                                      ; +0x8c, 0x6a63cc\nLDR             R3, [R4]                                               ; +0x8e, 0x6a63ce\nCMP             R2, R3                                                 ; +0x90, 0x6a63d0\nBEQ             loc_6A63D8                                             ; +0x92, 0x6a63d2\nBLX             __stack_chk_fail                                       ; +0x94, 0x6a63d4\nADD             SP, SP, #8                                             ; +0x98, 0x6a63d8\nPOP             {R4-R6,PC}                                             ; +0x9a, 0x6a63da", "xrefs": ["CustomSFXWidget::downloadSFXFailed @ 0x6a6de4"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}