{"type": "func", "start": 4299624472, "end": 4299624900, "name": "EditorUI::onDeleteSelected", "pseudocode": "// \n// EditorUI::onDeleteSelected from 0x100471018 to 0x1004711c4 (428 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x1001631c0\n// > EditorUI::setupDeleteMenu @ 0x100186eb0\n// > EditorUI::init @ 0x10046f1b0\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:38 +0000\n// \n\n__int64 __fastcall EditorUI::onDeleteSelected(__int64 *a1)\n{\n  __n128 v2; // q0\n  __int64 v3; // x0\n  _QWORD *v4; // x20\n  unsigned int v5; // w21\n  __int64 v6; // x0\n  char v7; // w22\n  unsigned int v8; // w21\n  __int64 v9; // x1\n  void *v10; // x0\n  void *v11; // x0\n\n  if ( (unsigned int)sub_1002E757C(a1[112]) )\n  {\n    v3 = EditorSFXManager::sharedState(v2);\n    EditorSFXManager::playAction_1(v3, 102);\n    EditorBuildStats::noteAction(a1[180] + 14704);\n    v4 = sub_1002E736C();\n    if ( (unsigned int)sub_1002E757C(a1[112]) )\n    {\n      v5 = 0;\n      do\n      {\n        v6 = sub_1002E75A0(a1[112], v5);\n        if ( (unsigned int)sub_1004763E0(v6, v6) )\n          sub_1002E74E0((__int64)v4);\n        ++v5;\n      }\n      while ( v5 < (unsigned int)sub_1002E757C(a1[112]) );\n    }\n    if ( (unsigned int)sub_1002E757C((__int64)v4) )\n    {\n      v7 = 0;\n      v8 = 0;\n      do\n      {\n        v9 = sub_1002E75A0((__int64)v4, v8);\n        v7 |= *(_DWORD *)(v9 + 1028) == 747;\n        EditorUI::deleteObject(a1, v9, 1);\n        ++v8;\n      }\n      while ( v8 < (unsigned int)sub_1002E757C((__int64)v4) );\n      *(_DWORD *)(a1[180] + 14712) += sub_1002E757C((__int64)v4);\n      v10 = UndoObject::createWithArray((__int64)v4, 4);\n      LevelEditorLayer::addToUndoList(a1[180], (__int64)v10, 0);\n      if ( (v7 & 1) != 0 )\n        v2.n128_f64[0] = sub_1001A668C((__int64)a1);\n    }\n    else\n    {\n      *(_DWORD *)(a1[180] + 14712) += sub_1002E757C((__int64)v4);\n      v11 = UndoObject::createWithArray((__int64)v4, 4);\n      LevelEditorLayer::addToUndoList(a1[180], (__int64)v11, 0);\n    }\n  }\n  else if ( a1[187] && (unsigned int)((__int64 (*)(void))sub_1004763E0)() )\n  {\n    EditorBuildStats::noteAction(a1[180] + 14704);\n    EditorUI::deleteObject(a1, a1[187], 0);\n  }\n  EditorUI::updateSpecialUIElements(a1, v2);\n  return EditorUI::updateButtons(a1);\n}", "assembly": "; \n; EditorUI::onDeleteSelected from 0x100471018 to 0x1004711c4 (428 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x1001631c0\n; > EditorUI::setupDeleteMenu @ 0x100186eb0\n; > EditorUI::init @ 0x10046f1b0\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:38 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100471018\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10047101c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100471020\nADD             X29, SP, #0x20                                         ; +0xc, 0x100471024\nMOV             X19, X0                                                ; +0x10, 0x100471028\nLDR             X0, [X0,#0x380]                                        ; +0x14, 0x10047102c\nBL              sub_1002E757C                                          ; +0x18, 0x100471030\nCBZ             W0, loc_100471140                                      ; +0x1c, 0x100471034\nBL              EditorSFXManager__sharedState                          ; +0x20, 0x100471038\nMOV             W1, #0x66 ; 'f'                                        ; +0x24, 0x10047103c\nBL              EditorSFXManager__playAction_1                         ; +0x28, 0x100471040\nLDR             X8, [X19,#0x5A0]                                       ; +0x2c, 0x100471044\nMOV             W9, #0x3970                                            ; +0x30, 0x100471048\nADD             X0, X8, X9                                             ; +0x34, 0x10047104c\nBL              EditorBuildStats__noteAction                           ; +0x38, 0x100471050\nBL              sub_1002E736C                                          ; +0x3c, 0x100471054\nMOV             X20, X0                                                ; +0x40, 0x100471058\nLDR             X0, [X19,#0x380]                                       ; +0x44, 0x10047105c\nBL              sub_1002E757C                                          ; +0x48, 0x100471060\nCBZ             W0, loc_1004710A8                                      ; +0x4c, 0x100471064\nMOV             W21, #0                                                ; +0x50, 0x100471068\nLDR             X0, [X19,#0x380]                                       ; +0x54, 0x10047106c\nMOV             X1, X21                                                ; +0x58, 0x100471070\nBL              sub_1002E75A0                                          ; +0x5c, 0x100471074\nMOV             X22, X0                                                ; +0x60, 0x100471078\nMOV             X1, X0                                                 ; +0x64, 0x10047107c\nBL              sub_1004763E0                                          ; +0x68, 0x100471080\nCBZ             W0, loc_100471094                                      ; +0x6c, 0x100471084\nMOV             X0, X20                                                ; +0x70, 0x100471088\nMOV             X1, X22                                                ; +0x74, 0x10047108c\nBL              sub_1002E74E0                                          ; +0x78, 0x100471090\nADD             W21, W21, #1                                           ; +0x7c, 0x100471094\nLDR             X0, [X19,#0x380]                                       ; +0x80, 0x100471098\nBL              sub_1002E757C                                          ; +0x84, 0x10047109c\nCMP             W21, W0                                                ; +0x88, 0x1004710a0\nB.CC            loc_10047106C                                          ; +0x8c, 0x1004710a4\nMOV             X0, X20                                                ; +0x90, 0x1004710a8\nBL              sub_1002E757C                                          ; +0x94, 0x1004710ac\nCBZ             W0, loc_100471174                                      ; +0x98, 0x1004710b0\nMOV             W22, #0                                                ; +0x9c, 0x1004710b4\nMOV             W21, #0                                                ; +0xa0, 0x1004710b8\nMOV             X0, X20                                                ; +0xa4, 0x1004710bc\nMOV             X1, X21                                                ; +0xa8, 0x1004710c0\nBL              sub_1002E75A0                                          ; +0xac, 0x1004710c4\nMOV             X1, X0                                                 ; +0xb0, 0x1004710c8\nLDR             W8, [X0,#0x404]                                        ; +0xb4, 0x1004710cc\nCMP             W8, #0x2EB                                             ; +0xb8, 0x1004710d0\nCSET            W8, EQ                                                 ; +0xbc, 0x1004710d4\nORR             W22, W8, W22                                           ; +0xc0, 0x1004710d8\nMOV             X0, X19                                                ; +0xc4, 0x1004710dc\nMOV             W2, #1                                                 ; +0xc8, 0x1004710e0\nBL              EditorUI__deleteObject                                 ; +0xcc, 0x1004710e4\nADD             W21, W21, #1                                           ; +0xd0, 0x1004710e8\nMOV             X0, X20                                                ; +0xd4, 0x1004710ec\nBL              sub_1002E757C                                          ; +0xd8, 0x1004710f0\nCMP             W21, W0                                                ; +0xdc, 0x1004710f4\nB.CC            loc_1004710BC                                          ; +0xe0, 0x1004710f8\nMOV             X0, X20                                                ; +0xe4, 0x1004710fc\nBL              sub_1002E757C                                          ; +0xe8, 0x100471100\nLDR             X8, [X19,#0x5A0]                                       ; +0xec, 0x100471104\nLDR             W9, [X8,#0x3978]                                       ; +0xf0, 0x100471108\nADD             W9, W9, W0                                             ; +0xf4, 0x10047110c\nSTR             W9, [X8,#0x3978]                                       ; +0xf8, 0x100471110\nMOV             X0, X20                                                ; +0xfc, 0x100471114\nMOV             W1, #4                                                 ; +0x100, 0x100471118\nBL              UndoObject__createWithArray                            ; +0x104, 0x10047111c\nMOV             X1, X0                                                 ; +0x108, 0x100471120\nLDR             X0, [X19,#0x5A0]                                       ; +0x10c, 0x100471124\nMOV             W2, #0                                                 ; +0x110, 0x100471128\nBL              LevelEditorLayer__addToUndoList                        ; +0x114, 0x10047112c\nTBZ             W22, #0, loc_1004711A8                                 ; +0x118, 0x100471130\nMOV             X0, X19                                                ; +0x11c, 0x100471134\nBL              sub_1001A668C                                          ; +0x120, 0x100471138\nB               loc_1004711A8                                          ; +0x124, 0x10047113c\nLDR             X1, [X19,#0x5D8]                                       ; +0x128, 0x100471140\nCBZ             X1, loc_1004711A8                                      ; +0x12c, 0x100471144\nBL              sub_1004763E0                                          ; +0x130, 0x100471148\nCBZ             W0, loc_1004711A8                                      ; +0x134, 0x10047114c\nLDR             X8, [X19,#0x5A0]                                       ; +0x138, 0x100471150\nMOV             W9, #0x3970                                            ; +0x13c, 0x100471154\nADD             X0, X8, X9                                             ; +0x140, 0x100471158\nBL              EditorBuildStats__noteAction                           ; +0x144, 0x10047115c\nLDR             X1, [X19,#0x5D8]                                       ; +0x148, 0x100471160\nMOV             X0, X19                                                ; +0x14c, 0x100471164\nMOV             W2, #0                                                 ; +0x150, 0x100471168\nBL              EditorUI__deleteObject                                 ; +0x154, 0x10047116c\nB               loc_1004711A8                                          ; +0x158, 0x100471170\nMOV             X0, X20                                                ; +0x15c, 0x100471174\nBL              sub_1002E757C                                          ; +0x160, 0x100471178\nLDR             X8, [X19,#0x5A0]                                       ; +0x164, 0x10047117c\nLDR             W9, [X8,#0x3978]                                       ; +0x168, 0x100471180\nADD             W9, W9, W0                                             ; +0x16c, 0x100471184\nSTR             W9, [X8,#0x3978]                                       ; +0x170, 0x100471188\nMOV             X0, X20                                                ; +0x174, 0x10047118c\nMOV             W1, #4                                                 ; +0x178, 0x100471190\nBL              UndoObject__createWithArray                            ; +0x17c, 0x100471194\nMOV             X1, X0                                                 ; +0x180, 0x100471198\nLDR             X0, [X19,#0x5A0]                                       ; +0x184, 0x10047119c\nMOV             W2, #0                                                 ; +0x188, 0x1004711a0\nBL              LevelEditorLayer__addToUndoList                        ; +0x18c, 0x1004711a4\nMOV             X0, X19                                                ; +0x190, 0x1004711a8\nBL              EditorUI__updateSpecialUIElements                      ; +0x194, 0x1004711ac\nMOV             X0, X19                                                ; +0x198, 0x1004711b0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x19c, 0x1004711b4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x1a0, 0x1004711b8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x1a4, 0x1004711bc\nB               EditorUI__updateButtons                                ; +0x1a8, 0x1004711c0", "xrefs": ["EditorUI::handleEditorAction @ 0x1001631c0", "EditorUI::setupDeleteMenu @ 0x100186eb0", "EditorUI::init @ 0x10046f1b0"], "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"}