// // PlayerObject::setYVelocity from 0x1003fc630 to 0x1003fc690 (96 bytes) // // 2 xrefs: // > GJBaseGameLayer::checkCollisions @ 0x100126116 // > GJBaseGameLayer::loadUpToPosition @ 0x10014e995 // // 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::setYVelocity(PlayerObject *a1, double a2, int a3) { double v3; // xmm1_8 __m128d v4; // xmm0 __m128d v5; // xmm3 v3 = _mm_cvtepi32_pd(_mm_cvttpd_epi32(*(__m128d *)&a2)).f64[0]; if ( v3 == a2 ) { 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; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source