//
// EditorUI::uncheckPortals from 0x1401ba1b0 to 0x1401ba291 (225 bytes)
//
// 5 xrefs:
// > EditorCommandsPopup::onCommand @ 0x14017dd74
// > EditorUI::handleEditorAction @ 0x1401c364c
// > ??> @ 0x1408a2170
// > ??> @ 0x1408a21a4
// > ??> @ 0x14091a3e4
//
// This function is hookable on this platform (idp: pc, 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 11:27:59 +0000
//
void __fastcall EditorUI::uncheckPortals(__int64 a1)
{
cocos2d::CCArray *v2; // rbp
signed int v3; // ebx
int v4; // esi
struct cocos2d::CCObject *v5; // rax
struct cocos2d::CCObject *v6; // rdi
int v7; // ecx
v2 = *(cocos2d::CCArray **)(*(_QWORD *)(a1 + 1512) + 3536LL);
if ( v2 )
{
v3 = 0;
v4 = cocos2d::CCArray::count(v2);
if ( v4 > 0 )
{
do
{
v5 = cocos2d::CCArray::objectAtIndex(v2, v3);
v6 = v5;
v7 = *((_DWORD *)v5 + 259);
if ( v7 > 660 )
{
if ( v7 != 1331 && v7 != 1933 )
goto LABEL_13;
}
else if ( v7 != 660 && v7 != 13 && v7 != 47 && v7 != 111 )
{
goto LABEL_13;
}
if ( *((_BYTE *)v5 + 1784) )
{
cocos2d::CCArray::removeObject(
*(cocos2d::CCArray **)(*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 14944LL) + 584LL),
v5,
1);
*((_BYTE *)v6 + 1784) = 0;
}
LABEL_13:
++v3;
}
while ( v3 < v4 );
}
}
}