//
// PlayerObject::setYVelocity from 0x140388d10 to 0x140388d79 (105 bytes)
//
// 43 xrefs:
// > GJBaseGameLayer::checkCollisions @ 0x140214156
// > GJBaseGameLayer::toggleDualMode @ 0x140216a45
// > GJBaseGameLayer::checkRepellPlayer @ 0x140239a49
// > PlayerObject::update @ 0x140389302
// > PlayerObject::updateJump @ 0x14038bd0c
// > PlayerObject::updateJump @ 0x14038bdec
// > PlayerObject::updateJump @ 0x14038be12
// > PlayerObject::updateJump @ 0x14038c09d
// > PlayerObject::updateJump @ 0x14038c0d3
// > PlayerObject::updateJump @ 0x14038c2ed
// > PlayerObject::updateJump @ 0x14038c6ad
// > PlayerObject::updateJump @ 0x14038c78a
// > PlayerObject::updateJump @ 0x14038c7da
// > PlayerObject::updateJump @ 0x14038c7f1
// > PlayerObject::updateJump @ 0x14038c935
// > PlayerObject::updateJump @ 0x14038c9c0
// > PlayerObject::updateJump @ 0x14038ca1d
// > PlayerObject::updateJump @ 0x14038ca66
// > PlayerObject::updateJump @ 0x14038cad9
// > PlayerObject::updateJump @ 0x14038cafd
// > PlayerObject::updateJump @ 0x14038cb1e
// > PlayerObject::collidedWithSlopeInternal @ 0x14039028b
// > PlayerObject::collidedWithSlopeInternal @ 0x1403907dd
// > PlayerObject::collidedWithSlopeInternal @ 0x140390951
// > PlayerObject::collidedWithSlopeInternal @ 0x1403909d5
// > PlayerObject::collidedWithSlopeInternal @ 0x140390a19
// > PlayerObject::collidedWithObjectInternal @ 0x1403926a9
// > PlayerObject::collidedWithObjectInternal @ 0x1403926c3
// > PlayerObject::collidedWithObjectInternal @ 0x140392810
// > PlayerObject::collidedWithObjectInternal @ 0x140392833
// > PlayerObject::collidedWithObjectInternal @ 0x140392cab
// > PlayerObject::collidedWithObjectInternal @ 0x140392cc5
// > PlayerObject::collidedWithObjectInternal @ 0x140392e30
// > PlayerObject::collidedWithObjectInternal @ 0x140392e53
// > PlayerObject::collidedWithObjectInternal @ 0x140393b76
// > PlayerObject::didHitHead @ 0x140393c73
// > PlayerObject::spiderTestJumpInternal @ 0x14039504b
// > PlayerObject::ringJump @ 0x14039951b
// > PlayerObject::ringJump @ 0x14039991b
// > PlayerObject::propellPlayer @ 0x14039f8e6
// > PlayerObject::copyAttributes @ 0x1403a060e
// > ??> @ 0x1406d5f78
// > ??> @ 0x1406d5f84
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void PlayerObject::setYVelocity(PlayerObject *a1, double a2, int a3)
{
double v3; // xmm7_8
v3 = (double)(int)a2;
if ( a2 == v3 )
a1->m_yVelocity = a2;
else
a1->m_yVelocity = round((a2 - v3) * 1000.0) / 1000.0 + v3;
}