//
// PlayerObject::enablePlayerControls from 0x1002c966c to 0x1002c9754 (232 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::processOptionsTrigger @ 0x10028ddc0
// > GJBaseGameLayer::processOptionsTrigger @ 0x10028dde4
// > GJBaseGameLayer::loadUpToPosition @ 0x100298f18
// > GJBaseGameLayer::loadUpToPosition @ 0x100298f20
//
// 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 11:02:34 +0000
//
_DWORD *__fastcall PlayerObject::enablePlayerControls(__int64 a1)
{
int v2; // w20
_DWORD *result; // x0
int v4; // [xsp+0h] [xbp-30h] BYREF
int *v5; // [xsp+8h] [xbp-28h] BYREF
*(_BYTE *)(a1 + 2531) = 0;
v2 = 2;
v4 = 2;
v5 = &v4;
if ( (sub_1001231E8(a1 + 2912, &v4, (__int64)&unk_10076367E, &v5)[8] & 1) != 0
|| (v2 = 3, v4 = 3, v5 = &v4, *((_BYTE *)sub_1001231E8(a1 + 2912, &v4, (__int64)&unk_10076367E, &v5) + 32) == 1) )
{
sub_1002C49D8(a1, v2);
}
v4 = 1;
v5 = &v4;
result = sub_1001231E8(a1 + 2912, &v4, (__int64)&unk_10076367E, &v5);
if ( *((_BYTE *)result + 32) == 1 )
return (_DWORD *)PlayerObject::pushButton(a1, 1);
return result;
}