//
// PlayerObject::setYVelocity from 0x1002b59f0 to 0x1002b5a24 (52 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::setupLevelStart @ 0x1002817b4
// > GJBaseGameLayer::setupLevelStart @ 0x1002817d4
// > GJBaseGameLayer::checkCollisions @ 0x100283278
// > GJBaseGameLayer::loadUpToPosition @ 0x100298f10
//
// 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 11:02:22 +0000
//
__int64 __fastcall PlayerObject::setYVelocity(__int64 result, double a2)
{
double v2; // d1
v2 = (double)(int)a2;
if ( v2 != a2 )
a2 = round((a2 - v2) * 1000.0) / 1000.0 + v2;
*(double *)(result + 2392) = a2;
return result;
}