{"type": "func", "start": 13425708, "end": 13426008, "name": "EditorSoundConfigInfoLayer::downloadEditorSoundFailed", "pseudocode": "// \n// EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0xccdc2c to 0xccdd58 (300 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0xccdd5c\n// > <???> @ 0x82540\n// > <???> @ 0x14fee60\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:06:25 +0000\n// \n\n__int64 __fastcall EditorSoundConfigInfoLayer::downloadEditorSoundFailed(EditorSoundConfigInfoLayer *this, int a2)\n{\n  __int64 v3; // x0\n  cocos2d::CCNode **v5; // x0\n  __int64 v6; // x0\n  _QWORD v7[2]; // [xsp+20h] [xbp+20h] BYREF\n  void *v8; // [xsp+30h] [xbp+30h]\n\n  v3 = *((_QWORD *)this + 136);\n  if ( !v3 || *(_DWORD *)(v3 + 316) == a2 )\n  {\n    v5 = *((cocos2d::CCNode ***)this + 139);\n    *((_BYTE *)this + 1120) = 0;\n    *((_BYTE *)this + 1121) = 0;\n    if ( v5 )\n      LoadingCircle::fadeAndRemove(v5);\n    *((_QWORD *)this + 139) = 0;\n    EditorSoundConfigInfoLayer::refreshActionButtons(this);\n    v7[0] = 65;\n    v8 = (void *)operator new(0x40u);\n    v7[1] = 52;\n    strcpy((char *)v8, \"Could not download this sound pack. Try again later.\");\n    v6 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)\"Download Failed\", (char *)v7, (ButtonSprite *)\"OK\", nullptr);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);\n    if ( (v7[0] & 1) != 0 )\n      operator delete(v8);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0xccdc2c to 0xccdd58 (300 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0xccdd5c\n; > <???> @ 0x82540\n; > <???> @ 0x14fee60\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:06:25 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xccdc2c\nMOV             X29, SP                                                ; +0x4, 0xccdc30\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xccdc34\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xccdc38\nMOV             X19, X0                                                ; +0x10, 0xccdc3c\nLDR             X0, [X0,#0x440]                                        ; +0x14, 0xccdc40\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xccdc44\nLDR             X2, [X2]                                               ; +0x1c, 0xccdc48\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x20, 0xccdc4c\nCBZ             X0, loc_CCDC80                                         ; +0x24, 0xccdc50\nLDR             W0, [X0,#0x13C]                                        ; +0x28, 0xccdc54\nCMP             W0, W1                                                 ; +0x2c, 0xccdc58\nB.EQ            loc_CCDC80                                             ; +0x30, 0xccdc5c\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x34, 0xccdc60\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x38, 0xccdc64\nLDR             X0, [X20]                                              ; +0x3c, 0xccdc68\nCMP             X1, X0                                                 ; +0x40, 0xccdc6c\nB.NE            loc_CCDD38                                             ; +0x44, 0xccdc70\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x48, 0xccdc74\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x4c, 0xccdc78\nRET                                                                    ; +0x50, 0xccdc7c\nLDR             X0, [X19,#0x458]; this                                 ; +0x54, 0xccdc80\nSTRB            WZR, [X19,#0x460]                                      ; +0x58, 0xccdc84\nSTRB            WZR, [X19,#0x461]                                      ; +0x5c, 0xccdc88\nCBZ             X0, loc_CCDC94                                         ; +0x60, 0xccdc8c\nBL              _ZN13LoadingCircle13fadeAndRemoveEv; LoadingCircle::fadeAndRemove(void) ; +0x64, 0xccdc90\nMOV             X0, X19; this                                          ; +0x68, 0xccdc94\nSTR             XZR, [X19,#0x458]                                      ; +0x6c, 0xccdc98\nBL              _ZN26EditorSoundConfigInfoLayer20refreshActionButtonsEv; EditorSoundConfigInfoLayer::refreshActionButtons(void) ; +0x70, 0xccdc9c\nSTR             XZR, [X29,#0x40+var_20]                                ; +0x74, 0xccdca0\nMOV             X0, #0x40 ; '@'; unsigned __int64                      ; +0x78, 0xccdca4\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x7c, 0xccdca8\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x80, 0xccdcac\nBL              _Znwm; operator new(ulong)                             ; +0x84, 0xccdcb0\nMOV             X5, X0                                                 ; +0x88, 0xccdcb4\nADRP            X0, #aCouldNotDownlo@PAGE; \"Could not download this sound pack. Try\"... ; +0x8c, 0xccdcb8\nMOV             X1, #0x41 ; 'A'                                        ; +0x90, 0xccdcbc\nADD             X0, X0, #aCouldNotDownlo@PAGEOFF; \"Could not download this sound pack. Try\"... ; +0x94, 0xccdcc0\nSTR             X1, [X29,#0x40+var_20]                                 ; +0x98, 0xccdcc4\nSTR             X5, [X29,#0x40+var_10]                                 ; +0x9c, 0xccdcc8\nADRP            X3, #aOk@PAGE; \"OK\"                                    ; +0xa0, 0xccdccc\nSTRB            WZR, [X5,#0x34]                                        ; +0xa4, 0xccdcd0\nADD             X2, X29, #0x40+var_20                                  ; +0xa8, 0xccdcd4\nLDR             W1, [X0,#(aCouldNotDownlo+0x30 - 0x11A3FC0)]; \"ter.\"   ; +0xac, 0xccdcd8\nADD             X3, X3, #aOk@PAGEOFF; \"OK\"                             ; +0xb0, 0xccdcdc\nSTR             W1, [X5,#0x30]                                         ; +0xb4, 0xccdce0\nMOV             X1, #0x34 ; '4'                                        ; +0xb8, 0xccdce4\nLDP             X10, X11, [X0]; \"Could not download this sound pack. Try\"... ; +0xbc, 0xccdce8\nLDP             X8, X9, [X0,#(aCouldNotDownlo+0x10 - 0x11A3FC0)]; \"ad this sound pack. Try again later.\" ; +0xc0, 0xccdcec\nLDP             X6, X7, [X0,#(aCouldNotDownlo+0x20 - 0x11A3FC0)]; \"ck. Try again later.\" ; +0xc4, 0xccdcf0\nSTR             X1, [X29,#0x40+var_18]                                 ; +0xc8, 0xccdcf4\nADRP            X1, #aDownloadFailed_1@PAGE; \"Download Failed\"         ; +0xcc, 0xccdcf8\nMOV             X0, #0                                                 ; +0xd0, 0xccdcfc\nADD             X1, X1, #aDownloadFailed_1@PAGEOFF; \"Download Failed\"  ; +0xd4, 0xccdd00\nMOV             X4, #0                                                 ; +0xd8, 0xccdd04\nSTP             X10, X11, [X5]                                         ; +0xdc, 0xccdd08\nSTP             X8, X9, [X5,#0x10]                                     ; +0xe0, 0xccdd0c\nSTP             X6, X7, [X5,#0x20]                                     ; +0xe4, 0xccdd10\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*) ; +0xe8, 0xccdd14\nLDR             X1, [X0]                                               ; +0xec, 0xccdd18\nLDR             X1, [X1,#0x520]                                        ; +0xf0, 0xccdd1c\nBLR             X1                                                     ; +0xf4, 0xccdd20\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0xf8, 0xccdd24\nTBZ             W0, #0, loc_CCDC60                                     ; +0xfc, 0xccdd28\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x100, 0xccdd2c\nBL              _ZdlPv; operator delete(void *)                        ; +0x104, 0xccdd30\nB               loc_CCDC60                                             ; +0x108, 0xccdd34\nBL              .__stack_chk_fail                                      ; +0x10c, 0xccdd38\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0x110, 0xccdd3c\nMOV             X19, X0                                                ; +0x114, 0xccdd40\nTBZ             W1, #0, loc_CCDD50                                     ; +0x118, 0xccdd44\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x11c, 0xccdd48\nBL              _ZdlPv; operator delete(void *)                        ; +0x120, 0xccdd4c\nMOV             X0, X19                                                ; +0x124, 0xccdd50\nBL              _Unwind_Resume                                         ; +0x128, 0xccdd54", "xrefs": ["`non-virtual thunk to'EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0xccdd5c", "<???> @ 0x82540", "<???> @ 0x14fee60"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}