//
// sub_77A04 from 0x77a04 to 0x77a3c (56 bytes)
//
// 6 xrefs:
// > sub_77C5C @ 0x77db0
// > sub_77C5C @ 0x77dda
// > sub_77C5C @ 0x77e04
// > sub_77C5C @ 0x77e90
// > sub_77C5C @ 0x77eb8
// > sub_77C5C @ 0x77ee0
//
// 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_77A04(int a1, int a2, int a3)
{
int v3; // r4
int i; // r5
int v5; // r6
v3 = 0;
for ( i = 0; ; ++i )
{
if ( i >= *(_DWORD *)(a1 + 556) )
return 31;
v5 = *(_DWORD *)(a1 + 560);
if ( *(unsigned __int16 *)(v5 + v3) == a2 && *(unsigned __int16 *)(v5 + v3 + 4) == a3 )
break;
v3 += 12;
}
return 0;
}