//
// PlayerObject::setYVelocity from 0x1404e6f50 to 0x1404e6fb9 (105 bytes)
//
// 45 xrefs:
// > GJBaseGameLayer::setupLevelStart @ 0x140319d66
// > GJBaseGameLayer::setupLevelStart @ 0x140319d89
// > GJBaseGameLayer::checkCollisions @ 0x14031b487
// > GJBaseGameLayer::toggleDualMode @ 0x14031df88
// > GJBaseGameLayer::checkRepellPlayer @ 0x14034265f
// > PlayerObject::update @ 0x1404e7542
// > PlayerObject::updateJump @ 0x1404e9f8c
// > PlayerObject::updateJump @ 0x1404ea071
// > PlayerObject::updateJump @ 0x1404ea097
// > PlayerObject::updateJump @ 0x1404ea31c
// > PlayerObject::updateJump @ 0x1404ea353
// > PlayerObject::updateJump @ 0x1404ea569
// > PlayerObject::updateJump @ 0x1404ea940
// > PlayerObject::updateJump @ 0x1404eaa35
// > PlayerObject::updateJump @ 0x1404eaa76
// > PlayerObject::updateJump @ 0x1404eaa99
// > PlayerObject::updateJump @ 0x1404eabd8
// > PlayerObject::updateJump @ 0x1404eac66
// > PlayerObject::updateJump @ 0x1404eacc6
// > PlayerObject::updateJump @ 0x1404ead11
// > PlayerObject::updateJump @ 0x1404ead88
// > PlayerObject::updateJump @ 0x1404eadac
// > PlayerObject::updateJump @ 0x1404eadcd
// > PlayerObject::collidedWithSlopeInternal @ 0x1404ee5d9
// > PlayerObject::collidedWithSlopeInternal @ 0x1404eeb40
// > PlayerObject::collidedWithSlopeInternal @ 0x1404eecb5
// > PlayerObject::collidedWithSlopeInternal @ 0x1404eed42
// > PlayerObject::collidedWithSlopeInternal @ 0x1404eed86
// > PlayerObject::collidedWithObjectInternal @ 0x1404f0931
// > PlayerObject::collidedWithObjectInternal @ 0x1404f0949
// > PlayerObject::collidedWithObjectInternal @ 0x1404f0a9a
// > PlayerObject::collidedWithObjectInternal @ 0x1404f0abb
// > PlayerObject::collidedWithObjectInternal @ 0x1404f0f2d
// > PlayerObject::collidedWithObjectInternal @ 0x1404f0f45
// > PlayerObject::collidedWithObjectInternal @ 0x1404f1092
// > PlayerObject::collidedWithObjectInternal @ 0x1404f10b3
// > PlayerObject::collidedWithObjectInternal @ 0x1404f1d7f
// > PlayerObject::didHitHead @ 0x1404f1e73
// > PlayerObject::spiderTestJumpInternal @ 0x1404f3246
// > PlayerObject::ringJump @ 0x1404f775b
// > PlayerObject::ringJump @ 0x1404f7b60
// > PlayerObject::propellPlayer @ 0x1404fdd26
// > PlayerObject::copyAttributes @ 0x1404feb9e
// > ??> @ 0x140929c30
// > ??> @ 0x140929c3c
//
// This function is hookable on this platform (idp: pc, 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 11:33:11 +0000
//
void __fastcall PlayerObject::setYVelocity(__int64 a1, double a2)
{
double v2; // xmm7_8
v2 = (double)(int)a2;
if ( a2 == v2 )
*(double *)(a1 + 2472) = a2;
else
*(double *)(a1 + 2472) = round((a2 - v2) * 1000.0) / 1000.0 + v2;
}