{"type": "func", "start": 5370383840, "end": 5370384164, "name": "EditorSoundConfigInfoLayer::downloadEditorSoundFailed", "pseudocode": "// \n// EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0x140198de0 to 0x140198f24 (324 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14074dfa8\n// > <???> @ 0x140919610\n// \n// This function is hookable on this platform (idp: pc, 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:27:46 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall EditorSoundConfigInfoLayer::downloadEditorSoundFailed(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v4; // rcx\n  __int64 v5; // rax\n  cocos2d::CCObject *v6; // rbx\n  __int128 v7; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v8; // [rsp+60h] [rbp-38h]\n  __int64 v9; // [rsp+68h] [rbp-30h]\n  _BYTE v10[32]; // [rsp+70h] [rbp-28h] BYREF\n\n  result = *(_QWORD *)(a1 + 72);\n  if ( !result || (_DWORD)a2 == *(_DWORD *)(result + 320) )\n  {\n    *(_WORD *)(a1 + 104) = 0;\n    v4 = *(_QWORD *)(a1 + 96);\n    if ( v4 )\n      LoadingCircle::fadeAndRemove(v4);\n    *(_QWORD *)(a1 + 96) = 0;\n    EditorSoundConfigInfoLayer::refreshActionButtons((_QWORD *)(a1 - 1000), a2);\n    v7 = 0;\n    *(_QWORD *)&v7 = sub_14003D460(0x40u);\n    v8 = 52;\n    v9 = 63;\n    strcpy((char *)v7, \"Could not download this sound pack. Try again later.\");\n    v5 = sub_14003F4F0((__int64)v10, (__int64)&v7);\n    v6 = FLAlertLayer::create(0, (int)\"Download Failed\", v5, (__int64)\"OK\", 0, 1132068864, 0, 0, 1065353216);\n    sub_14003D310((__int64)&v7);\n    return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v6 + 1064LL))(v6);\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0x140198de0 to 0x140198f24 (324 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14074dfa8\n; > <???> @ 0x140919610\n; \n; This function is hookable on this platform (idp: pc, 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:27:46 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140198de0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140198de5\npush    rdi                                                            ; +0xa, 0x140198dea\nsub     rsp, 90h                                                       ; +0xb, 0x140198deb\nmov     rbx, rcx                                                       ; +0x12, 0x140198df2\nmov     rax, [rcx+48h]                                                 ; +0x15, 0x140198df5\ntest    rax, rax                                                       ; +0x19, 0x140198df9\njz      short loc_140198E0A                                            ; +0x1c, 0x140198dfc\ncmp     edx, [rax+140h]                                                ; +0x1e, 0x140198dfe\njnz     loc_140198F0F                                                  ; +0x24, 0x140198e04\nmov     word ptr [rcx+68h], 0                                          ; +0x2a, 0x140198e0a\nmov     rcx, [rcx+60h]                                                 ; +0x30, 0x140198e10\ntest    rcx, rcx                                                       ; +0x34, 0x140198e14\njz      short loc_140198E1E                                            ; +0x37, 0x140198e17\ncall    LoadingCircle__fadeAndRemove                                   ; +0x39, 0x140198e19\nxor     esi, esi                                                       ; +0x3e, 0x140198e1e\nmov     [rbx+60h], rsi                                                 ; +0x40, 0x140198e20\nlea     rcx, [rbx-3E8h]                                                ; +0x44, 0x140198e24\ncall    EditorSoundConfigInfoLayer__refreshActionButtons               ; +0x4b, 0x140198e2b\nxorps   xmm0, xmm0                                                     ; +0x50, 0x140198e30\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x53, 0x140198e33\nmov     [rsp+98h+var_38], rsi                                          ; +0x58, 0x140198e38\nmov     [rsp+98h+var_30], rsi                                          ; +0x5d, 0x140198e3d\nmov     ecx, 40h ; '@'                                                 ; +0x62, 0x140198e42\ncall    sub_14003D460                                                  ; +0x67, 0x140198e47\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x6c, 0x140198e4c\nmov     [rsp+98h+var_38], 34h ; '4'                                    ; +0x71, 0x140198e51\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0x7a, 0x140198e5a\nmovups  xmm0, cs:xmmword_14074D618                                     ; +0x83, 0x140198e63\nmovups  xmmword ptr [rax], xmm0                                        ; +0x8a, 0x140198e6a\nmovups  xmm1, cs:xmmword_14074D628                                     ; +0x8d, 0x140198e6d\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x94, 0x140198e74\nmovups  xmm0, cs:xmmword_14074D638                                     ; +0x98, 0x140198e78\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x9f, 0x140198e7f\nmov     ecx, cs:dword_14074D648                                        ; +0xa3, 0x140198e83\nmov     [rax+30h], ecx                                                 ; +0xa9, 0x140198e89\nmov     [rax+34h], sil                                                 ; +0xac, 0x140198e8c\nlea     rax, [rsp+98h+var_48]                                          ; +0xb0, 0x140198e90\nmov     [rsp+98h+arg_0], rax                                           ; +0xb5, 0x140198e95\nlea     rdx, [rsp+98h+var_48]                                          ; +0xbd, 0x140198e9d\nlea     rcx, [rsp+98h+var_28]                                          ; +0xc2, 0x140198ea2\ncall    sub_14003F4F0                                                  ; +0xc7, 0x140198ea7\nmovss   xmm0, cs:flt_140835080                                         ; +0xcc, 0x140198eac\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xd4, 0x140198eb4\nxorps   xmm1, xmm1                                                     ; +0xda, 0x140198eba\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xdd, 0x140198ebd\nmov     [rsp+98h+var_68], sil                                          ; +0xe3, 0x140198ec3\nmovss   xmm0, cs:dword_14083595C                                       ; +0xe8, 0x140198ec8\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xf0, 0x140198ed0\nmov     [rsp+98h+var_78], rsi                                          ; +0xf6, 0x140198ed6\nlea     r9, aOk; \"OK\"                                                  ; +0xfb, 0x140198edb\nmov     r8, rax                                                        ; +0x102, 0x140198ee2\nlea     rdx, aDownloadFailed_1; \"Download Failed\"                      ; +0x105, 0x140198ee5\nxor     ecx, ecx                                                       ; +0x10c, 0x140198eec\ncall    FLAlertLayer__create                                           ; +0x10e, 0x140198eee\nmov     rbx, rax                                                       ; +0x113, 0x140198ef3\nlea     rcx, [rsp+98h+var_48]                                          ; +0x116, 0x140198ef6\ncall    sub_14003D310                                                  ; +0x11b, 0x140198efb\nmov     rcx, [rbx]                                                     ; +0x120, 0x140198f00\nmov     rdx, [rcx+428h]                                                ; +0x123, 0x140198f03\nmov     rcx, rbx                                                       ; +0x12a, 0x140198f0a\ncall    rdx                                                            ; +0x12d, 0x140198f0d\nlea     r11, [rsp+98h+var_8]                                           ; +0x12f, 0x140198f0f\nmov     rbx, [r11+18h]                                                 ; +0x137, 0x140198f17\nmov     rsi, [r11+20h]                                                 ; +0x13b, 0x140198f1b\nmov     rsp, r11                                                       ; +0x13f, 0x140198f1f\npop     rdi                                                            ; +0x142, 0x140198f22\nretn                                                                   ; +0x143, 0x140198f23", "xrefs": ["<???> @ 0x14074dfa8", "<???> @ 0x140919610"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}