//
// PlayerObject::boostPlayer from 0x341b34 to 0x341c3e (266 bytes)
//
// 2 xrefs:
// > PlayerObject::postCollision @ 0x34d1b0
// > PlayerObject::postCollision @ 0x34d6c4
//
// 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 PlayerObject::boostPlayer(PlayerObject *a1, float a2)
{
stl::StringData::Internal *v3; // r3
float v4; // s16
const cocos2d::CCPoint *v5; // r0
GJSpiderSprite *m_spiderSprite; // r7
std::string v7[3]; // [sp+10h] [bp-Ch] BYREF
a1->m_maybeIsBoosted = 1;
a1->m_shouldTryPlacingCheckpoint = 1;
v3 = (stl::StringData::Internal *)_stack_chk_guard;
a1->m_isAccelerating = 1;
v7[1].m_data.m_data = v3;
a1->m_isOnGround2 = 0;
a1->m_isOnGround = 0;
PlayerObject::setYVelocity(a1, a2, 45);
if ( !a1->m_isDashing )
{
if ( PlayerObject::isFlying(a1) || a1->m_isBall || a1->m_isRobot || a1->m_isSpider )
{
if ( a1->m_isSpider )
{
m_spiderSprite = a1->m_spiderSprite;
sub_776584((int)v7, "fall_loop");
CCAnimatedSprite::tweenToAnimation((int)m_spiderSprite, v7, 0.1);
sub_774008(v7);
}
}
else
{
v4 = 0.66667;
PlayerObject::stopRotation(a1, 1, 20);
if ( a1->m_vehicleSize == 1.0 )
v4 = 0.86667;
a1->m_rotationSpeed = (float)(-180 * PlayerObject::flipMod(a1)) / v4;
a1->m_isRotating = 1;
}
}
v5 = a1->getPosition(a1);
cocos2d::CCPoint::operator=(&a1->m_lastGroundedPos, v5);
}