//
// GJBaseGameLayer::getRotateCommandTargets from 0x85ff8c to 0x860044 (184 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x86cd2c
// > GJBaseGameLayer::triggerRotateCommand @ 0x86ce84
// > ??> @ 0x2b590
//
// 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; // w1
GameObject *Object; // x0
int m_targetGroupID; // w1
GameObject *v10; // x0
_BOOL4 m_targetPlayer1; // w1
GameObject **v12; // x4
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;
v10 = GJBaseGameLayer::tryGetObject(a1, m_targetGroupID);
m_targetPlayer1 = a2->m_targetPlayer1;
v12 = a5;
*a4 = v10;
if ( m_targetPlayer1 )
goto LABEL_6;
if ( a2->m_targetPlayer2 )
{
if ( !a1->m_gameState.m_isDualMode )
{
LABEL_6:
*a5 = a1->m_player1;
return;
}
*a5 = a1->m_player2;
}
else
{
*v12 = GJBaseGameLayer::tryGetObject(a1, a2->m_rotationTargetID);
}
}