//
// sub_1005C6B70 from 0x1005c6b70 to 0x1005c6bc4 (84 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_1005C6B70(__int64 *a1, double *a2)
{
__int64 v2; // rcx
__int64 v3; // rax
__int64 v4; // rdi
const char *v5; // rdi
v2 = *((int *)a1 + 6);
v3 = *a1;
if ( (int)v2 < (int)(-1431655765 * ((unsigned __int64)(a1[1] - *a1) >> 3)) )
{
*((_DWORD *)a1 + 6) = v2 + 1;
v4 = v3 + 24 * v2;
if ( (*(_BYTE *)v4 & 1) != 0 )
v5 = *(const char **)(v4 + 16);
else
v5 = (const char *)(v4 + 1);
*a2 = strtod(v5, nullptr);
}
}