//
// PlayerObject::addToYVelocity from 0x1003fcee0 to 0x1003fcf48 (104 bytes)
//
// 0 xrefs:
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall PlayerObject::addToYVelocity(PlayerObject *a1, double a2, int a3)
{
double v3; // xmm1_8
__m128d v4; // xmm0
__m128d v5; // xmm3
a2 = a2 + a1->m_yVelocity;
v3 = _mm_cvtepi32_pd(_mm_cvttpd_epi32(*(__m128d *)&a2)).f64[0];
if ( a2 == v3 )
{
a1->m_yVelocity = a2;
}
else
{
v4.f64[0] = (a2 - v3) * 1000.0;
v5 = _mm_or_pd(_mm_and_pd((__m128d)xmmword_100816590, v4), (__m128d)xmmword_100816960);
v5.f64[0] = v5.f64[0] + v4.f64[0];
a1->m_yVelocity = _mm_round_sd((__m128d)0LL, v5, 11).f64[0] / 1000.0 + v3;
}
}