//
// PlayerObject::setYVelocity from 0x4350a0 to 0x4350ec (76 bytes)
//
// 51 xrefs:
// > PlayerObject::addToYVelocity @ 0x435116
// > PlayerObject::pushDown @ 0x43903c
// > PlayerObject::specialGroundHit @ 0x43906e
// > PlayerObject::hardFlipGravity @ 0x439c54
// > PlayerObject::propellPlayer @ 0x43aa1a
// > PlayerObject::boostPlayer @ 0x43ab3c
// > PlayerObject::hitGround @ 0x43be0a
// > PlayerObject::collidedWithObjectInternal @ 0x43cd1c
// > PlayerObject::collidedWithObjectInternal @ 0x43cd44
// > PlayerObject::collidedWithObjectInternal @ 0x43cdc2
// > PlayerObject::collidedWithObjectInternal @ 0x43cdf6
// > PlayerObject::collidedWithObjectInternal @ 0x43ced2
// > PlayerObject::collidedWithObjectInternal @ 0x43d094
// > PlayerObject::collidedWithObjectInternal @ 0x43d3ac
// > PlayerObject::collidedWithObjectInternal @ 0x43d3d4
// > PlayerObject::collidedWithObjectInternal @ 0x43d46a
// > PlayerObject::collidedWithObjectInternal @ 0x43d49e
// > PlayerObject::collidedWithObjectInternal @ 0x43d51c
// > PlayerObject::copyAttributes @ 0x43f9c4
// > PlayerObject::spawnFromPlayer @ 0x43fa50
// > PlayerObject::resetObject @ 0x440424
// > PlayerObject::collidedWithSlopeInternal @ 0x441bfa
// > PlayerObject::collidedWithSlopeInternal @ 0x441f4c
// > PlayerObject::collidedWithSlopeInternal @ 0x441fbc
// > PlayerObject::collidedWithSlopeInternal @ 0x442106
// > PlayerObject::collidedWithSlopeInternal @ 0x442148
// > PlayerObject::postCollision @ 0x443a5a
// > PlayerObject::spiderTestJumpInternal @ 0x444472
// > PlayerObject::updateJump @ 0x44498c
// > PlayerObject::updateJump @ 0x444a4e
// > PlayerObject::updateJump @ 0x444d0c
// > PlayerObject::updateJump @ 0x445048
// > PlayerObject::updateJump @ 0x4450b0
// > PlayerObject::updateJump @ 0x44516e
// > PlayerObject::updateJump @ 0x445212
// > PlayerObject::updateJump @ 0x445264
// > PlayerObject::updateJump @ 0x4452dc
// > PlayerObject::updateJump @ 0x445326
// > PlayerObject::updateJump @ 0x445352
// > PlayerObject::spiderTestJumpY @ 0x4458e4
// > PlayerObject::spiderTestJumpX @ 0x4461b6
// > PlayerObject::init @ 0x44771e
// > PlayerObject::update @ 0x448d5c
// > PlayerObject::ringJump @ 0x449c5e
// > PlayerObject::ringJump @ 0x449ec6
// > PlayerObject::loadFromCheckpoint @ 0x44b2c0
// > PlayerObject::loadFromCheckpoint @ 0x44b2fc
// > GJBaseGameLayer::setupLevelStart @ 0x5ba070
// > GJBaseGameLayer::setupLevelStart @ 0x5ba08c
// > GJBaseGameLayer::checkCollisions @ 0x5bb582
// > GJBaseGameLayer::loadUpToPosition @ 0x5bcafc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:18 +0000
//
int __fastcall PlayerObject::setYVelocity(double this, double a2, int a3)
{
double v3; // d7
int v4; // r4
double v5; // d8
v3 = a2;
v4 = LODWORD(this);
v5 = (double)(int)a2;
if ( a2 != v5 )
{
LODWORD(this) = round();
v3 = v5 + this / 1000.0;
}
*(double *)(v4 + 1928) = v3;
return LODWORD(this);
}