// // PlayerObject::updateJump from 0x763760 to 0x764798 (4152 bytes) // // 3 xrefs: // > PlayerObject::update @ 0x769344 // > PlayerObject::pushButton @ 0x76ac60 // > @ 0xa12c0 // // 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:06 +0000 // __int64 __fastcall PlayerObject::updateJump(PlayerObject *this, float a2) { unsigned int v4; // w21 unsigned int v5; // w22 int v6; // w25 int v7; // w0 int v8; // w24 int v9; // w1 int v10; // w23 double v11; // d10 int v12; // w0 float v13; // s10 float v14; // s0 float v15; // s8 float v16; // s9 float v17; // s10 unsigned int v18; // w0 unsigned int v19; // w21 int v20; // w2 int v21; // w0 double v22; // d0 double v23; // d1 __int64 v25; // x22 float v26; // s3 int v27; // w1 double v28; // 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 v37; // 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 char v47; // w1 float v48; // s0 int v49; // w0 float v50; // s12 float v51; // s10 float v52; // s8 int v53; // w0 __int64 v55; // x22 __int64 v56; // x1 __int64 v57; // x0 int v58; // w1 __int64 v59; // x22 float v60; // s12 float v61; // s9 int v62; // w0 int v63; // w0 int v64; // w0 unsigned int v65; // w1 __int64 v66; // x0 float v67; // s8 unsigned int v68; // w21 double v69; // d0 double v70; // d1 int v71; // w2 int v72; // w0 float v73; // s8 float v74; // s8 float ModifiedSlopeYVel; // s0 double v76; // d0 double v77; // d1 __int64 v78; // x23 __int64 v79; // x0 double v80; // d0 double v81; // d9 int v82; // w0 float v83; // s0 float v84; // s1 double v85; // d8 double v86; // d8 double v87; // d0 __int64 v88; // x22 double v89; // d0 GameManager *v90; // x0 __int64 v91; // [xsp+80h] [xbp+80h] BYREF __int64 v92; // [xsp+88h] [xbp+88h] void *v93; // [xsp+90h] [xbp+90h] v4 = *((unsigned __int8 *)this + 2720); v5 = *((unsigned __int8 *)this + 2721); if ( *((_BYTE *)this + 2720) && *((_BYTE *)this + 2721) ) { v4 = *((_BYTE *)this + 2722) == 0; v5 = *((unsigned __int8 *)this + 2722) != 0; } if ( *((_BYTE *)this + 2832) && *((_BYTE *)this + 2408) && ((v48 = fabsf(*((float *)this + 422) * 57.296), v48 >= 80.0) || v48 >= 40.0 && *(_BYTE *)(*((_QWORD *)this + 207) + 1297LL)) ) { *((_BYTE *)this + 2425) = 0; v6 = 0; } else if ( *((_BYTE *)this + 2425) ) { v6 = 213; } else { v6 = 0; } *((_DWORD *)this + 596) = v6; v7 = rand(); v8 = *((unsigned __int8 *)this + 2425); v9 = *((unsigned __int8 *)this + 2421); v10 = *((unsigned __int8 *)this + 2365); v11 = *((double *)this + 243); v12 = (int)(float)((float)((float)v7 * 4.6566e-10) * 1000.0); *((_DWORD *)this + 595) = v12; *((_DWORD *)this + 594) = v6 + v12; if ( v9 ) v10 = (unsigned __int8)(v10 & *((_BYTE *)this + 2366)); if ( *((_BYTE *)this + 2419) || (unsigned __int8)PlayerObject::isFlying(this) || *((_BYTE *)this + 2422) ) v13 = 0.9582; else v13 = v11; v14 = *((float *)this + 713); v15 = v13; if ( v14 != 1.0 ) v15 = v13 * v14; v16 = 1.0; if ( *((float *)this + 618) != 1.0 ) v16 = 0.8; if ( (unsigned __int8)PlayerObject::isFlying(this) ) { v26 = *((float *)this + 618); if ( v26 == 1.0 ) { v27 = *((unsigned __int8 *)this + 2423); v28 = *((double *)this + 299); v29 = 8.0 / v16; v31 = v28 > 0.0; v30 = v28 < 0.0; v32 = -6.4 / v16; if ( *((_BYTE *)this + 2423) ) { LABEL_57: if ( !v31 && v28 > (float)-v29 ) { *((_BYTE *)this + 2314) = 0; goto LABEL_62; } if ( v28 >= 0.0 && v28 < (float)-v32 ) { LABEL_61: *((_BYTE *)this + 2314) = 0; goto LABEL_62; } LABEL_103: if ( !*((_BYTE *)this + 2417) ) { LABEL_63: if ( !*((_BYTE *)this + 2418) ) { if ( *((_BYTE *)this + 2428) ) { if ( *((_BYTE *)this + 2366) && *((_BYTE *)this + 2365) ) { v60 = v28; *((_BYTE *)this + 2366) = 0; PlayerObject::flipGravity((__int64)this, v27 ^ 1, 1u); PlayerObject::setYVelocity((__int64)this, (float)(v60 * 0.8)); if ( *((_QWORD *)this + 377) ) PlayerObject::gameEventTriggered((__int64)this, 20, 0); v26 = *((float *)this + 618); } if ( v26 == 1.0 ) v61 = 0.4; else v61 = 0.6; v62 = PlayerObject::flipMod(this); PlayerObject::addToYVelocity(this, (float)-(float)((float)((float)(v15 * a2) * (float)v62) * v61)); v41 = 1.0; v16 = 1.0; if ( *((_BYTE *)this + 2365) ) { *((_BYTE *)this + 2500) = 0; v16 = 1.0; } } else { v83 = (float)(int)PlayerObject::flipMod(this) * 8.0; if ( *((_BYTE *)this + 2365) ) v84 = 1.0; else v84 = -1.0; PlayerObject::setYVelocity((__int64)this, (float)(v83 * v84)); v85 = *((float *)this + 619) * *((double *)this + 241); v86 = v85 * (double)(int)PlayerObject::flipMod(this); if ( *((_BYTE *)this + 2365) ) v87 = 1.0; else v87 = -1.0; PlayerObject::setYVelocity((__int64)this, v86 * v87); if ( !*((_QWORD *)this + 377) || *((unsigned __int8 *)this + 2367) == *((unsigned __int8 *)this + 2365) ) { v41 = 0.8; } else { if ( *((_BYTE *)this + 2365) ) PlayerObject::gameEventTriggered((__int64)this, 21, 0); else PlayerObject::gameEventTriggered((__int64)this, 22, 0); v41 = 0.8; } } goto LABEL_82; } if ( !*((_BYTE *)this + 2366) || !*((_BYTE *)this + 2365) ) { LABEL_78: if ( PlayerObject::playerIsFallingBugged(this) ) { v41 = 0.8; v40 = 0.8; } else { v40 = 1.2; v41 = 0.8; } v42 = PlayerObject::flipMod(this); PlayerObject::addToYVelocity( this, (float)-(float)((float)((float)((float)((float)(v15 * a2) * (float)v42) * v40) * 0.5) / v16)); if ( *((_BYTE *)this + 2365) ) *((_BYTE *)this + 2500) = 0; LABEL_82: if ( !*((_BYTE *)this + 2314) && !*((_BYTE *)this + 2420) ) { v43 = *((double *)this + 299); if ( *((_BYTE *)this + 2423) ) { v80 = (float)(-8.0 / v16); if ( v43 >= v80 ) v80 = *((double *)this + 299); PlayerObject::setYVelocity((__int64)this, v80); v45 = (float)((float)(v41 * 8.0) / v16); if ( *((double *)this + 299) <= v45 ) v45 = *((double *)this + 299); } else { v44 = (float)((float)(v41 * -8.0) / v16); if ( v43 >= v44 ) v44 = *((double *)this + 299); PlayerObject::setYVelocity((__int64)this, v44); v45 = (float)(8.0 / v16); if ( *((double *)this + 299) <= v45 ) v45 = *((double *)this + 299); } PlayerObject::setYVelocity((__int64)this, v45); } IsFallingBugged = PlayerObject::playerIsFallingBugged(this); v47 = *((_BYTE *)this + 2388); if ( IsFallingBugged ) *((_BYTE *)this + 2516) = 0; goto LABEL_140; } *((_BYTE *)this + 2366) = 0; if ( v26 == 1.0 ) v33 = 7.0; else v33 = 8.0; v34 = PlayerObject::flipMod(this); v35 = *((double *)this + 299); v36 = (float)((float)((float)v34 * v33) * v16); if ( *((_BYTE *)this + 2423) ) { if ( v36 < v35 ) goto LABEL_70; } else if ( v36 > v35 ) { LABEL_70: PlayerObject::setYVelocity((__int64)this, v36); if ( *((_BYTE *)this + 2409) || *((_BYTE *)this + 2408) ) { v37 = *((float *)this + 603); if ( v37 > 0.0 ) { v38 = *((double *)this + 299) * 1.39999998; PlayerObject::addToYVelocity(this, (float)(v37 * 0.5)); v39 = v38; if ( *((double *)this + 299) <= v38 ) v39 = *((double *)this + 299); PlayerObject::setYVelocity((__int64)this, v39); } } } PlayerObject::playBurstEffect((cocos2d::CCParticleSystem **)this); if ( *((_QWORD *)this + 377) ) PlayerObject::gameEventTriggered((__int64)this, 15, 0); goto LABEL_78; } LABEL_104: v49 = *((unsigned __int8 *)this + 2365); if ( *((_BYTE *)this + 2365) ) { if ( !*((_BYTE *)this + 2314) ) { v49 = *((unsigned __int8 *)this + 2832); if ( !*((_BYTE *)this + 2832) ) { v41 = 0.8; v50 = -1.0; goto LABEL_174; } v41 = 0.8; v50 = -1.0; goto LABEL_111; } } else if ( !*((_BYTE *)this + 2314) ) { v41 = 0.8; v50 = 0.8; LABEL_165: if ( PlayerObject::playerIsFallingBugged(this) ) { v49 = *((unsigned __int8 *)this + 2365); LABEL_110: if ( !*((_BYTE *)this + 2832) ) goto LABEL_112; goto LABEL_111; } if ( !*((_BYTE *)this + 2832) ) { v50 = 1.2; if ( !*((_BYTE *)this + 2365) ) goto LABEL_114; LABEL_241: v13 = v15; LABEL_174: v15 = v13; if ( PlayerObject::playerIsFallingBugged(this) ) { v51 = 0.5; goto LABEL_176; } LABEL_114: v51 = 0.4; LABEL_176: v63 = PlayerObject::flipMod(this); PlayerObject::addToYVelocity( this, (float)-(float)((float)((float)(v50 * (float)((float)(v15 * a2) * (float)v63)) * v51) / v16)); v64 = *((unsigned __int8 *)this + 2365); if ( *((_BYTE *)this + 2365) ) *((_BYTE *)this + 2500) = 0; if ( *((_QWORD *)this + 377) && *((unsigned __int8 *)this + 2367) != v64 ) { if ( v64 ) PlayerObject::gameEventTriggered((__int64)this, 16, 0); else PlayerObject::gameEventTriggered((__int64)this, 17, 0); } goto LABEL_82; } v49 = *((unsigned __int8 *)this + 2365); v50 = 1.2; LABEL_111: v15 = v15 * 0.8; LABEL_112: if ( v50 < 0.0 ) { v15 = v13; if ( !v49 ) goto LABEL_114; } else if ( !v49 ) { goto LABEL_114; } goto LABEL_241; } if ( v27 ) { if ( v28 <= 0.0 ) goto LABEL_108; } else if ( v28 >= 0.0 ) { LABEL_108: v41 = 0.8; v50 = 0.8; goto LABEL_109; } v50 = -1.0; v41 = 0.8; LABEL_109: if ( *((_BYTE *)this + 2365) ) goto LABEL_110; goto LABEL_165; } } else { v27 = *((unsigned __int8 *)this + 2423); v28 = *((double *)this + 299); v32 = -7.5294; v29 = 9.4118; v16 = 0.85; v31 = v28 > 0.0; v30 = v28 < 0.0; if ( *((_BYTE *)this + 2423) ) goto LABEL_57; } if ( !v30 && v28 < v29 ) goto LABEL_61; if ( v28 <= 0.0 && v28 > v32 ) { *((_BYTE *)this + 2314) = 0; LABEL_62: if ( !*((_BYTE *)this + 2417) ) goto LABEL_63; goto LABEL_104; } goto LABEL_103; } if ( *((_BYTE *)this + 2419) || *((_BYTE *)this + 2422) || *((_BYTE *)this + 2428) ) { v17 = 0.6; } else if ( *((_BYTE *)this + 2421) ) { v17 = 0.9; } else { v17 = 1.0; } v18 = *((unsigned __int8 *)this + 2809); if ( v5 < v18 || *((unsigned __int8 *)this + 2810) > v4 ) { if ( *((unsigned __int8 *)this + 2811) == v18 || *((_BYTE *)this + 1524) ) { v20 = 1; v19 = *((_DWORD *)this + 695) <= 1; } else { *((_DWORD *)this + 695) = 0; v19 = 1; v20 = 1; } if ( !v10 ) { LABEL_121: if ( !*((_BYTE *)this + 2516) ) { if ( !*((_BYTE *)this + 2425) ) goto LABEL_30; goto LABEL_29; } goto LABEL_128; } } else { v20 = 0; v19 = 1; if ( !v10 ) goto LABEL_121; } if ( *((_BYTE *)this + 2425) ) { if ( *((_BYTE *)this + 2422) ) { if ( !*((_BYTE *)this + 2460) ) { PlayerObject::spiderTestJump(this, 0); v47 = *((_BYTE *)this + 2388); goto LABEL_140; } LABEL_28: if ( !*((_BYTE *)this + 2516) ) { LABEL_29: *((_DWORD *)this + 761) = *(_DWORD *)((*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this) + 4); LABEL_30: if ( PlayerObject::playerIsFallingBugged(this) && (!*((_BYTE *)this + 2832) || *((double *)this + 328) - *((double *)this + 313) >= 0.0500000045 || !v19) ) { *((_BYTE *)this + 2425) = 0; } v21 = PlayerObject::flipMod(this); PlayerObject::addToYVelocity(this, (float)-(float)((float)((float)(v15 * a2) * (float)v21) * v17)); v22 = *((double *)this + 299); if ( *((_BYTE *)this + 2423) ) { if ( v22 > 15.0 ) v22 = 15.0; } else if ( v22 < -15.0 ) { v22 = -15.0; } PlayerObject::setYVelocity((__int64)this, v22); if ( PlayerObject::playerIsFalling(this, -0.25) && !*((_BYTE *)this + 2419) && !*((_BYTE *)this + 2422) && !*((_BYTE *)this + 2421) && !*((_BYTE *)this + 1784) && !*((_BYTE *)this + 2408) && !*((_BYTE *)this + 1624) && (!*((_BYTE *)this + 2832) || !*((_BYTE *)this + 2500)) ) { PlayerObject::runRotateAction(this); } if ( !PlayerObject::playerIsFallingBugged(this) ) goto LABEL_139; v23 = *((double *)this + 299); if ( !(*((_BYTE *)this + 2423) ? v23 > 4.0 : v23 < -4.0) ) goto LABEL_139; if ( *((_BYTE *)this + 2421) ) { if ( *((_BYTE *)this + 2500) && !*((_BYTE *)this + 2152) ) { v25 = *((_QWORD *)this + 267); v91 = 0; v92 = 0; v93 = nullptr; std::string::__init(&v91, "fall_loop", 9u); CCAnimatedSprite::tweenToAnimation(v25, (__int64)&v91, 0.1); goto LABEL_145; } } else if ( *((_BYTE *)this + 2422) && *((_BYTE *)this + 2500) && !*((_BYTE *)this + 2152) ) { v55 = *((_QWORD *)this + 268); v91 = 0; v92 = 0; v93 = nullptr; std::string::__init(&v91, "fall_loop", 9u); CCAnimatedSprite::tweenToAnimation(v55, (__int64)&v91, 0.1); LABEL_145: if ( (v91 & 1) != 0 ) operator delete(v93); } *((_BYTE *)this + 2500) = 0; LABEL_139: v47 = *((_BYTE *)this + 2388); goto LABEL_140; } goto LABEL_128; } if ( *((_BYTE *)this + 2460) ) goto LABEL_28; v65 = *((unsigned __int8 *)this + 2832); if ( v19 < v65 ) goto LABEL_28; *((_BYTE *)this + 2500) = 0; *((_BYTE *)this + 2516) = 1; *((_BYTE *)this + 2425) = 0; *((_BYTE *)this + 2366) = 0; *((_BYTE *)this + 2388) = 0; *((_QWORD *)this + 256) = 0; if ( !v18 && !*((_BYTE *)this + 2810) && *((int *)this + 695) > 0 ) { v66 = *((_QWORD *)this + 328); *((_DWORD *)this + 695) = 0; *((_QWORD *)this + 348) = v66; } v67 = *((double *)this + 242); if ( *((_BYTE *)this + 2421) ) v67 = v67 * 0.5; if ( *((_DWORD *)this + 594) - *((_DWORD *)this + 595) == 213 ) { v68 = 0; } else { v67 = 9999.0; v68 = 1; *((_BYTE *)this + 2314) = 1; } if ( v20 && v65 ) { if ( *((_BYTE *)this + 2808) && (v69 = fabs(*((double *)this + 339)), v70 = *((float *)this + 619) * *((double *)this + 241), v69 > v70) ) { v71 = *((_DWORD *)this + 695); v67 = v67 + v69 / v70; } else { v71 = *((_DWORD *)this + 695); if ( v71 > 0 ) v67 = v67 * (float)(1.0 - (float)((float)v71 * 0.3)); } *((_DWORD *)this + 695) = v71 + 1; } v72 = PlayerObject::flipMod(this); PlayerObject::setYVelocity((__int64)this, (float)((float)((float)v72 * v67) * v16)); if ( *((_BYTE *)this + 2409) || *((_BYTE *)this + 2408) ) { v73 = *((float *)this + 603); if ( (float)(v73 * (float)(int)PlayerObject::flipMod(this)) > 0.0 && (!*((_BYTE *)this + 2832) || fabs(*((double *)this + 339)) > 4.0) ) { v74 = *((double *)this + 299) * 1.39999998; ModifiedSlopeYVel = PlayerObject::getModifiedSlopeYVel(this); if ( *((_BYTE *)this + 2419) ) ModifiedSlopeYVel = *((float *)this + 603); PlayerObject::addToYVelocity(this, (float)(ModifiedSlopeYVel * 0.25)); v76 = v74; v77 = *((double *)this + 299); if ( *((_BYTE *)this + 2423) ) { if ( v77 >= v74 ) v76 = *((double *)this + 299); } else if ( v77 <= v74 ) { v76 = *((double *)this + 299); } PlayerObject::setYVelocity((__int64)this, v76); } } *((_BYTE *)this + 1971) = 1; *((double *)this + 249) = sub_74D970(); PlayerObject::incrementJumps(this); if ( *((_BYTE *)this + 2419) ) { PlayerObject::flipGravity((__int64)this, *((_BYTE *)this + 2423) ^ 1, 1u); *((_BYTE *)this + 1976) = 0; v89 = *((double *)this + 299); *((_BYTE *)this + 2365) = 0; *((double *)this + 299) = v89 * 0.600000024; } else { if ( *((_BYTE *)this + 2421) ) { LABEL_211: v78 = *((_QWORD *)this + 267); v91 = 0; v92 = 0; v93 = nullptr; std::string::__init(&v91, "jump_loop", 9u); CCAnimatedSprite::tweenToAnimation(v78, (__int64)&v91, 0.1); if ( (v91 & 1) != 0 ) operator delete(v93); LABEL_213: v79 = *((_QWORD *)this + 377); if ( v79 ) { if ( (unsigned __int8)PlayerObject::isInNormalMode(this) ) { v79 = PlayerObject::gameEventTriggered((__int64)this, 12, 0); } else if ( *((_BYTE *)this + 2421) ) { v79 = PlayerObject::gameEventTriggered((__int64)this, 13, 0); } else { v79 = *((unsigned __int8 *)this + 2419); if ( *((_BYTE *)this + 2419) ) v79 = PlayerObject::gameEventTriggered((__int64)this, 19, 0); } } if ( v68 < (v8 ^ 1u) ) { v90 = (GameManager *)GameManager::sharedState((GameManager *)v79); GameManager::setGameVariable(v90, "0055", 1u); } if ( *((_BYTE *)this + 2832) ) { PlayerObject::animatePlatformerJump((__int64)this, 1.0); v47 = *((_BYTE *)this + 2388); goto LABEL_140; } goto LABEL_139; } if ( *((_BYTE *)this + 2422) ) goto LABEL_213; PlayerObject::runRotateAction(this); } if ( !*((_BYTE *)this + 2421) ) goto LABEL_213; goto LABEL_211; } if ( !*((_BYTE *)this + 2516) ) goto LABEL_30; LABEL_128: if ( *((_BYTE *)this + 2421) && *((_BYTE *)this + 2365) && !*((_BYTE *)this + 2388) && (v81 = *((double *)this + 256), v81 < 1.5) ) { v52 = v15 * a2; *((double *)this + 256) = v81 + (float)(a2 * 0.1); v82 = PlayerObject::flipMod(this); PlayerObject::addToYVelocity(this, (float)((float)(v52 * (float)v82) * v17)); } else { v52 = v15 * a2; } v53 = PlayerObject::flipMod(this); PlayerObject::addToYVelocity(this, (float)-(float)((float)((float)v53 * v52) * v17)); if ( *((_BYTE *)this + 2421) && *((_BYTE *)this + 2388) && !*((_BYTE *)this + 2368) && *((_QWORD *)this + 377) ) PlayerObject::gameEventTriggered((__int64)this, 14, 0); if ( !PlayerObject::playerIsFallingBugged(this) && (!*((_BYTE *)this + 2832) || PlayerObject::playerIsMovingUp(this)) ) goto LABEL_139; v56 = *(_QWORD *)this; *((_BYTE *)this + 2516) = 0; *((_BYTE *)this + 1970) = 1; *((_BYTE *)this + 2500) = 0; v57 = (*(__int64 (__fastcall **)(PlayerObject *))(v56 + 192))(this); v58 = *((unsigned __int8 *)this + 2421); *((_DWORD *)this + 761) = *(_DWORD *)(v57 + 4); if ( !v58 ) { if ( *((_BYTE *)this + 2422) ) { v59 = *((_QWORD *)this + 268); v91 = 0; v92 = 0; v93 = nullptr; std::string::__init(&v91, "fall_loop", 9u); CCAnimatedSprite::tweenToAnimation(v59, (__int64)&v91, 0.1); if ( (v91 & 1) != 0 ) operator delete(v93); } goto LABEL_139; } v88 = *((_QWORD *)this + 267); v91 = 0; v92 = 0; v93 = nullptr; std::string::__init(&v91, "fall_loop", 9u); CCAnimatedSprite::tweenToAnimation(v88, (__int64)&v91, 0.1); if ( (v91 & 1) != 0 ) operator delete(v93); v47 = *((_BYTE *)this + 2388); if ( !v47 && *((_QWORD *)this + 377) ) { PlayerObject::gameEventTriggered((__int64)this, 14, 0); v47 = *((_BYTE *)this + 2388); } LABEL_140: *((_BYTE *)this + 2367) = *((_BYTE *)this + 2365); *((_BYTE *)this + 2368) = v47; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source