//
// sub_761588 from 0x761588 to 0x7615c0 (56 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_761588(_DWORD *a1)
{
int *v1; // r3
int result; // r0
unsigned int v4; // r3
v1 = (int *)a1[2];
if ( (unsigned int)v1 >= a1[3] )
{
result = (*(int (__fastcall **)(_DWORD *))(*a1 + 40))(a1);
}
else
{
result = *v1;
a1[2] = v1 + 1;
}
if ( result != -1 )
{
v4 = a1[2];
if ( v4 >= a1[3] )
return (*(int (__fastcall **)(_DWORD *))(*a1 + 36))(a1);
else
return *(_DWORD *)v4;
}
return result;
}