//
// sub_EC8E8 from 0xec8e8 to 0xec914 (44 bytes)
//
// 2 xrefs:
// > sub_EAF8C @ 0xeb4b8
// > sub_EAF8C @ 0xebbf0
//
// 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 12:15:02 +0000
//
unsigned __int64 *__fastcall sub_EC8E8(__int64 a1, unsigned __int64 a2)
{
unsigned __int64 *result; // x0
result = (unsigned __int64 *)(a1 + 872);
do
{
if ( *result <= a2 && *result + result[1] > a2 )
break;
result = (unsigned __int64 *)result[2];
}
while ( result );
return result;
}