//
// sub_748D38 from 0x748d38 to 0x748dd4 (156 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
//
_DWORD *__fastcall sub_748D38(_DWORD *a1)
{
int v2; // r6
_DWORD *v3; // r4
_DWORD *v4; // r3
int *v6; // r3
int v7; // r0
_BYTE v8[4]; // [sp+4h] [bp-4h] BYREF
sub_75629C(v8, (char *)a1 + *(_DWORD *)(*a1 - 12) + 108);
v2 = sub_764188(v8);
sub_756898(v8);
v3 = *(_DWORD **)((char *)a1 + *(_DWORD *)(*a1 - 12) + 124);
v4 = (_DWORD *)v3[2];
if ( (unsigned int)v4 >= v3[3] )
goto LABEL_10;
LABEL_2:
if ( *v4 == -1 )
{
LABEL_11:
sub_744C5C((_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12)), *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 20) | 2);
return a1;
}
else
{
while ( (*(int (__fastcall **)(int, int))(*(_DWORD *)v2 + 8))(v2, 8) )
{
v6 = (int *)v3[2];
if ( (unsigned int)v6 >= v3[3] )
{
v7 = (*(int (__fastcall **)(_DWORD *))(*v3 + 40))(v3);
}
else
{
v7 = *v6;
v3[2] = v6 + 1;
}
if ( v7 != -1 )
{
v4 = (_DWORD *)v3[2];
if ( (unsigned int)v4 < v3[3] )
goto LABEL_2;
LABEL_10:
if ( (*(int (__fastcall **)(_DWORD *))(*v3 + 36))(v3) != -1 )
continue;
}
goto LABEL_11;
}
return a1;
}
}