//
// sub_D00498 from 0xd00498 to 0xd004f0 (88 bytes)
//
// 0 xrefs:
//
// 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_D00498(
__int64 a1,
unsigned __int8 *a2,
__int64 a3,
int a4,
__int64 a5,
char *a6,
unsigned __int64 a7,
int *a8)
{
__int64 result; // x0
result = (char *)sub_D00084(a6, a4, a2, a3, a7, a7 + 4LL * *a8) - a6;
*a8 = result >> 2;
return result;
}