//
// GJBaseGameLayer::controlDynamicCommand from 0x1001ef5ac to 0x1001ef61c (112 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::controlTriggersInGroup @ 0x1001edf80
// > GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee4dc
// > GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee4f0
//
// 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::controlDynamicCommand(
GJBaseGameLayer *a1,
EffectGameObject *a2,
int a3,
std::vector *a4,
GJActionCommand a5)
{
std::__vector_base::pointer begin; // x8
std::__vector_base::pointer end; // x9
char v7; // w10
__int64 v8; // x11
begin = a4->__begin_;
end = a4->__end_;
while ( begin != end )
{
if ( a3 != -1 && begin->m_controlID == a3 || a3 == -1 && begin->m_gameObject1 == a2 )
{
v7 = 1;
if ( a5 )
{
if ( a5 != Pause )
{
if ( a5 != Resume )
goto LABEL_14;
v7 = 0;
}
begin->m_unkBool3 = v7;
v8 = 79;
}
else
{
v8 = 77;
}
*((_BYTE *)&begin->m_gameObject1 + v8) = v7;
}
LABEL_14:
++begin;
}
}