//
// EditorUI::deselectObject from 0xbdc59c to 0xbdc624 (136 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::handleAction @ 0x7a1e5c
// > LevelEditorLayer::handleAction @ 0x7a1ec0
// > EditorUI::deleteObject @ 0x7c1c10
// > EditorUI::deselectTargetPortals @ 0xbdc73c
// > ??> @ 0xe53d8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:03:43 +0000
//
__int64 __fastcall EditorUI::deselectObject(EditorUI *this, GameObject *a2)
{
__int64 v4; // x1
__int64 result; // x0
v4 = *((_QWORD *)this + 187);
if ( v4 && *(_DWORD *)(v4 + 916) == *((_DWORD *)a2 + 229) )
{
EditorUI::deselectObject((GameObject **)this);
*((_BYTE *)this + 776) = 1;
return 1;
}
else
{
GameObject::deselectObject(a2);
result = (unsigned __int8)cocos2d::CCArray::containsObject(*((cocos2d::CCArray **)this + 112), a2);
if ( (_BYTE)result )
{
*((_BYTE *)this + 776) = 1;
return cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 112), a2, 1);
}
}
return result;
}