//
// LevelEditorLayer::resetEffectTriggerOptim from 0x100362684 to 0x100362724 (160 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::onClose @ 0x10013092c
// > ColorSelectPopup::closeColorSelect @ 0x10041e750
//
// 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 __fastcall LevelEditorLayer::resetEffectTriggerOptim(LevelEditorLayer *a1, GameObject *a2, cocos2d::CCArray *a3)
{
cocos2d::ccArray *data; // x9
__int64 num; // x8
cocos2d::CCObject **arr; // x20
unsigned __int64 v6; // x21
cocos2d::CCObject *v7; // x8
if ( a2 )
{
if ( a2->m_dontIgnoreDuration )
sub_1000229D0(&a2[1].m_obOffsetPosition.y, (double *)&dword_10086E330);
}
else if ( a3 )
{
data = a3->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
v6 = (unsigned __int64)&arr[num - 1];
do
{
v7 = *arr;
if ( !*arr )
break;
if ( HIBYTE(v7[22].m_uReference) == 1 )
sub_1000229D0(&v7[32].m_uID, (double *)&dword_10086E330);
++arr;
}
while ( (unsigned __int64)arr <= v6 );
}
}
}