//
// GJBaseGameLayer::getOtherPlayer from 0x58f09c to 0x58f0b4 (24 bytes)
//
// 3 xrefs:
// > PlayLayer::destroyPlayer @ 0x4059fe
// > GJBaseGameLayer::getGroundHeight @ 0x58f0e8
// > GJBaseGameLayer::playerWillSwitchMode @ 0x5b8f9e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:53:04 +0000
//
int __fastcall GJBaseGameLayer::getOtherPlayer(GJBaseGameLayer *this, PlayerObject *a2)
{
int v2; // r3
v2 = *((_DWORD *)this + 519);
if ( *((_DWORD *)a2 + 195) == *(_DWORD *)(v2 + 780) )
return *((_DWORD *)this + 520);
return v2;
}