//
// sub_1001DC550 from 0x1001dc550 to 0x1001dc5b5 (101 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:26:26 +0000
//
__int64 __fastcall sub_1001DC550(__int64 a1, double *a2)
{
__m128 v2; // xmm0
float v3; // xmm2_4
__m128 v4; // xmm1
v2 = (__m128)*(unsigned __int64 *)a2;
v3 = fsqrt((float)(COERCE_FLOAT(*(_QWORD *)a2) * v2.f32[0]) + _mm_movehdup_ps(_mm_mul_ps(v2, v2)).f32[0]);
if ( v3 >= 0.00000011920929 )
{
v4 = (__m128)0x3F800000u;
v4.f32[0] = 1.0 / v3;
}
else
{
v4 = (__m128)0x4479FFFFu;
}
_mm_storel_ps(a2, _mm_mul_ps(v2, _mm_moveldup_ps(v4)));
sub_1002782D0(a1, a2);
return a1;
}