//
// sub_1001F9DD0 from 0x1001f9dd0 to 0x1001f9e1e (78 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
//
__int64 __fastcall sub_1001F9DD0(int a1, int a2, double a3, __m128 a4)
{
unsigned int v4; // ebx
int v5; // eax
v4 = a2;
a4.f32[0] = (float)(a2 - a1 + 1) * (float)((float)rand() * 4.6566129e-10);
v5 = (int)(float)((float)a1 + _mm_round_ss(a4, a4, 9).f32[0]);
if ( v5 < a2 )
return (unsigned int)v5;
return v4;
}