{"type": "func", "start": 13426724, "end": 13427040, "name": "EditorSoundConfigInfoLayer::musicActionFailed", "pseudocode": "// \n// EditorSoundConfigInfoLayer::musicActionFailed from 0xcce024 to 0xcce160 (316 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditorSoundConfigInfoLayer::musicActionFailed @ 0xcce168\n// > <???> @ 0xc40f0\n// > <???> @ 0x14feeb0\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::musicActionFailed(__int64 *a1, int a2)\n{\n  __int64 v4; // x3\n  void (__fastcall *v5)(__int64 *, __int64, __int64); // x23\n  __int64 v6; // x0\n  __int64 v7[2]; // [xsp+48h] [xbp+48h] BYREF\n  void *v8; // [xsp+58h] [xbp+58h]\n  __int64 v9[2]; // [xsp+60h] [xbp+60h] BYREF\n  void *v10; // [xsp+70h] [xbp+70h]\n\n  if ( a2 == 2 && *((_BYTE *)a1 + 1122) )\n  {\n    v4 = *a1;\n    *((_BYTE *)a1 + 1122) = 0;\n    v5 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v4 + 464);\n    v7[0] = 0;\n    v7[1] = 0;\n    v8 = nullptr;\n    std::string::__init(v7, \"Download failed\", 0xFu);\n    v9[0] = 0;\n    v9[1] = 0;\n    v10 = nullptr;\n    std::string::__init(v9, &byte_11B8890, 0);\n    v6 = TextAlertPopup::create((char *)v7, 150, (char *)v9, 0.5, 0.6);\n    v5(a1, v6, 100);\n    if ( (v9[0] & 1) != 0 )\n      operator delete(v10);\n    if ( (v7[0] & 1) != 0 )\n      operator delete(v8);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::musicActionFailed from 0xcce024 to 0xcce160 (316 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditorSoundConfigInfoLayer::musicActionFailed @ 0xcce168\n; > <???> @ 0xc40f0\n; > <???> @ 0x14feeb0\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_80]!                                ; +0x0, 0xcce024\nCMP             W1, #2                                                 ; +0x4, 0xcce028\nMOV             X29, SP                                                ; +0x8, 0xcce02c\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0xc, 0xcce030\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0xcce034\nMOV             X20, X0                                                ; +0x14, 0xcce038\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x18, 0xcce03c\nSTR             X23, [SP,#0x80+var_50]                                 ; +0x1c, 0xcce040\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xcce044\nLDR             X0, [X0]                                               ; +0x24, 0xcce048\nSTR             X0, [X29,#0x80+var_8]                                  ; +0x28, 0xcce04c\nB.EQ            loc_CCE07C                                             ; +0x2c, 0xcce050\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x30, 0xcce054\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x34, 0xcce058\nLDR             X0, [X19]                                              ; +0x38, 0xcce05c\nCMP             X1, X0                                                 ; +0x3c, 0xcce060\nB.NE            loc_CCE128                                             ; +0x40, 0xcce064\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x44, 0xcce068\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x48, 0xcce06c\nLDR             X23, [SP,#0x80+var_50]                                 ; +0x4c, 0xcce070\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x50, 0xcce074\nRET                                                                    ; +0x54, 0xcce078\nLDRB            W0, [X20,#0x462]                                       ; +0x58, 0xcce07c\nCBZ             W0, loc_CCE054                                         ; +0x5c, 0xcce080\nLDR             X3, [X20]                                              ; +0x60, 0xcce084\nADD             X22, X29, #0x80+var_38                                 ; +0x64, 0xcce088\nADRP            X1, #aDownloadFailed_2@PAGE; \"Download failed\"         ; +0x68, 0xcce08c\nSTRB            WZR, [X20,#0x462]                                      ; +0x6c, 0xcce090\nMOV             X0, X22                                                ; +0x70, 0xcce094\nADD             X1, X1, #aDownloadFailed_2@PAGEOFF; \"Download failed\"  ; +0x74, 0xcce098\nMOV             X2, #0xF                                               ; +0x78, 0xcce09c\nLDR             X23, [X3,#0x1D0]                                       ; +0x7c, 0xcce0a0\nSTR             XZR, [X29,#0x80+var_38]                                ; +0x80, 0xcce0a4\nADD             X21, X29, #0x80+var_20                                 ; +0x84, 0xcce0a8\nSTR             XZR, [X29,#0x80+var_30]                                ; +0x88, 0xcce0ac\nSTR             XZR, [X29,#0x80+var_28]                                ; +0x8c, 0xcce0b0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x90, 0xcce0b4\nADRP            X1, #byte_11B8890@PAGE                                 ; +0x94, 0xcce0b8\nMOV             X0, X21                                                ; +0x98, 0xcce0bc\nADD             X1, X1, #byte_11B8890@PAGEOFF                          ; +0x9c, 0xcce0c0\nMOV             X2, #0                                                 ; +0xa0, 0xcce0c4\nSTR             XZR, [X29,#0x80+var_20]                                ; +0xa4, 0xcce0c8\nSTR             XZR, [X29,#0x80+var_18]                                ; +0xa8, 0xcce0cc\nSTR             XZR, [X29,#0x80+var_10]                                ; +0xac, 0xcce0d0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xb0, 0xcce0d4\nLDR             S1, =0x3F19999A                                        ; +0xb4, 0xcce0d8\nMOV             X0, X22                                                ; +0xb8, 0xcce0dc\nMOV             W1, #0x96                                              ; +0xbc, 0xcce0e0\nMOV             X2, X21                                                ; +0xc0, 0xcce0e4\nFMOV            S0, #0.5                                               ; +0xc4, 0xcce0e8\nBL              _ZN14TextAlertPopup6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEffiS6_; TextAlertPopup::create(std::string,float,float,int,std::string) ; +0xc8, 0xcce0ec\nMOV             X1, X0                                                 ; +0xcc, 0xcce0f0\nMOV             W2, #0x64 ; 'd'                                        ; +0xd0, 0xcce0f4\nMOV             X0, X20                                                ; +0xd4, 0xcce0f8\nBLR             X23                                                    ; +0xd8, 0xcce0fc\nLDRB            W0, [X29,#0x80+var_20]                                 ; +0xdc, 0xcce100\nTBNZ            W0, #0, loc_CCE11C                                     ; +0xe0, 0xcce104\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0xe4, 0xcce108\nTBZ             W0, #0, loc_CCE054                                     ; +0xe8, 0xcce10c\nLDR             X0, [X29,#0x80+var_28]; void *                         ; +0xec, 0xcce110\nBL              _ZdlPv; operator delete(void *)                        ; +0xf0, 0xcce114\nB               loc_CCE054                                             ; +0xf4, 0xcce118\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0xf8, 0xcce11c\nBL              _ZdlPv; operator delete(void *)                        ; +0xfc, 0xcce120\nB               loc_CCE108                                             ; +0x100, 0xcce124\nBL              .__stack_chk_fail                                      ; +0x104, 0xcce128\nLDRB            W1, [X29,#0x80+var_20]                                 ; +0x108, 0xcce12c\nMOV             X19, X0                                                ; +0x10c, 0xcce130\nTBZ             W1, #0, loc_CCE140                                     ; +0x110, 0xcce134\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x114, 0xcce138\nBL              _ZdlPv; operator delete(void *)                        ; +0x118, 0xcce13c\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0x11c, 0xcce140\nTBZ             W0, #0, loc_CCE150                                     ; +0x120, 0xcce144\nLDR             X0, [X29,#0x80+var_28]; void *                         ; +0x124, 0xcce148\nBL              _ZdlPv; operator delete(void *)                        ; +0x128, 0xcce14c\nMOV             X0, X19                                                ; +0x12c, 0xcce150\nBL              _Unwind_Resume                                         ; +0x130, 0xcce154\nMOV             X19, X0                                                ; +0x134, 0xcce158\nB               loc_CCE140                                             ; +0x138, 0xcce15c", "xrefs": ["`non-virtual thunk to'EditorSoundConfigInfoLayer::musicActionFailed @ 0xcce168", "<???> @ 0xc40f0", "<???> @ 0x14feeb0"], "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"}