//
// sub_1002529B0 from 0x1002529b0 to 0x1002529f8 (72 bytes)
//
// 1 xrefs:
// > sub_100252D5C @ 0x100252e6c
//
// 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_1002529B0(__int64 a1, __int64 a2)
{
__int64 v2; // x8
if ( (a2 & 0x80000000) != 0
|| (*(_QWORD *)(a1 + 8) == *(_QWORD *)a1
? (LODWORD(v2) = 0)
: (v2 = (*(_QWORD *)(*(_QWORD *)a1 + 8LL) - **(_QWORD **)a1) >> 3),
(int)v2 <= (int)a2) )
{
sub_10062F2B0(a1, a2);
}
return *(double *)(**(_QWORD **)(a1 + 24) + 8LL * (unsigned int)a2);
}