//
// sub_1005C6E00 from 0x1005c6e00 to 0x1005c6eca (202 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:32:47 +0000
//
void __fastcall sub_1005C6E00(__int64 *a1, float *a2)
{
signed int v3; // ecx
__int64 v4; // rax
float v5; // xmm0_4
__int64 v6; // rdi
const char *v7; // rdi
float v8; // xmm1_4
signed int v9; // ecx
__int64 v10; // rax
__int64 v11; // rdi
const char *v12; // rdi
v3 = *((_DWORD *)a1 + 6);
v4 = *a1;
v5 = 0.0;
if ( v3 >= (int)(-1431655765 * ((unsigned __int64)(a1[1] - *a1) >> 3)) )
{
v8 = 0.0;
}
else
{
*((_DWORD *)a1 + 6) = v3 + 1;
v6 = v4 + 24LL * v3;
if ( (*(_BYTE *)v6 & 1) != 0 )
v7 = *(const char **)(v6 + 16);
else
v7 = (const char *)(v6 + 1);
v8 = strtod(v7, nullptr);
v9 = *((_DWORD *)a1 + 6);
v10 = *a1;
v5 = 0.0;
if ( v9 < (int)(-1431655765 * ((unsigned __int64)(a1[1] - *a1) >> 3)) )
{
*((_DWORD *)a1 + 6) = v9 + 1;
v11 = v10 + 24LL * v9;
if ( (*(_BYTE *)v11 & 1) != 0 )
v12 = *(const char **)(v11 + 16);
else
v12 = (const char *)(v11 + 1);
v5 = strtod(v12, nullptr);
}
}
*a2 = v8;
a2[1] = v5;
}