//
// PlayerObject::propellPlayer from 0x14039f850 to 0x14039fa43 (499 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x1402159e0
// > PlayerObject::bumpPlayer @ 0x14039f7e8
// > ??> @ 0x1406d686c
// > ??> @ 0x1406d6878
//
// 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::propellPlayer(PlayerObject *a1, float a2, bool a3, int a4)
{
float v7; // xmm2_4
int v8; // eax
GameObject *v9; // r8
bool m_isBall; // al
bool *p_m_isSpider; // r10
__int64 v12; // xmm0_8
GJSpiderSprite *m_robotSprite; // rcx
const cocos2d::CCPoint *v14; // rax
__int128 v15; // [rsp+20h] [rbp-38h] BYREF
__int64 v16; // [rsp+30h] [rbp-28h]
__int64 v17; // [rsp+38h] [rbp-20h]
a1->m_maybeIsBoosted = 1;
a1->m_isOnGround2 = 0;
a1->m_isOnGround = 0;
a1->m_shouldTryPlacingCheckpoint = 1;
*(_WORD *)&a1->m_isOnSlope = 0;
v7 = 1.0;
if ( a1->m_vehicleSize != 1.0 )
v7 = 0.80000001;
v8 = -1;
if ( !a1->m_isUpsideDown )
v8 = 1;
PlayerObject::setYVelocity(a1, (float)((float)((float)v8 * (float)(a2 * 16.0)) * v7), a3);
m_isBall = a1->m_isBall;
p_m_isSpider = &a1->m_isSpider;
if ( m_isBall || *p_m_isSpider || a1->m_isSwing )
a1->m_yVelocity = a1->m_yVelocity * 0.6000000238418579;
if ( !a1->m_isLocked && !a1->m_isDashing )
{
*(_WORD *)&a1->m_isRotating = 0;
a1->m_isBallRotating = 0;
a1->m_rotationSpeed = 0.0;
if ( m_isBall )
PlayerObject::runBallRotation(a1, 1.0);
else
PlayerObject::runNormalRotation(a1, 0, 1.0);
}
if ( !a3 )
{
PlayerObject::playBumpEffect(a1, a4, v9);
p_m_isSpider = &a1->m_isSpider;
}
if ( a1->m_isRobot )
{
v15 = 0;
v16 = 10;
v12 = 0x6174735F706D756ALL;
WORD4(v15) = 29810;
BYTE10(v15) = 0;
m_robotSprite = (GJSpiderSprite *)a1->m_robotSprite;
LABEL_20:
v17 = 15;
*(_QWORD *)&v15 = v12;
CCAnimatedSprite::runAnimation((__int64)m_robotSprite, (__int64)&v15);
goto LABEL_21;
}
if ( *p_m_isSpider )
{
v15 = 0;
v16 = 9;
v12 = 0x6F6F6C5F6C6C6166LL;
WORD4(v15) = 112;
m_robotSprite = a1->m_spiderSprite;
goto LABEL_20;
}
LABEL_21:
PlayerObject::activateStreak(a1);
v14 = a1->getPosition_0(a1);
cocos2d::CCPoint::operator=(&a1->m_lastGroundedPos, v14);
}