//
// GJBaseGameLayer::controlDynamicRotateCommand from 0x100136d40 to 0x100136e36 (246 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::controlTriggersWithControlID @ 0x100136fb7
//
// 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::controlDynamicRotateCommand(
GJBaseGameLayer *a1,
EffectGameObject *a2,
int a3,
GJActionCommand a4)
{
std::__vector_base::pointer begin; // rax
std::__vector_base::pointer end; // rdi
begin = a1->m_gameState.m_dynamicRotateActions.__begin_;
end = a1->m_gameState.m_dynamicRotateActions.__end_;
if ( begin != end )
{
if ( a3 == -1 )
{
if ( a4 )
{
if ( a4 == Pause )
{
do
{
if ( begin->m_gameObject1 == a2 )
*(_WORD *)&begin->m_unkBool3 = 257;
++begin;
}
while ( begin != end );
}
else if ( a4 == Resume )
{
do
{
if ( begin->m_gameObject1 == a2 )
*(_WORD *)&begin->m_unkBool3 = 0;
++begin;
}
while ( begin != end );
}
}
else
{
do
{
if ( begin->m_gameObject1 == a2 )
begin->m_unkBool2 = 1;
++begin;
}
while ( begin != end );
}
}
else if ( a4 )
{
if ( a4 == Pause )
{
do
{
if ( begin->m_controlID == a3 )
*(_WORD *)&begin->m_unkBool3 = 257;
++begin;
}
while ( begin != end );
}
else if ( a4 == Resume )
{
do
{
if ( begin->m_controlID == a3 )
*(_WORD *)&begin->m_unkBool3 = 0;
++begin;
}
while ( begin != end );
}
}
else
{
do
{
if ( begin->m_controlID == a3 )
begin->m_unkBool2 = 1;
++begin;
}
while ( begin != end );
}
}
}