//
// PlayerObject::collidedWithSlopeInternal from 0x441400 to 0x442322 (3874 bytes)
//
// 2 xrefs:
// > PlayerObject::handleRotatedCollisionInternal @ 0x442776
// > PlayerObject::collidedWithSlope @ 0x442998
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:48:27 +0000
//
float *__fastcall PlayerObject::collidedWithSlopeInternal(PlayerObject *this, float a2, GameObject *a3, int a4)
{
int v6; // r7
double v8; // r0
const cocos2d::CCRect *v9; // r0
const cocos2d::CCRect *v10; // r0
int v11; // r6
int v12; // r3
double v13; // d7
int v14; // r10
int LastPosition; // r0
float v16; // s12
float v17; // s22
unsigned __int8 v18; // r1
int v19; // r0
float v20; // s16
float v21; // s14
float v22; // s18
float v23; // s16
float v24; // s16
int v25; // r9
float v26; // s15
int v27; // r9
double *v28; // r3
float v29; // s17
int v30; // r8
float v31; // s13
float v32; // s13
float v33; // s15
float v34; // s15
float v35; // s17
float v36; // s17
float v37; // s15
const cocos2d::CCPoint *v38; // r0
float v39; // s17
float v40; // s20
float v41; // s23
float v42; // r0
float v43; // s25
int v44; // r9
float v45; // s26
int v46; // r3
float v47; // s24
float v48; // s20
float v49; // s24
bool v50; // cc
float v51; // s17
int v52; // r3
int v53; // r3
int v54; // r3
int v55; // r8
int v56; // r3
int v57; // r3
_BOOL4 v58; // r3
int v59; // r7
int v60; // r11
_BOOL4 isSafeMode; // r0
_BOOL4 v62; // r3
void (__fastcall *v63)(PlayerObject *, float *); // r6
float *v64; // r0
double v65; // r0
double *v66; // r3
double v67; // d7
float v68; // s16
int v69; // r2
double *v70; // r10
int v71; // r3
double v72; // d10
const cocos2d::CCPoint *v73; // r0
void (__fastcall *v74)(PlayerObject *, float *); // r8
float *v75; // r0
double v76; // r0
double *v77; // r3
double v78; // d12
double v79; // r0
float v80; // s17
double v81; // d7
double v82; // d7
float v83; // r0
int v84; // r2
char v85; // r3
const cocos2d::CCPoint *v86; // r0
float v87; // s17
float v88; // s15
double v89; // d6
int v90; // s15
double v91; // r0
int v92; // s15
double v93; // r0
float *v94; // r5
float v95; // s23
float v96; // s18
float v97; // s20
float v98; // s15
float v99; // s16
int v100; // r5
int v101; // r0
float v102; // s15
_BOOL4 v104; // [sp+Ch] [bp-88h]
int v105; // [sp+10h] [bp-84h]
int v106; // [sp+14h] [bp-80h]
int v107; // [sp+18h] [bp-7Ch]
int v108; // [sp+1Ch] [bp-78h]
int v109; // [sp+20h] [bp-74h]
int v110; // [sp+24h] [bp-70h]
float v111; // [sp+34h] [bp-60h] BYREF
float v112; // [sp+38h] [bp-5Ch]
float v113[2]; // [sp+3Ch] [bp-58h] BYREF
float v114; // [sp+44h] [bp-50h] BYREF
float v115; // [sp+48h] [bp-4Ch]
_BYTE v116[8]; // [sp+4Ch] [bp-48h] BYREF
float v117; // [sp+54h] [bp-40h] BYREF
float v118; // [sp+58h] [bp-3Ch]
float v119[3]; // [sp+5Ch] [bp-38h] BYREF
float v120; // [sp+68h] [bp-2Ch]
float v121; // [sp+6Ch] [bp-28h] BYREF
float v122; // [sp+70h] [bp-24h]
float v123; // [sp+74h] [bp-20h]
float v124; // [sp+78h] [bp-1Ch]
float v125; // [sp+7Ch] [bp-18h] BYREF
float v126; // [sp+80h] [bp-14h]
v6 = a4;
if ( a4 || (LODWORD(v8) = PlayerObject::preSlopeCollision(this, a2, a3)) == 0 )
{
v9 = (const cocos2d::CCRect *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 664))(this);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v119, v9);
v10 = (const cocos2d::CCRect *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)a3 + 664))(a3);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v121, v10);
v11 = *((unsigned __int8 *)a3 + 944);
v12 = v11 ^ 1;
if ( *((_BYTE *)this + 2320) )
{
v13 = *((double *)this + 275);
if ( v13 < 0.0 )
v12 = 1;
else
v11 ^= 1u;
if ( v13 >= 0.0 )
v12 = 0;
}
else
{
if ( *((_BYTE *)this + 1962) )
v12 = 1;
else
v11 ^= 1u;
if ( !*((_BYTE *)this + 1962) )
v12 = 0;
}
v110 = v12;
v14 = GameObject::slopeFloorTop(a3);
(*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)a3 + 680))(&v125, a3);
LastPosition = GameObject::getLastPosition(a3);
cocos2d::CCPoint::operator-(&v111, &v125, LastPosition);
v16 = v111;
v17 = v112;
if ( *((_BYTE *)this + 1963) )
{
v17 = v111;
v16 = v112;
}
if ( v16 <= *((float *)this + 503) * *((double *)this + 195) * a2 )
{
v108 = 0;
v109 = 0;
}
else
{
v18 = v11 ^ 1;
if ( *((_BYTE *)this + 1959) )
{
v19 = v18;
}
else
{
v19 = v11;
if ( v11 )
v19 = 1;
}
v11 = v18;
v109 = v19;
v108 = 1;
}
if ( *((unsigned __int8 *)this + 1959) != *((unsigned __int8 *)this + 1963) )
v11 = (unsigned __int8)v11 ^ 1;
if ( !*((_BYTE *)this + 1945)
|| (v20 = *((float *)this + 487),
LODWORD(v8) = PlayerObject::flipMod(this),
(float)(v20 * (float)SLODWORD(v8)) <= 0.0)
|| !v11
|| *((unsigned __int8 *)this + 1851) != v14
|| *((unsigned __int8 *)this + 1959) != v14 )
{
v21 = v123 / (*((float *)this + 503) * *((double *)this + 195));
v22 = v124 / v21;
if ( !*((_BYTE *)this + 1945)
|| (v23 = *((float *)this + 487),
LODWORD(v8) = PlayerObject::flipMod(this),
(float)(v23 * (float)SLODWORD(v8)) <= 0.0)
|| *((double *)this + 228) <= v22 )
{
if ( *((_BYTE *)this + 1945) )
v24 = (float)(4 * v11);
else
v24 = (float)(unsigned int)v11;
v25 = GameObject::getLastPosition(a3);
(*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)a3 + 680))(&v125, a3);
cocos2d::CCPoint::operator-(v113, v25, &v125);
v26 = v113[0];
v27 = *((unsigned __int8 *)this + 1959);
v28 = (double *)((char *)this + 1816);
v29 = v120;
if ( !*((_BYTE *)this + 1963) )
v26 = v113[1];
if ( *((_BYTE *)this + 1959) )
{
if ( v26 >= 0.0 )
{
if ( !v6 )
{
v30 = 0;
v37 = *v28;
v35 = (float)(v29 * 0.5) / cosf(v37);
goto LABEL_57;
}
goto LABEL_47;
}
}
else if ( v26 <= 0.0 )
{
if ( !v6 )
{
v30 = 0;
v102 = *v28;
v35 = (float)(v29 * 0.5) / cosf(v102);
LABEL_54:
LODWORD(v8) = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this);
v36 = (float)(*(float *)(LODWORD(v8) + 4) - v35) - v24;
goto LABEL_58;
}
LABEL_47:
v30 = 0;
LABEL_48:
if ( *((_BYTE *)this + 2320) )
v31 = 10.0;
else
v31 = 5.0;
v32 = v31 * a2;
v33 = fabsf(v26);
if ( v33 > v32 )
v33 = v32;
v24 = v24 + v33;
v34 = *v28;
v35 = (float)(v29 * 0.5) / cosf(v34);
if ( !v27 )
goto LABEL_54;
LABEL_57:
LODWORD(v8) = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this);
v36 = (float)(v35 + *(float *)(LODWORD(v8) + 4)) + v24;
LABEL_58:
if ( *((_BYTE *)this + 1945) )
{
if ( *((_BYTE *)this + 1959) )
{
if ( v36 < v122 )
return (float *)LODWORD(v8);
}
else if ( v36 > (float)(v122 + v124) )
{
return (float *)LODWORD(v8);
}
}
else
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v125, v121, v122 + 1.0, v123, v124 - 2.0);
LODWORD(v8) = cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)v119, (const cocos2d::CCRect *)&v125);
if ( !LODWORD(v8) )
return (float *)LODWORD(v8);
}
v38 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v114, v38);
v39 = COERCE_FLOAT(cocos2d::CCRect::getMinY((cocos2d::CCRect *)&v121));
v40 = COERCE_FLOAT(cocos2d::CCRect::getMaxY((cocos2d::CCRect *)&v121));
v41 = COERCE_FLOAT(GameObject::getSlopeAngle(a3));
v42 = cosf(v41);
v43 = (float)(v120 / v42) * 0.5;
if ( !*((_BYTE *)this + 1945)
|| *((_DWORD *)this + 354) == *((_DWORD *)a3 + 195)
|| *((unsigned __int8 *)this + 1851) == v14 )
{
v44 = 0;
}
else
{
if ( !*((_BYTE *)this + 2320) )
{
v44 = 1;
v45 = *((float *)this + 502) * 20.0;
LABEL_71:
LODWORD(v8) = GameObject::slopeYPos(a3, v114);
v47 = v8;
if ( v14 )
{
v51 = (float)(v39 - (float)(v120 * 0.5)) + v45;
v49 = (float)(v47 - v43) + v45;
if ( v49 > v51 )
{
v52 = 0;
}
else
{
v49 = v51;
v52 = 1;
}
v106 = v52;
if ( v49 >= v40 )
{
v49 = v40;
goto LABEL_84;
}
}
else
{
v48 = (float)(v40 + (float)(v120 * 0.5)) - v45;
v49 = (float)(v47 + v43) - v45;
v50 = v49 < v48;
if ( v49 < v48 )
{
v106 = 0;
}
else
{
v49 = v48;
v46 = 1;
}
if ( !v50 )
v106 = v46;
if ( v49 <= v39 )
{
v49 = v39;
LABEL_84:
v53 = 1;
goto LABEL_86;
}
}
v53 = 0;
LABEL_86:
v107 = v53;
if ( *((_BYTE *)this + 1959) )
{
if ( v14 )
goto LABEL_90;
}
else if ( !v14 )
{
LABEL_90:
if ( v44 )
{
if ( v6 )
{
if ( v11 )
goto LABEL_298;
}
else if ( v11 )
{
goto LABEL_105;
}
}
else if ( v11 )
{
if ( !*((_BYTE *)this + 1944)
&& (!*((_BYTE *)this + 2052) || (LODWORD(v8) = PlayerObject::isFlying(this)) != 0) )
{
if ( *((_BYTE *)this + 1953) )
v54 = *((unsigned __int8 *)this + 1901) ^ 1;
else
v54 = 1;
goto LABEL_299;
}
LABEL_298:
v54 = 0;
LABEL_299:
v6 = v54;
goto LABEL_105;
}
if ( v30 )
v6 = 1;
LABEL_105:
if ( *((_BYTE *)this + 1959) )
{
if ( v115 > v49 )
goto LABEL_119;
if ( v6 )
{
if ( v115 <= (float)(v49 - v24) )
{
v55 = 0;
goto LABEL_120;
}
if ( *((_BYTE *)this + 1954) )
{
v55 = *((double *)this + 241) >= 0.0;
goto LABEL_120;
}
LABEL_119:
v55 = 1;
goto LABEL_120;
}
}
else
{
if ( v115 < v49 )
goto LABEL_119;
if ( v6 )
{
if ( v115 >= (float)(v49 + v24) )
{
v55 = *((unsigned __int8 *)this + 1959);
goto LABEL_120;
}
if ( *((_BYTE *)this + 1954) )
{
v55 = *((double *)this + 241) <= 0.0;
LABEL_120:
if ( *((_BYTE *)this + 1901)
&& (LODWORD(v8) = PlayerObject::isFlying(this)) != 0
&& (!v11 || *((_BYTE *)this + 2320)) )
{
if ( *((_BYTE *)this + 2320) )
{
v105 = v44 ^ 1;
v59 = 1;
v104 = 0;
}
else
{
v59 = 1;
v104 = 0;
v105 = 1;
}
v60 = 0;
}
else
{
v59 = 0;
v104 = 0;
v60 = 0;
v105 = 0;
}
goto LABEL_165;
}
goto LABEL_119;
}
}
v55 = v6;
goto LABEL_120;
}
if ( v11 )
{
v24 = 0.0;
}
else
{
LODWORD(v8) = PlayerObject::isFlying(this);
if ( LODWORD(v8) )
{
if ( *((_BYTE *)this + 1901) )
{
v24 = 2.0;
if ( !*((_BYTE *)this + 1945) )
v24 = 1.0;
}
}
}
if ( v44 || (LODWORD(v8) = PlayerObject::isFlying(this)) != 0 && v11 && !*((_BYTE *)this + 2320) )
v56 = 0;
else
v56 = *((unsigned __int8 *)this + 1944) ^ 1;
if ( *((_BYTE *)this + 1959) )
{
if ( v115 >= v49 )
{
if ( v56 )
{
v55 = v115 < (float)(v49 + v24);
goto LABEL_145;
}
LABEL_144:
v55 = v56;
goto LABEL_145;
}
}
else if ( v115 <= v49 )
{
if ( v56 )
{
v55 = v115 > (float)(v49 - v24);
LABEL_145:
if ( !*((_BYTE *)this + 1901)
&& !*((_BYTE *)this + 2320)
&& ((LODWORD(v8) = PlayerObject::isFlying(this)) != 0 || *((_BYTE *)this + 1955))
&& v11 )
{
v57 = *((unsigned __int8 *)this + 1945);
}
else
{
v57 = 0;
}
v105 = v57;
v58 = false;
if ( !*((_BYTE *)this + 1901) )
{
LODWORD(v8) = PlayerObject::isFlying(this);
if ( LODWORD(v8) )
{
if ( v11 )
v58 = true;
}
}
v104 = v58;
if ( v55 )
{
LODWORD(v8) = PlayerObject::isFlying(this);
if ( !LODWORD(v8)
&& !*((_BYTE *)this + 1955)
&& !*((_BYTE *)this + 2320)
&& *((int *)this + 583) <= 0 )
{
isSafeMode = PlayerObject::isSafeMode(this, 0.1);
if ( isSafeMode || (LODWORD(v8) = PlayerObject::isSafeFlip(this, 0.1)) != 0 )
{
v63 = *(void (__fastcall **)(PlayerObject *, float *))(*(_DWORD *)this + 92);
v64 = (float *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v125, *v64, v49);
v63(this, &v125);
v66 = (double *)((char *)this + 1928);
if ( *((_BYTE *)this + 1959) )
{
v67 = *v66;
if ( *v66 < 2.0 )
v67 = 2.0;
}
else
{
v67 = *v66;
if ( *v66 > -2.0 )
v67 = -2.0;
}
LODWORD(v65) = this;
LODWORD(v8) = PlayerObject::setYVelocity(v65, v67, 18);
}
else
{
if ( *((_BYTE *)this + 1959) )
v62 = (float)(v115 + 2.0) < v49;
else
v62 = (float)(v115 - 2.0) > v49;
if ( v62 )
{
if ( !*((_BYTE *)this + 2464) )
{
LABEL_292:
v100 = *((unsigned __int8 *)this + 1605);
if ( *((_BYTE *)this + 1605) )
{
*((_BYTE *)this + 1900) = 1;
}
else
{
v101 = GameManager::sharedState((GameManager *)LODWORD(v8));
LODWORD(v8) = (*(int (__fastcall **)(_DWORD, PlayerObject *, int))(**(_DWORD **)(v101 + 404)
+ 648))(
*(_DWORD *)(v101 + 404),
this,
v100);
}
return (float *)LODWORD(v8);
}
v59 = 0;
v60 = 1;
LABEL_174:
if ( (*((_BYTE *)a3 + 952)
|| (v44 || *((_BYTE *)this + 1956) && *((int *)this + 582) <= 0)
&& !*((_BYTE *)this + 2320)
&& *((int *)this + 583) <= 0)
&& !*((_BYTE *)this + 2464) )
{
goto LABEL_292;
}
v55 = 1;
LABEL_201:
if ( *((_BYTE *)this + 1963)
&& (v125 = *((float *)a3 + 195),
(LODWORD(v8) = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_DWORD *)this + 358,
(unsigned int *)&v125)) != 0) )
{
v125 = *((float *)a3 + 195);
LODWORD(v8) = std::unordered_map::operator[](
(int)this + 1432,
(unsigned int *)&v125);
v68 = v49 - *(double *)(LODWORD(v8) + 8);
}
else
{
v68 = v49;
}
if ( !*((_BYTE *)this + 1945) )
goto LABEL_223;
if ( *((double *)this + 229) == v49
|| *((_BYTE *)this + 1963) && *((double *)this + 230) == v68 )
{
v69 = *((unsigned __int8 *)this + 2320);
if ( !*((_BYTE *)this + 2320) )
goto LABEL_222;
if ( fabs(*((double *)this + 275)) >= 0.100000001 )
{
v55 = 0;
goto LABEL_223;
}
if ( v17 == 0.0 )
{
LABEL_224:
if ( !v55 )
{
if ( !v11 )
return (float *)LODWORD(v8);
LABEL_227:
if ( *((_BYTE *)this + 1956)
&& *((_BYTE *)this + 1901)
&& *((unsigned __int8 *)this + 1959) == v14 )
{
return (float *)LODWORD(v8);
}
LABEL_230:
if ( !v55 )
return (float *)LODWORD(v8);
*((_DWORD *)this + 350) = a3;
*((_DWORD *)this + 357) = GameObject::getSlopeAngle(a3);
*((_DWORD *)this + 349) = *((_DWORD *)this + 350);
v125 = *((float *)a3 + 195);
*std::unordered_map::operator[](
(int)this + 1452,
(unsigned int *)&v125) = a3;
*((double *)this + 176) = (float)(v43 - (float)(v120 * 0.5));
*((_BYTE *)this + 1851) = v14;
v70 = (double *)((char *)this + 1816);
*((double *)this + 229) = v49;
*((double *)this + 230) = v68;
v71 = *((_DWORD *)a3 + 195);
*((_BYTE *)this + 1420) = v11;
*((_DWORD *)this + 354) = v71;
v72 = *((double *)this + 227);
*((_BYTE *)this + 1848) = v106;
*((_BYTE *)this + 1849) = v107;
*((double *)this + 227) = (float)((float)((float)(v41 * 57.296)
* (float)(((((((((unsigned __int8)v11 ^ 1)
+ (PlayerObject::flipMod(this)
^ -((unsigned __int8)v11 ^ 1)))
^ -v108)
+ v108)
^ -v110)
+ v110)
^ -*((unsigned __int8 *)this + 1963))
+ *((unsigned __int8 *)this + 1963)))
* 0.017453);
v73 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v116, v73);
v74 = *(void (__fastcall **)(PlayerObject *, float *))(*(_DWORD *)this + 92);
v75 = (float *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v125, *v75, v49);
v74(this, &v125);
*((_BYTE *)this + 1944) = 1;
if ( !*((_BYTE *)this + 1945) )
{
*((_QWORD *)this + 154) = *((_QWORD *)this + 266);
v76 = *((double *)this + 241);
*((double *)this + 148) = v76;
}
*((_BYTE *)this + 1952) = v60;
if ( v105 )
goto LABEL_263;
v77 = (double *)((char *)this + 1928);
if ( v60 )
{
v81 = *v77;
if ( *((_BYTE *)this + 1959) )
{
if ( *v77 < 0.0 )
v81 = 0.0;
}
else if ( *v77 > 0.0 )
{
v81 = 0.0;
}
LODWORD(v76) = this;
PlayerObject::setYVelocity(v76, v81, 20);
*((_BYTE *)this + 1961) = 0;
*((_BYTE *)this + 2036) = 0;
PlayerObject::updateCollide(this, 0, a3);
goto LABEL_263;
}
v78 = *v77;
PlayerObject::hitGround(this, a3, 0);
v80 = v78;
if ( *((_BYTE *)this + 1959) )
{
if ( v80 >= -5.0 )
{
LABEL_240:
if ( *((_BYTE *)this + 2320) )
{
if ( fabsf(*((float *)this + 357) * 57.296) > 40.0 && v80 < -5.0 )
{
v82 = *((double *)this + 275);
if ( v82 > 0.0 )
*((double *)this + 275) = v82 * 0.5;
}
}
PlayerObject::updateCollide(this, 1, a3);
*((_DWORD *)this + 322) = a3;
v83 = COERCE_FLOAT(GameObject::getSlopeAngle(a3));
*((float *)this + 324) = v83;
v84 = *((unsigned __int8 *)this + 1963);
v85 = *(_BYTE *)(*((_DWORD *)this + 322) + 944);
*((_BYTE *)this + 1300) = v85;
if ( v84 )
*((_BYTE *)this + 1300) = v85 ^ 1;
if ( *((_BYTE *)this + 1300) && v83 >= 1.0 )
*((_DWORD *)this + 567) = 3;
v86 = (const cocos2d::CCPoint *)GameObject::getLastPosition(a3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v117, v86);
(*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)a3 + 680))(&v125, a3);
v87 = v125;
v88 = v117;
if ( v125 != v117 || v126 != v118 )
{
if ( !*((_BYTE *)this + 1959) )
{
v88 = v118;
v87 = v126;
if ( v118 >= v126 )
goto LABEL_263;
goto LABEL_262;
}
if ( v117 > v125 )
LABEL_262:
*((double *)this + 167) = (float)((float)(v87 - v88) / a2);
}
LABEL_263:
if ( v104 )
{
v89 = *((double *)this + 241);
if ( *((_BYTE *)this + 1959) )
{
if ( v89 >= 2.0 )
{
if ( !v59 )
goto LABEL_275;
goto LABEL_274;
}
}
else if ( v89 <= -2.0 )
{
if ( !v59 )
goto LABEL_275;
goto LABEL_271;
}
v90 = PlayerObject::flipMod(this);
LODWORD(v91) = this;
PlayerObject::setYVelocity(v91, (float)((float)v90 * -2.0), 21);
}
if ( !v59 )
goto LABEL_275;
if ( !*((_BYTE *)this + 1959) )
{
LABEL_271:
if ( *((double *)this + 241) < 2.0 )
{
LABEL_272:
v92 = PlayerObject::flipMod(this);
LODWORD(v93) = this;
PlayerObject::setYVelocity(v93, (float)((float)v92 + (float)v92), 22);
}
LABEL_275:
v94 = (float *)((char *)this + 1948);
*((double *)this + 228) = v22;
v95 = 0.8 / v41;
if ( v95 >= 1.1 )
v95 = 1.1;
v96 = (float)(v22 * 1.4) * v95;
if ( v11 && !v109 )
v96 = -v96;
*v94 = v96;
*v94 = *v94 * (float)PlayerObject::flipMod(this);
if ( *((_BYTE *)this + 2320) && v60 && *((_BYTE *)this + 1954) )
*((_BYTE *)this + 1901) = 0;
LODWORD(v8) = PlayerObject::isFlying(this);
if ( LODWORD(v8) || *((_BYTE *)this + 1955) )
*v94 = *v94 * 0.75;
if ( !*((_BYTE *)this + 1955) )
return PlayerObject::updateSlopeRotation(this, a2);
v97 = v72;
if ( v97 != *v70 )
{
v98 = *v70;
v99 = 1.0 / cosf(v98);
if ( v99 > 2.0 )
v99 = (float)((float)(v99 - 1.0) * 0.7) + 1.0;
PlayerObject::stopRotation(this, 1, 1);
LODWORD(v8) = PlayerObject::runBallRotation((int)this, v99);
}
return (float *)LODWORD(v8);
}
LABEL_274:
if ( *((double *)this + 241) <= -2.0 )
goto LABEL_275;
goto LABEL_272;
}
}
else if ( v80 <= 5.0 )
{
goto LABEL_240;
}
LODWORD(v79) = this;
PlayerObject::setYVelocity(v79, v80, 100);
goto LABEL_240;
}
cocos2d::CCRect::CCRect(
(cocos2d::CCRect *)&v125,
v119[0] - 2.0,
v119[1] - 10.0,
v119[2] + 4.0,
v120 + 20.0);
LODWORD(v8) = cocos2d::CCRect::intersectsRect(
(cocos2d::CCRect *)&v121,
(const cocos2d::CCRect *)&v125);
v55 = LODWORD(v8);
LABEL_226:
if ( !v11 )
goto LABEL_230;
goto LABEL_227;
}
}
else if ( v17 == 0.0 )
{
goto LABEL_223;
}
if ( (!v106 || !*((_BYTE *)this + 1848)) && (!v107 || !*((_BYTE *)this + 1849))
|| *((_BYTE *)this + 1996) )
{
goto LABEL_223;
}
v69 = *((unsigned __int8 *)this + 2320);
if ( *((_BYTE *)this + 2320) )
{
if ( fabs(*((double *)this + 275)) > 0.100000001 )
v55 = 0;
LABEL_223:
if ( !*((_BYTE *)this + 2320) )
goto LABEL_226;
goto LABEL_224;
}
LABEL_222:
v55 = v69;
goto LABEL_223;
}
}
*((_BYTE *)this + 1961) = 0;
*((_BYTE *)this + 2036) = 0;
return (float *)LODWORD(v8);
}
}
v59 = 0;
v60 = 1;
LABEL_165:
if ( !v55 )
goto LABEL_201;
goto LABEL_174;
}
goto LABEL_144;
}
v55 = 1;
goto LABEL_145;
}
v44 = 1;
}
v45 = 0.0;
goto LABEL_71;
}
v30 = 1;
goto LABEL_48;
}
}
}
return (float *)LODWORD(v8);
}