//
// GJBaseGameLayer::getRotateCommandTargets from 0x472d1c to 0x472d7c (96 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x481c40
// > GJBaseGameLayer::triggerRotateCommand @ 0x481e8e
//
// 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::getRotateCommandTargets(
GJBaseGameLayer *a1,
EnhancedTriggerObject *a2,
GameObject **a3,
GameObject **a4,
GameObject **a5)
{
int m_centerGroupID; // r1
GameObject *Object; // r0
int m_targetGroupID; // r1
GameObject *v12; // r0
_BOOL4 m_targetPlayer1; // r3
PlayerObject *m_player2; // r3
m_centerGroupID = a2->m_centerGroupID;
if ( !m_centerGroupID )
m_centerGroupID = a2->m_targetGroupID;
Object = GJBaseGameLayer::tryGetObject(a1, m_centerGroupID);
m_targetGroupID = a2->m_targetGroupID;
*a3 = Object;
v12 = GJBaseGameLayer::tryGetObject(a1, m_targetGroupID);
m_targetPlayer1 = a2->m_targetPlayer1;
*a4 = v12;
if ( m_targetPlayer1 )
goto LABEL_6;
if ( a2->m_targetPlayer2 )
{
if ( a1->m_gameState.m_isDualMode )
{
m_player2 = a1->m_player2;
goto LABEL_8;
}
LABEL_6:
m_player2 = a1->m_player1;
LABEL_8:
*a5 = m_player2;
return;
}
*a5 = GJBaseGameLayer::tryGetObject(a1, a2->m_rotationTargetID);
}