//
// GJBaseGameLayer::triggerDynamicMoveCommand from 0x100137bd0 to 0x100137c84 (180 bytes)
//
// 0 xrefs:
//
// 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::triggerDynamicMoveCommand(GJBaseGameLayer *a1, EffectGameObject *a2)
{
int m_targetModCenterID; // esi
GameObject *Object; // rax
PlayerObject *m_player1; // rcx
int m_centerGroupID; // esi
GameObject *v7; // r14
EffectGameObject *v8; // [rsp+8h] [rbp-28h] BYREF
GameObject *v9; // [rsp+10h] [rbp-20h] BYREF
PlayerObject *v10; // [rsp+18h] [rbp-18h] BYREF
v8 = a2;
m_targetModCenterID = a2->m_targetModCenterID;
if ( m_targetModCenterID <= 0 )
m_targetModCenterID = a2->m_targetGroupID;
Object = GJBaseGameLayer::tryGetObject(a1, m_targetModCenterID);
v9 = Object;
if ( a2->m_targetPlayer1 )
goto LABEL_4;
if ( a2->m_targetPlayer2 )
{
if ( !a1->m_gameState.m_isDualMode )
{
LABEL_4:
m_player1 = a1->m_player1;
goto LABEL_9;
}
m_player1 = a1->m_player2;
}
else
{
m_centerGroupID = a2->m_centerGroupID;
v7 = Object;
m_player1 = (PlayerObject *)GJBaseGameLayer::tryGetObject(a1, m_centerGroupID);
Object = v7;
}
LABEL_9:
v10 = m_player1;
if ( Object != nullptr && m_player1 != nullptr )
sub_100137DE0(&a1->m_gameState.m_dynamicMoveActions, &v8, &v9, &v10);
}