//
// PlayerObject::lockPlayer from 0x10022c85c to 0x10022c8ec (144 bytes)
//
// 2 xrefs:
// > PlayLayer::playEndAnimationToPos @ 0x10011ba64
// > PlayLayer::playPlatformerEndAnimationToPos @ 0x10011bdac
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall PlayerObject::lockPlayer(PlayerObject *a1)
{
if ( a1->m_isDart )
PlayerObject::placeStreakPoint(a1);
a1->m_isLocked = 1;
*(_WORD *)&a1->m_isRotating = 0;
a1->m_isBallRotating = 0;
a1->m_rotationSpeed = 0.0;
PlayerObject::releaseButton(a1, Jump);
if ( a1->m_hasGroundParticles )
cocos2d::CCParticleSystem::stopSystem(a1->m_playerGroundParticles);
a1->m_hasGroundParticles = 0;
a1->m_isOnGround2 = 0;
if ( a1->m_isDart )
PlayerObject::fadeOutStreak2(a1, 0.4);
}