{"type": "func", "start": 4300031228, "end": 4300031388, "name": "EditorSoundConfigInfoLayer::downloadEditorSoundFailed", "pseudocode": "// \n// EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0x1004d44fc to 0x1004d459c (160 bytes)\n// \n// 2 xrefs:\n// > sub_1004D45B8 @ 0x1004d45bc\n// > <???> @ 0x100989090\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::downloadEditorSoundFailed(__int64 a1, int a2)\n{\n  __int64 v3; // x8\n  __int64 v4; // x0\n  __int64 v5; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v7; // [xsp+1Fh] [xbp-11h]\n\n  v3 = *(_QWORD *)(a1 + 1088);\n  if ( !v3 || *(_DWORD *)(v3 + 316) == a2 )\n  {\n    *(_WORD *)(a1 + 1120) = 0;\n    v4 = *(_QWORD *)(a1 + 1112);\n    if ( v4 )\n      LoadingCircle::fadeAndRemove(v4);\n    *(_QWORD *)(a1 + 1112) = 0;\n    sub_1004D2A34(a1);\n    sub_100009900(__p, \"Could not download this sound pack. Try again later.\");\n    v5 = sub_10034A8F8(0, (__int64)\"Download Failed\", (__int64)__p, (__int64)\"OK\", 0);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);\n    if ( v7 < 0 )\n      operator delete(__p[0]);\n  }\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0x1004d44fc to 0x1004d459c (160 bytes)\n; \n; 2 xrefs:\n; > sub_1004D45B8 @ 0x1004d45bc\n; > <???> @ 0x100989090\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, #0x40                                          ; +0x0, 0x1004d44fc\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1004d4500\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1004d4504\nADD             X29, SP, #0x30                                         ; +0xc, 0x1004d4508\nMOV             X19, X0                                                ; +0x10, 0x1004d450c\nLDR             X8, [X0,#0x440]                                        ; +0x14, 0x1004d4510\nCBZ             X8, loc_1004D4524                                      ; +0x18, 0x1004d4514\nLDR             W8, [X8,#0x13C]                                        ; +0x1c, 0x1004d4518\nCMP             W8, W1                                                 ; +0x20, 0x1004d451c\nB.NE            loc_1004D458C                                          ; +0x24, 0x1004d4520\nSTRH            WZR, [X19,#0x460]                                      ; +0x28, 0x1004d4524\nLDR             X0, [X19,#0x458]                                       ; +0x2c, 0x1004d4528\nCBZ             X0, loc_1004D4534                                      ; +0x30, 0x1004d452c\nBL              LoadingCircle__fadeAndRemove                           ; +0x34, 0x1004d4530\nSTR             XZR, [X19,#0x458]                                      ; +0x38, 0x1004d4534\nMOV             X0, X19                                                ; +0x3c, 0x1004d4538\nBL              sub_1004D2A34                                          ; +0x40, 0x1004d453c\nADRL            X1, aCouldNotDownlo; \"Could not download this sound pack. Try\"... ; +0x44, 0x1004d4540\nADD             X0, SP, #0x30+__p; int                                 ; +0x4c, 0x1004d4548\nBL              sub_100009900                                          ; +0x50, 0x1004d454c\nADRL            X1, aDownloadFailed_3; \"Download Failed\"               ; +0x54, 0x1004d4550\nADRL            X3, aOk; \"OK\"                                          ; +0x5c, 0x1004d4558\nADD             X2, SP, #0x30+__p                                      ; +0x64, 0x1004d4560\nMOV             X0, #0                                                 ; +0x68, 0x1004d4564\nMOV             X4, #0                                                 ; +0x6c, 0x1004d4568\nBL              sub_10034A8F8                                          ; +0x70, 0x1004d456c\nLDR             X8, [X0]                                               ; +0x74, 0x1004d4570\nLDR             X8, [X8,#0x520]                                        ; +0x78, 0x1004d4574\nBLR             X8                                                     ; +0x7c, 0x1004d4578\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x80, 0x1004d457c\nTBZ             W8, #0x1F, loc_1004D458C                               ; +0x84, 0x1004d4580\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x88, 0x1004d4584\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x1004d4588\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x90, 0x1004d458c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x94, 0x1004d4590\nADD             SP, SP, #0x40 ; '@'                                    ; +0x98, 0x1004d4594\nRET                                                                    ; +0x9c, 0x1004d4598", "xrefs": ["sub_1004D45B8 @ 0x1004d45bc", "<???> @ 0x100989090"], "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"}