//
// sub_1001DC420 from 0x1001dc420 to 0x1001dc46e (78 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_1001DC420(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;
}