//
// PlayerObject::enablePlayerControls from 0x76adf0 to 0x76af24 (308 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::toggleLockPlayer @ 0x9a83c4
// > GJBaseGameLayer::toggleLockPlayer @ 0x9a83d4
// > ??> @ 0x677f8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:53:10 +0000
//
__int64 __fastcall PlayerObject::enablePlayerControls(PlayerObject *this)
{
_DWORD *v1; // x5
__int64 **v2; // x26
int v4; // w2
int v5; // w3
int v6; // w4
int v7; // w5
int v8; // w6
int v9; // w7
char v11; // [xsp+0h] [xbp+0h]
int v12; // [xsp+6Ch] [xbp+6Ch] BYREF
_DWORD *v13[2]; // [xsp+70h] [xbp+70h] BYREF
v12 = 2;
v13[0] = &v12;
v1 = (_DWORD *)_stack_chk_guard;
v2 = (__int64 **)((char *)this + 2912);
*((_BYTE *)this + 2531) = 0;
v13[1] = v1;
if ( *(_BYTE *)(std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 364,
&v12,
(__int64)&unk_113CFA8,
v13)
+ 32) )
{
PlayerObject::switchedDirTo((__int64)this, 2);
}
else
{
v13[0] = &v12;
v12 = 3;
if ( *(_BYTE *)(std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
v2,
&v12,
(__int64)&unk_113CFA8,
v13)
+ 32) )
PlayerObject::switchedDirTo((__int64)this, 3);
}
v13[0] = &v12;
v12 = 1;
if ( *(_BYTE *)(std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
v2,
&v12,
(__int64)&unk_113CFA8,
v13)
+ 32) )
PlayerObject::pushButton(this, 1, v4, v5, v6, v7, v8, v9, v11);
return _stack_chk_guard;
}