//
// LevelEditorLayer::resetEffectTriggerOptim from 0x78cfa4 to 0x78d058 (180 bytes)
//
// 4 xrefs:
// > ColorSelectPopup::closeColorSelect @ 0x8633cc
// > SetupPortalPopup::onClose @ 0xab06b4
// > SetupTriggerPopup::onClose @ 0xb1bc40
// > ??> @ 0x57a00
//
// 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 12:53:27 +0000
//
__n128 __fastcall LevelEditorLayer::resetEffectTriggerOptim(
LevelEditorLayer *this,
GameObject *a2,
cocos2d::CCArray *a3)
{
__n128 result; // q0
unsigned int *v4; // x1
__int64 *v5; // x19
__int64 *v6; // x20
__int64 v7; // x0
if ( a2 )
{
if ( *((_BYTE *)a2 + 1255) )
return cocos2d::CCPoint::operator=((char *)a2 + 1800, &dword_155C6A8);
}
else if ( a3 )
{
v4 = *((unsigned int **)a3 + 7);
if ( *v4 )
{
v5 = *((__int64 **)v4 + 2);
v6 = &v5[*v4 - 1];
if ( v5 <= v6 )
{
v7 = *v5;
if ( *v5 )
{
if ( *(_BYTE *)(v7 + 1255) )
goto LABEL_13;
while ( v6 >= ++v5 )
{
v7 = *v5;
if ( !*v5 )
break;
if ( *(_BYTE *)(v7 + 1255) )
LABEL_13:
result = cocos2d::CCPoint::operator=(v7 + 1800, &dword_155C6A8);
}
}
}
}
}
return result;
}