//
// GJBaseGameLayer::getOtherPlayer from 0x85a0fc to 0x85a120 (36 bytes)
//
// 4 xrefs:
// > PlayLayer::destroyPlayer @ 0x5d2030
// > GJBaseGameLayer::getGroundHeight @ 0x85a164
// > GJBaseGameLayer::playerWillSwitchMode @ 0x88a240
// > ??> @ 0x4a5e0
//
// 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
//
PlayerObject *GJBaseGameLayer::getOtherPlayer(GJBaseGameLayer *a1, PlayerObject *a2)
{
PlayerObject *result; // x0
result = a1->m_player1;
if ( a2->m_uniqueID == result->m_uniqueID )
return a1->m_player2;
return result;
}