{"type": "func", "start": 8161444, "end": 8161584, "name": "EditorUI::onDeleteSelectedType", "pseudocode": "// \n// EditorUI::onDeleteSelectedType from 0x7c88a4 to 0x7c8930 (140 bytes)\n// \n// 4 xrefs:\n// > EditorUI::handleEditorAction @ 0xbd7734\n// > <???> @ 0xe7868\n// > EditorUI::setupDeleteMenu @ 0xbdeb38\n// > <???> @ 0x1546fb8\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 12:54:09 +0000\n// \n\nEditorUI *__fastcall EditorUI::onDeleteSelectedType(EditorUI *this, cocos2d::CCObject *a2)\n{\n  EditorUI *v2; // x19\n  __int64 v3; // x1\n  cocos2d::CCArray *v4; // x0\n  int v5; // w20\n  int v6; // [xsp+28h] [xbp+28h]\n\n  v2 = this;\n  v3 = *((_QWORD *)this + 187);\n  if ( v3 )\n  {\n    v6 = *(_DWORD *)(v3 + 1028);\n    EditorUI::deselectAll(this);\n    v4 = *((cocos2d::CCArray **)v2 + 180);\n    v5 = *((_DWORD *)v4 + 3568) - *((_DWORD *)v4 + 3569);\n    LevelEditorLayer::removeAllObjectsOfType(v4, v6);\n    *(_DWORD *)(*((_QWORD *)v2 + 180) + 14712LL) += v5\n                                                  - (*(_DWORD *)(*((_QWORD *)v2 + 180) + 14272LL)\n                                                   - *(_DWORD *)(*((_QWORD *)v2 + 180) + 14276LL));\n    EditorBuildStats::noteAction((EditorBuildStats *)(*((_QWORD *)v2 + 180) + 14704LL));\n    return (EditorUI *)EditorUI::updateButtons(v2);\n  }\n  return this;\n}", "assembly": "; \n; EditorUI::onDeleteSelectedType from 0x7c88a4 to 0x7c8930 (140 bytes)\n; \n; 4 xrefs:\n; > EditorUI::handleEditorAction @ 0xbd7734\n; > <???> @ 0xe7868\n; > EditorUI::setupDeleteMenu @ 0xbdeb38\n; > <???> @ 0x1546fb8\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 12:54:09 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x7c88a4\nMOV             X29, SP                                                ; +0x4, 0x7c88a8\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x7c88ac\nMOV             X19, X0                                                ; +0xc, 0x7c88b0\nLDR             X1, [X0,#0x5D8]                                        ; +0x10, 0x7c88b4\nCBZ             X1, loc_7C8924                                         ; +0x14, 0x7c88b8\nLDR             W1, [X1,#0x404]                                        ; +0x18, 0x7c88bc\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x1c, 0x7c88c0\nBL              _ZN8EditorUI11deselectAllEv; EditorUI::deselectAll(void) ; +0x20, 0x7c88c4\nLDR             X3, [X19,#0x5A0]                                       ; +0x24, 0x7c88c8\nLDR             X1, [X29,#0x30+var_8]; int                             ; +0x28, 0x7c88cc\nMOV             X0, X3; this                                           ; +0x2c, 0x7c88d0\nLDR             W2, [X3,#0x37C0]                                       ; +0x30, 0x7c88d4\nLDR             W20, [X3,#0x37C4]                                      ; +0x34, 0x7c88d8\nSUB             W20, W2, W20                                           ; +0x38, 0x7c88dc\nBL              _ZN16LevelEditorLayer22removeAllObjectsOfTypeEi; LevelEditorLayer::removeAllObjectsOfType(int) ; +0x3c, 0x7c88e0\nLDR             X0, [X19,#0x5A0]                                       ; +0x40, 0x7c88e4\nLDR             W3, [X0,#0x37C4]                                       ; +0x44, 0x7c88e8\nLDR             W1, [X0,#0x37C0]                                       ; +0x48, 0x7c88ec\nLDR             W2, [X0,#0x3978]                                       ; +0x4c, 0x7c88f0\nSUB             W1, W1, W3                                             ; +0x50, 0x7c88f4\nSUB             W20, W20, W1                                           ; +0x54, 0x7c88f8\nADD             W20, W2, W20                                           ; +0x58, 0x7c88fc\nSTR             W20, [X0,#0x3978]                                      ; +0x5c, 0x7c8900\nLDR             X0, [X19,#0x5A0]                                       ; +0x60, 0x7c8904\nADD             X0, X0, #3,LSL#12                                      ; +0x64, 0x7c8908\nADD             X0, X0, #0x970; this                                   ; +0x68, 0x7c890c\nBL              _ZN16EditorBuildStats10noteActionEv; EditorBuildStats::noteAction(void) ; +0x6c, 0x7c8910\nMOV             X0, X19; this                                          ; +0x70, 0x7c8914\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x74, 0x7c8918\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x78, 0x7c891c\nB               _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0x7c, 0x7c8920\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x80, 0x7c8924\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x84, 0x7c8928\nRET                                                                    ; +0x88, 0x7c892c", "xrefs": ["EditorUI::handleEditorAction @ 0xbd7734", "<???> @ 0xe7868", "EditorUI::setupDeleteMenu @ 0xbdeb38", "<???> @ 0x1546fb8"], "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"}