//
// sub_1005DF804 from 0x1005df804 to 0x1005df950 (332 bytes)
//
// 1 xrefs:
// > ??> @ 0x100861188
//
// 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
//
bool sub_1005DF804()
{
int v0; // w20
__int64 v1; // x0
char v2; // w20
_BOOL8 v3; // x19
__n128 v5; // [xsp+0h] [xbp-30h] BYREF
sub_100588468((int **)&v5);
if ( byte_100882DC0[0] == 1
&& (sub_100588190(5, 19, (__int64)"md_rand.c", 559),
v0 = sub_1005884C8(&xmmword_100882DE8, &v5),
v1 = sub_100588190(6, 19, (__int64)"md_rand.c", 561),
!v0) )
{
v2 = 1;
}
else
{
sub_100588190(9, 18, (__int64)"md_rand.c", 566);
sub_100588190(9, 19, (__int64)"md_rand.c", 571);
sub_1005884D0(&xmmword_100882DE8, &v5);
v1 = sub_100588190(10, 19, (__int64)"md_rand.c", 573);
v2 = 0;
byte_100882DC0[0] = 1;
}
if ( (byte_100882DC1 & 1) == 0 )
{
sub_1005E06BC(v1);
byte_100882DC1 = 1;
}
v3 = *(double *)&qword_100882DD0 >= 32.0;
if ( (v2 & 1) == 0 )
{
byte_100882DC0[0] = 0;
sub_100588190(10, 18, (__int64)"md_rand.c", 588);
}
return v3;
}