//
// sub_100252914 from 0x100252914 to 0x1002529b0 (156 bytes)
//
// 3 xrefs:
// > sub_100252D5C @ 0x100252e40
// > sub_100252EC4 @ 0x100252fc8
// > sub_100252EC4 @ 0x100252ffc
//
// 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
//
double __fastcall sub_100252914(__int64 a1, int a2, unsigned int a3)
{
_QWORD *v3; // x8
unsigned __int64 v4; // x9
__int64 v5; // x10
bool v6; // cc
int v7; // w10
unsigned int v8; // w9
if ( a2 < 0
|| (v3 = *(_QWORD **)a1, (v4 = *(_QWORD *)(a1 + 8) - *(_QWORD *)a1) == 0)
|| (a3 & 0x80000000) != 0
|| ((v5 = (v3[1] - *v3) >> 3, (int)v5 > a2) ? (v6 = (unsigned int)v5 > a3) : (v6 = 0), !v6) )
{
sub_10062F288();
}
v7 = a3 - a2;
if ( (int)(a3 - a2) < (int)(1431655765 * ((*(_QWORD *)(a1 + 32) - *(_QWORD *)(a1 + 24)) >> 3) + 1)
|| v7 >= (int)(-1431655765 * (v4 >> 3)) )
{
sub_10062F260();
}
if ( v7 >= 0 )
v8 = a3 - a2;
else
v8 = a2 - a3;
if ( v7 < 0 )
v3 = *(_QWORD **)(a1 + 24);
return *(double *)(v3[3 * v8] + 8LL * (unsigned int)a2);
}