{"type": "func", "start": 4299646312, "end": 4299646440, "name": "EditorUI::onDeleteSelectedType", "pseudocode": "// \n// EditorUI::onDeleteSelectedType from 0x100476568 to 0x1004765e8 (128 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x100163548\n// > EditorUI::setupDeleteMenu @ 0x100187150\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:05:41 +0000\n// \n\n__int64 __fastcall EditorUI::onDeleteSelectedType(__int64 result, double a2)\n{\n  __int64 v2; // x8\n  __int64 v3; // x19\n  int v4; // w20\n  __int64 v5; // x0\n  int v6; // w21\n  int v7; // w22\n  _DWORD *v8; // x8\n  __n128 v9; // q0\n\n  v2 = *(_QWORD *)(result + 1496);\n  if ( v2 )\n  {\n    v3 = result;\n    v4 = *(_DWORD *)(v2 + 1028);\n    EditorUI::deselectAll(result, a2);\n    v5 = *(_QWORD *)(v3 + 1440);\n    v6 = *(_DWORD *)(v5 + 14272);\n    v7 = *(_DWORD *)(v5 + 14276);\n    LevelEditorLayer::removeAllObjectsOfType(v5, v4);\n    v8 = *(_DWORD **)(v3 + 1440);\n    v8[3678] += v6 - (v7 + v8[3568]) + v8[3569];\n    EditorBuildStats::noteAction((__int64)(v8 + 3676));\n    return EditorUI::updateButtons(v3, v9);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onDeleteSelectedType from 0x100476568 to 0x1004765e8 (128 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x100163548\n; > EditorUI::setupDeleteMenu @ 0x100187150\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:05:41 +0000\n; \nLDR             X8, [X0,#0x5D8]                                        ; +0x0, 0x100476568\nCBZ             X8, locret_1004765E4                                   ; +0x4, 0x10047656c\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x8, 0x100476570\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0xc, 0x100476574\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x10, 0x100476578\nADD             X29, SP, #0x20                                         ; +0x14, 0x10047657c\nMOV             X19, X0                                                ; +0x18, 0x100476580\nLDR             W20, [X8,#0x404]                                       ; +0x1c, 0x100476584\nBL              EditorUI__deselectAll                                  ; +0x20, 0x100476588\nLDR             X0, [X19,#0x5A0]                                       ; +0x24, 0x10047658c\nLDR             W21, [X0,#0x37C0]                                      ; +0x28, 0x100476590\nLDR             W22, [X0,#0x37C4]                                      ; +0x2c, 0x100476594\nMOV             X1, X20                                                ; +0x30, 0x100476598\nBL              LevelEditorLayer__removeAllObjectsOfType               ; +0x34, 0x10047659c\nLDR             X8, [X19,#0x5A0]                                       ; +0x38, 0x1004765a0\nLDR             W9, [X8,#0x37C0]                                       ; +0x3c, 0x1004765a4\nLDR             W10, [X8,#0x37C4]                                      ; +0x40, 0x1004765a8\nLDR             W11, [X8,#0x3978]                                      ; +0x44, 0x1004765ac\nADD             W9, W22, W9                                            ; +0x48, 0x1004765b0\nSUB             W9, W21, W9                                            ; +0x4c, 0x1004765b4\nADD             W10, W10, W11                                          ; +0x50, 0x1004765b8\nADD             W9, W9, W10                                            ; +0x54, 0x1004765bc\nSTR             W9, [X8,#0x3978]                                       ; +0x58, 0x1004765c0\nMOV             W9, #0x3970                                            ; +0x5c, 0x1004765c4\nADD             X0, X8, X9                                             ; +0x60, 0x1004765c8\nBL              EditorBuildStats__noteAction                           ; +0x64, 0x1004765cc\nMOV             X0, X19                                                ; +0x68, 0x1004765d0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x6c, 0x1004765d4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x70, 0x1004765d8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x74, 0x1004765dc\nB               EditorUI__updateButtons                                ; +0x78, 0x1004765e0\nRET                                                                    ; +0x7c, 0x1004765e4", "xrefs": ["EditorUI::handleEditorAction @ 0x100163548", "EditorUI::setupDeleteMenu @ 0x100187150"], "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"}