//
// PlayerObject::collidedWithSlopeInternal from 0x34b4b8 to 0x34c3d2 (3866 bytes)
//
// 2 xrefs:
// > PlayerObject::handleRotatedCollisionInternal @ 0x34c41e
// > PlayerObject::collidedWithSlope @ 0x34c640
//
// 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::collidedWithSlopeInternal(PlayerObject *a1, float a2, GameObject *a3, bool a4)
{
_BOOL4 v6; // r7
const cocos2d::CCRect *v8; // r0
const cocos2d::CCRect *v9; // r0
unsigned int m_slopeUphill; // r5
int v11; // r3
double m_platformerXVelocity; // d7
_BOOL4 v13; // r10
const cocos2d::CCPoint *LastPosition; // r0
float v15; // s12
float v16; // s22
unsigned __int8 v17; // r1
int v18; // r0
float v19; // s16
float v20; // s14
float v21; // s18
float m_slopeVelocity; // s16
float v23; // s16
const cocos2d::CCPoint *v24; // r9
float v25; // s15
_BOOL4 m_isUpsideDown; // r9
double *p_m_slopeRotation; // r3
float height; // s17
int v29; // r8
float v30; // s13
float v31; // s13
float v32; // s15
float v33; // s15
float v34; // s17
float v35; // s17
float v36; // s15
const cocos2d::CCPoint *v37; // r0
float v38; // s17
float v39; // s20
float SlopeAngle; // s23
float v41; // r0
float v42; // s25
int v43; // r9
float v44; // s26
double v45; // r0
int v46; // r3
float v47; // s24
float v48; // s20
float v49; // s24
bool v50; // cc
float v51; // s17
int v52; // r3
int v53; // r3
_BOOL4 v54; // r3
int v55; // r8
_BOOL4 v56; // r3
_BOOL4 v57; // r3
_BOOL4 v58; // r3
int v59; // r7
_BOOL4 v60; // r11
_BOOL4 isSafeMode; // r0
_BOOL4 v62; // r3
void (__fastcall *setPosition)(PlayerObject *__hidden, const cocos2d::CCPoint *); // r6
const cocos2d::CCPoint *v64; // r0
double *p_m_yVelocity; // r3
double v66; // d7
float v67; // s16
_BOOL4 m_isPlatformer; // r2
_DWORD *v69; // r0
float v70; // s25
double *v71; // r10
double m_slopeRotation; // d10
int m_uniqueID; // r3
int v74; // r0
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // r3
const cocos2d::CCPoint *v76; // r0
void (__fastcall *v77)(PlayerObject *__hidden, const cocos2d::CCPoint *); // r8
const cocos2d::CCPoint *v78; // r0
double *v79; // r3
double v80; // d12
float v81; // s17
double v82; // d7
double v83; // d7
float v84; // r0
_BOOL4 m_isSideways; // r2
bool v86; // r3
const cocos2d::CCPoint *v87; // r0
float x; // s17
float y; // s15
double m_yVelocity; // d6
int v91; // r0
int v92; // r0
float *p_m_slopeVelocity; // r6
float v94; // s23
float v95; // s18
int v96; // r0
_BOOL4 v97; // r3
_BOOL4 isFlying; // r0
_BOOL4 m_isBall; // r3
_BOOL4 m_maybeCanRunIntoBlocks; // r5
GameManager *v101; // r0
float v102; // s20
float v103; // s15
float v104; // s16
float v105; // s15
_BOOL4 v106; // [sp+Ch] [bp-88h]
_BOOL4 v107; // [sp+10h] [bp-84h]
_BOOL4 v108; // [sp+14h] [bp-80h]
int v109; // [sp+18h] [bp-7Ch]
int v110; // [sp+1Ch] [bp-78h]
int v111; // [sp+20h] [bp-74h]
int v112; // [sp+24h] [bp-70h]
float v113; // [sp+2Ch] [bp-68h]
float v114; // [sp+34h] [bp-60h] BYREF
float v115; // [sp+38h] [bp-5Ch]
float v116[2]; // [sp+3Ch] [bp-58h] BYREF
cocos2d::CCPoint v117; // [sp+44h] [bp-50h] BYREF
cocos2d::CCPoint v118; // [sp+4Ch] [bp-48h] BYREF
cocos2d::CCPoint v119; // [sp+54h] [bp-40h] BYREF
cocos2d::CCRect v120; // [sp+5Ch] [bp-38h] BYREF
cocos2d::CCRect v121; // [sp+6Ch] [bp-28h] BYREF
cocos2d::CCRect v122; // [sp+7Ch] [bp-18h] BYREF
v6 = a4;
if ( a4 || !PlayerObject::preSlopeCollision(a1, a2, a3) )
{
v8 = a1->getObjectRect(a1);
cocos2d::CCRect::CCRect(&v120, v8);
v9 = a3->getObjectRect(a3);
cocos2d::CCRect::CCRect(&v121, v9);
m_slopeUphill = a3->m_slopeUphill;
v11 = m_slopeUphill ^ 1;
if ( a1->m_isPlatformer )
{
m_platformerXVelocity = a1->m_platformerXVelocity;
if ( m_platformerXVelocity < 0.0 )
v11 = 1;
else
m_slopeUphill ^= 1u;
if ( m_platformerXVelocity >= 0.0 )
v11 = 0;
}
else
{
if ( a1->m_isGoingLeft )
v11 = 1;
else
m_slopeUphill ^= 1u;
if ( !a1->m_isGoingLeft )
v11 = 0;
}
v111 = v11;
v13 = GameObject::slopeFloorTop(a3);
a3->getRealPosition((cocos2d::CCPoint *)&v122, a3);
LastPosition = GameObject::getLastPosition(a3);
cocos2d::CCPoint::operator-(&v114, &v122, LastPosition);
v15 = v114;
v16 = v115;
if ( a1->m_isSideways )
{
v16 = v114;
v15 = v115;
}
if ( v15 <= a1->m_playerSpeed * a1->m_speedMultiplier * a2 )
{
v110 = 0;
v112 = 0;
}
else
{
v17 = m_slopeUphill ^ 1;
if ( a1->m_isUpsideDown )
{
v18 = v17;
}
else
{
v18 = m_slopeUphill;
if ( m_slopeUphill )
v18 = 1;
}
m_slopeUphill = v17;
v112 = v18;
v110 = 1;
}
if ( a1->m_isUpsideDown != a1->m_isSideways )
m_slopeUphill = (unsigned __int8)m_slopeUphill ^ 1;
if ( !a1->m_wasOnSlope
|| (v19 = a1->m_slopeVelocity, (float)(v19 * (float)PlayerObject::flipMod(a1)) <= 0.0)
|| !m_slopeUphill
|| a1->m_isCurrentSlopeTop != v13
|| a1->m_isUpsideDown != v13 )
{
v20 = v121.size.width / (a1->m_playerSpeed * a1->m_speedMultiplier);
v21 = v121.size.height / v20;
if ( !a1->m_wasOnSlope
|| (m_slopeVelocity = a1->m_slopeVelocity, (float)(m_slopeVelocity * (float)PlayerObject::flipMod(a1)) <= 0.0)
|| a1->m_currentSlopeYVelocity <= v21 )
{
if ( a1->m_wasOnSlope )
v23 = (float)(int)(4 * m_slopeUphill);
else
v23 = (float)m_slopeUphill;
v24 = GameObject::getLastPosition(a3);
a3->getRealPosition((cocos2d::CCPoint *)&v122, a3);
cocos2d::CCPoint::operator-(v116, v24, &v122);
v25 = v116[0];
m_isUpsideDown = a1->m_isUpsideDown;
p_m_slopeRotation = &a1->m_slopeRotation;
height = v120.size.height;
if ( !a1->m_isSideways )
v25 = v116[1];
if ( a1->m_isUpsideDown )
{
if ( v25 >= 0.0 )
{
if ( !v6 )
{
v29 = 0;
v36 = *p_m_slopeRotation;
v34 = (float)(height * 0.5) / cosf(v36);
goto LABEL_57;
}
goto LABEL_47;
}
}
else if ( v25 <= 0.0 )
{
if ( !v6 )
{
v29 = 0;
v105 = *p_m_slopeRotation;
v34 = (float)(height * 0.5) / cosf(v105);
LABEL_54:
v35 = (float)(a1->getPosition(a1)->y - v34) - v23;
goto LABEL_58;
}
LABEL_47:
v29 = 0;
LABEL_48:
if ( a1->m_isPlatformer )
v30 = 10.0;
else
v30 = 5.0;
v31 = v30 * a2;
v32 = fabsf(v25);
if ( v32 > v31 )
v32 = v31;
v23 = v23 + v32;
v33 = *p_m_slopeRotation;
v34 = (float)(height * 0.5) / cosf(v33);
if ( !m_isUpsideDown )
goto LABEL_54;
LABEL_57:
v35 = (float)(v34 + a1->getPosition(a1)->y) + v23;
LABEL_58:
if ( a1->m_wasOnSlope )
{
if ( a1->m_isUpsideDown )
{
if ( v35 < v121.origin.y )
return;
}
else if ( v35 > (float)(v121.origin.y + v121.size.height) )
{
return;
}
}
else
{
cocos2d::CCRect::CCRect(&v122, v121.origin.x, v121.origin.y + 1.0, v121.size.width, v121.size.height - 2.0);
if ( !cocos2d::CCRect::intersectsRect(&v120, &v122) )
return;
}
v37 = a1->getPosition(a1);
cocos2d::CCPoint::CCPoint(&v117, v37);
v38 = COERCE_FLOAT(cocos2d::CCRect::getMinY(&v121));
v39 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(&v121));
SlopeAngle = GameObject::getSlopeAngle(a3);
v41 = cosf(SlopeAngle);
v42 = (float)(v120.size.height / v41) * 0.5;
if ( !a1->m_wasOnSlope || a1->m_collidingWithSlopeId == a3->m_uniqueID || a1->m_isCurrentSlopeTop == v13 )
{
v43 = 0;
}
else
{
if ( !a1->m_isPlatformer )
{
v43 = 1;
v44 = a1->m_vehicleSize * 20.0;
LABEL_71:
LODWORD(v45) = GameObject::slopeYPos(a3, v117.x);
v47 = v45;
if ( v13 )
{
v51 = (float)(v38 - (float)(v120.size.height * 0.5)) + v44;
v49 = (float)(v47 - v42) + v44;
if ( v49 > v51 )
{
v52 = 0;
}
else
{
v49 = v51;
v52 = 1;
}
v107 = v52;
if ( v49 >= v39 )
{
v49 = v39;
goto LABEL_84;
}
}
else
{
v48 = (float)(v39 + (float)(v120.size.height * 0.5)) - v44;
v49 = (float)(v47 + v42) - v44;
v50 = v49 < v48;
if ( v49 < v48 )
{
v107 = 0;
}
else
{
v49 = v48;
v46 = 1;
}
if ( !v50 )
v107 = v46;
if ( v49 <= v38 )
{
v49 = v38;
LABEL_84:
v53 = 1;
goto LABEL_86;
}
}
v53 = 0;
LABEL_86:
v108 = v53;
if ( a1->m_isUpsideDown )
{
if ( v13 )
goto LABEL_90;
}
else if ( !v13 )
{
LABEL_90:
if ( v43 )
{
if ( v6 )
{
if ( m_slopeUphill )
goto LABEL_296;
}
else if ( m_slopeUphill )
{
goto LABEL_105;
}
}
else if ( m_slopeUphill )
{
if ( !a1->m_isOnSlope && (!a1->m_maybeIsBoosted || PlayerObject::isFlying(a1)) )
{
v54 = !a1->m_isShip || !a1->m_jumpBuffered;
goto LABEL_297;
}
LABEL_296:
v54 = 0;
LABEL_297:
v6 = v54;
goto LABEL_105;
}
if ( v29 )
v6 = 1;
LABEL_105:
if ( a1->m_isUpsideDown )
{
if ( v117.y > v49 )
goto LABEL_119;
if ( v6 )
{
if ( v117.y <= (float)(v49 - v23) )
{
v55 = 0;
goto LABEL_120;
}
if ( a1->m_isBird )
{
v55 = a1->m_yVelocity >= 0.0;
goto LABEL_120;
}
LABEL_119:
v55 = 1;
goto LABEL_120;
}
}
else
{
if ( v117.y < v49 )
goto LABEL_119;
if ( v6 )
{
if ( v117.y >= (float)(v49 + v23) )
{
v55 = a1->m_isUpsideDown;
goto LABEL_120;
}
if ( a1->m_isBird )
{
v55 = a1->m_yVelocity <= 0.0;
LABEL_120:
if ( a1->m_jumpBuffered && PlayerObject::isFlying(a1) && (!m_slopeUphill || a1->m_isPlatformer) )
{
if ( a1->m_isPlatformer )
{
v109 = v43 ^ 1;
v59 = 1;
v106 = 0;
}
else
{
v59 = 1;
v106 = 0;
v109 = 1;
}
v60 = 0;
}
else
{
v59 = 0;
v106 = 0;
v60 = 0;
v109 = 0;
}
goto LABEL_165;
}
goto LABEL_119;
}
}
v55 = v6;
goto LABEL_120;
}
if ( m_slopeUphill )
{
v23 = 0.0;
}
else if ( PlayerObject::isFlying(a1) && a1->m_jumpBuffered )
{
v23 = 2.0;
if ( !a1->m_wasOnSlope )
v23 = 1.0;
}
v56 = !v43 && (!PlayerObject::isFlying(a1) || !m_slopeUphill || a1->m_isPlatformer) && !a1->m_isOnSlope;
if ( a1->m_isUpsideDown )
{
if ( v117.y >= v49 )
{
if ( v56 )
{
v55 = v117.y < (float)(v49 + v23);
goto LABEL_145;
}
LABEL_144:
v55 = v56;
goto LABEL_145;
}
}
else if ( v117.y <= v49 )
{
if ( v56 )
{
v55 = v117.y > (float)(v49 - v23);
LABEL_145:
v57 = !a1->m_jumpBuffered
&& !a1->m_isPlatformer
&& (PlayerObject::isFlying(a1) || a1->m_isBall)
&& m_slopeUphill
&& a1->m_wasOnSlope;
v109 = v57;
v58 = !a1->m_jumpBuffered && PlayerObject::isFlying(a1) && m_slopeUphill;
v106 = v58;
if ( v55
&& !PlayerObject::isFlying(a1)
&& !a1->m_isBall
&& !a1->m_isPlatformer
&& a1->m_stateHitHead <= 0 )
{
isSafeMode = PlayerObject::isSafeMode(a1, 0.1);
if ( isSafeMode || PlayerObject::isSafeFlip(a1, 0.1) )
{
setPosition = a1->setPosition;
v64 = a1->getPosition(a1);
cocos2d::CCPoint::CCPoint(&v122.origin, v64->x, v49);
setPosition(a1, &v122.origin);
p_m_yVelocity = &a1->m_yVelocity;
if ( a1->m_isUpsideDown )
{
v66 = *p_m_yVelocity;
if ( *p_m_yVelocity < 2.0 )
v66 = 2.0;
}
else
{
v66 = *p_m_yVelocity;
if ( *p_m_yVelocity > -2.0 )
v66 = -2.0;
}
PlayerObject::setYVelocity(a1, v66, 18);
}
else
{
if ( a1->m_isUpsideDown )
v62 = (float)(v117.y + 2.0) < v49;
else
v62 = (float)(v117.y - 2.0) > v49;
if ( v62 )
{
if ( !a1->m_ignoreDamage )
{
LABEL_282:
m_maybeCanRunIntoBlocks = a1->m_maybeCanRunIntoBlocks;
if ( a1->m_maybeCanRunIntoBlocks )
{
a1->m_maybeIsColliding = 1;
}
else
{
v101 = GameManager::sharedState();
v101->m_playLayer->destroyPlayer(
v101->m_playLayer,
a1,
(GameObject *)m_maybeCanRunIntoBlocks);
}
return;
}
v59 = 0;
v60 = 1;
LABEL_174:
if ( (a3->m_slopeIsHazard
|| (v43 || a1->m_isDart && a1->m_stateDartSlide <= 0)
&& !a1->m_isPlatformer
&& a1->m_stateHitHead <= 0)
&& !a1->m_ignoreDamage )
{
goto LABEL_282;
}
v55 = 1;
LABEL_201:
if ( a1->m_isSideways
&& (v113 = *(float *)&a3->m_uniqueID,
sub_33C364(&a1->m_rotateObjectsRelated._M_h._M_buckets, LODWORD(v113))) )
{
v122.origin.x = v113;
v67 = v49
- *((double *)std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[](
&a1->m_rotateObjectsRelated._M_h._M_buckets,
(unsigned int *)&v122)
+ 1);
}
else
{
v67 = v49;
}
if ( !a1->m_wasOnSlope )
goto LABEL_222;
if ( a1->m_unk3d0 == v49 || a1->m_isSideways && a1->m_blackOrbRelated == v67 )
{
m_isPlatformer = a1->m_isPlatformer;
if ( !a1->m_isPlatformer )
goto LABEL_221;
if ( fabs(a1->m_platformerXVelocity) >= 0.100000001 )
{
v55 = 0;
goto LABEL_222;
}
if ( v16 == 0.0 )
{
LABEL_223:
if ( !v55 )
{
if ( !m_slopeUphill )
return;
LABEL_226:
if ( a1->m_isDart && a1->m_jumpBuffered && a1->m_isUpsideDown == v13 )
return;
LABEL_229:
if ( !v55 )
return;
a1->m_currentSlope = a3;
a1->m_slopeAngleRadians = GameObject::getSlopeAngle(a3);
a1->m_currentPotentialSlope = a1->m_currentSlope;
LODWORD(v122.origin.x) = a3->m_uniqueID;
v69 = std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[](
&a1->m_potentialSlopeMap._M_h._M_buckets,
(unsigned int *)&v122);
v70 = v42 - (float)(v120.size.height * 0.5);
*v69 = a3;
a1->unk_584 = v70;
a1->m_isCurrentSlopeTop = v13;
v71 = &a1->m_slopeRotation;
m_slopeRotation = a1->m_slopeRotation;
a1->m_unk3d0 = v49;
a1->m_blackOrbRelated = v67;
m_uniqueID = a3->m_uniqueID;
a1->m_slopeFlipGravityRelated = m_slopeUphill;
a1->m_collidingWithSlopeId = m_uniqueID;
a1->m_unk3e0 = v107;
a1->m_unk3e1 = v108;
v74 = PlayerObject::flipMod(a1);
getPosition = a1->getPosition;
a1->m_slopeRotation = (float)((float)((float)(SlopeAngle * 57.296)
* (float)(((((((((unsigned __int8)m_slopeUphill ^ 1)
+ (v74
^ -((unsigned __int8)m_slopeUphill ^ 1)))
^ -v110)
+ v110)
^ -v111)
+ v111)
^ -a1->m_isSideways)
+ a1->m_isSideways))
* 0.017453);
v76 = getPosition(a1);
cocos2d::CCPoint::CCPoint(&v118, v76);
v77 = a1->setPosition;
v78 = a1->getPosition(a1);
cocos2d::CCPoint::CCPoint(&v122.origin, v78->x, v49);
v77(a1, &v122.origin);
a1->m_isOnSlope = 1;
if ( !a1->m_wasOnSlope )
{
a1->m_slopeStartTime = a1->m_totalTime;
a1->m_yVelocityBeforeSlope = a1->m_yVelocity;
}
a1->m_maybeUpsideDownSlope = v60;
if ( v109 )
goto LABEL_258;
v79 = &a1->m_yVelocity;
if ( v60 )
{
v83 = *v79;
if ( a1->m_isUpsideDown )
{
if ( *v79 < 0.0 )
v83 = 0.0;
}
else if ( *v79 > 0.0 )
{
v83 = 0.0;
}
PlayerObject::setYVelocity(a1, v83, 20);
a1->m_isOnGround = 0;
a1->m_isOnGround2 = 0;
PlayerObject::updateCollide(a1, (PlayerCollisionDirection)0, a3);
goto LABEL_258;
}
v80 = *v79;
PlayerObject::hitGround(a1, a3, 0);
v81 = v80;
if ( a1->m_isUpsideDown )
{
if ( v81 >= -5.0 )
{
LABEL_239:
if ( a1->m_isPlatformer
&& fabsf(a1->m_slopeAngleRadians * 57.296) > 40.0
&& v81 < -5.0 )
{
v82 = a1->m_platformerXVelocity;
if ( v82 > 0.0 )
a1->m_platformerXVelocity = v82 * 0.5;
}
PlayerObject::updateCollide(a1, (PlayerCollisionDirection)1, a3);
a1->m_currentSlope2 = a3;
v84 = GameObject::getSlopeAngle(a3);
m_isSideways = a1->m_isSideways;
a1->m_slopeAngle = v84;
v86 = a1->m_currentSlope2->m_slopeUphill;
a1->m_slopeSlidingMaybeRotated = v86;
if ( m_isSideways )
a1->m_slopeSlidingMaybeRotated = !v86;
if ( a1->m_slopeSlidingMaybeRotated && v84 >= 1.0 )
a1->m_maybeSlidingTime = 3;
v87 = GameObject::getLastPosition(a3);
cocos2d::CCPoint::CCPoint(&v119, v87);
a3->getRealPosition((cocos2d::CCPoint *)&v122, a3);
x = v122.origin.x;
y = v119.x;
if ( v122.origin.x != v119.x || v122.origin.y != v119.y )
{
if ( a1->m_isUpsideDown )
{
if ( v119.x <= v122.origin.x )
goto LABEL_258;
}
else
{
y = v119.y;
x = v122.origin.y;
if ( v119.y >= v122.origin.y )
goto LABEL_258;
}
a1->m_groundYVelocity = (float)((float)(x - y) / a2);
}
LABEL_258:
if ( v106 )
{
m_yVelocity = a1->m_yVelocity;
if ( a1->m_isUpsideDown )
{
if ( m_yVelocity >= 2.0 )
{
if ( !v59 )
goto LABEL_270;
goto LABEL_269;
}
}
else if ( m_yVelocity <= -2.0 )
{
if ( !v59 )
goto LABEL_270;
goto LABEL_266;
}
v91 = PlayerObject::flipMod(a1);
PlayerObject::setYVelocity(a1, (float)((float)v91 * -2.0), 21);
}
if ( !v59 )
goto LABEL_270;
if ( !a1->m_isUpsideDown )
{
LABEL_266:
if ( a1->m_yVelocity < 2.0 )
{
LABEL_267:
v92 = PlayerObject::flipMod(a1);
PlayerObject::setYVelocity(a1, (float)((float)v92 + (float)v92), 22);
}
LABEL_270:
p_m_slopeVelocity = &a1->m_slopeVelocity;
a1->m_currentSlopeYVelocity = v21;
v94 = 0.8 / SlopeAngle;
if ( v94 >= 1.1 )
v94 = 1.1;
v95 = (float)(v21 * 1.4) * v94;
if ( m_slopeUphill && !v112 )
v95 = -v95;
*p_m_slopeVelocity = v95;
v96 = PlayerObject::flipMod(a1);
v97 = a1->m_isPlatformer;
*p_m_slopeVelocity = *p_m_slopeVelocity * (float)v96;
if ( v97 && v60 && a1->m_isBird )
a1->m_jumpBuffered = 0;
isFlying = PlayerObject::isFlying(a1);
m_isBall = a1->m_isBall;
if ( (isFlying || a1->m_isBall)
&& (*p_m_slopeVelocity = *p_m_slopeVelocity * 0.75, m_isBall) )
{
v102 = m_slopeRotation;
if ( v102 != *v71 )
{
v103 = *v71;
v104 = 1.0 / cosf(v103);
if ( v104 > 2.0 )
v104 = (float)((float)(v104 - 1.0) * 0.7) + 1.0;
PlayerObject::stopRotation(a1, 1, 1);
PlayerObject::runBallRotation(a1, v104);
}
}
else
{
PlayerObject::updateSlopeRotation(a1, a2);
}
return;
}
LABEL_269:
if ( a1->m_yVelocity <= -2.0 )
goto LABEL_270;
goto LABEL_267;
}
}
else if ( v81 <= 5.0 )
{
goto LABEL_239;
}
PlayerObject::setYVelocity(a1, v81, 100);
goto LABEL_239;
}
cocos2d::CCRect::CCRect(
&v122,
v120.origin.x - 2.0,
v120.origin.y - 10.0,
v120.size.width + 4.0,
v120.size.height + 20.0);
v55 = cocos2d::CCRect::intersectsRect(&v121, &v122);
LABEL_225:
if ( !m_slopeUphill )
goto LABEL_229;
goto LABEL_226;
}
}
else if ( v16 == 0.0 )
{
goto LABEL_222;
}
if ( (!v107 || !a1->m_unk3e0) && (!v108 || !a1->m_unk3e1) || a1->m_isDashing )
goto LABEL_222;
m_isPlatformer = a1->m_isPlatformer;
if ( a1->m_isPlatformer )
{
if ( fabs(a1->m_platformerXVelocity) > 0.100000001 )
v55 = 0;
LABEL_222:
if ( !a1->m_isPlatformer )
goto LABEL_225;
goto LABEL_223;
}
LABEL_221:
v55 = m_isPlatformer;
goto LABEL_222;
}
}
a1->m_isOnGround = 0;
a1->m_isOnGround2 = 0;
return;
}
v59 = 0;
v60 = 1;
LABEL_165:
if ( !v55 )
goto LABEL_201;
goto LABEL_174;
}
goto LABEL_144;
}
v55 = 1;
goto LABEL_145;
}
v43 = 1;
}
v44 = 0.0;
goto LABEL_71;
}
v29 = 1;
goto LABEL_48;
}
}
}
}