//
// GJBaseGameLayer::performMathRounding from 0x10012a1c0 to 0x10012a206 (70 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:24:43 +0000
//
__m128d __fastcall GJBaseGameLayer::performMathRounding(__m128d result, __int64 a2, int a3)
{
__m128d v3; // xmm1
switch ( a3 )
{
case 3:
return _mm_round_sd(result, result, 10);
case 2:
return _mm_round_sd(result, result, 9);
case 1:
v3 = _mm_or_pd(_mm_and_pd((__m128d)xmmword_100A04960, result), (__m128d)xmmword_100A04D50);
v3.f64[0] = v3.f64[0] + result.f64[0];
return _mm_round_sd((__m128d)0LL, v3, 11);
}
return result;
}