//
// PlayerObject::update from 0x1003fcf50 to 0x1003fe062 (4370 bytes)
//
// 1 xrefs:
// > ??> @ 0x100933728
//
// 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::update(PlayerObject *a1, float a2)
{
double m_flashTime; // xmm0_8
double v4; // xmm2_8
double m_flashDuration; // xmm0_8
int v6; // edi
int v7; // esi
float v8; // xmm0_4
float v9; // xmm0_4
GJSpiderSprite *m_spiderSprite; // rdi
int v11; // eax
int v12; // esi
double m_yVelocity; // xmm1_8
double v14; // xmm0_8
double m_platformerXVelocity; // xmm1_8
double v16; // xmm0_8
const cocos2d::CCPoint *LastPosition; // r14
const cocos2d::CCPoint *v18; // rax
float v19; // xmm0_4
double *v20; // rsi
bool m_isShip; // al
__m128 m_vehicleSize_low; // xmm0
float v23; // xmm1_4
__m128 v24; // xmm2
float v25; // xmm2_4
__m128d v26; // xmm3
double v27; // xmm4_8
__m128d v28; // xmm6
bool m_isUpsideDown; // cl
_BOOL8 v30; // rdx
float x; // xmm1_4
__m128 v32; // rt1
__int64 v33; // rax
int v34; // edx
int v35; // ecx
float v36; // xmm0_4
double v37; // xmm2_8
bool m_isPlatformer; // al
__int128 v39; // xmm3
double v40; // xmm1_8
bool m_isDashing; // cl
double v42; // xmm2_8
double m_dashX; // xmm0_8
double m_dashY; // xmm2_8
double v45; // xmm0_8
float v46; // xmm1_4
double v47; // xmm1_8
double v48; // xmm1_8
bool v49; // zf
unsigned __int64 *v50; // r14
float v51; // xmm0_4
float v52; // xmm1_4
__m128d v53; // xmm0
double v54; // xmm2_8
double v55; // xmm1_8
double v56; // xmm1_8
GameManager *v57; // rax
GameManager *v58; // rax
cocos2d::CCDelayTime *v59; // r14
cocos2d::CCCallFunc *v60; // rax
cocos2d::CCSequence *v61; // r14
double v62; // xmm0_8
HardStreak *m_waveTrail; // r14
HardStreak *v64; // r14
GameManager *v65; // rax
PlayerFireBoostSprite *m_robotFire; // rdi
double m_accelerationOrSpeed; // xmm0_8
cocos2d::CCScaleTo *v68; // r14
cocos2d::CCScaleTo *v69; // r15
cocos2d::CCScaleTo *v70; // r12
cocos2d::CCScaleTo *v71; // r13
cocos2d::CCScaleTo *v72; // rax
cocos2d::CCSequence *v73; // rsi
cocos2d::CCScaleTo *v74; // r14
cocos2d::CCHide *v75; // rax
cocos2d::CCSequence *v76; // r14
GameManager *v77; // rax
double v78; // xmm0_8
GhostTrailEffect *m_ghostTrail; // r14
float v80; // xmm1_4
cocos2d::CCPoint *v81; // r15
cocos2d::CCPoint *p_m_position; // rdi
unsigned __int64 *v83; // rsi
cocos2d::CCParticleSystemQuad *m_swingBurstParticles1; // r14
double v85; // xmm0_8
float v86; // xmm0_4
float v87; // xmm1_4
cocos2d::CCParticleSystemQuad *m_swingBurstParticles2; // r14
double v89; // xmm0_8
float v90; // xmm0_4
float v91; // xmm1_4
cocos2d::CCMotionStreak *m_shipStreak; // r14
cocos2d::CCTextureCache *v93; // r15
__m128 v94; // xmm0
const char *v95; // rsi
cocos2d::CCTexture2D *v96; // rax
DashRingObject *m_dashRing; // rax
float m_maxDuration; // xmm0_4
double v99; // [rsp+0h] [rbp-80h]
unsigned __int64 v100; // [rsp+18h] [rbp-68h] BYREF
double v101[3]; // [rsp+20h] [rbp-60h]
size_t v102[2]; // [rsp+38h] [rbp-48h] BYREF
void *__p; // [rsp+48h] [rbp-38h]
double v104; // [rsp+50h] [rbp-30h]
*(float *)&v104 = a2;
m_flashTime = a1->m_flashTime;
if ( m_flashTime >= 0.0 )
{
v4 = a1->m_totalTime - m_flashTime - a1->m_flashDelay;
m_flashDuration = a1->m_flashDuration;
if ( v4 >= m_flashDuration )
{
a1->m_flashTime = -1.0;
((void (__fastcall *)(PlayerObject *, cocos2d::ccColor3B *))a1->setColor)(a1, &a1->m_originalMainColor);
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_iconSpriteSecondary->setColor)(
a1->m_iconSpriteSecondary,
&a1->m_originalSecondColor);
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_vehicleSpriteSecondary->setColor)(
a1->m_vehicleSpriteSecondary,
&a1->m_originalSecondColor);
GJRobotSprite::updateColor02(
a1->m_robotSprite,
(cocos2d::ccColor3B)(*(unsigned __int16 *)&a1->m_originalSecondColor.r | (a1->m_originalSecondColor.b << 16)));
m_spiderSprite = a1->m_spiderSprite;
v11 = *(unsigned __int16 *)&a1->m_originalSecondColor.r;
v12 = a1->m_originalSecondColor.b << 16;
goto LABEL_6;
}
if ( v4 > 0.0 )
{
v6 = *(unsigned __int16 *)&a1->m_flashMainColor.r | (a1->m_flashMainColor.b << 16);
v7 = *(unsigned __int16 *)&a1->m_originalMainColor.r | (a1->m_originalMainColor.b << 16);
v8 = v4 / m_flashDuration;
v101[0] = v4;
*(cocos2d::ccColor3B *)v102 = GameToolbox::multipliedColorValue(
(cocos2d::ccColor3B)v6,
(cocos2d::ccColor3B)v7,
v8);
((void (__fastcall *)(PlayerObject *, size_t *))a1->setColor)(a1, v102);
v9 = v4 / a1->m_flashDuration;
*(cocos2d::ccColor3B *)v102 = GameToolbox::multipliedColorValue(
(cocos2d::ccColor3B)(*(unsigned __int16 *)&a1->m_flashSecondColor.r
| (a1->m_flashSecondColor.b << 16)),
(cocos2d::ccColor3B)(*(unsigned __int16 *)&a1->m_originalSecondColor.r
| (a1->m_originalSecondColor.b << 16)),
v9);
((void (__fastcall *)(cocos2d::CCSprite *, size_t *))a1->m_iconSpriteSecondary->setColor)(
a1->m_iconSpriteSecondary,
v102);
((void (__fastcall *)(cocos2d::CCSprite *, size_t *))a1->m_vehicleSpriteSecondary->setColor)(
a1->m_vehicleSpriteSecondary,
v102);
GJRobotSprite::updateColor02(a1->m_robotSprite, (cocos2d::ccColor3B)((BYTE2(v102[0]) << 16) | LOWORD(v102[0])));
m_spiderSprite = a1->m_spiderSprite;
v11 = BYTE2(v102[0]) << 16;
v12 = LOWORD(v102[0]);
LABEL_6:
GJRobotSprite::updateColor02(m_spiderSprite, (cocos2d::ccColor3B)(v11 | v12));
}
}
m_yVelocity = a1->m_yVelocity;
v14 = 1000.0;
if ( m_yVelocity > 1000.0 || (v14 = -1000.0, m_yVelocity < -1000.0) )
a1->m_yVelocity = v14;
if ( a1->m_isPlatformer )
{
m_platformerXVelocity = a1->m_platformerXVelocity;
v16 = 1000.0;
if ( m_platformerXVelocity > 1000.0 || (v16 = -1000.0, m_platformerXVelocity < -1000.0) )
a1->m_platformerXVelocity = v16;
}
if ( !a1->m_isDead )
{
LastPosition = GameObject::getLastPosition(a1);
v18 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1);
v19 = cocos2d::ccpDistance(LastPosition, v18);
v20 = (double *)((__int64 (__fastcall *)(PlayerObject *, float))a1->getPosition)(a1, v19);
sub_10028CC90(&a1->m_lastPosition, v20);
a1->m_yVelocityRelated3 = 0.0;
if ( a1->m_isLocked )
goto LABEL_95;
*(float *)v101 = 0.89999998 * *(float *)&v104;
PlayerObject::updateJump(a1, 0.89999998 * *(float *)&v104);
if ( a1->m_stateForce > 0 )
{
m_isShip = a1->m_isShip;
if ( m_isShip )
{
m_vehicleSize_low = (__m128)0x3F800000u;
if ( a1->m_vehicleSize == 1.0 )
{
v23 = 0.47;
}
else
{
v23 = 0.58749998;
m_vehicleSize_low = (__m128)LODWORD(a1->m_vehicleSize);
}
}
else if ( a1->m_isBird )
{
m_vehicleSize_low = (__m128)0x3F800000u;
if ( a1->m_vehicleSize == 1.0 )
{
v23 = 0.57999998;
}
else
{
v23 = 0.72499996;
m_vehicleSize_low = (__m128)LODWORD(a1->m_vehicleSize);
}
}
else
{
if ( a1->m_isSwing )
{
v23 = 0.40000001;
}
else
{
v23 = 0.60000002;
if ( !a1->m_isBall && !a1->m_isSpider )
{
if ( a1->m_isRobot )
v23 = 0.89999998;
else
v23 = 1.0;
}
}
m_vehicleSize_low = (__m128)LODWORD(a1->m_vehicleSize);
if ( m_vehicleSize_low.f32[0] == 1.0 )
{
v24 = _mm_cmpeq_ss((__m128)0x3F800000u, m_vehicleSize_low);
LODWORD(v23) = LODWORD(v23) & v24.i32[0] | _mm_andnot_ps(v24, (__m128)0x3F399999u).u32[0];
}
else if ( a1->m_isSwing )
{
v23 = 0.61538464;
}
}
v25 = (float)(a1->m_stateForceVector.y * *(float *)v101) * v23;
v26 = (__m128d)*(unsigned __int64 *)&a1->m_yVelocity;
v26.f64[0] = v26.f64[0] + v25;
v27 = _mm_cvtepi32_pd(_mm_cvttpd_epi32(v26)).f64[0];
if ( v26.f64[0] != v27 )
{
v26.f64[0] = (v26.f64[0] - v27) * 1000.0;
v28 = _mm_or_pd(_mm_and_pd((__m128d)xmmword_100816590, v26), (__m128d)xmmword_100816960);
v28.f64[0] = v28.f64[0] + v26.f64[0];
v26.f64[0] = _mm_round_sd((__m128d)0LL, v28, 11).f64[0] / 1000.0 + v27;
}
a1->m_yVelocity = v26.f64[0];
if ( v25 != 0.0 )
a1->m_isAccelerating = 1;
m_isUpsideDown = a1->m_isUpsideDown;
v30 = v25 > 0.0;
if ( m_isUpsideDown )
LOBYTE(v30) = v25 < 0.0;
if ( v30 )
a1->m_accelerationOrSpeed = v25 / 12.9399995803833 * 1.5 + a1->m_accelerationOrSpeed;
if ( a1->m_isPlatformer )
{
x = a1->m_stateForceVector.x;
a1->m_platformerXVelocity = (float)(*(float *)v101 * x) + a1->m_platformerXVelocity;
if ( x != 0.0 )
a1->m_affectedByForces = 1;
if ( !m_isShip
&& !a1->m_isBird
&& !a1->m_isDart
&& !a1->m_isSwing
&& !a1->m_isBall
&& !a1->m_isRobot
&& !a1->m_isSpider
&& fabs(x) > 0.1
&& !a1->m_isRotating )
{
v32.i32[0] = 1065353216;
v33 = _mm_cvtsi128_si32((__m128i)_mm_cmpeq_ss(m_vehicleSize_low, v32)) & 1;
v34 = 180;
if ( m_isUpsideDown )
v34 = -180;
v35 = -v34;
if ( !a1->m_isGoingLeft )
v35 = v34;
v36 = (float)v35;
if ( a1->m_isSideways )
v36 = -v36;
a1->m_rotationSpeed = (float)(v36 * a1->m_gravityMod) / flt_10081B570[v33];
a1->m_isRotating = 1;
}
}
}
if ( a1->m_isDashing )
{
a1->m_yVelocity = 0.0;
v37 = 0.0;
m_isPlatformer = a1->m_isPlatformer;
if ( !m_isPlatformer )
{
LABEL_68:
if ( m_isPlatformer )
{
v39 = *(unsigned __int64 *)&a1->m_platformerXVelocity;
}
else
{
v39 = 0;
*(double *)&v39 = a1->m_playerSpeed * a1->m_speedMultiplier;
}
v40 = *(float *)v101;
*(double *)&v39 = *(double *)&v39 * *(float *)&v104;
m_isDashing = a1->m_isDashing;
if ( a1->m_isDart )
{
if ( !m_isDashing )
{
if ( a1->m_isUpsideDown )
*(_QWORD *)&v42 = v39 | 0x8000000000000000LL;
else
v42 = fabs(*(double *)&v39);
if ( !a1->m_jumpBuffered )
v42 = -v42;
if ( a1->m_vehicleSize != 1.0 )
v42 = v42 + v42;
goto LABEL_85;
}
}
else if ( !m_isDashing )
{
v42 = v37 * v40;
goto LABEL_85;
}
if ( m_isPlatformer )
{
m_dashX = a1->m_dashX;
m_dashY = a1->m_dashY;
a1->m_platformerXVelocity = m_dashX;
v45 = m_dashX * v40;
a1->m_yVelocity = m_dashY;
v42 = v40 * m_dashY;
goto LABEL_86;
}
v42 = a1->m_dashY * *(double *)&v39;
LABEL_85:
v45 = *(double *)&v39;
LABEL_86:
v46 = v42;
a1->m_yVelocityRelated3 = v46;
v47 = v45;
if ( m_isPlatformer )
{
if ( a1->m_isGoingLeft )
goto LABEL_88;
}
else
{
v47 = -v45;
if ( a1->m_isGoingLeft )
{
LABEL_88:
v48 = v47 + a1->m_maybeReverseAcceleration;
v49 = !a1->m_isSideways;
*(_OWORD *)v101 = v39;
if ( v49 )
{
LABEL_89:
v104 = v48;
v99 = v42;
goto LABEL_93;
}
LABEL_92:
v104 = v42;
v99 = v48;
LABEL_93:
v50 = (unsigned __int64 *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1);
v51 = v104;
v52 = v99;
sub_10028CBE0((float *)&v100, v51, v52);
sub_10028CCE0((double *)v102, v50, &v100);
((void (__fastcall *)(PlayerObject *, size_t *))a1->setPosition)(a1, v102);
a1->m_maybeReverseAcceleration = 0.0;
v53.f64[0] = a1->m_maybeReverseSpeed;
if ( v53.f64[0] != 0.0 )
{
v54 = fmin(fabs(v53.f64[0]), v101[0] * 0.01999999955296516);
v55 = _mm_cmplt_sd((__m128d)0LL, v53).f64[0];
*(_QWORD *)&v56 = ~*(_QWORD *)&v55 & COERCE_UNSIGNED_INT64(-v54) | *(_QWORD *)&v54 & *(_QWORD *)&v55;
a1->m_maybeReverseAcceleration = v56;
a1->m_maybeReverseSpeed = v53.f64[0] - v56;
}
LABEL_95:
if ( a1->m_isShip )
{
if ( !a1->m_jumpBuffered
|| a1->m_playEffects
&& (v57 = GameManager::sharedState(), GJBaseGameLayer::isFlipping(v57->m_playLayer))
|| 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 && !a1->m_isDart && !a1->m_isSwing )
{
if ( !a1->m_isOnGround2
|| a1->m_playEffects
&& (v58 = GameManager::sharedState(), GJBaseGameLayer::isFlipping(v58->m_playLayer))
|| a1->m_isLocked
|| a1->m_isHidden
|| a1->m_isPlatformer && fabs(a1->m_platformerXVelocity) <= 2.5 )
{
if ( a1->m_hasGroundParticles && !cocos2d::CCNode::getActionByTag(a1, 3) )
{
v59 = cocos2d::CCDelayTime::create(0.059999999);
v60 = cocos2d::CCCallFunc::create(
a1,
(cocos2d::SEL_CallFunc)(unsigned __int64)PlayerObject::deactivateParticle);
v61 = sub_1003B5760(v59, v60, 0);
((void (__fastcall *)(cocos2d::CCSequence *, __int64))v61->setTag)(v61, 3);
cocos2d::CCNode::runAction(a1, v61);
}
}
else
{
if ( !a1->m_hasGroundParticles )
cocos2d::CCParticleSystem::resumeSystem(a1->m_playerGroundParticles);
a1->m_hasGroundParticles = 1;
cocos2d::CCNode::stopActionByTag(a1, 3);
}
goto LABEL_126;
}
if ( a1->m_isDart || !a1->m_isOnGround2 )
goto LABEL_125;
v62 = a1->m_yVelocity;
if ( a1->m_isUpsideDown )
{
if ( v62 >= 1.0 )
goto LABEL_125;
}
else if ( v62 <= -1.0 )
{
LABEL_125:
cocos2d::CCParticleSystem::stopSystem(a1->m_vehicleGroundParticles);
goto LABEL_126;
}
if ( a1->m_isLocked
|| a1->m_isHidden
|| a1->m_isPlatformer
&& !a1->m_holdingLeft
&& !a1->m_holdingRight
&& !a1->m_platformerMovingLeft
&& !a1->m_platformerMovingRight )
{
goto LABEL_125;
}
cocos2d::CCParticleSystem::resumeSystem(a1->m_vehicleGroundParticles);
LABEL_126:
m_waveTrail = a1->m_waveTrail;
m_waveTrail->m_pulseSize = (float)((float)(a1->m_audioScale + -0.1) * 2.0999999) + 0.40000001;
if ( a1->m_playEffects )
{
if ( !a1->m_isGoingLeft )
{
v77 = GameManager::sharedState();
HardStreak::clearBehindXPos(m_waveTrail, v77->m_playLayer->m_gameState.m_cameraPosition2.x);
m_robotFire = a1->m_robotFire;
if ( !m_robotFire )
goto LABEL_142;
LABEL_130:
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 ( !((unsigned __int8 (__fastcall *)(PlayerFireBoostSprite *))m_robotFire->isVisible)(m_robotFire) )
{
cocos2d::CCNode::stopAllActions(a1->m_robotFire);
((void (__fastcall *)(PlayerFireBoostSprite *, float))a1->m_robotFire->setScale)(
a1->m_robotFire,
0.1);
((void (__fastcall *)(PlayerFireBoostSprite *, __int64))a1->m_robotFire->setVisible)(
a1->m_robotFire,
1);
v68 = cocos2d::CCScaleTo::create(0.050000001, 1.4399999, 0.89999998);
v69 = cocos2d::CCScaleTo::create(0.050000001, 0.71999997, 1.3499999);
v70 = cocos2d::CCScaleTo::create(0.050000001, 1.8, 0.89999998);
v71 = cocos2d::CCScaleTo::create(0.050000001, 0.89999998, 1.3499999);
v72 = cocos2d::CCScaleTo::create(0.050000001, 1.8, 0.89999998);
v73 = sub_1003B5760(v68, v69, v70, v71, v72, 0);
cocos2d::CCNode::runAction(a1->m_robotFire, v73);
cocos2d::CCParticleSystem::resumeSystem(a1->m_robotBurstParticles);
}
}
else if ( ((unsigned __int8 (__fastcall *)(PlayerFireBoostSprite *))m_robotFire->isVisible)(m_robotFire)
&& !cocos2d::CCNode::getActionByTag(a1->m_robotFire, 9) )
{
cocos2d::CCNode::stopAllActions(a1->m_robotFire);
v74 = cocos2d::CCScaleTo::create(0.15000001, 0.050000001, 0.1);
v75 = cocos2d::CCHide::create();
v76 = sub_1003B5760(v74, v75, 0);
((void (__fastcall *)(cocos2d::CCSequence *, __int64))v76->setTag)(v76, 9);
cocos2d::CCNode::runAction(a1->m_robotFire, v76);
cocos2d::CCParticleSystem::stopSystem(a1->m_robotBurstParticles);
}
LABEL_142:
if ( a1->m_isRobot
&& a1->m_jumpBuffered
&& !a1->m_touchedPad
&& a1->m_maybeIsBoosted
&& (v78 = a1->m_accelerationOrSpeed, v78 > 0.1000000014901161)
&& v78 < 1.5
&& !a1->m_isHidden )
{
if ( !((unsigned __int8 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_robotBurstParticles->isActive)(a1->m_robotBurstParticles) )
cocos2d::CCParticleSystem::resumeSystem(a1->m_robotBurstParticles);
}
else if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_robotBurstParticles->isActive)(a1->m_robotBurstParticles) )
{
cocos2d::CCParticleSystem::stopSystem(a1->m_robotBurstParticles);
}
a1->m_maybeSpriteRelated = 0;
m_ghostTrail = a1->m_ghostTrail;
if ( !m_ghostTrail )
goto LABEL_159;
if ( a1->m_isRobot )
{
v80 = (float)(*(float *)(((__int64 (__fastcall *)(CCSpritePart *))a1->m_robotSprite->m_headSprite->getPosition)(a1->m_robotSprite->m_headSprite)
+ 4)
* 0.40000001)
+ 7.0;
}
else
{
if ( !a1->m_isSpider )
{
sub_10028CC60(v102, &dbl_1009A1558);
p_m_position = &m_ghostTrail->m_position;
v83 = v102;
goto LABEL_158;
}
v80 = (float)(*(float *)(((__int64 (__fastcall *)(CCSpritePart *))a1->m_spiderSprite->m_headSprite->getPosition)(a1->m_spiderSprite->m_headSprite)
+ 4)
* 0.40000001)
+ 2.0;
}
sub_10028CBE0((float *)v102, 0.0, v80);
v81 = &a1->m_ghostTrail->m_position;
sub_10028CC60(&v100, (double *)v102);
p_m_position = v81;
v83 = &v100;
LABEL_158:
sub_10028CC90(p_m_position, (double *)v83);
LABEL_159:
if ( a1->m_isDashing )
PlayerObject::updateDashAnimation(a1);
if ( a1->m_isSwing )
{
m_swingBurstParticles1 = a1->m_swingBurstParticles1;
v85 = ((double (__fastcall *)(PlayerObject *))a1->getRotation)(a1);
v86 = (float)(45.0 - *(float *)&v85) + -180.0;
if ( a1->m_isGoingLeft )
v87 = 90.0;
else
v87 = 0.0;
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))m_swingBurstParticles1->setAngle)(
m_swingBurstParticles1,
v86 + v87);
m_swingBurstParticles2 = a1->m_swingBurstParticles2;
v89 = ((double (__fastcall *)(PlayerObject *))a1->getRotation)(a1);
v90 = (float)(-45.0 - *(float *)&v89) + -180.0;
if ( a1->m_isGoingLeft )
v91 = -90.0;
else
v91 = 0.0;
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))m_swingBurstParticles2->setAngle)(
m_swingBurstParticles2,
v90 + v91);
}
*(_WORD *)&a1->m_stateJumpBuffered = *(_WORD *)&a1->m_jumpBuffered;
*(_DWORD *)&a1->m_touchedRing = 0;
*(__m128i *)&a1->m_stateNoAutoJump = _mm_add_epi32(
_mm_loadu_si128((const __m128i *)&a1->m_stateNoAutoJump),
(__m128i)-1LL);
--a1->m_stateOnGround;
*(__m128i *)&a1->m_stateBoostX = _mm_add_epi32(
_mm_loadu_si128((const __m128i *)&a1->m_stateBoostX),
(__m128i)-1LL);
--a1->m_stateForce;
sub_10028CC90(&a1->m_stateForceVector, &dbl_1009A1558);
sub_100054D90(
(__int64)&a1->m_jumpPadRelated,
(_QWORD *)a1->m_jumpPadRelated.__tree_.__pair1_.__value_.__left_);
a1->m_jumpPadRelated.__tree_.__begin_node_ = &a1->m_jumpPadRelated.__tree_.__pair1_.__value_;
*(_OWORD *)&a1->m_jumpPadRelated.__tree_.__pair1_.__value_.__left_ = 0;
m_shipStreak = a1->m_shipStreak;
if ( m_shipStreak )
{
v93 = cocos2d::CCTextureCache::sharedTextureCache();
v94 = (__m128)*(unsigned __int64 *)&a1->m_totalTime;
v94.f32[0] = *(double *)v94.i64;
sub_1003F9BF0(v102, a1->m_shipStreakType, v94);
v95 = (v102[0] & 1) != 0 ? (const char *)__p : (char *)v102 + 1;
v96 = cocos2d::CCTextureCache::addImage(v93, v95, 0);
((void (__fastcall *)(cocos2d::CCMotionStreak *, cocos2d::CCTexture2D *))m_shipStreak->setTexture)(
m_shipStreak,
v96);
if ( (v102[0] & 1) != 0 )
operator delete(__p);
}
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;
}
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v102);
LODWORD(v104) = v102[0];
v64 = a1->m_waveTrail;
*(float *)v101 = GameManager::sharedState()->m_playLayer->m_gameState.m_cameraPosition2.x;
v65 = GameManager::sharedState();
HardStreak::clearAboveXPos(
v64,
(float)(*(float *)&v104 / v65->m_playLayer->m_gameState.m_cameraZoom) + *(float *)v101);
}
m_robotFire = a1->m_robotFire;
if ( !m_robotFire )
goto LABEL_142;
goto LABEL_130;
}
}
v48 = v45 + a1->m_maybeReverseAcceleration;
v49 = !a1->m_isSideways;
*(_OWORD *)v101 = v39;
if ( v49 )
goto LABEL_89;
goto LABEL_92;
}
}
else
{
v37 = a1->m_yVelocity;
m_isPlatformer = a1->m_isPlatformer;
if ( !m_isPlatformer )
goto LABEL_68;
}
PlayerObject::updateMove(a1, *(float *)v101);
m_isPlatformer = a1->m_isPlatformer;
goto LABEL_68;
}
}