//
// EditorUI::deselectTargetPortals from 0x6f4252 to 0x6f42da (136 bytes)
//
// 3 xrefs:
// > EditorUI::onDelete @ 0x48c6c8
// > EditorUI::onDelete @ 0x48c6ea
// > EditorUI::onDeleteSelected @ 0x48c8e6
//
// 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
//
cocos2d::CCArray *__fastcall EditorUI::deselectTargetPortals(EditorUI *this)
{
cocos2d::CCArray *result; // r0
int v3; // r3
unsigned int v4; // r5
cocos2d::CCArray *v5; // r6
cocos2d::CCObject *v6; // r1
unsigned int i; // r5
GameObject *v8; // r0
result = *((cocos2d::CCArray **)this + 167);
if ( result && (result = (cocos2d::CCArray *)cocos2d::CCArray::count(result)) != nullptr )
{
v4 = 0;
v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(result);
while ( v4 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)) )
{
v6 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 167), v4);
if ( *((_DWORD *)v6 + 223) == 749 )
cocos2d::CCArray::addObject(v5, v6);
++v4;
}
for ( i = 0; ; ++i )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v5);
if ( i >= (unsigned int)result )
break;
v8 = (GameObject *)cocos2d::CCArray::objectAtIndex(v5, i);
EditorUI::deselectObject(this, v8);
}
}
else
{
v3 = *((_DWORD *)this + 249);
if ( v3 )
{
if ( *(_DWORD *)(v3 + 892) == 749 )
return (cocos2d::CCArray *)EditorUI::deselectObject((GameObject **)this);
}
}
return result;
}