{"type": "func", "start": 4295171360, "end": 4295171420, "name": "EditorUI::onDeleteSelectedType", "pseudocode": "// \n// EditorUI::onDeleteSelectedType from 0x100031d20 to 0x100031d5c (60 bytes)\n// \n// 1 xrefs:\n// > EditorUI::setupDeleteMenu @ 0x10000ce4f\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditorUI::onDeleteSelectedType(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  GameObject *m_selectedObject; // rax\n  int m_objectID; // ebx\n\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    m_objectID = m_selectedObject->m_objectID;\n    EditorUI::deselectAll(a1);\n    LevelEditorLayer::removeAllObjectsOfType(a1->m_editorLayer, m_objectID);\n    EditorUI::updateButtons(a1);\n  }\n}", "assembly": "; \n; EditorUI::onDeleteSelectedType from 0x100031d20 to 0x100031d5c (60 bytes)\n; \n; 1 xrefs:\n; > EditorUI::setupDeleteMenu @ 0x10000ce4f\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     rax, [rdi+520h]                                                ; +0x0, 0x100031d20\ntest    rax, rax                                                       ; +0x7, 0x100031d27\njz      short locret_100031D5B                                         ; +0xa, 0x100031d2a\npush    rbp                                                            ; +0xc, 0x100031d2c\nmov     rbp, rsp                                                       ; +0xd, 0x100031d2d\npush    r14                                                            ; +0x10, 0x100031d30\npush    rbx                                                            ; +0x12, 0x100031d32\nmov     ebx, [rax+404h]                                                ; +0x13, 0x100031d33\nmov     r14, rdi                                                       ; +0x19, 0x100031d39\ncall    EditorUI__deselectAll                                          ; +0x1c, 0x100031d3c\nmov     rdi, [r14+4E8h]                                                ; +0x21, 0x100031d41\nmov     esi, ebx                                                       ; +0x28, 0x100031d48\ncall    LevelEditorLayer__removeAllObjectsOfType                       ; +0x2a, 0x100031d4a\nmov     rdi, r14                                                       ; +0x2f, 0x100031d4f\npop     rbx                                                            ; +0x32, 0x100031d52\npop     r14                                                            ; +0x33, 0x100031d53\npop     rbp                                                            ; +0x35, 0x100031d55\njmp     EditorUI__updateButtons                                        ; +0x36, 0x100031d56\nretn                                                                   ; +0x3b, 0x100031d5b", "xrefs": ["EditorUI::setupDeleteMenu @ 0x10000ce4f"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}