//
// sub_77B0A8 from 0x77b0a8 to 0x77b0e2 (58 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_77B0A8(int a1, int a2, int *a3, unsigned int a4)
{
int *v4; // r5
int *v8; // r4
int v10; // r2
v4 = a3;
if ( (unsigned int)a3 < a4 )
{
v8 = a3;
while ( 1 )
{
v10 = *v8;
v4 = v8++;
if ( (*(int (__fastcall **)(int, int, int))(*(_DWORD *)a1 + 8))(a1, a2, v10) )
break;
if ( a4 <= (unsigned int)v8 )
return v8;
}
}
return v4;
}