//
// PlayerObject::lockPlayer from 0x1404fd670 to 0x1404fd78a (282 bytes)
//
// 3 xrefs:
// > PlayLayer::playEndAnimationToPos @ 0x14050a522
// > PlayLayer::playPlatformerEndAnimationToPos @ 0x14050ae12
// > ??> @ 0x14092a53c
//
// 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
//
void __fastcall PlayerObject::lockPlayer(__int64 a1)
{
const struct cocos2d::CCPoint *v2; // rax
__int64 v3; // rax
bool v4; // zf
const struct cocos2d::CCPoint *v5; // rax
__int64 v6; // rax
int v7; // [rsp+30h] [rbp+8h] BYREF
if ( *(_BYTE *)(a1 + 2500) )
{
v2 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v7, v2);
PlayerObject::placeStreakPoint(a1, v3);
}
v4 = *(_BYTE *)(a1 + 3024) == 0;
*(_BYTE *)(a1 + 2610) = 1;
*(_WORD *)(a1 + 1840) = 0;
*(_BYTE *)(a1 + 1648) = 0;
*(_DWORD *)(a1 + 1832) = 0;
if ( v4 )
{
v7 = 1;
*(_BYTE *)sub_14016EE40((__int64 *)(a1 + 3008), &v7) = 0;
}
if ( !*(_BYTE *)(a1 + 2611) )
{
if ( *(_BYTE *)(a1 + 2445) )
{
v5 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v7, v5);
PlayerObject::placeStreakPoint(a1, v6);
}
v4 = *(_BYTE *)(a1 + 2540) == 0;
*(_WORD *)(a1 + 2445) = 0;
*(_BYTE *)(a1 + 2468) = 1;
if ( !v4 )
PlayerObject::stopDashing(a1);
}
if ( *(_BYTE *)(a1 + 2030) )
cocos2d::CCParticleSystem::stopSystem(*(cocos2d::CCParticleSystem **)(a1 + 2240));
v4 = *(_BYTE *)(a1 + 2500) == 0;
*(_BYTE *)(a1 + 2030) = 0;
*(_BYTE *)(a1 + 2580) = 0;
if ( !v4 )
PlayerObject::fadeOutStreak2(a1);
}