{"type": "func", "start": 5370482272, "end": 5370482465, "name": "EditorUI::onDeleteSelectedType", "pseudocode": "// \n// EditorUI::onDeleteSelectedType from 0x1401b0e60 to 0x1401b0f21 (193 bytes)\n// \n// 5 xrefs:\n// > EditorUI::handleEditorAction @ 0x1401c3b00\n// > EditorUI::setupDeleteMenu @ 0x1401f46c3\n// > <???> @ 0x1408a151c\n// > <???> @ 0x1408a152c\n// > <???> @ 0x140919eec\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:55 +0000\n// \n\nvoid __fastcall EditorUI::onDeleteSelectedType(__int64 a1)\n{\n  __int64 v1; // rbx\n  unsigned int v3; // ebx\n  __int64 v4; // rcx\n  int v5; // edi\n  __int64 v6; // r8\n  int v7; // ecx\n  int v8; // eax\n  int v9; // ecx\n\n  v1 = *(_QWORD *)(a1 + 1568);\n  if ( v1 )\n  {\n    v3 = *(_DWORD *)(v1 + 1036);\n    EditorUI::deselectAll();\n    v4 = *(_QWORD *)(a1 + 1512);\n    v5 = *(_DWORD *)(v4 + 14928) - *(_DWORD *)(v4 + 14932);\n    LevelEditorLayer::removeAllObjectsOfType(v4, v3);\n    *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 15416LL) += v5\n                                                   + *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 14932LL)\n                                                   - *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 14928LL);\n    v6 = *(_QWORD *)(a1 + 1512) + 15408LL;\n    v7 = *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 15504LL);\n    if ( v7 >= 0 )\n    {\n      v8 = *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 15440LL) - v7;\n      v9 = 0;\n      if ( v8 > 1 )\n      {\n        do\n        {\n          if ( v9 >= 7 )\n            break;\n          v8 = (unsigned int)v8 >> 1;\n          ++v9;\n        }\n        while ( (unsigned int)v8 > 1 );\n      }\n      ++*(_DWORD *)(v6 + 4LL * v9 + 64);\n    }\n    *(_DWORD *)(v6 + 96) = *(_DWORD *)(v6 + 32);\n    EditorUI::updateButtons(a1);\n  }\n}", "assembly": "; \n; EditorUI::onDeleteSelectedType from 0x1401b0e60 to 0x1401b0f21 (193 bytes)\n; \n; 5 xrefs:\n; > EditorUI::handleEditorAction @ 0x1401c3b00\n; > EditorUI::setupDeleteMenu @ 0x1401f46c3\n; > <???> @ 0x1408a151c\n; > <???> @ 0x1408a152c\n; > <???> @ 0x140919eec\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:55 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401b0e60\npush    rsi                                                            ; +0x5, 0x1401b0e65\nsub     rsp, 20h                                                       ; +0x6, 0x1401b0e66\nmov     rbx, [rcx+620h]                                                ; +0xa, 0x1401b0e6a\nmov     rsi, rcx                                                       ; +0x11, 0x1401b0e71\ntest    rbx, rbx                                                       ; +0x14, 0x1401b0e74\njz      loc_1401B0F16                                                  ; +0x17, 0x1401b0e77\nmov     ebx, [rbx+40Ch]                                                ; +0x1d, 0x1401b0e7d\nmov     [rsp+28h+arg_0], rdi                                           ; +0x23, 0x1401b0e83\ncall    EditorUI__deselectAll                                          ; +0x28, 0x1401b0e88\nmov     rcx, [rsi+5E8h]                                                ; +0x2d, 0x1401b0e8d\nmov     edx, ebx                                                       ; +0x34, 0x1401b0e94\nmov     edi, [rcx+3A50h]                                               ; +0x36, 0x1401b0e96\nsub     edi, [rcx+3A54h]                                               ; +0x3c, 0x1401b0e9c\ncall    LevelEditorLayer__removeAllObjectsOfType                       ; +0x42, 0x1401b0ea2\nmov     rcx, [rsi+5E8h]                                                ; +0x47, 0x1401b0ea7\nmov     eax, [rcx+3A54h]                                               ; +0x4e, 0x1401b0eae\nsub     eax, [rcx+3A50h]                                               ; +0x54, 0x1401b0eb4\nadd     eax, edi                                                       ; +0x5a, 0x1401b0eba\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x5c, 0x1401b0ebc\nadd     [rcx+3C38h], eax                                               ; +0x61, 0x1401b0ec1\nmov     r8, [rsi+5E8h]                                                 ; +0x67, 0x1401b0ec7\nadd     r8, 3C30h                                                      ; +0x6e, 0x1401b0ece\nmov     ecx, [r8+60h]                                                  ; +0x75, 0x1401b0ed5\ntest    ecx, ecx                                                       ; +0x79, 0x1401b0ed9\njs      short loc_1401B0F06                                            ; +0x7b, 0x1401b0edb\nmov     eax, [r8+20h]                                                  ; +0x7d, 0x1401b0edd\nsub     eax, ecx                                                       ; +0x81, 0x1401b0ee1\nxor     ecx, ecx                                                       ; +0x83, 0x1401b0ee3\ncmp     eax, 1                                                         ; +0x85, 0x1401b0ee5\njle     short loc_1401B0EFE                                            ; +0x88, 0x1401b0ee8\nnop     word ptr [rax+rax+00h]                                         ; +0x8a, 0x1401b0eea\ncmp     ecx, 7                                                         ; +0x90, 0x1401b0ef0\njge     short loc_1401B0EFE                                            ; +0x93, 0x1401b0ef3\nshr     eax, 1                                                         ; +0x95, 0x1401b0ef5\ninc     ecx                                                            ; +0x97, 0x1401b0ef7\ncmp     eax, 1                                                         ; +0x99, 0x1401b0ef9\nja      short loc_1401B0EF0                                            ; +0x9c, 0x1401b0efc\nmovsxd  rax, ecx                                                       ; +0x9e, 0x1401b0efe\ninc     dword ptr [r8+rax*4+40h]                                       ; +0xa1, 0x1401b0f01\nmov     eax, [r8+20h]                                                  ; +0xa6, 0x1401b0f06\nmov     rcx, rsi                                                       ; +0xaa, 0x1401b0f0a\nmov     [r8+60h], eax                                                  ; +0xad, 0x1401b0f0d\ncall    EditorUI__updateButtons                                        ; +0xb1, 0x1401b0f11\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb6, 0x1401b0f16\nadd     rsp, 20h                                                       ; +0xbb, 0x1401b0f1b\npop     rsi                                                            ; +0xbf, 0x1401b0f1f\nretn                                                                   ; +0xc0, 0x1401b0f20", "xrefs": ["EditorUI::handleEditorAction @ 0x1401c3b00", "EditorUI::setupDeleteMenu @ 0x1401f46c3", "<???> @ 0x1408a151c", "<???> @ 0x1408a152c", "<???> @ 0x140919eec"], "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"}