{"type": "func", "start": 4299070540, "end": 4299070672, "name": "EditorUI::deselectObject", "pseudocode": "// \n// EditorUI::deselectObject from 0x1003e9c4c to 0x1003e9cd0 (132 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::handleAction @ 0x10035bee0\n// > LevelEditorLayer::handleAction @ 0x10035bf40\n// > EditorUI::deselectTargetPortals @ 0x1003e9b94\n// > EditorUI::deleteObject @ 0x1003e9c10\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::deselectObject(EditorUI *a1, GameObject *a2)\n{\n  GameObject *m_selectedObject; // x8\n\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject && m_selectedObject->m_uniqueID == a2->m_uniqueID )\n  {\n    EditorUI::deselectObject_1(a1);\n    a1->m_canActivateControls = 1;\n  }\n  else\n  {\n    GameObject::deselectObject(a2);\n    if ( (unsigned int)sub_10024A420((__int64)a1->m_selectedObjects, (__int64)a2) )\n    {\n      a1->m_canActivateControls = 1;\n      sub_10024A444((__int64)a1->m_selectedObjects);\n    }\n  }\n}", "assembly": "; \n; EditorUI::deselectObject from 0x1003e9c4c to 0x1003e9cd0 (132 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::handleAction @ 0x10035bee0\n; > LevelEditorLayer::handleAction @ 0x10035bf40\n; > EditorUI::deselectTargetPortals @ 0x1003e9b94\n; > EditorUI::deleteObject @ 0x1003e9c10\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003e9c4c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003e9c50\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003e9c54\nMOV             X20, X1                                                ; +0xc, 0x1003e9c58\nMOV             X19, X0                                                ; +0x10, 0x1003e9c5c\nLDR             X8, [X0,#0x520]                                        ; +0x14, 0x1003e9c60\nCBZ             X8, loc_1003E9C8C                                      ; +0x18, 0x1003e9c64\nLDR             W8, [X8,#0x394]                                        ; +0x1c, 0x1003e9c68\nLDR             W9, [X20,#0x394]                                       ; +0x20, 0x1003e9c6c\nCMP             W8, W9                                                 ; +0x24, 0x1003e9c70\nB.NE            loc_1003E9C8C                                          ; +0x28, 0x1003e9c74\nMOV             X0, X19                                                ; +0x2c, 0x1003e9c78\nBL              EditorUI__deselectObject_1                             ; +0x30, 0x1003e9c7c\nMOV             W8, #1                                                 ; +0x34, 0x1003e9c80\nSTRB            W8, [X19,#0x2B0]                                       ; +0x38, 0x1003e9c84\nB               loc_1003E9CC4                                          ; +0x3c, 0x1003e9c88\nMOV             X0, X20                                                ; +0x40, 0x1003e9c8c\nBL              GameObject__deselectObject                             ; +0x44, 0x1003e9c90\nLDR             X0, [X19,#0x328]                                       ; +0x48, 0x1003e9c94\nMOV             X1, X20                                                ; +0x4c, 0x1003e9c98\nBL              sub_10024A420                                          ; +0x50, 0x1003e9c9c\nCBZ             W0, loc_1003E9CC4                                      ; +0x54, 0x1003e9ca0\nMOV             W8, #1                                                 ; +0x58, 0x1003e9ca4\nSTRB            W8, [X19,#0x2B0]                                       ; +0x5c, 0x1003e9ca8\nLDR             X0, [X19,#0x328]                                       ; +0x60, 0x1003e9cac\nMOV             X1, X20                                                ; +0x64, 0x1003e9cb0\nMOV             W2, #1                                                 ; +0x68, 0x1003e9cb4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x6c, 0x1003e9cb8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x70, 0x1003e9cbc\nB               sub_10024A444                                          ; +0x74, 0x1003e9cc0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x78, 0x1003e9cc4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x7c, 0x1003e9cc8\nRET                                                                    ; +0x80, 0x1003e9ccc", "xrefs": ["LevelEditorLayer::handleAction @ 0x10035bee0", "LevelEditorLayer::handleAction @ 0x10035bf40", "EditorUI::deselectTargetPortals @ 0x1003e9b94", "EditorUI::deleteObject @ 0x1003e9c10"], "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"}