//
// sub_747000 from 0x747000 to 0x747092 (146 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_747000(_DWORD *a1)
{
int v2; // r6
_DWORD *v3; // r4
_BYTE *v4; // r3
int v5; // r0
unsigned int v7; // r3
unsigned int v8; // r2
char v9[4]; // [sp+4h] [bp-4h] BYREF
sub_75629C(v9, (char *)a1 + *(_DWORD *)(*a1 - 12) + 108);
v2 = sub_74C87C(v9);
sub_756898(v9);
v3 = *(_DWORD **)((char *)a1 + *(_DWORD *)(*a1 - 12) + 120);
v4 = (_BYTE *)v3[2];
if ( (unsigned int)v4 >= v3[3] )
goto LABEL_9;
LABEL_2:
LOBYTE(v5) = *v4;
do
{
if ( (*(_BYTE *)(*(_DWORD *)(v2 + 24) + (unsigned __int8)v5) & 8) == 0 )
return a1;
v7 = v3[2];
v8 = v3[3];
if ( v7 >= v8 )
{
if ( (*(int (__fastcall **)(_DWORD *))(*v3 + 40))(v3) == -1 )
break;
v4 = (_BYTE *)v3[2];
v8 = v3[3];
}
else
{
v4 = (_BYTE *)(v7 + 1);
v3[2] = v4;
}
if ( (unsigned int)v4 < v8 )
goto LABEL_2;
LABEL_9:
v5 = (*(int (__fastcall **)(_DWORD *))(*v3 + 36))(v3);
}
while ( v5 != -1 );
sub_7446A4((_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12)), *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 20) | 2);
return a1;
}