//
// sub_1002EFC28 from 0x1002efc28 to 0x1002efc70 (72 bytes)
//
// 1 xrefs:
// > sub_1002EFFD4 @ 0x1002f00e4
//
// This function is hookable on this platform (idp: arm, 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 11:02:55 +0000
//
double __fastcall sub_1002EFC28(__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_1007554D0(a1, a2);
}
return *(double *)(**(_QWORD **)(a1 + 24) + 8LL * (unsigned int)a2);
}