{"type": "func", "start": 5370384736, "end": 5370384924, "name": "EditorSoundConfigInfoLayer::deleteEditorSoundFailed", "pseudocode": "// \n// EditorSoundConfigInfoLayer::deleteEditorSoundFailed from 0x140199160 to 0x14019921c (188 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14074e0a0\n// > <???> @ 0x1408a00b0\n// > <???> @ 0x1408a00c0\n// > <???> @ 0x140919628\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__int64 __fastcall EditorSoundConfigInfoLayer::deleteEditorSoundFailed(__int64 a1, int a2, int a3)\n{\n  __int64 result; // rax\n  const char *v4; // rdx\n  const char *v5; // rbx\n  size_t v6; // r8\n  __int64 v7; // rax\n  __int128 v8; // [rsp+30h] [rbp-28h] BYREF\n  __int64 v9; // [rsp+40h] [rbp-18h]\n  __int64 v10; // [rsp+48h] [rbp-10h]\n\n  result = *(_QWORD *)(a1 + 64);\n  if ( !result || a2 == *(_DWORD *)(result + 320) )\n  {\n    v9 = 0;\n    v4 = \"Featured or popular sound packs cannot be deleted.\";\n    v10 = 0;\n    if ( a3 != -21 )\n      v4 = \"Could not delete this sound pack from the server.\";\n    v5 = \"Cannot Delete\";\n    if ( a3 != -21 )\n      v5 = \"Delete Failed\";\n    v6 = -1;\n    v8 = 0;\n    do\n      ++v6;\n    while ( v4[v6] );\n    sub_14003D230(&v8, v4, v6);\n    v7 = FLAlertLayer::create_2(0, (int)v5, (__int64)&v8, (int)\"OK\", 0);\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1064LL))(v7);\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::deleteEditorSoundFailed from 0x140199160 to 0x14019921c (188 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14074e0a0\n; > <???> @ 0x1408a00b0\n; > <???> @ 0x1408a00c0\n; > <???> @ 0x140919628\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; \nsub     rsp, 58h                                                       ; +0x0, 0x140199160\nmov     rax, [rcx+40h]                                                 ; +0x4, 0x140199164\ntest    rax, rax                                                       ; +0x8, 0x140199168\njz      short loc_140199179                                            ; +0xb, 0x14019916b\ncmp     edx, [rax+140h]                                                ; +0xd, 0x14019916d\njnz     loc_140199217                                                  ; +0x13, 0x140199173\ncmp     r8d, 0FFFFFFEBh                                                ; +0x19, 0x140199179\nmov     [rsp+58h+var_8], rbx                                           ; +0x1d, 0x14019917d\nlea     rax, aCouldNotDelete; \"Could not delete this sound pack from t\"... ; +0x22, 0x140199182\nmov     [rsp+58h+var_18], 0                                            ; +0x29, 0x140199189\nlea     rdx, aFeaturedOrPopu; \"Featured or popular sound packs cannot \"... ; +0x32, 0x140199192\nmov     [rsp+58h+var_10], 0                                            ; +0x39, 0x140199199\ncmovnz  rdx, rax                                                       ; +0x42, 0x1401991a2\nlea     rbx, aCannotDelete; \"Cannot Delete\"                            ; +0x46, 0x1401991a6\nlea     rax, aDeleteFailed; \"Delete Failed\"                            ; +0x4d, 0x1401991ad\nxorps   xmm0, xmm0                                                     ; +0x54, 0x1401991b4\ncmovnz  rbx, rax                                                       ; +0x57, 0x1401991b7\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x5b, 0x1401991bb\nmovups  [rsp+58h+var_28], xmm0                                         ; +0x62, 0x1401991c2\nnop     word ptr [rax+rax+00000000h]                                   ; +0x67, 0x1401991c7\ninc     r8                                                             ; +0x70, 0x1401991d0\ncmp     byte ptr [rdx+r8], 0                                           ; +0x73, 0x1401991d3\njnz     short loc_1401991D0                                            ; +0x78, 0x1401991d8\nlea     rcx, [rsp+58h+var_28]                                          ; +0x7a, 0x1401991da\ncall    sub_14003D230                                                  ; +0x7f, 0x1401991df\nlea     r9, aOk; \"OK\"                                                  ; +0x84, 0x1401991e4\nmov     [rsp+58h+var_38], 0                                            ; +0x8b, 0x1401991eb\nlea     r8, [rsp+58h+var_28]                                           ; +0x94, 0x1401991f4\nmov     rdx, rbx                                                       ; +0x99, 0x1401991f9\nxor     ecx, ecx                                                       ; +0x9c, 0x1401991fc\ncall    FLAlertLayer__create_2                                         ; +0x9e, 0x1401991fe\nmov     rcx, [rax]                                                     ; +0xa3, 0x140199203\nmov     rdx, [rcx+428h]                                                ; +0xa6, 0x140199206\nmov     rcx, rax                                                       ; +0xad, 0x14019920d\ncall    rdx                                                            ; +0xb0, 0x140199210\nmov     rbx, [rsp+58h+var_8]                                           ; +0xb2, 0x140199212\nadd     rsp, 58h                                                       ; +0xb7, 0x140199217\nretn                                                                   ; +0xbb, 0x14019921b", "xrefs": ["<???> @ 0x14074e0a0", "<???> @ 0x1408a00b0", "<???> @ 0x1408a00c0", "<???> @ 0x140919628"], "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"}