//
// EditorUI::deselectObject from 0x6f41ac to 0x6f41f6 (74 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::handleAction @ 0x46ef9a
// > LevelEditorLayer::handleAction @ 0x46eff0
// > EditorUI::deleteObject @ 0x481d22
// > EditorUI::deselectTargetPortals @ 0x6f42d0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:57:38 +0000
//
int __fastcall EditorUI::deselectObject(EditorUI *this, GameObject *a2)
{
int v3; // r3
int result; // r0
cocos2d::CCArray *v6; // r0
v3 = *((_DWORD *)this + 249);
if ( v3 && *(_DWORD *)(v3 + 780) == *((_DWORD *)a2 + 195) )
{
result = EditorUI::deselectObject((GameObject **)this);
*((_BYTE *)this + 588) = 1;
}
else
{
GameObject::deselectObject(a2, (int)a2);
result = cocos2d::CCArray::containsObject(*((cocos2d::CCArray **)this + 167), a2);
if ( result )
{
v6 = *((cocos2d::CCArray **)this + 167);
*((_BYTE *)this + 588) = 1;
return cocos2d::CCArray::removeObject(v6, a2, 1);
}
}
return result;
}