//
// sub_1002529F8 from 0x1002529f8 to 0x100252a40 (72 bytes)
//
// 2 xrefs:
// > sub_100252A40 @ 0x100252ae0
// > sub_100252A40 @ 0x100252b5c
//
// 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
//
__int64 __fastcall sub_1002529F8(__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_10062F2D8(a1, a2);
}
return **(_QWORD **)(a1 + 24) + 8LL * (unsigned int)a2;
}