//
// sub_1002EFC70 from 0x1002efc70 to 0x1002efcb8 (72 bytes)
//
// 2 xrefs:
// > sub_1002EFCB8 @ 0x1002efd58
// > sub_1002EFCB8 @ 0x1002efdd4
//
// 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
//
__int64 __fastcall sub_1002EFC70(__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_1007554F8(a1, a2);
}
return **(_QWORD **)(a1 + 24) + 8LL * (unsigned int)a2;
}