//
// PlayerObject::update from 0x140388d80 to 0x14038a0b6 (4918 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405c8290
// > ??> @ 0x1406d5f90
//
// 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
//
// Hidden C++ exception states: #wind=7
void PlayerObject::update(PlayerObject *a1, float a2)
{
float v2; // xmm3_4
double v4; // xmm14_8
float v5; // xmm8_4
double m_flashTime; // xmm0_8
double v7; // xmm6_8
double m_flashDuration; // xmm1_8
__int16 v9; // r9
__int16 v10; // r10
float v11; // xmm2_4
__int16 v12; // ax
int v13; // r8d
__int16 v14; // r9
__int16 v15; // r10
float v16; // xmm2_4
__int16 v17; // ax
int v18; // r8d
GJRobotSprite *m_robotSprite; // rcx
GJSpiderSprite *m_spiderSprite; // rcx
double m_yVelocity; // xmm0_8
double m_platformerXVelocity; // xmm0_8
const struct cocos2d::CCPoint *v23; // rax
const struct cocos2d::CCPoint *v24; // r8
const cocos2d::CCPoint *v25; // rax
__int64 v26; // rcx
int v27; // r8d
int v28; // edi
float v29; // xmm1_4
bool m_isShip; // al
bool *p_m_isBird; // rbx
double v32; // xmm6_8
bool m_isUpsideDown; // dl
float x; // xmm2_4
float v35; // xmm2_4
int v36; // eax
float v37; // xmm1_4
int v38; // ecx
int v39; // eax
bool m_isDashing; // al
double v41; // xmm7_8
double v42; // xmm6_8
bool m_isPlatformer; // cl
double v44; // xmm1_8
double v45; // xmm1_8
double v46; // xmm8_8
double v47; // xmm6_8
int v48; // eax
double v49; // xmm6_8
double m_dashY; // xmm2_8
double m_dashX; // xmm0_8
float v52; // xmm0_4
double v53; // xmm1_8
const cocos2d::CCPoint *v54; // rax
double m_maybeReverseSpeed; // xmm1_8
double v56; // xmm0_8
__int64 v57; // rbx
struct cocos2d::CCDelayTime *v58; // rax
struct cocos2d::CCSequence *v59; // rbx
cocos2d::ccColor3B *v60; // r8
double m_accelerationOrSpeed; // xmm0_8
__int64 v62; // rax
float v63; // xmm6_4
HardStreak *v64; // rbx
cocos2d::CCDirector *v65; // rax
float v66; // xmm6_4
__int64 v67; // rax
__int64 v68; // rbx
float v69; // xmm6_4
HardStreak *m_waveTrail; // rbx
PlayerFireBoostSprite *m_robotFire; // rcx
_BOOL8 v72; // rdx
struct cocos2d::CCScaleTo *v73; // r14
struct cocos2d::CCScaleTo *v74; // rsi
struct cocos2d::CCScaleTo *v75; // rdi
struct cocos2d::CCScaleTo *v76; // rbx
struct cocos2d::CCSequence *v77; // rax
cocos2d::ccColor3B *v78; // r8
struct cocos2d::CCScaleTo *v79; // rbx
__int64 v80; // rax
struct cocos2d::CCSequence *v81; // rbx
cocos2d::ccColor3B *v82; // r8
__int64 v83; // rax
cocos2d::CCParticleSystemQuad_vtbl *v84; // rbx
cocos2d::CCParticleSystemQuad_vtbl *v85; // rbx
char *v86; // rax
const char *v87; // rdi
cocos2d::CCTextureProtocol_vtbl *v88; // rbx
cocos2d::CCTextureCache *v89; // rax
struct cocos2d::CCTexture2D *v90; // rax
DashRingObject *m_dashRing; // rax
float m_maxDuration; // xmm0_4
float v93; // [rsp+28h] [rbp-E0h]
float v94; // [rsp+28h] [rbp-E0h]
__int16 v95; // [rsp+38h] [rbp-D0h] BYREF
GLubyte v96; // [rsp+3Ah] [rbp-CEh]
__int16 v97; // [rsp+48h] [rbp-C0h]
cocos2d::CCPoint v98; // [rsp+58h] [rbp-B0h] BYREF
cocos2d::CCPoint v99; // [rsp+60h] [rbp-A8h] BYREF
void *v100; // [rsp+68h] [rbp-A0h]
char v101[32]; // [rsp+70h] [rbp-98h] BYREF
v4 = a2;
v5 = a2 * 0.89999998;
m_flashTime = a1->m_flashTime;
if ( m_flashTime >= 0.0 )
{
v7 = a1->m_totalTime - m_flashTime - a1->m_flashDelay;
m_flashDuration = a1->m_flashDuration;
if ( v7 < m_flashDuration )
{
if ( v7 > 0.0 )
{
v9 = *(_WORD *)&a1->m_originalMainColor.r;
v97 = v9;
v10 = *(_WORD *)&a1->m_flashMainColor.r;
v95 = v10;
v11 = fminf(1.0, v7 / m_flashDuration);
if ( v11 <= 0.0 )
{
v12 = *(_WORD *)&a1->m_flashMainColor.r;
LOBYTE(v13) = a1->m_flashMainColor.b;
}
else if ( v11 == 1.0 )
{
v12 = *(_WORD *)&a1->m_originalMainColor.r;
LOBYTE(v13) = a1->m_originalMainColor.b;
}
else
{
v13 = (int)(float)((float)((float)(a1->m_originalMainColor.b - a1->m_flashMainColor.b) * v11)
+ (float)a1->m_flashMainColor.b);
LOBYTE(v95) = (int)(float)((float)((float)((unsigned __int8)v9 - (unsigned __int8)v10) * v11)
+ (float)(unsigned __int8)v10);
HIBYTE(v95) = (int)(float)((float)((float)(HIBYTE(v97) - HIBYTE(v95)) * v11) + (float)HIBYTE(v95));
v12 = v95;
}
v95 = v12;
v96 = v13;
a1->setColor(&a1->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v95);
v14 = *(_WORD *)&a1->m_originalSecondColor.r;
v95 = v14;
v15 = *(_WORD *)&a1->m_flashSecondColor.r;
v97 = v15;
v16 = fminf(1.0, v7 / a1->m_flashDuration);
if ( v16 <= 0.0 )
{
v17 = *(_WORD *)&a1->m_flashSecondColor.r;
LOBYTE(v18) = a1->m_flashSecondColor.b;
}
else if ( v16 == 1.0 )
{
v17 = *(_WORD *)&a1->m_originalSecondColor.r;
LOBYTE(v18) = a1->m_originalSecondColor.b;
}
else
{
v18 = (int)(float)((float)((float)(a1->m_originalSecondColor.b - a1->m_flashSecondColor.b) * v16)
+ (float)a1->m_flashSecondColor.b);
LOBYTE(v95) = (int)(float)((float)((float)((unsigned __int8)v14 - (unsigned __int8)v15) * v16)
+ (float)(unsigned __int8)v15);
HIBYTE(v95) = (int)(float)((float)((float)(HIBYTE(v95) - HIBYTE(v97)) * v16) + (float)HIBYTE(v97));
v17 = v95;
}
v95 = v17;
v96 = v18;
a1->m_iconSpriteSecondary->setColor(
&a1->m_iconSpriteSecondary->cocos2d::CCRGBAProtocol,
(const cocos2d::ccColor3B *)&v95);
a1->m_vehicleSpriteSecondary->setColor(
&a1->m_vehicleSpriteSecondary->cocos2d::CCRGBAProtocol,
(const cocos2d::ccColor3B *)&v95);
m_robotSprite = a1->m_robotSprite;
*(_WORD *)&m_robotSprite->m_secondColor.r = v95;
m_robotSprite->m_secondColor.b = v96;
GJRobotSprite::updateColors(m_robotSprite);
m_spiderSprite = a1->m_spiderSprite;
*(_WORD *)&m_spiderSprite->m_secondColor.r = v95;
m_spiderSprite->m_secondColor.b = v96;
GJRobotSprite::updateColors(m_spiderSprite);
}
}
else
{
a1->m_flashTime = -1.0;
a1->setColor(&a1->cocos2d::CCRGBAProtocol, &a1->m_originalMainColor);
PlayerObject::setSecondColor(a1, &a1->m_originalSecondColor);
}
}
m_yVelocity = a1->m_yVelocity;
if ( m_yVelocity <= 1000.0 )
{
if ( m_yVelocity < -1000.0 )
a1->m_yVelocity = -1000.0;
}
else
{
a1->m_yVelocity = 1000.0;
}
if ( a1->m_isPlatformer )
{
m_platformerXVelocity = a1->m_platformerXVelocity;
if ( m_platformerXVelocity <= 1000.0 )
{
if ( m_platformerXVelocity < -1000.0 )
a1->m_platformerXVelocity = -1000.0;
}
else
{
a1->m_platformerXVelocity = 1000.0;
}
}
if ( !a1->m_isDead )
{
v23 = a1->getPosition_0(a1);
cocos2d::ccpDistance((cocos2d *)&a1->m_lastPosition, v23, v24);
v25 = a1->getPosition_0(a1);
cocos2d::CCPoint::operator=(&a1->m_lastPosition, v25);
a1->m_yVelocityRelated3 = 0.0;
if ( a1->m_isLocked )
goto LABEL_104;
PlayerObject::updateJump(a1, v5);
v28 = -1;
if ( a1->m_stateForce <= 0 )
{
LABEL_76:
m_isDashing = a1->m_isDashing;
if ( m_isDashing )
a1->m_yVelocity = 0.0;
v41 = v5;
v42 = v5 * a1->m_yVelocity;
if ( a1->m_isPlatformer )
{
PlayerObject::updateMove(a1, v5);
m_isDashing = a1->m_isDashing;
}
m_isPlatformer = a1->m_isPlatformer;
if ( m_isPlatformer )
v44 = a1->m_platformerXVelocity;
else
v44 = a1->m_playerSpeed * a1->m_speedMultiplier;
v45 = v44 * v4;
v46 = v45 * 0.01999999955296516;
if ( a1->m_isDart )
{
if ( !m_isDashing )
{
v47 = fabs(v45);
v48 = -1;
if ( !a1->m_isUpsideDown )
v48 = 1;
v49 = v47 * (double)v48;
if ( a1->m_jumpBuffered )
v28 = 1;
v42 = v49 * (double)v28;
if ( a1->m_vehicleSize != 1.0 )
v42 = v42 + v42;
goto LABEL_95;
}
}
else if ( !m_isDashing )
{
LABEL_95:
v52 = v42;
a1->m_yVelocityRelated3 = v52;
if ( a1->m_isGoingLeft && !m_isPlatformer )
v45 = v45 * -1.0;
v53 = v45 + a1->m_maybeReverseAcceleration;
if ( a1->m_isSideways )
{
v52 = *(float *)&v53;
v53 = v42;
}
cocos2d::CCPoint::CCPoint(v52, v53);
v54 = a1->getPosition_0(a1);
cocos2d::CCPoint::operator+(v54, &v98);
a1->setPosition_0(a1, &v98);
a1->m_maybeReverseAcceleration = 0.0;
m_maybeReverseSpeed = a1->m_maybeReverseSpeed;
if ( m_maybeReverseSpeed != 0.0 )
{
v56 = fmin(fabs(m_maybeReverseSpeed), v46);
if ( m_maybeReverseSpeed <= 0.0 )
v56 = -v56;
a1->m_maybeReverseAcceleration = v56;
a1->m_maybeReverseSpeed = m_maybeReverseSpeed - v56;
}
LABEL_104:
if ( a1->m_isShip )
{
if ( !a1->m_jumpBuffered || PlayerObject::levelFlipping(a1) || a1->m_isHidden )
{
if ( a1->m_hasShipParticles )
cocos2d::CCParticleSystem::stopSystem(a1->m_shipClickParticles);
a1->m_hasShipParticles = 0;
}
else
{
if ( !a1->m_hasShipParticles )
cocos2d::CCParticleSystem::resumeSystem(a1->m_shipClickParticles);
a1->m_hasShipParticles = 1;
}
}
else if ( !a1->m_isBird )
{
if ( a1->m_isDart )
goto LABEL_133;
if ( !a1->m_isSwing )
{
if ( !a1->m_isOnGround2
|| PlayerObject::levelFlipping(a1)
|| a1->m_isLocked
|| a1->m_isHidden
|| a1->m_isPlatformer && fabs(a1->m_platformerXVelocity) <= 2.5 )
{
if ( a1->m_hasGroundParticles && !cocos2d::CCNode::getActionByTag(a1, 3) )
{
v57 = cocos2d::CCCallFunc::create(a1, sub_14038B8C0);
v58 = cocos2d::CCDelayTime::create(0.059999999);
v59 = cocos2d::CCSequence::create(v58, v57, 0);
v59->setTag(v59, 3);
cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v59, v60, v2, v93);
}
}
else
{
if ( !a1->m_hasGroundParticles )
cocos2d::CCParticleSystem::resumeSystem(a1->m_playerGroundParticles);
a1->m_hasGroundParticles = 1;
cocos2d::CCNode::stopActionByTag(a1, 3);
}
LABEL_134:
*(float *)&m_accelerationOrSpeed = (float)((float)(a1->m_audioScale - 0.1) * 2.0999999) + 0.40000001;
a1->m_waveTrail->m_pulseSize = *(float *)&m_accelerationOrSpeed;
if ( a1->m_playEffects )
{
if ( a1->m_isGoingLeft )
{
v65 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v26);
v66 = **(float **)&cocos2d::CCDirector::getWinSize(v65);
v67 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v100 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v100);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v67 = qword_1406C2ED8;
}
v68 = v67;
if ( !v67 )
{
v100 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v100);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v67 = qword_1406C2ED8;
}
v69 = (float)(v66 / *(float *)(*(_QWORD *)(v67 + 520) + 424LL))
+ *(float *)(*(_QWORD *)(v68 + 520) + 1292LL);
m_waveTrail = a1->m_waveTrail;
if ( cocos2d::CCArray::count(m_waveTrail->m_pointArray) >= 2 )
{
while ( cocos2d::CCArray::count(m_waveTrail->m_pointArray) >= 2 )
{
cocos2d::CCArray::objectAtIndex(m_waveTrail->m_pointArray, 1u);
cocos2d::CCPoint::CCPoint(&v98);
*(float *)&m_accelerationOrSpeed = v98.x;
if ( v98.x <= v69 )
break;
cocos2d::CCArray::removeObjectAtIndex(m_waveTrail->m_pointArray, 0, 1);
}
}
}
else
{
v62 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v99 = (cocos2d::CCPoint)operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v99);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v62 = qword_1406C2ED8;
}
v63 = *(float *)(*(_QWORD *)(v62 + 520) + 1292LL);
v64 = a1->m_waveTrail;
if ( cocos2d::CCArray::count(v64->m_pointArray) >= 2 )
{
while ( cocos2d::CCArray::count(v64->m_pointArray) >= 2 )
{
cocos2d::CCArray::objectAtIndex(v64->m_pointArray, 1u);
m_accelerationOrSpeed = cocos2d::CCPoint::CCPoint(&v98);
if ( v63 <= v98.x )
break;
cocos2d::CCArray::removeObjectAtIndex(v64->m_pointArray, 0, 1);
}
}
}
}
m_robotFire = a1->m_robotFire;
if ( m_robotFire )
{
if ( a1->m_isRobot
&& a1->m_jumpBuffered
&& !a1->m_touchedPad
&& a1->m_maybeIsBoosted
&& (m_accelerationOrSpeed = a1->m_accelerationOrSpeed, m_accelerationOrSpeed > 0.2700000107288361)
&& m_accelerationOrSpeed < 1.5 )
{
if ( !m_robotFire->isVisible(m_robotFire) )
{
cocos2d::CCNode::stopAllActions(a1->m_robotFire);
((void (__fastcall *)(PlayerFireBoostSprite *))a1->m_robotFire->setScale_0)(a1->m_robotFire);
LOBYTE(v72) = 1;
a1->m_robotFire->setVisible(a1->m_robotFire, v72);
v73 = cocos2d::CCScaleTo::create(0.050000001, 1.4399999, 0.89999998);
v74 = cocos2d::CCScaleTo::create(0.050000001, 0.71999997, 1.3499999);
v75 = cocos2d::CCScaleTo::create(0.050000001, 1.8, 0.89999998);
v76 = cocos2d::CCScaleTo::create(0.050000001, 0.89999998, 1.3499999);
LODWORD(m_accelerationOrSpeed) = 1028443341;
LODWORD(v94) = (unsigned int)cocos2d::CCScaleTo::create(0.050000001, 1.8, 0.89999998);
v77 = cocos2d::CCSequence::create(v73, v74, v75, v76);
cocos2d::CCNode::runAction((CCLightFlash *)a1->m_robotFire, (cocos2d::CCPoint)v77, v78, v2, v94);
cocos2d::CCParticleSystem::resumeSystem(a1->m_robotBurstParticles);
}
}
else if ( m_robotFire->isVisible(m_robotFire) && !cocos2d::CCNode::getActionByTag(a1->m_robotFire, 9) )
{
cocos2d::CCNode::stopAllActions(a1->m_robotFire);
LODWORD(m_accelerationOrSpeed) = 1041865114;
v79 = cocos2d::CCScaleTo::create(0.15000001, 0.050000001, 0.1);
v80 = cocos2d::CCHide::create();
v81 = cocos2d::CCSequence::create(v79, v80, 0);
v81->setTag(v81, 9);
cocos2d::CCNode::runAction((CCLightFlash *)a1->m_robotFire, (cocos2d::CCPoint)v81, v82, v2, v93);
cocos2d::CCParticleSystem::stopSystem(a1->m_robotBurstParticles);
}
}
if ( a1->m_isRobot
&& a1->m_jumpBuffered
&& !a1->m_touchedPad
&& a1->m_maybeIsBoosted
&& (m_accelerationOrSpeed = a1->m_accelerationOrSpeed, m_accelerationOrSpeed > 0.1000000014901161)
&& m_accelerationOrSpeed < 1.5
&& !a1->m_isHidden )
{
if ( !a1->m_robotBurstParticles->isActive(a1->m_robotBurstParticles) )
cocos2d::CCParticleSystem::resumeSystem(a1->m_robotBurstParticles);
}
else if ( a1->m_robotBurstParticles->isActive(a1->m_robotBurstParticles) )
{
cocos2d::CCParticleSystem::stopSystem(a1->m_robotBurstParticles);
}
a1->m_maybeSpriteRelated = 0;
if ( !a1->m_ghostTrail )
goto LABEL_189;
if ( a1->m_isRobot )
{
a1->m_robotSprite->m_headSprite->getPosition_0(a1->m_robotSprite->m_headSprite);
}
else
{
if ( !a1->m_isSpider )
goto LABEL_188;
a1->m_spiderSprite->m_headSprite->getPosition_0(a1->m_spiderSprite->m_headSprite);
}
cocos2d::CCPoint::CCPoint(*(float *)&m_accelerationOrSpeed, 0.0);
LABEL_188:
cocos2d::CCPoint::CCPoint(&v99);
cocos2d::CCPoint::operator=(&a1->m_ghostTrail->m_position, v83);
LABEL_189:
if ( a1->m_isDashing )
PlayerObject::updateDashAnimation(a1);
if ( a1->m_isSwing )
{
v84 = a1->m_swingBurstParticles1->__vftable;
a1->getRotation(a1);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v84->setAngle)(a1->m_swingBurstParticles1);
v85 = a1->m_swingBurstParticles2->__vftable;
a1->getRotation(a1);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v85->setAngle)(a1->m_swingBurstParticles2);
}
a1->m_stateJumpBuffered = a1->m_jumpBuffered;
a1->m_stateRingJump2 = a1->m_stateRingJump;
*(_DWORD *)&a1->m_touchedRing = 0;
--a1->m_stateNoAutoJump;
--a1->m_stateDartSlide;
--a1->m_stateFlipGravity;
--a1->m_stateHitHead;
--a1->m_stateOnGround;
*(__m128i *)&a1->m_stateBoostX = _mm_sub_epi32(
_mm_loadu_si128((const __m128i *)&a1->m_stateBoostX),
(__m128i)xmmword_140623F50);
--a1->m_stateForce;
cocos2d::CCPoint::operator=(&a1->m_stateForceVector, &stru_1406C2450);
sub_1400CDCD0(&a1->m_jumpPadRelated._Mypair._Myval2._Myval2._Myhead);
if ( a1->m_shipStreak )
{
v86 = sub_140386060(v101, a1->m_shipStreakType, a1->m_totalTime);
v87 = v86;
if ( *((_QWORD *)v86 + 3) > 0xFu )
v87 = *(const char **)v86;
v88 = a1->m_shipStreak->__vftable;
v89 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();
v90 = cocos2d::CCTextureCache::addImage(v89, v87, 0);
v88->setTexture(&a1->m_shipStreak->cocos2d::CCTextureProtocol, v90);
sub_14003A830((__int64)v101);
}
if ( a1->m_isPlatformer && a1->m_isDashing )
{
m_dashRing = a1->m_dashRing;
if ( m_dashRing )
{
m_maxDuration = m_dashRing->m_maxDuration;
if ( m_maxDuration > 0.0 && a1->m_totalTime - a1->m_dashStartTime > m_maxDuration )
{
PlayerObject::stopDashing(a1);
a1->m_jumpBuffered = 0;
}
}
}
return;
}
}
if ( a1->m_isDart || !a1->m_isOnGround2 )
goto LABEL_133;
if ( a1->m_isUpsideDown )
{
if ( a1->m_yVelocity >= 1.0 )
goto LABEL_133;
}
else if ( a1->m_yVelocity <= -1.0 )
{
goto LABEL_133;
}
if ( !a1->m_isLocked
&& !a1->m_isHidden
&& (!a1->m_isPlatformer
|| a1->m_holdingLeft
|| a1->m_holdingRight
|| a1->m_platformerMovingLeft
|| a1->m_platformerMovingRight) )
{
cocos2d::CCParticleSystem::resumeSystem(a1->m_vehicleGroundParticles);
goto LABEL_134;
}
LABEL_133:
cocos2d::CCParticleSystem::stopSystem(a1->m_vehicleGroundParticles);
goto LABEL_134;
}
m_dashY = a1->m_dashY;
if ( m_isPlatformer )
{
m_dashX = a1->m_dashX;
v45 = v41 * m_dashX;
v42 = m_dashY * v41;
a1->m_platformerXVelocity = m_dashX;
a1->m_yVelocity = m_dashY;
}
else
{
v42 = m_dashY * v45;
}
goto LABEL_95;
}
v29 = 1.0;
m_isShip = a1->m_isShip;
p_m_isBird = &a1->m_isBird;
if ( m_isShip )
{
v29 = 0.47;
}
else if ( *p_m_isBird )
{
v29 = 0.57999998;
}
else if ( a1->m_isSwing )
{
v29 = 0.40000001;
}
else if ( a1->m_isBall )
{
v29 = 0.60000002;
}
else if ( a1->m_isSpider )
{
v29 = 0.60000002;
}
else if ( a1->m_isRobot )
{
v29 = 0.89999998;
}
if ( a1->m_vehicleSize != 1.0 )
{
if ( m_isShip )
{
v29 = 0.58749998;
}
else if ( *p_m_isBird )
{
v29 = 0.72499996;
}
else if ( a1->m_isSwing )
{
v29 = 0.61538464;
}
}
v32 = (float)((float)(v5 * a1->m_stateForceVector.y) * v29);
PlayerObject::setYVelocity(a1, v32 + a1->m_yVelocity, v27);
if ( v32 != 0.0 )
a1->m_isAccelerating = 1;
m_isUpsideDown = a1->m_isUpsideDown;
if ( m_isUpsideDown )
{
if ( v32 >= 0.0 )
goto LABEL_54;
}
else if ( v32 <= 0.0 )
{
LABEL_54:
if ( a1->m_isPlatformer )
{
x = a1->m_stateForceVector.x;
a1->m_platformerXVelocity = (float)(x * v5) + a1->m_platformerXVelocity;
if ( x != 0.0 )
a1->m_affectedByForces = 1;
if ( !a1->m_isShip
&& !*p_m_isBird
&& !a1->m_isDart
&& !a1->m_isSwing
&& !a1->m_isBall
&& !a1->m_isRobot
&& !a1->m_isSpider
&& !a1->m_isRotating
&& fabs(x) > 0.1 )
{
if ( a1->m_vehicleSize == 1.0 )
v35 = 0.43333334;
else
v35 = 0.33333334;
v36 = 1;
if ( a1->m_isSideways )
v36 = -1;
v37 = (float)v36;
v38 = -180;
if ( !a1->m_isGoingLeft )
v38 = 180;
v39 = -1;
if ( !m_isUpsideDown )
v39 = 1;
a1->m_rotationSpeed = (float)((float)((float)(v39 * v38) * v37) * a1->m_gravityMod) / v35;
a1->m_isRotating = 1;
}
}
goto LABEL_76;
}
a1->m_accelerationOrSpeed = v32 / 12.9399995803833 * 1.5 + a1->m_accelerationOrSpeed;
goto LABEL_54;
}
}