{"type": "func", "start": 4295032736, "end": 4295032861, "name": "EditorUI::onDeleteSelectedType", "pseudocode": "// \n// EditorUI::onDeleteSelectedType from 0x10000ffa0 to 0x10001001d (125 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060cb9a\n// > EditorUI::setupDeleteMenu @ 0x10063b694\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 12:18:51 +0000\n// \n\n__int64 __fastcall EditorUI::onDeleteSelectedType(__int64 a1)\n{\n  __int64 result; // rax\n  unsigned int v2; // ebx\n  __int64 v4; // rdi\n  int v5; // r15d\n  int v6; // r12d\n  _DWORD *v7; // rdi\n\n  result = *(_QWORD *)(a1 + 1496);\n  if ( result )\n  {\n    v2 = *(_DWORD *)(result + 1028);\n    EditorUI::deselectAll(a1);\n    v4 = *(_QWORD *)(a1 + 1440);\n    v5 = *(_DWORD *)(v4 + 14272);\n    v6 = *(_DWORD *)(v4 + 14276);\n    LevelEditorLayer::removeAllObjectsOfType(v4, v2);\n    v7 = *(_DWORD **)(a1 + 1440);\n    v7[3678] += v7[3569] + v5 - (v7[3568] + v6);\n    EditorBuildStats::noteAction(v7 + 3676);\n    return EditorUI::updateButtons(a1);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onDeleteSelectedType from 0x10000ffa0 to 0x10001001d (125 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060cb9a\n; > EditorUI::setupDeleteMenu @ 0x10063b694\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 12:18:51 +0000\n; \nmov     rax, [rdi+5D8h]                                                ; +0x0, 0x10000ffa0\ntest    rax, rax                                                       ; +0x7, 0x10000ffa7\njz      short locret_10001001C                                         ; +0xa, 0x10000ffaa\npush    rbp                                                            ; +0xc, 0x10000ffac\nmov     rbp, rsp                                                       ; +0xd, 0x10000ffad\npush    r15                                                            ; +0x10, 0x10000ffb0\npush    r14                                                            ; +0x12, 0x10000ffb2\npush    r12                                                            ; +0x14, 0x10000ffb4\npush    rbx                                                            ; +0x16, 0x10000ffb6\nmov     ebx, [rax+404h]                                                ; +0x17, 0x10000ffb7\nmov     r14, rdi                                                       ; +0x1d, 0x10000ffbd\ncall    EditorUI__deselectAll                                          ; +0x20, 0x10000ffc0\nmov     rdi, [r14+5A0h]                                                ; +0x25, 0x10000ffc5\nmov     r15d, [rdi+37C0h]                                              ; +0x2c, 0x10000ffcc\nmov     r12d, [rdi+37C4h]                                              ; +0x33, 0x10000ffd3\nmov     esi, ebx                                                       ; +0x3a, 0x10000ffda\ncall    LevelEditorLayer__removeAllObjectsOfType                       ; +0x3c, 0x10000ffdc\nmov     rdi, [r14+5A0h]                                                ; +0x41, 0x10000ffe1\nadd     r12d, [rdi+37C0h]                                              ; +0x48, 0x10000ffe8\nsub     r15d, r12d                                                     ; +0x4f, 0x10000ffef\nadd     r15d, [rdi+37C4h]                                              ; +0x52, 0x10000fff2\nadd     [rdi+3978h], r15d                                              ; +0x59, 0x10000fff9\nadd     rdi, 3970h                                                     ; +0x60, 0x100010000\ncall    EditorBuildStats__noteAction                                   ; +0x67, 0x100010007\nmov     rdi, r14                                                       ; +0x6c, 0x10001000c\npop     rbx                                                            ; +0x6f, 0x10001000f\npop     r12                                                            ; +0x70, 0x100010010\npop     r14                                                            ; +0x72, 0x100010012\npop     r15                                                            ; +0x74, 0x100010014\npop     rbp                                                            ; +0x76, 0x100010016\njmp     EditorUI__updateButtons                                        ; +0x77, 0x100010017\nretn                                                                   ; +0x7c, 0x10001001c", "xrefs": ["EditorUI::handleEditorAction @ 0x10060cb9a", "EditorUI::setupDeleteMenu @ 0x10063b694"], "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"}