//
// GJBaseGameLayer::toggleLockPlayer from 0x595c6a to 0x595c8c (34 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::processOptionsTrigger @ 0x595d2c
// > GJBaseGameLayer::processOptionsTrigger @ 0x595d48
// > GJBaseGameLayer::loadUpToPosition @ 0x5bcb06
// > GJBaseGameLayer::loadUpToPosition @ 0x5bcb10
//
// 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:08 +0000
//
_DWORD *__fastcall GJBaseGameLayer::toggleLockPlayer(GJBaseGameLayer *this, int a2, int a3)
{
PlayerObject *v3; // r0
PlayerObject *v5; // r0
if ( a2 )
{
if ( a3 )
v3 = *((PlayerObject **)this + 519);
else
v3 = *((PlayerObject **)this + 520);
return (_DWORD *)PlayerObject::disablePlayerControls(v3, a2, a3);
}
else
{
if ( a3 )
v5 = *((PlayerObject **)this + 519);
else
v5 = *((PlayerObject **)this + 520);
return PlayerObject::enablePlayerControls(v5, 0);
}
}