//
// PlayerObject::disablePlayerControls from 0x1404fd790 to 0x1404fd935 (421 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::processOptionsTrigger @ 0x14032bad0
// > GJBaseGameLayer::processOptionsTrigger @ 0x14032baf2
// > ??> @ 0x1408d5954
// > ??> @ 0x1408d5964
// > ??> @ 0x14092a548
//
// This function is hookable on this platform (idp: pc, 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:33:23 +0000
//
bool __fastcall PlayerObject::disablePlayerControls(__int64 a1)
{
bool v1; // zf
const struct cocos2d::CCPoint *v3; // rax
__int64 v4; // rax
char v5; // al
__int64 *v6; // rdi
const struct cocos2d::CCPoint *v7; // rax
__int64 v8; // rax
bool v9; // cc
const struct cocos2d::CCPoint *v10; // rax
__int64 v11; // rax
double v12; // xmm0_8
bool result; // al
int v14; // [rsp+40h] [rbp+8h] BYREF
v1 = *(_BYTE *)(a1 + 2445) == 0;
*(_BYTE *)(a1 + 2611) = 0;
*(_BYTE *)(a1 + 3024) = 1;
if ( !v1 )
{
v3 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, v3);
PlayerObject::placeStreakPoint(a1, v4);
}
v1 = *(_BYTE *)(a1 + 2540) == 0;
*(_WORD *)(a1 + 2445) = 0;
*(_BYTE *)(a1 + 2468) = 1;
if ( !v1 )
PlayerObject::stopDashing(a1);
v5 = *(_BYTE *)(a1 + 3024);
v6 = (__int64 *)(a1 + 3008);
if ( !v5 )
{
v14 = 2;
*(_BYTE *)sub_14016EE40((__int64 *)(a1 + 3008), &v14) = 0;
v5 = *(_BYTE *)(a1 + 3024);
}
if ( !*(_BYTE *)(a1 + 2611) )
{
if ( *(_BYTE *)(a1 + 2445) )
{
v7 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, v7);
PlayerObject::placeStreakPoint(a1, v8);
v5 = *(_BYTE *)(a1 + 3024);
v6 = (__int64 *)(a1 + 3008);
}
v9 = *(double *)(a1 + 2816) >= 0.0;
*(_BYTE *)(a1 + 2825) = 0;
if ( !v9 )
*(_BYTE *)(a1 + 2912) = 0;
}
if ( !v5 )
{
v14 = 3;
*(_BYTE *)sub_14016EE40(v6, &v14) = 0;
}
if ( !*(_BYTE *)(a1 + 2611) )
{
if ( *(_BYTE *)(a1 + 2445) )
{
v10 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, v10);
PlayerObject::placeStreakPoint(a1, v11);
}
v12 = *(double *)(a1 + 2816);
*(_BYTE *)(a1 + 2824) = 0;
if ( v12 > 0.0 )
*(_BYTE *)(a1 + 2912) = 0;
}
PlayerObject::releaseButton(a1, 2);
result = PlayerObject::releaseButton(a1, 3);
*(_BYTE *)(a1 + 3024) = 0;
*(_BYTE *)(a1 + 2611) = 1;
return result;
}