//
// sub_EC8E8 from 0xec8e8 to 0xec914 (44 bytes)
//
// 2 xrefs:
// > sub_EAF8C @ 0xeb4b8
// > sub_EAF8C @ 0xebbf0
//
// 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
//
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;
}