// // PlayerObject::hitGround from 0x75a4e8 to 0x75ab44 (1628 bytes) // // 13 xrefs: // > PlayerObject::hitGroundNoJump @ 0x75ab8c // > PlayerObject::collidedWithObjectInternal @ 0x75b660 // > PlayerObject::collidedWithObjectInternal @ 0x75b8ac // > PlayerObject::collidedWithObjectInternal @ 0x75c198 // > PlayerObject::collidedWithObjectInternal @ 0x75c2e0 // > PlayerObject::collidedWithObjectInternal @ 0x75c450 // > PlayerObject::collidedWithSlopeInternal @ 0x760604 // > MenuGameLayer::update @ 0x7dab08 // > GJBaseGameLayer::checkCollisions @ 0x9e9c34 // > GJBaseGameLayer::checkCollisions @ 0x9e9c98 // > GJBaseGameLayer::checkCollisions @ 0x9ea290 // > GJBaseGameLayer::checkCollisions @ 0x9ea350 // > @ 0x930a0 // // 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:52:59 +0000 // __int64 __fastcall PlayerObject::hitGround(PlayerObject *this, GameObject *a2, unsigned __int8 a3) { int v5; // w21 int v6; // w0 double v7; // d8 double v8; // d8 __int64 v9; // x1 int v10; // w0 __int64 v11; // x0 char v13; // w0 __int64 v14; // x23 __int64 v15; // x0 __int64 v16; // x1 float v17; // s0 int v18; // w0 cocos2d::CCParticleSystem *v19; // x1 cocos2d::CCParticleSystem *v20; // x22 float v21; // s9 void (__fastcall *v22)(cocos2d::CCParticleSystem *, float); // x26 int v23; // w0 void (__fastcall *v24)(cocos2d::CCParticleSystem *, __int64 *); // x26 float *v25; // x0 float v26; // s9 int v27; // w0 int v28; // w0 int v29; // w2 void (__fastcall *v30)(cocos2d::CCParticleSystem *, __int64 *); // x23 __int64 v31; // x0 double v32; // d2 float v33; // s0 __int64 v34; // x2 float v35; // [xsp+60h] [xbp+60h] int v36; // [xsp+70h] [xbp+70h] BYREF int v37; // [xsp+74h] [xbp+74h] __int64 v38; // [xsp+78h] [xbp+78h] BYREF __int64 v39; // [xsp+80h] [xbp+80h] BYREF __int64 v40; // [xsp+88h] [xbp+88h] void *v41; // [xsp+90h] [xbp+90h] v5 = a3; if ( a2 ) v6 = *((__int16 *)a2 + 507); else v6 = 0; v7 = *((double *)this + 299); *((_DWORD *)this + 617) = v6; *((_BYTE *)this + 2760) = 0; v8 = v7 * (double)(int)PlayerObject::flipMod(this); if ( *((_QWORD *)this + 377) && !*((_BYTE *)this + 2420) ) { if ( PlayerObject::playerIsFalling(this, -14.0) ) { PlayerObject::gameEventTriggered((__int64)this, 5, *((unsigned int *)this + 617)); } else if ( PlayerObject::playerIsFalling(this, -8.0) ) { PlayerObject::gameEventTriggered((__int64)this, 4, *((unsigned int *)this + 617)); } else if ( PlayerObject::playerIsFalling(this, -4.0) ) { PlayerObject::gameEventTriggered((__int64)this, 3, *((unsigned int *)this + 617)); } else if ( PlayerObject::playerIsFalling(this, -1.0) ) { v34 = *((unsigned int *)this + 617); if ( *((_BYTE *)this + 2500) ) PlayerObject::gameEventTriggered((__int64)this, 1, v34); else PlayerObject::gameEventTriggered((__int64)this, 2, v34); } if ( *((float *)this + 761) != 0.0 ) { v17 = vabds_f32( *((float *)this + 761), *(float *)((*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this) + 4)); if ( v17 > 0.0 ) { if ( v17 > 450.0 ) { PlayerObject::gameEventTriggered((__int64)this, 68, *((unsigned int *)this + 617)); } else if ( v17 > 300.0 ) { PlayerObject::gameEventTriggered((__int64)this, 67, *((unsigned int *)this + 617)); } else if ( v17 > 150.0 ) { PlayerObject::gameEventTriggered((__int64)this, 66, *((unsigned int *)this + 617)); } else if ( v17 > 7.5 ) { PlayerObject::gameEventTriggered((__int64)this, 65, *((unsigned int *)this + 617)); } } *((_DWORD *)this + 761) = 0; } } PlayerObject::setYVelocity((__int64)this, 0.0); *((_BYTE *)this + 2745) = 0; if ( !v5 && !*((_BYTE *)this + 2500) && !(unsigned __int8)PlayerObject::levelFlipping(this) && !*((_BYTE *)this + 1787) ) { v18 = *((unsigned __int8 *)this + 2232); v19 = *((cocos2d::CCParticleSystem **)this + 280); v20 = *((cocos2d::CCParticleSystem **)this + 281); *((_BYTE *)this + 2232) = v18 ^ 1; if ( v18 ) v20 = v19; if ( (*(unsigned int (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v20 + 912LL))(v20) <= 2 ) { v21 = *((float *)this + 564); v22 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v20 + 1008LL); v23 = PlayerObject::flipMod(this); v22(v20, v21 * (float)v23); v24 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v20 + 1048LL); v25 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 280) + 1040LL))(*((_QWORD *)this + 280)); v26 = *((float *)this + 565); v35 = *v25; v27 = PlayerObject::flipMod(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, v35, v26 * (float)v27); v24(v20, &v38); v28 = PlayerObject::flipMod(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 0.0, (float)(-15 * v28) * *((float *)this + 618)); if ( *((_BYTE *)this + 2427) ) { v29 = v36; v36 = v37; v37 = v29; (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v20 + 360LL))(v20, 90.0); } else { (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v20 + 360LL))(v20, 0.0); } if ( a2 && (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1800LL))(a2) == 25 ) { if ( *((_BYTE *)this + 2427) ) v32 = 90.0; else v32 = 0.0; v33 = v32 + *((double *)this + 285) * 57.2957802; (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v20 + 360LL))(v20, v33); } v30 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v20 + 184LL); v31 = (*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::operator+(&v38, v31); v30(v20, &v38); cocos2d::CCParticleSystem::resetSystem(v20); } } if ( !*((_BYTE *)this + 1432) ) { PlayerObject::placeStreakPoint(this); *((_BYTE *)this + 1432) = 1; } if ( !*((_BYTE *)this + 2500) && !*((_BYTE *)this + 2460) ) { if ( *((_BYTE *)this + 2421) ) { v13 = *((_BYTE *)this + 2944); v39 = 0; v40 = 0; v41 = nullptr; v14 = *((_QWORD *)this + 267); if ( (v13 & 1) != 0 ) { std::string::__init(&v39, *((void **)this + 370), *((_QWORD *)this + 369)); } else { v15 = *((_QWORD *)this + 368); v16 = *((_QWORD *)this + 369); v41 = *((void **)this + 370); v39 = v15; v40 = v16; } CCAnimatedSprite::runAnimation(v14, (char *)&v39); if ( (v39 & 1) != 0 ) operator delete(v41); } else if ( *((_BYTE *)this + 2422) ) { PlayerObject::playDynamicSpiderRun(this); } } *((_BYTE *)this + 2500) = 1; *((_BYTE *)this + 2529) = v5 ^ 1; if ( v8 <= 5.0 ) { v9 = *((_QWORD *)this + 328); *((_BYTE *)this + 2425) = 1; *((_QWORD *)this + 313) = v9; } v10 = *((unsigned __int8 *)this + 2419); *((_BYTE *)this + 1976) = 1; *((_DWORD *)this + 671) = 2; if ( !v10 ) { if ( !*((_BYTE *)this + 1784) && !*((_BYTE *)this + 2409) ) goto LABEL_25; PlayerObject::stopRotation(this); if ( !*((_BYTE *)this + 2419) ) goto LABEL_25; } if ( *((_BYTE *)this + 1640) ) { if ( !*((_BYTE *)this + 2408) ) { PlayerObject::stopRotation(this); if ( !*((_BYTE *)this + 2419) ) goto LABEL_25; } } if ( !*((_BYTE *)this + 1785) ) { if ( *((_BYTE *)this + 1784) ) goto LABEL_18; goto LABEL_58; } PlayerObject::stopRotation(this); if ( *((_BYTE *)this + 2419) ) { if ( *((_BYTE *)this + 1784) ) goto LABEL_18; LABEL_58: PlayerObject::runRotateAction(this); if ( *((_BYTE *)this + 2419) ) goto LABEL_18; } LABEL_25: if ( !(unsigned __int8)PlayerObject::isFlying(this) && !*((_BYTE *)this + 2408) && !*((_BYTE *)this + 2409) && (int)(*(float (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 368LL))(this) % 90 ) { PlayerObject::stopRotation(this); } LABEL_18: v11 = (*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::operator=((char *)this + 2532, v11); if ( !(unsigned __int8)PlayerObject::isFlying(this) && *((_BYTE *)this + 1971) ) { PlayerObject::deactivateStreak((cocos2d::CCMotionStreak **)this, 0); *((_BYTE *)this + 2353) = 1; } *((_BYTE *)this + 1971) = 0; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source