{"type": "func", "start": 4300027932, "end": 4300028108, "name": "EditorSoundConfigInfoLayer::musicActionFailed", "pseudocode": "// \n// EditorSoundConfigInfoLayer::musicActionFailed from 0x1004d381c to 0x1004d38cc (176 bytes)\n// \n// 2 xrefs:\n// > sub_1004D3900 @ 0x1004d3904\n// > <???> @ 0x1009890e0\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 11:06:30 +0000\n// \n\nvoid __fastcall EditorSoundConfigInfoLayer::musicActionFailed(_BYTE *a1, int a2)\n{\n  _QWORD *v3; // x0\n  void *__p[2]; // [xsp+0h] [xbp-40h] BYREF\n  char v5; // [xsp+17h] [xbp-29h]\n  void *v6[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v7; // [xsp+2Fh] [xbp-11h]\n\n  if ( a2 == 2 && a1[1122] == 1 )\n  {\n    a1[1122] = 0;\n    sub_100009900(v6, \"Download failed\");\n    sub_100009900(__p, \"\");\n    v3 = TextAlertPopup::create((__int64)v6, 150, (__int64)__p, 0.5, 0.6);\n    (*(void (__fastcall **)(_BYTE *, _QWORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v3, 100);\n    if ( v5 < 0 )\n      operator delete(__p[0]);\n    if ( v7 < 0 )\n      operator delete(v6[0]);\n  }\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::musicActionFailed from 0x1004d381c to 0x1004d38cc (176 bytes)\n; \n; 2 xrefs:\n; > sub_1004D3900 @ 0x1004d3904\n; > <???> @ 0x1009890e0\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 11:06:30 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1004d381c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x1004d3820\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x1004d3824\nADD             X29, SP, #0x40                                         ; +0xc, 0x1004d3828\nCMP             W1, #2                                                 ; +0x10, 0x1004d382c\nB.NE            loc_1004D38BC                                          ; +0x14, 0x1004d3830\nMOV             X19, X0                                                ; +0x18, 0x1004d3834\nLDRB            W8, [X0,#0x462]                                        ; +0x1c, 0x1004d3838\nCMP             W8, #1                                                 ; +0x20, 0x1004d383c\nB.NE            loc_1004D38BC                                          ; +0x24, 0x1004d3840\nSTRB            WZR, [X19,#0x462]                                      ; +0x28, 0x1004d3844\nADRL            X1, aDownloadFailed_1; \"Download failed\"               ; +0x2c, 0x1004d3848\nADD             X0, SP, #0x40+var_28; int                              ; +0x34, 0x1004d3850\nBL              sub_100009900                                          ; +0x38, 0x1004d3854\nADRL            X1, asc_10088BE68; \"\"                                  ; +0x3c, 0x1004d3858\nMOV             X0, SP; int                                            ; +0x44, 0x1004d3860\nBL              sub_100009900                                          ; +0x48, 0x1004d3864\nADRP            X8, #dword_10075BCDC@PAGE                              ; +0x4c, 0x1004d3868\nLDR             S1, [X8,#dword_10075BCDC@PAGEOFF]                      ; +0x50, 0x1004d386c\nADD             X0, SP, #0x40+var_28                                   ; +0x54, 0x1004d3870\nFMOV            S0, #0.5                                               ; +0x58, 0x1004d3874\nMOV             X2, SP                                                 ; +0x5c, 0x1004d3878\nMOV             W1, #0x96                                              ; +0x60, 0x1004d387c\nBL              TextAlertPopup__create                                 ; +0x64, 0x1004d3880\nMOV             X1, X0                                                 ; +0x68, 0x1004d3884\nLDR             X8, [X19]                                              ; +0x6c, 0x1004d3888\nLDR             X8, [X8,#0x1D0]                                        ; +0x70, 0x1004d388c\nMOV             X0, X19                                                ; +0x74, 0x1004d3890\nMOV             W2, #0x64 ; 'd'                                        ; +0x78, 0x1004d3894\nBLR             X8                                                     ; +0x7c, 0x1004d3898\nLDRSB           W8, [SP,#0x40+var_29]                                  ; +0x80, 0x1004d389c\nTBZ             W8, #0x1F, loc_1004D38AC                               ; +0x84, 0x1004d38a0\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x88, 0x1004d38a4\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x1004d38a8\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x90, 0x1004d38ac\nTBZ             W8, #0x1F, loc_1004D38BC                               ; +0x94, 0x1004d38b0\nLDR             X0, [SP,#0x40+var_28]; __p                             ; +0x98, 0x1004d38b4\nBL              __ZdlPv; operator delete(void *)                       ; +0x9c, 0x1004d38b8\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa0, 0x1004d38bc\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa4, 0x1004d38c0\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xa8, 0x1004d38c4\nRET                                                                    ; +0xac, 0x1004d38c8", "xrefs": ["sub_1004D3900 @ 0x1004d3904", "<???> @ 0x1009890e0"], "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"}