//
// sub_7485F4 from 0x7485f4 to 0x748652 (94 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_7485F4(int *a1)
{
int v2; // r5
_DWORD *v4; // r0
int *v5; // r3
_BYTE v6[8]; // [sp+4h] [bp-8h] BYREF
a1[1] = 0;
sub_747D3C(v6, a1, 1);
if ( !v6[0] )
return -1;
v4 = *(_DWORD **)((char *)a1 + *(_DWORD *)(*a1 - 12) + 124);
v5 = (int *)v4[2];
if ( (unsigned int)v5 >= v4[3] )
v2 = (*(int (__fastcall **)(_DWORD *))(*v4 + 36))(v4);
else
v2 = *v5;
if ( v2 != -1 )
return v2;
sub_744C5C((int *)((char *)a1 + *(_DWORD *)(*a1 - 12)), *(int *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 20) | 2);
return -1;
}