//
// GJBaseGameLayer::controlAreaEffect from 0x495dd8 to 0x495e38 (96 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::controlTriggersInGroup @ 0x495f7c
//
// 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 GJBaseGameLayer::controlAreaEffect(
GJBaseGameLayer *a1,
EnterEffectObject *a2,
std::vector *a3,
GJActionCommand a4)
{
unsigned int v4; // r4
EnterEffectInstance *v8; // r1
v4 = 0;
while ( v4 < -1944890851 * (((char *)a3->m_finish - (char *)a3->m_start) >> 2) )
{
v8 = &a3->m_start[v4];
if ( v8->m_gameObject != a2 )
goto LABEL_11;
if ( a4 )
{
if ( a4 == Pause )
{
v8->m_paused = 1;
v8->m_paused2 = 1;
}
else if ( a4 == Resume )
{
v8->m_paused = 0;
v8->m_paused2 = 0;
}
LABEL_11:
++v4;
}
else
{
std::vector::erase((int)a3, (int)v8);
}
}
}