//
// sub_748538 from 0x748538 to 0x74859a (98 bytes)
//
// 1 xrefs:
// > sub_779418 @ 0x779534
//
// 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_748538(int *a1)
{
_DWORD *v2; // r2
int *v3; // r3
int v4; // r0
_BYTE v6[4]; // [sp+4h] [bp-4h] BYREF
a1[1] = 0;
sub_747D3C(v6, a1, 1);
if ( !v6[0] )
return a1;
v2 = *(_DWORD **)((char *)a1 + *(_DWORD *)(*a1 - 12) + 124);
v3 = (int *)v2[2];
if ( (unsigned int)v3 >= v2[3] )
{
v4 = (*(int (__fastcall **)(_DWORD))(*v2 + 40))(*(int *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 124));
}
else
{
v4 = *v3;
v2[2] = v3 + 1;
}
if ( v4 != -1 )
{
a1[1] = 1;
return a1;
}
sub_744C5C((int *)((char *)a1 + *(_DWORD *)(*a1 - 12)), *(int *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 20) | 2);
return a1;
}