// // PlayerObject::collidedWithSlopeInternal from 0x75f680 to 0x760768 (4328 bytes) // // 3 xrefs: // > PlayerObject::handleRotatedCollisionInternal @ 0x76109c // > PlayerObject::collidedWithSlope @ 0x761314 // > @ 0xd0720 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:53:03 +0000 // __int64 __fastcall PlayerObject::collidedWithSlopeInternal( PlayerObject *this, float a2, GameObject *a3, unsigned __int8 a4) { unsigned int v4; // w23 const cocos2d::CCRect *v8; // x0 const cocos2d::CCRect *v9; // x0 unsigned int v10; // w22 double v11; // d0 unsigned __int8 v12; // w0 unsigned int v13; // w28 unsigned __int8 v14; // w27 __int64 LastPosition; // x0 long double v16; // q0 unsigned __int64 v17; // kr00_8 double v18; // d0 float v19; // s0 float v20; // s10 float v21; // s12 long double v22; // q0 float v23; // s0 float v24; // s0 float v25; // s11 float v26; // s11 const cocos2d::CCPoint *v27; // x0 float v28; // s0 float v29; // s13 float v30; // s0 float v31; // s14 float v32; // s0 float v33; // s11 float v34; // s1 unsigned int v35; // w25 double v36; // d0 float v37; // s0 float v38; // s15 int v39; // w2 int v40; // w0 int v41; // w2 int v42; // w23 float v43; // s12 int v44; // w0 int v45; // s0 float v46; // s11 double v47; // d9 int v48; // w0 __int64 v49; // x3 const cocos2d::CCPoint *v50; // x0 void (__fastcall *v51)(PlayerObject *, GameObject **); // x24 float *v52; // x0 int v53; // w0 __int64 v54; // d0 double v55; // d0 double v56; // d0 int v57; // w0 float v58; // s15 float v59; // s15 int v60; // w0 float v61; // s9 double v62; // d0 float v63; // s0 float v64; // s0 float v66; // s10 float v67; // s10 float v68; // s11 __int64 *v69; // x0 __int64 v70; // x0 float v71; // s1 float v72; // s0 float v73; // s0 float v74; // s0 int v75; // w0 char v76; // w0 char isFlying; // w0 _BOOL4 v78; // w0 char v79; // w0 int v80; // w0 char v81; // w0 void (__fastcall *v82)(PlayerObject *, GameObject **); // x20 float *v83; // x0 double v84; // d0 double v85; // d1 __int64 v86; // x0 char v87; // w0 float v88; // s12 double v89; // d0 float v90; // s0 __int64 v91; // x0 int v92; // w1 char v93; // w0 const cocos2d::CCPoint *v94; // x0 float v95; // s0 float v96; // s1 int v97; // [xsp+A8h] [xbp+A8h] int v98; // [xsp+B4h] [xbp+B4h] int v99; // [xsp+B8h] [xbp+B8h] float v100; // [xsp+BCh] [xbp+BCh] __int64 v101; // [xsp+C0h] [xbp+C0h] float v102; // [xsp+C0h] [xbp+C0h] int v103; // [xsp+C0h] [xbp+C0h] int v104; // [xsp+C0h] [xbp+C0h] int v105; // [xsp+C0h] [xbp+C0h] int v106; // [xsp+C0h] [xbp+C0h] int v107; // [xsp+C0h] [xbp+C0h] int v108; // [xsp+C0h] [xbp+C0h] int v109; // [xsp+D0h] [xbp+D0h] unsigned int v110; // [xsp+D4h] [xbp+D4h] int v111; // [xsp+D4h] [xbp+D4h] int v112; // [xsp+D8h] [xbp+D8h] unsigned int v113; // [xsp+DCh] [xbp+DCh] int v114; // [xsp+E0h] [xbp+E0h] float v115; // [xsp+E0h] [xbp+E0h] unsigned __int64 v116; // [xsp+F0h] [xbp+F0h] BYREF __int64 v117; // [xsp+F8h] [xbp+F8h] BYREF float v118; // [xsp+100h] [xbp+100h] BYREF float v119; // [xsp+104h] [xbp+104h] _BYTE v120[8]; // [xsp+108h] [xbp+108h] BYREF float v121; // [xsp+110h] [xbp+110h] BYREF float v122; // [xsp+114h] [xbp+114h] float v123[3]; // [xsp+118h] [xbp+118h] BYREF float v124; // [xsp+124h] [xbp+124h] float v125; // [xsp+128h] [xbp+128h] BYREF float v126; // [xsp+12Ch] [xbp+12Ch] float v127; // [xsp+130h] [xbp+130h] float v128; // [xsp+134h] [xbp+134h] GameObject *v129[2]; // [xsp+138h] [xbp+138h] BYREF v4 = a4; if ( !a4 && (unsigned __int8)PlayerObject::preSlopeCollision(this, a2, a3) ) return _stack_chk_guard; v8 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 1328LL))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v123, v8); v9 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a3 + 1328LL))(a3); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v125, v9); v10 = *((unsigned __int8 *)a3 + 1080); if ( *((_BYTE *)this + 2832) ) { v11 = *((double *)this + 339); if ( v11 >= 0.0 ) v10 ^= 1u; v112 = v11 < 0.0; } else { if ( !*((_BYTE *)this + 2426) ) v10 ^= 1u; v112 = *((unsigned __int8 *)this + 2426) != 0; } v12 = GameObject::slopeFloorTop(a3); v13 = v12; v14 = v12; (*(void (__fastcall **)(GameObject *))(*(_QWORD *)a3 + 1360LL))(a3); LastPosition = GameObject::getLastPosition(a3); cocos2d::CCPoint::operator-(&v116, v129, LastPosition, v16); if ( *((_BYTE *)this + 2427) ) v17 = __PAIR64__(v116, HIDWORD(v116)); else v17 = v116; v18 = *((float *)this + 619) * *((double *)this + 241); if ( *(float *)&v17 > v18 * a2 ) { if ( *((_BYTE *)this + 2423) ) { v113 = (unsigned __int8)v10 ^ 1; v10 = v113; } else if ( v10 ) { v10 = 0; v113 = 1; } else { v10 = 1; v113 = 0; } v114 = 1; } else { v114 = 0; v113 = 0; } if ( *((unsigned __int8 *)this + 2427) != *((unsigned __int8 *)this + 2423) ) v10 = (unsigned __int8)v10 ^ 1; if ( !*((_BYTE *)this + 2409) ) { v19 = v127 / v18; v20 = v128 / v19; LABEL_14: v21 = (float)v10; goto LABEL_15; } v66 = *((float *)this + 603); if ( (float)(v66 * (float)(int)PlayerObject::flipMod(this)) > 0.0 && v10 && *((unsigned __int8 *)this + 2315) == v13 && *((unsigned __int8 *)this + 2423) == v13 ) { return _stack_chk_guard; } v67 = v127 / (*((float *)this + 619) * *((double *)this + 241)); v20 = v128 / v67; if ( !*((_BYTE *)this + 2409) ) goto LABEL_14; v68 = *((float *)this + 603); if ( (float)(v68 * (float)(int)PlayerObject::flipMod(this)) > 0.0 && *((double *)this + 286) > v20 ) return _stack_chk_guard; if ( !*((_BYTE *)this + 2409) ) goto LABEL_14; v21 = (float)(int)(4 * v10); LABEL_15: v101 = GameObject::getLastPosition(a3); (*(void (__fastcall **)(GameObject **__return_ptr, GameObject *))(*(_QWORD *)a3 + 1360LL))(v129, a3); cocos2d::CCPoint::operator-(&v117, v101, v129, v22); if ( *((_BYTE *)this + 2427) ) v23 = *(float *)&v117; else v23 = *((float *)&v117 + 1); if ( *((_BYTE *)this + 2423) ) { if ( v23 < 0.0 ) { v110 = 1; goto LABEL_141; } if ( !v4 ) { v110 = 0; v24 = *((double *)this + 285); v25 = (float)(v124 * 0.5) / cosf(v24); LABEL_21: v26 = (float)(v25 + *(float *)((*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this) + 4)) + v21; goto LABEL_22; } } else { v110 = 1; if ( v23 > 0.0 ) goto LABEL_141; if ( !v4 ) { v110 = 0; v74 = *((double *)this + 285); v25 = (float)(v124 * 0.5) / cosf(v74); goto LABEL_144; } } v110 = 0; LABEL_141: v71 = fabsf(v23); if ( *((_BYTE *)this + 2832) ) { v72 = a2 * 10.0; if ( v71 <= (float)(a2 * 10.0) ) goto LABEL_143; } else { v72 = a2 * 5.0; if ( (float)(a2 * 5.0) >= v71 ) goto LABEL_143; } v71 = v72; LABEL_143: v104 = *((unsigned __int8 *)this + 2423); v21 = v21 + v71; v73 = *((double *)this + 285); v25 = (float)(v124 * 0.5) / cosf(v73); if ( v104 ) goto LABEL_21; LABEL_144: v26 = (float)(*(float *)((*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this) + 4) - v25) - v21; LABEL_22: if ( *((_BYTE *)this + 2409) ) { if ( *((_BYTE *)this + 2423) ) { if ( v26 < v126 ) return _stack_chk_guard; } else if ( v26 > (float)(v126 + v128) ) { return _stack_chk_guard; } } else { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v129, v125, v126 + 1.0, v127, v128 - 2.0); if ( !(unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)v123, (const cocos2d::CCRect *)v129) ) return _stack_chk_guard; } v27 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v118, v27); cocos2d::CCRect::getMinY((cocos2d::CCRect *)&v125); v29 = v28; cocos2d::CCRect::getMaxY((cocos2d::CCRect *)&v125); v31 = v30; GameObject::getSlopeAngle(a3); v100 = v32; v33 = (float)(v124 / cosf(v32)) * 0.5; if ( !*((_BYTE *)this + 2409) || *((_DWORD *)this + 418) == *((_DWORD *)a3 + 229) || *((unsigned __int8 *)this + 2315) == v13 ) { v35 = 0; v34 = 0.0; } else if ( *((_BYTE *)this + 2832) ) { v34 = 0.0; v35 = 1; } else { v35 = 1; v34 = *((float *)this + 618) * 20.0; } v102 = v34; GameObject::slopeYPos(a3, v118); v37 = v36; if ( !v13 ) { v38 = (float)(v37 + v33) - v102; if ( (float)((float)(v31 + (float)(v124 * 0.5)) - v102) > v38 ) { v99 = 0; } else { v38 = (float)(v31 + (float)(v124 * 0.5)) - v102; v99 = 1; } if ( v38 > v29 ) { v98 = 0; } else { v38 = v29; v98 = 1; } v39 = *((unsigned __int8 *)this + 2423); if ( !*((_BYTE *)this + 2423) ) goto LABEL_35; LABEL_157: if ( v10 ) { if ( v35 ) { LABEL_159: v21 = 0.0; v75 = 0; goto LABEL_160; } if ( (unsigned __int8)PlayerObject::isFlying(this) && !*((_BYTE *)this + 2832) ) { v39 = *((unsigned __int8 *)this + 2423); goto LABEL_159; } v21 = 0.0; } else { if ( (unsigned __int8)PlayerObject::isFlying(this) ) { if ( *((_BYTE *)this + 2365) ) { v21 = 2.0; if ( !*((_BYTE *)this + 2409) ) v21 = 1.0; } } if ( v35 ) { v39 = *((unsigned __int8 *)this + 2423); v75 = 0; goto LABEL_160; } PlayerObject::isFlying(this); } v39 = *((unsigned __int8 *)this + 2423); v75 = *((unsigned __int8 *)this + 2408) ^ 1; LABEL_160: if ( v39 ) { v41 = 1; if ( v119 >= v38 ) { v41 = 0; if ( v75 ) v41 = v119 < (float)(v38 + v21); } } else { v41 = 1; if ( v119 <= v38 ) { v41 = 0; if ( v75 ) v41 = v119 > (float)(v38 - v21); } } if ( *((_BYTE *)this + 2365) ) { v111 = 0; v109 = 0; } else { v111 = 0; if ( !*((_BYTE *)this + 2832) ) { v106 = v41; isFlying = PlayerObject::isFlying(this); v41 = v106; if ( isFlying || *((_BYTE *)this + 2419) ) { v111 = 0; if ( v10 ) v111 = *((unsigned __int8 *)this + 2409); } if ( *((_BYTE *)this + 2365) ) goto LABEL_176; } v105 = v41; v76 = PlayerObject::isFlying(this); v41 = v105; if ( v76 && v10 ) v109 = 1; else LABEL_176: v109 = 0; } if ( !v41 || (v107 = v41, v81 = PlayerObject::isFlying(this), v41 = v107, v81) || *((_BYTE *)this + 2419) || *((_BYTE *)this + 2832) || *((int *)this + 711) > 0 ) { v103 = 0; v42 = 1; goto LABEL_52; } if ( !(unsigned __int8)PlayerObject::isSafeMode(this, 0.1) && !(unsigned __int8)PlayerObject::isSafeFlip(this, 0.1) ) { if ( *((_BYTE *)this + 2423) ) v78 = (float)(v119 + 2.0) < v38; else v78 = (float)(v119 - 2.0) > v38; if ( v78 ) { if ( !*((_BYTE *)this + 3052) ) goto LABEL_190; v103 = 0; v42 = 1; LABEL_183: if ( !*((_BYTE *)a3 + 1088) ) { if ( !v35 ) { if ( !*((_BYTE *)this + 2420) ) goto LABEL_192; v41 = 1; if ( *((int *)this + 710) > 0 ) goto LABEL_53; } if ( *((_BYTE *)this + 2832) ) goto LABEL_192; v41 = 1; if ( *((int *)this + 711) > 0 ) goto LABEL_53; } if ( !*((_BYTE *)this + 3052) ) { LABEL_190: if ( *((_BYTE *)this + 1973) ) { *((_BYTE *)this + 2364) = 1; } else { v86 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)this + 1973)); (*(void (__fastcall **)(_QWORD, PlayerObject *, _QWORD))(**(_QWORD **)(v86 + 544) + 1296LL))( *(_QWORD *)(v86 + 544), this, 0); } return _stack_chk_guard; } LABEL_192: v41 = 1; goto LABEL_53; } LABEL_226: *((_BYTE *)this + 2425) = 0; *((_BYTE *)this + 2500) = 0; return _stack_chk_guard; } v82 = *(void (__fastcall **)(PlayerObject *, GameObject **))(*(_QWORD *)this + 184LL); v83 = (float *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, *v83, v38); v82(this, v129); if ( *((_BYTE *)this + 2423) ) { v84 = *((double *)this + 299); v85 = 2.0; if ( v84 >= 2.0 ) goto LABEL_225; } else { v84 = *((double *)this + 299); v85 = -2.0; if ( v84 <= -2.0 ) { LABEL_225: PlayerObject::setYVelocity((__int64)this, v84); goto LABEL_226; } } v84 = v85; goto LABEL_225; } v38 = (float)(v37 - v33) + v102; if ( (float)((float)(v29 - (float)(v124 * 0.5)) + v102) < v38 ) { v99 = 0; } else { v38 = (float)(v29 - (float)(v124 * 0.5)) + v102; v99 = 1; } if ( v38 < v31 ) { v98 = 0; } else { v38 = v31; v98 = 1; } v39 = *((unsigned __int8 *)this + 2423); if ( !*((_BYTE *)this + 2423) ) goto LABEL_157; LABEL_35: if ( v10 <= v35 || *((_BYTE *)this + 2408) || *((_BYTE *)this + 2516) && (v79 = PlayerObject::isFlying(this), v39 = *((unsigned __int8 *)this + 2423), !v79) ) { v40 = 0; } else if ( *((_BYTE *)this + 2417) ) { v40 = *((unsigned __int8 *)this + 2365) ^ 1; } else { v40 = 1; } if ( v10 < v4 ) v40 = 1; if ( v10 < v110 ) v40 = 1; if ( v39 ) { v41 = 1; if ( v119 <= v38 ) { v41 = 0; if ( v40 ) { if ( v119 > (float)(v38 - v21) ) { v41 = 1; if ( *((_BYTE *)this + 2418) ) v41 = *((double *)this + 299) >= 0.0; } } } } else { v41 = 1; if ( v119 >= v38 ) { v41 = 0; if ( v40 ) { if ( v119 < (float)(v38 + v21) ) { v41 = 1; if ( *((_BYTE *)this + 2418) ) v41 = *((double *)this + 299) <= 0.0; } } } } if ( *((_BYTE *)this + 2365) && (v108 = v41, v87 = PlayerObject::isFlying(this), v41 = v108, v87) && (!v10 || *((_BYTE *)this + 2832)) ) { v109 = 0; v42 = 0; v103 = 1; v111 = v35 & *((_BYTE *)this + 2832) ^ 1; } else { v103 = 0; v42 = 0; v109 = 0; v111 = 0; } LABEL_52: if ( v41 ) goto LABEL_183; LABEL_53: if ( *((_BYTE *)this + 2427) && (v97 = v41, LODWORD(v129[0]) = *((_DWORD *)a3 + 229), v69 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( (_QWORD *)this + 212, (int *)v129), v41 = v97, v69) ) { LODWORD(v129[0]) = *((_DWORD *)a3 + 229); v70 = std::unordered_map::operator[]((unsigned __int64)this + 1696, (int *)v129); v41 = v97; v43 = v38 - *(double *)(v70 + 8); } else { v43 = v38; } if ( !*((_BYTE *)this + 2409) ) { v44 = *((unsigned __int8 *)this + 2832); goto LABEL_57; } if ( *((double *)this + 287) == v38 || *((_BYTE *)this + 2427) && *((double *)this + 288) == v43 ) { v44 = *((unsigned __int8 *)this + 2832); if ( !*((_BYTE *)this + 2832) || fabs(*((double *)this + 339)) >= 0.100000001 ) goto LABEL_131; if ( *((float *)&v17 + 1) == 0.0 ) goto LABEL_130; } else { v44 = *((unsigned __int8 *)this + 2832); if ( *((float *)&v17 + 1) == 0.0 ) { if ( !*((_BYTE *)this + 2832) ) goto LABEL_58; goto LABEL_130; } } if ( v99 && *((_BYTE *)this + 2312) ) goto LABEL_284; if ( !v98 ) { LABEL_57: if ( !v44 ) { LABEL_58: if ( !v10 || !*((_BYTE *)this + 2420) || !*((_BYTE *)this + 2365) ) goto LABEL_62; goto LABEL_61; } goto LABEL_130; } if ( *((_BYTE *)this + 2313) ) { LABEL_284: if ( !*((_BYTE *)this + 2460) ) { if ( !v44 || fabs(*((double *)this + 339)) > 0.100000001 ) goto LABEL_131; goto LABEL_130; } goto LABEL_57; } if ( !v44 ) goto LABEL_58; LABEL_130: if ( v41 ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v129, v123[0] - 2.0, v123[1] - 10.0, v123[2] + 4.0, v124 + 20.0); v41 = (unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)&v125, (const cocos2d::CCRect *)v129); goto LABEL_58; } LABEL_131: if ( !v10 ) return _stack_chk_guard; if ( !*((_BYTE *)this + 2420) ) return _stack_chk_guard; v41 = 0; if ( !*((_BYTE *)this + 2365) ) return _stack_chk_guard; LABEL_61: if ( *((unsigned __int8 *)this + 2423) == v13 ) return _stack_chk_guard; LABEL_62: if ( !v41 ) return _stack_chk_guard; *((_QWORD *)this + 207) = a3; GameObject::getSlopeAngle(a3); *((_QWORD *)this + 206) = *((_QWORD *)this + 207); *((_DWORD *)this + 422) = v45; LODWORD(v129[0]) = *((_DWORD *)a3 + 229); *(_QWORD *)std::unordered_map::operator[]((__int64)this + 1736, (int *)v129) = a3; *((_BYTE *)this + 2315) = v14; v46 = v33 - (float)(v124 * 0.5); v47 = *((double *)this + 285); *((double *)this + 287) = v38; *((double *)this + 288) = v43; *((double *)this + 208) = v46; *((_DWORD *)this + 418) = *((_DWORD *)a3 + 229); *((_BYTE *)this + 2312) = v99; *((_BYTE *)this + 1676) = v10; *((_BYTE *)this + 2313) = v98; v48 = PlayerObject::flipMod(this); if ( v10 < v13 || v13 < ((unsigned __int8)v10 ^ 1u) ) v48 = -v48; v49 = *(_QWORD *)this; *((double *)this + 285) = (float)((float)((float)(v100 * 57.296) * (float)((((((v48 ^ -v114) + v114) ^ -v112) + v112) ^ -*((unsigned __int8 *)this + 2427)) + *((unsigned __int8 *)this + 2427))) * 0.017453); v50 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(PlayerObject *))(v49 + 192))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v50); v51 = *(void (__fastcall **)(PlayerObject *, GameObject **))(*(_QWORD *)this + 184LL); v52 = (float *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, *v52, v38); v51(this, v129); v53 = *((unsigned __int8 *)this + 2409); *((_BYTE *)this + 2408) = 1; if ( !v53 ) { v54 = *((_QWORD *)this + 299); *((_QWORD *)this + 178) = *((_QWORD *)this + 328); *((_QWORD *)this + 172) = v54; } *((_BYTE *)this + 2416) = v42; if ( v111 ) goto LABEL_73; if ( v42 ) { v55 = *((double *)this + 299); if ( *((_BYTE *)this + 2423) ) { if ( v55 >= 0.0 ) goto LABEL_72; } else if ( v55 <= 0.0 ) { LABEL_72: PlayerObject::setYVelocity((__int64)this, v55); *((_BYTE *)this + 2425) = 0; *((_BYTE *)this + 2500) = 0; PlayerObject::updateCollide(this, 0, a3); goto LABEL_73; } v55 = 0.0; goto LABEL_72; } v88 = *((double *)this + 299); PlayerObject::hitGround(this, a3, 0); if ( *((_BYTE *)this + 2423) ) { if ( v88 >= -5.0 ) goto LABEL_262; goto LABEL_261; } if ( v88 > 5.0 ) LABEL_261: PlayerObject::setYVelocity((__int64)this, v88); LABEL_262: if ( *((_BYTE *)this + 2832) ) { if ( fabsf(*((float *)this + 422) * 57.296) > 40.0 && v88 < -5.0 ) { v89 = *((double *)this + 339); if ( v89 > 0.0 ) *((double *)this + 339) = v89 * 0.5; } } PlayerObject::updateCollide(this, 1, a3); *((_QWORD *)this + 188) = a3; GameObject::getSlopeAngle(a3); v91 = *((_QWORD *)this + 188); *((float *)this + 380) = v90; v92 = *((unsigned __int8 *)this + 2427); v93 = *(_BYTE *)(v91 + 1080); *((_BYTE *)this + 1524) = v93; if ( v92 ) *((_BYTE *)this + 1524) = v93 ^ 1; if ( v90 >= 1.0 && *((_BYTE *)this + 1524) ) *((_DWORD *)this + 695) = 3; v94 = (const cocos2d::CCPoint *)GameObject::getLastPosition(a3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, v94); (*(void (__fastcall **)(GameObject **__return_ptr, GameObject *))(*(_QWORD *)a3 + 1360LL))(v129, a3); v95 = *(float *)v129; v96 = v121; if ( *(float *)v129 != v121 || *((float *)v129 + 1) != v122 ) { if ( !*((_BYTE *)this + 2423) ) { v96 = v122; v95 = *((float *)v129 + 1); if ( v122 >= *((float *)v129 + 1) ) goto LABEL_73; goto LABEL_276; } if ( *(float *)v129 < v121 ) LABEL_276: *((double *)this + 197) = (float)((float)(v95 - v96) / a2); } LABEL_73: if ( v109 ) { v56 = *((double *)this + 299); if ( *((_BYTE *)this + 2423) ) { if ( v56 >= 2.0 ) { if ( !v103 ) goto LABEL_79; LABEL_77: if ( v56 <= -2.0 ) goto LABEL_79; goto LABEL_78; } } else if ( v56 <= -2.0 ) { if ( !v103 ) goto LABEL_79; goto LABEL_216; } v80 = PlayerObject::flipMod(this); PlayerObject::setYVelocity((__int64)this, (float)((float)v80 * -2.0)); } if ( !v103 ) goto LABEL_79; v56 = *((double *)this + 299); if ( *((_BYTE *)this + 2423) ) goto LABEL_77; LABEL_216: if ( v56 < 2.0 ) { LABEL_78: v57 = PlayerObject::flipMod(this); PlayerObject::setYVelocity((__int64)this, (float)((float)v57 + (float)v57)); } LABEL_79: v58 = 0.8 / v100; *((double *)this + 286) = v20; if ( (float)(0.8 / v100) >= 1.1 ) v58 = 1.1; v59 = v58 * (float)(v20 * 1.4); if ( v10 > v113 ) v59 = -v59; *((float *)this + 603) = v59; *((float *)this + 603) = *((float *)this + 603) * (float)(int)PlayerObject::flipMod(this); if ( v42 && *((_BYTE *)this + 2832) && *((_BYTE *)this + 2418) ) *((_BYTE *)this + 2365) = 0; if ( (unsigned __int8)PlayerObject::isFlying(this) ) { v60 = *((unsigned __int8 *)this + 2419); } else { v60 = *((unsigned __int8 *)this + 2419); if ( !*((_BYTE *)this + 2419) ) goto LABEL_247; } *((float *)this + 603) = *((float *)this + 603) * 0.75; if ( !v60 ) { LABEL_247: PlayerObject::updateSlopeRotation(this, a2); return _stack_chk_guard; } v61 = v47; v62 = *((double *)this + 285); if ( v61 != v62 ) { v63 = v62; v64 = 1.0 / cosf(v63); if ( v64 > 2.0 ) v64 = (float)((float)(v64 - 1.0) * 0.7) + 1.0; v115 = v64; PlayerObject::stopRotation(this); PlayerObject::runBallRotation((__int64)this, v115); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source