//
// GJBaseGameLayer::getRotateCommandTargets from 0x100137fd0 to 0x10013806e (158 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::getRotateCommandTargets(
GJBaseGameLayer *a1,
EnhancedTriggerObject *a2,
GameObject **a3,
GameObject **a4,
GameObject **a5)
{
int m_centerGroupID; // esi
PlayerObject *Object; // rax
m_centerGroupID = a2->m_centerGroupID;
if ( !m_centerGroupID )
m_centerGroupID = a2->m_targetGroupID;
*a3 = GJBaseGameLayer::tryGetObject(a1, m_centerGroupID);
*a4 = GJBaseGameLayer::tryGetObject(a1, a2->m_targetGroupID);
if ( a2->m_targetPlayer1 )
goto LABEL_4;
if ( !a2->m_targetPlayer2 )
{
Object = (PlayerObject *)GJBaseGameLayer::tryGetObject(a1, a2->m_rotationTargetID);
goto LABEL_9;
}
if ( !a1->m_gameState.m_isDualMode )
LABEL_4:
Object = a1->m_player1;
else
Object = a1->m_player2;
LABEL_9:
*a5 = Object;
}