//
// sub_774A98 from 0x774a98 to 0x774abc (36 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
//
int __fastcall sub_774A98(int *a1, int a2, unsigned int a3)
{
int v3; // r4
unsigned int v4; // r3
void *v6; // r0
v3 = *a1;
v4 = *(_DWORD *)(*a1 - 12);
if ( a3 < v4 && (v6 = memchr((const void *)(a3 + v3), a2, v4 - a3)) != nullptr )
return (int)v6 - v3;
else
return -1;
}