//
// PlayerObject::updateJump from 0x634c40 to 0x635cfc (4284 bytes)
//
// 3 xrefs:
// > PlayerObject::pushButton @ 0x63c9c4
// > PlayerObject::update @ 0x63fa78
// > ??> @ 0x78768
//
// 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::updateJump(PlayerObject *a1, float a2)
{
unsigned int m_holdingRight; // w21
unsigned int m_holdingLeft; // w22
int v6; // w25
int v7; // w0
_BOOL4 m_isOnGround; // w24
_BOOL4 m_isRobot; // w1
int m_jumpBuffered; // w23
double m_gravity; // d10
int v12; // w0
float v13; // s10
float m_gravityMod; // s0
float v15; // s8
float v16; // s9
float v17; // s10
_BOOL4 m_platformerMovingLeft; // w0
unsigned int v19; // w21
int v20; // w2
int v21; // w0
double v22; // d0
double v23; // d1
GJRobotSprite *m_robotSprite; // x22
float m_vehicleSize; // s3
_BOOL4 m_isUpsideDown; // w1
double m_yVelocity; // d1
float v29; // s0
bool v30; // nf
bool v31; // cc
float v32; // s2
float v33; // s10
int v34; // w0
double v35; // d1
double v36; // d0
float m_slopeVelocity; // s0
float v38; // s10
double v39; // d0
float v40; // s10
float v41; // s13
int v42; // w0
double v43; // d1
double v44; // d0
double v45; // d0
bool IsFallingBugged; // w0
bool m_touchedPad; // w1
float v48; // s0
_BOOL4 m_isPlatformer; // w0
float v50; // s12
float v51; // s10
float v52; // s8
int v53; // w0
GJSpiderSprite *m_spiderSprite; // x22
PlayerObject_vtbl *v55; // x1
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1
__int64 v57; // x0
_BOOL4 v58; // w1
GJSpiderSprite *v59; // x22
char *v60; // x0
unsigned int *v61; // x2
int v62; // w1
float v63; // s12
float v64; // s9
int v65; // w0
int v66; // w0
_BOOL4 v67; // w0
unsigned int v68; // w1
double m_totalTime; // x0
float m_yStart; // s8
unsigned int v71; // w21
double v72; // d0
double v73; // d1
int m_maybeSlidingTime; // w2
int v75; // w0
float v76; // s8
float v77; // s8
float ModifiedSlopeYVel; // s0
double v79; // d0
double v80; // d1
GJRobotSprite *v81; // x23
double v82; // d0
double v83; // d0
double m_accelerationOrSpeed; // d9
int v85; // w0
float v86; // s0
float v87; // s1
double v88; // d8
double v89; // d8
double v90; // d0
GJRobotSprite *v91; // x22
char *v92; // x0
double v93; // d0
GameManager *v94; // x0
unsigned int *v95; // x2
int v96; // w1
std::string v97; // [xsp+90h] [xbp+90h] BYREF
m_holdingRight = a1->m_holdingRight;
m_holdingLeft = a1->m_holdingLeft;
if ( a1->m_holdingRight && a1->m_holdingLeft )
{
m_holdingRight = !a1->m_leftPressedFirst;
m_holdingLeft = a1->m_leftPressedFirst;
}
if ( a1->m_isPlatformer
&& a1->m_isOnSlope
&& ((v48 = fabsf(a1->m_slopeAngleRadians * 57.296), v48 >= 80.0) || v48 >= 40.0 && a1->m_currentSlope->m_isIceBlock) )
{
a1->m_isOnGround = 0;
v6 = 0;
}
else if ( a1->m_isOnGround )
{
v6 = 213;
}
else
{
v6 = 0;
}
a1->m_jumpRelatedAC2.value = v6;
v7 = rand();
m_isOnGround = a1->m_isOnGround;
m_isRobot = a1->m_isRobot;
m_jumpBuffered = a1->m_jumpBuffered;
m_gravity = a1->m_gravity;
v12 = (int)(float)((float)((float)v7 * 4.6566e-10) * 1000.0);
a1->m_jumpRelatedAC2.seed = v12;
a1->m_jumpRelatedAC2.random = v6 + v12;
if ( m_isRobot )
m_jumpBuffered &= a1->m_stateRingJump;
if ( a1->m_isBall || PlayerObject::isFlying(a1) || a1->m_isSpider )
v13 = 0.9582;
else
v13 = m_gravity;
m_gravityMod = a1->m_gravityMod;
v15 = v13;
if ( m_gravityMod != 1.0 )
v15 = v13 * m_gravityMod;
v16 = 1.0;
if ( a1->m_vehicleSize != 1.0 )
v16 = 0.8;
if ( PlayerObject::isFlying(a1) )
{
m_vehicleSize = a1->m_vehicleSize;
if ( m_vehicleSize == 1.0 )
{
m_isUpsideDown = a1->m_isUpsideDown;
m_yVelocity = a1->m_yVelocity;
v29 = 8.0 / v16;
v31 = m_yVelocity > 0.0;
v30 = m_yVelocity < 0.0;
v32 = -6.4 / v16;
if ( a1->m_isUpsideDown )
{
LABEL_58:
if ( !v31 && m_yVelocity > (float)-v29 )
{
a1->m_isAccelerating = 0;
goto LABEL_63;
}
if ( m_yVelocity >= 0.0 && m_yVelocity < (float)-v32 )
{
LABEL_62:
a1->m_isAccelerating = 0;
goto LABEL_63;
}
LABEL_104:
if ( !a1->m_isShip )
{
LABEL_64:
if ( !a1->m_isBird )
{
if ( a1->m_isSwing )
{
if ( a1->m_stateRingJump && a1->m_jumpBuffered )
{
v63 = m_yVelocity;
a1->m_stateRingJump = 0;
PlayerObject::flipGravity(a1, !m_isUpsideDown, 1);
PlayerObject::setYVelocity(a1, (float)(v63 * 0.8), 10);
if ( a1->m_gameLayer )
PlayerObject::gameEventTriggered(a1, 20, 0);
m_vehicleSize = a1->m_vehicleSize;
}
if ( m_vehicleSize == 1.0 )
v64 = 0.4;
else
v64 = 0.6;
v65 = PlayerObject::flipMod(a1);
PlayerObject::addToYVelocity(a1, (float)-(float)((float)((float)(v15 * a2) * (float)v65) * v64), 67);
v41 = 1.0;
v16 = 1.0;
if ( a1->m_jumpBuffered )
{
a1->m_isOnGround2 = 0;
v16 = 1.0;
}
}
else
{
v86 = (float)PlayerObject::flipMod(a1) * 8.0;
if ( a1->m_jumpBuffered )
v87 = 1.0;
else
v87 = -1.0;
PlayerObject::setYVelocity(a1, (float)(v86 * v87), 11);
v88 = a1->m_playerSpeed * a1->m_speedMultiplier;
v89 = v88 * (double)PlayerObject::flipMod(a1);
if ( a1->m_jumpBuffered )
v90 = 1.0;
else
v90 = -1.0;
PlayerObject::setYVelocity(a1, v89 * v90, 12);
if ( !a1->m_gameLayer || a1->m_wasJumpBuffered == a1->m_jumpBuffered )
{
v41 = 0.8;
}
else
{
if ( a1->m_jumpBuffered )
PlayerObject::gameEventTriggered(a1, 21, 0);
else
PlayerObject::gameEventTriggered(a1, 22, 0);
v41 = 0.8;
}
}
goto LABEL_83;
}
if ( !a1->m_stateRingJump || !a1->m_jumpBuffered )
{
LABEL_79:
if ( PlayerObject::playerIsFallingBugged(a1) )
{
v41 = 0.8;
v40 = 0.8;
}
else
{
v40 = 1.2;
v41 = 0.8;
}
v42 = PlayerObject::flipMod(a1);
PlayerObject::addToYVelocity(
a1,
(float)-(float)((float)((float)((float)((float)(v15 * a2) * (float)v42) * v40) * 0.5) / v16),
66);
if ( a1->m_jumpBuffered )
a1->m_isOnGround2 = 0;
LABEL_83:
if ( !a1->m_isAccelerating && !a1->m_isDart )
{
v43 = a1->m_yVelocity;
if ( a1->m_isUpsideDown )
{
v82 = (float)(-8.0 / v16);
if ( v43 >= v82 )
v82 = a1->m_yVelocity;
PlayerObject::setYVelocity(a1, v82, 15);
v83 = (float)((float)(v41 * 8.0) / v16);
if ( a1->m_yVelocity <= v83 )
v83 = a1->m_yVelocity;
PlayerObject::setYVelocity(a1, v83, 16);
}
else
{
v44 = (float)((float)(v41 * -8.0) / v16);
if ( v43 >= v44 )
v44 = a1->m_yVelocity;
PlayerObject::setYVelocity(a1, v44, 13);
v45 = (float)(8.0 / v16);
if ( a1->m_yVelocity <= v45 )
v45 = a1->m_yVelocity;
PlayerObject::setYVelocity(a1, v45, 14);
}
}
IsFallingBugged = PlayerObject::playerIsFallingBugged(a1);
m_touchedPad = a1->m_touchedPad;
if ( IsFallingBugged )
a1->m_maybeIsBoosted = 0;
goto LABEL_141;
}
a1->m_stateRingJump = 0;
if ( m_vehicleSize == 1.0 )
v33 = 7.0;
else
v33 = 8.0;
v34 = PlayerObject::flipMod(a1);
v35 = a1->m_yVelocity;
v36 = (float)((float)((float)v34 * v33) * v16);
if ( a1->m_isUpsideDown )
{
if ( v36 < v35 )
goto LABEL_71;
}
else if ( v36 > v35 )
{
LABEL_71:
PlayerObject::setYVelocity(a1, v36, 7);
if ( a1->m_wasOnSlope || a1->m_isOnSlope )
{
m_slopeVelocity = a1->m_slopeVelocity;
if ( m_slopeVelocity > 0.0 )
{
v38 = a1->m_yVelocity * 1.39999998;
PlayerObject::addToYVelocity(a1, (float)(m_slopeVelocity * 0.5), 8);
v39 = v38;
if ( a1->m_yVelocity <= v38 )
v39 = a1->m_yVelocity;
PlayerObject::setYVelocity(a1, v39, 9);
}
}
}
PlayerObject::playBurstEffect(a1);
if ( a1->m_gameLayer )
PlayerObject::gameEventTriggered(a1, 15, 0);
goto LABEL_79;
}
LABEL_105:
m_isPlatformer = a1->m_jumpBuffered;
if ( a1->m_jumpBuffered )
{
if ( !a1->m_isAccelerating )
{
m_isPlatformer = a1->m_isPlatformer;
if ( !a1->m_isPlatformer )
{
v41 = 0.8;
v50 = -1.0;
goto LABEL_179;
}
v41 = 0.8;
v50 = -1.0;
goto LABEL_112;
}
}
else if ( !a1->m_isAccelerating )
{
v41 = 0.8;
v50 = 0.8;
LABEL_170:
if ( PlayerObject::playerIsFallingBugged(a1) )
{
m_isPlatformer = a1->m_jumpBuffered;
LABEL_111:
if ( !a1->m_isPlatformer )
goto LABEL_113;
goto LABEL_112;
}
if ( !a1->m_isPlatformer )
{
v50 = 1.2;
if ( !a1->m_jumpBuffered )
goto LABEL_115;
LABEL_246:
v13 = v15;
LABEL_179:
v15 = v13;
if ( PlayerObject::playerIsFallingBugged(a1) )
{
v51 = 0.5;
goto LABEL_181;
}
LABEL_115:
v51 = 0.4;
LABEL_181:
v66 = PlayerObject::flipMod(a1);
PlayerObject::addToYVelocity(
a1,
(float)-(float)((float)((float)(v50 * (float)((float)(v15 * a2) * (float)v66)) * v51) / v16),
64);
v67 = a1->m_jumpBuffered;
if ( a1->m_jumpBuffered )
a1->m_isOnGround2 = 0;
if ( a1->m_gameLayer && a1->m_wasJumpBuffered != v67 )
{
if ( v67 )
PlayerObject::gameEventTriggered(a1, 16, 0);
else
PlayerObject::gameEventTriggered(a1, 17, 0);
}
goto LABEL_83;
}
m_isPlatformer = a1->m_jumpBuffered;
v50 = 1.2;
LABEL_112:
v15 = v15 * 0.8;
LABEL_113:
if ( v50 < 0.0 )
{
v15 = v13;
if ( !m_isPlatformer )
goto LABEL_115;
}
else if ( !m_isPlatformer )
{
goto LABEL_115;
}
goto LABEL_246;
}
if ( m_isUpsideDown )
{
if ( m_yVelocity <= 0.0 )
goto LABEL_109;
}
else if ( m_yVelocity >= 0.0 )
{
LABEL_109:
v41 = 0.8;
v50 = 0.8;
goto LABEL_110;
}
v50 = -1.0;
v41 = 0.8;
LABEL_110:
if ( a1->m_jumpBuffered )
goto LABEL_111;
goto LABEL_170;
}
}
else
{
m_isUpsideDown = a1->m_isUpsideDown;
m_yVelocity = a1->m_yVelocity;
v32 = -7.5294;
v29 = 9.4118;
v16 = 0.85;
v31 = m_yVelocity > 0.0;
v30 = m_yVelocity < 0.0;
if ( a1->m_isUpsideDown )
goto LABEL_58;
}
if ( !v30 && m_yVelocity < v29 )
goto LABEL_62;
if ( m_yVelocity <= 0.0 && m_yVelocity > v32 )
{
a1->m_isAccelerating = 0;
LABEL_63:
if ( !a1->m_isShip )
goto LABEL_64;
goto LABEL_105;
}
goto LABEL_104;
}
if ( a1->m_isBall || a1->m_isSpider || a1->m_isSwing )
{
v17 = 0.6;
}
else if ( a1->m_isRobot )
{
v17 = 0.9;
}
else
{
v17 = 1.0;
}
m_platformerMovingLeft = a1->m_platformerMovingLeft;
if ( m_holdingLeft < m_platformerMovingLeft || a1->m_platformerMovingRight > m_holdingRight )
{
if ( a1->m_isSlidingRight == m_platformerMovingLeft || a1->m_slopeSlidingMaybeRotated )
{
v20 = 1;
v19 = a1->m_maybeSlidingTime <= 1;
}
else
{
a1->m_maybeSlidingTime = 0;
v19 = 1;
v20 = 1;
}
if ( !m_jumpBuffered )
{
LABEL_122:
if ( !a1->m_maybeIsBoosted )
{
if ( !a1->m_isOnGround )
goto LABEL_30;
goto LABEL_29;
}
goto LABEL_129;
}
}
else
{
v20 = 0;
v19 = 1;
if ( !m_jumpBuffered )
goto LABEL_122;
}
if ( a1->m_isOnGround )
{
if ( a1->m_isSpider )
{
if ( !a1->m_isDashing )
{
PlayerObject::spiderTestJump(a1, 0);
m_touchedPad = a1->m_touchedPad;
goto LABEL_141;
}
LABEL_28:
if ( !a1->m_maybeIsBoosted )
{
LABEL_29:
a1->m_fallStartY = a1->getPosition(a1)->y;
LABEL_30:
if ( PlayerObject::playerIsFallingBugged(a1)
&& (!a1->m_isPlatformer || a1->m_totalTime - a1->m_lastLandTime >= 0.0500000045 || !v19) )
{
a1->m_isOnGround = 0;
}
v21 = PlayerObject::flipMod(a1);
PlayerObject::addToYVelocity(a1, (float)-(float)((float)((float)(v15 * a2) * (float)v21) * v17), 63);
v22 = a1->m_yVelocity;
if ( a1->m_isUpsideDown )
{
if ( v22 > 15.0 )
v22 = 15.0;
PlayerObject::setYVelocity(a1, v22, 6);
}
else
{
if ( v22 < -15.0 )
v22 = -15.0;
PlayerObject::setYVelocity(a1, v22, 5);
}
if ( PlayerObject::playerIsFalling(a1, -0.25)
&& !a1->m_isBall
&& !a1->m_isSpider
&& !a1->m_isRobot
&& !a1->m_isRotating
&& !a1->m_isOnSlope
&& !a1->m_isCollidingWithSlope
&& (!a1->m_isPlatformer || !a1->m_isOnGround2) )
{
PlayerObject::runRotateAction(a1, 1, 12);
}
if ( !PlayerObject::playerIsFallingBugged(a1) )
goto LABEL_140;
v23 = a1->m_yVelocity;
if ( !(a1->m_isUpsideDown ? v23 > 4.0 : v23 < -4.0) )
goto LABEL_140;
if ( a1->m_isRobot )
{
if ( a1->m_isOnGround2 && !a1->m_maybeSpriteRelated )
{
m_robotSprite = a1->m_robotSprite;
sub_D153B8((int)&v97, "fall_loop");
CCAnimatedSprite::tweenToAnimation((__int64)m_robotSprite, &v97, 0.1);
goto LABEL_146;
}
}
else if ( a1->m_isSpider && a1->m_isOnGround2 && !a1->m_maybeSpriteRelated )
{
m_spiderSprite = a1->m_spiderSprite;
sub_D153B8((int)&v97, "fall_loop");
CCAnimatedSprite::tweenToAnimation((__int64)m_spiderSprite, &v97, 0.1);
LABEL_146:
if ( (__int64 *)v97.m_data.m_data - 3 != &qword_124B6B0 )
sub_620F68((char *)v97.m_data.m_data - 24);
}
a1->m_isOnGround2 = 0;
LABEL_140:
m_touchedPad = a1->m_touchedPad;
goto LABEL_141;
}
goto LABEL_129;
}
if ( a1->m_isDashing )
goto LABEL_28;
v68 = a1->m_isPlatformer;
if ( v19 < v68 )
goto LABEL_28;
a1->m_isOnGround2 = 0;
a1->m_maybeIsBoosted = 1;
a1->m_isOnGround = 0;
a1->m_stateRingJump = 0;
a1->m_touchedPad = 0;
a1->m_accelerationOrSpeed = 0.0;
if ( !m_platformerMovingLeft && !a1->m_platformerMovingRight && a1->m_maybeSlidingTime > 0 )
{
m_totalTime = a1->m_totalTime;
a1->m_maybeSlidingTime = 0;
a1->m_maybeSlidingStartTime = m_totalTime;
}
m_yStart = a1->m_yStart;
if ( a1->m_isRobot )
m_yStart = m_yStart * 0.5;
if ( a1->m_jumpRelatedAC2.random - a1->m_jumpRelatedAC2.seed == 213 )
{
v71 = 0;
}
else
{
m_yStart = 9999.0;
v71 = 1;
a1->m_isAccelerating = 1;
}
if ( v20 && v68 )
{
if ( a1->m_isMoving
&& (v72 = fabs(a1->m_platformerXVelocity), v73 = a1->m_playerSpeed * a1->m_speedMultiplier, v72 > v73) )
{
m_maybeSlidingTime = a1->m_maybeSlidingTime;
m_yStart = m_yStart + v72 / v73;
}
else
{
m_maybeSlidingTime = a1->m_maybeSlidingTime;
if ( m_maybeSlidingTime > 0 )
m_yStart = m_yStart * (float)(1.0 - (float)((float)m_maybeSlidingTime * 0.3));
}
a1->m_maybeSlidingTime = m_maybeSlidingTime + 1;
}
v75 = PlayerObject::flipMod(a1);
PlayerObject::setYVelocity(a1, (float)((float)((float)v75 * m_yStart) * v16), 2);
if ( a1->m_wasOnSlope || a1->m_isOnSlope )
{
v76 = a1->m_slopeVelocity;
if ( (float)(v76 * (float)PlayerObject::flipMod(a1)) > 0.0
&& (!a1->m_isPlatformer || fabs(a1->m_platformerXVelocity) > 4.0) )
{
v77 = a1->m_yVelocity * 1.39999998;
ModifiedSlopeYVel = PlayerObject::getModifiedSlopeYVel(a1);
if ( a1->m_isBall )
ModifiedSlopeYVel = a1->m_slopeVelocity;
PlayerObject::addToYVelocity(a1, (float)(ModifiedSlopeYVel * 0.25), 60);
v79 = v77;
v80 = a1->m_yVelocity;
if ( a1->m_isUpsideDown )
{
if ( v80 >= v77 )
v79 = a1->m_yVelocity;
PlayerObject::setYVelocity(a1, v79, 4);
}
else
{
if ( v80 <= v77 )
v79 = a1->m_yVelocity;
PlayerObject::setYVelocity(a1, v79, 3);
}
}
}
a1->m_shouldTryPlacingCheckpoint = 1;
a1->m_lastJumpTime = sub_620B38();
PlayerObject::incrementJumps(a1);
if ( a1->m_isBall )
{
PlayerObject::flipGravity(a1, !a1->m_isUpsideDown, 1);
a1->m_isOnGround3 = 0;
v93 = a1->m_yVelocity;
a1->m_jumpBuffered = 0;
a1->m_yVelocity = v93 * 0.600000024;
}
else
{
if ( a1->m_isRobot )
{
LABEL_216:
v81 = a1->m_robotSprite;
sub_D153B8((int)&v97, "jump_loop");
CCAnimatedSprite::tweenToAnimation((__int64)v81, &v97, 0.1);
if ( (__int64 *)v97.m_data.m_data - 3 != &qword_124B6B0 )
sub_620F68((char *)v97.m_data.m_data - 24);
LABEL_218:
if ( a1->m_gameLayer )
{
if ( PlayerObject::isInNormalMode(a1) )
{
PlayerObject::gameEventTriggered(a1, 12, 0);
}
else if ( a1->m_isRobot )
{
PlayerObject::gameEventTriggered(a1, 13, 0);
}
else if ( a1->m_isBall )
{
PlayerObject::gameEventTriggered(a1, 19, 0);
}
}
if ( v71 < !m_isOnGround )
{
v94 = GameManager::sharedState();
GameManager::setGameVariable(v94, "0055", 1);
}
if ( a1->m_isPlatformer )
{
PlayerObject::animatePlatformerJump(a1, 1.0);
m_touchedPad = a1->m_touchedPad;
goto LABEL_141;
}
goto LABEL_140;
}
if ( a1->m_isSpider )
goto LABEL_218;
PlayerObject::runRotateAction(a1, 1, 11);
}
if ( !a1->m_isRobot )
goto LABEL_218;
goto LABEL_216;
}
if ( !a1->m_maybeIsBoosted )
goto LABEL_30;
LABEL_129:
if ( a1->m_isRobot
&& a1->m_jumpBuffered
&& !a1->m_touchedPad
&& (m_accelerationOrSpeed = a1->m_accelerationOrSpeed, m_accelerationOrSpeed < 1.5) )
{
v52 = v15 * a2;
a1->m_accelerationOrSpeed = m_accelerationOrSpeed + (float)(a2 * 0.1);
v85 = PlayerObject::flipMod(a1);
PlayerObject::addToYVelocity(a1, (float)((float)(v52 * (float)v85) * v17), 61);
}
else
{
v52 = v15 * a2;
}
v53 = PlayerObject::flipMod(a1);
PlayerObject::addToYVelocity(a1, (float)-(float)((float)((float)v53 * v52) * v17), 62);
if ( a1->m_isRobot && a1->m_touchedPad && !a1->m_wasRobotJump && a1->m_gameLayer )
PlayerObject::gameEventTriggered(a1, 14, 0);
if ( !PlayerObject::playerIsFallingBugged(a1) && (!a1->m_isPlatformer || PlayerObject::playerIsMovingUp(a1)) )
goto LABEL_140;
v55 = a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_maybeIsBoosted = 0;
a1->m_maybeIsFalling = 1;
getPosition = v55->getPosition;
a1->m_isOnGround2 = 0;
v57 = (__int64)getPosition(a1);
v58 = a1->m_isRobot;
a1->m_fallStartY = *(float *)(v57 + 4);
if ( !v58 )
{
if ( a1->m_isSpider )
{
v59 = a1->m_spiderSprite;
sub_D153B8((int)&v97, "fall_loop");
CCAnimatedSprite::tweenToAnimation((__int64)v59, &v97, 0.1);
v60 = (char *)v97.m_data.m_data - 24;
if ( (__int64 *)v97.m_data.m_data - 3 != &qword_124B6B0 )
{
if ( &pthread_create )
{
v61 = (unsigned int *)((char *)v97.m_data.m_data - 8);
do
v62 = __ldaxr(v61);
while ( __stlxr(v62 - 1, v61) );
}
else
{
v62 = *((_DWORD *)v97.m_data.m_data - 2);
*((_DWORD *)v97.m_data.m_data - 2) = v62 - 1;
}
if ( v62 <= 0 )
operator delete(v60);
}
}
goto LABEL_140;
}
v91 = a1->m_robotSprite;
sub_D153B8((int)&v97, "fall_loop");
CCAnimatedSprite::tweenToAnimation((__int64)v91, &v97, 0.1);
v92 = (char *)v97.m_data.m_data - 24;
if ( (__int64 *)v97.m_data.m_data - 3 != &qword_124B6B0 )
{
if ( &pthread_create )
{
v95 = (unsigned int *)((char *)v97.m_data.m_data - 8);
do
v96 = __ldaxr(v95);
while ( __stlxr(v96 - 1, v95) );
}
else
{
v96 = *((_DWORD *)v97.m_data.m_data - 2);
*((_DWORD *)v97.m_data.m_data - 2) = v96 - 1;
}
if ( v96 <= 0 )
operator delete(v92);
}
m_touchedPad = a1->m_touchedPad;
if ( !m_touchedPad && a1->m_gameLayer )
{
PlayerObject::gameEventTriggered(a1, 14, 0);
m_touchedPad = a1->m_touchedPad;
}
LABEL_141:
a1->m_wasJumpBuffered = a1->m_jumpBuffered;
a1->m_wasRobotJump = m_touchedPad;
}