//
// sub_748DE0 from 0x748de0 to 0x748e40 (96 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_748DE0(int *a1, int *a2)
{
_DWORD *v4; // r2
int *v5; // r3
int v6; // r0
_BYTE v8[8]; // [sp+4h] [bp-8h] BYREF
sub_747D3C(v8, a1, 0);
if ( v8[0] )
{
v4 = *(_DWORD **)((char *)a1 + *(_DWORD *)(*a1 - 12) + 124);
v5 = (int *)v4[2];
if ( (unsigned int)v5 >= v4[3] )
{
v6 = (*(int (__fastcall **)(_DWORD))(*v4 + 40))(*(int *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 124));
}
else
{
v6 = *v5;
v4[2] = v5 + 1;
}
if ( v6 == -1 )
{
sub_744C5C((int *)((char *)a1 + *(_DWORD *)(*a1 - 12)), *(int *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 20) | 6);
return a1;
}
*a2 = v6;
}
return a1;
}