//
// LevelEditorLayer::resetEffectTriggerOptim from 0x66115c to 0x661210 (180 bytes)
//
// 4 xrefs:
// > ColorSelectPopup::closeColorSelect @ 0x74003c
// > SetupPortalPopup::onClose @ 0x969afc
// > SetupTriggerPopup::onClose @ 0x9e5ffc
// > ??> @ 0x3c7c8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void LevelEditorLayer::resetEffectTriggerOptim(LevelEditorLayer *a1, GameObject *a2, cocos2d::CCArray *a3)
{
float v3; // s0
float v4; // s1
cocos2d::ccArray *data; // x1
cocos2d::CCObject **arr; // x19
cocos2d::CCObject **v7; // x20
cocos2d::CCObject *v8; // x0
if ( a2 )
{
if ( a2->m_dontIgnoreDuration )
cocos2d::CCPoint::operator=(&a2[1].m_obOffsetPosition.y, v3, v4);
}
else if ( a3 )
{
data = a3->data;
if ( data->num )
{
arr = data->arr;
v7 = &arr[data->num - 1];
if ( arr <= v7 )
{
v8 = *arr;
if ( *arr )
{
if ( HIBYTE(v8[22].__vftable) )
goto LABEL_13;
while ( v7 >= ++arr )
{
v8 = *arr;
if ( !*arr )
break;
if ( HIBYTE(v8[22].__vftable) )
LABEL_13:
cocos2d::CCPoint::operator=(&v8[31].m_uOrderOfArrival, v3, v4);
}
}
}
}
}
}