//
// GJBaseGameLayer::controlAreaEffect from 0x1001ee004 to 0x1001ee104 (256 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::controlTriggersInGroup @ 0x1001edfdc
//
// 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 GJBaseGameLayer::controlAreaEffect(
GJBaseGameLayer *a1,
EnterEffectObject *a2,
std::vector *a3,
GJActionCommand a4)
{
std::__vector_base::pointer begin; // x8
EnterEffectInstance *end; // x22
__int64 v9; // x9
int v10; // w24
EnterEffectInstance *v11; // x10
EnterEffectInstance *v12; // x1
std::__vector_base::pointer v13; // x23
char v14; // w9
char v15; // [xsp+Fh] [xbp-41h] BYREF
begin = a3->__begin_;
end = a3->__end_;
if ( end != a3->__begin_ )
{
v9 = 0;
v10 = 0;
do
{
v11 = &begin[v9];
if ( v11->m_gameObject == a2 )
{
switch ( a4 )
{
case Resume:
v14 = 0;
goto LABEL_12;
case Pause:
v14 = 1;
LABEL_12:
v11->m_paused = v14;
v11->m_paused2 = v14;
break;
case Stop:
sub_10020A2BC(&v15, &begin[v9 + 1]);
end = v12;
v13 = a3->__end_;
if ( v13 != v12 )
{
do
sub_100124FA0((__int64)a3, (__int64)--v13);
while ( v13 != end );
}
a3->__end_ = end;
begin = a3->__begin_;
goto LABEL_14;
}
}
++v10;
LABEL_14:
v9 = v10;
}
while ( 0xEEEEEEEEEEEEEEEFLL * (((char *)end - (char *)begin) >> 4) > v10 );
}
}