//
// sub_75ABAC from 0x75abac to 0x75ac44 (152 bytes)
//
// 2 xrefs:
// > sub_75AD90 @ 0x75adae
// > sub_75ADC0 @ 0x75adc2
//
// 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_75ABAC(int *a1, int a2)
{
_DWORD *v4; // r0
int *v5; // r3
char *v6; // r5
int v7; // r0
_BYTE v9[4]; // [sp+0h] [bp-8h] BYREF
_DWORD *v10; // [sp+4h] [bp-4h]
sub_75AA2C((int)v9, a1);
if ( v9[0] )
{
v4 = *(_DWORD **)((char *)a1 + *(_DWORD *)(*a1 - 12) + 124);
v5 = (int *)v4[5];
if ( (unsigned int)v5 >= v4[6] )
{
a2 = (*(int (__fastcall **)(_DWORD *, int))(*v4 + 52))(v4, a2);
}
else
{
*v5 = a2;
v4[5] = v5 + 1;
}
if ( a2 == -1 )
sub_744C5C((int *)((char *)a1 + *(_DWORD *)(*a1 - 12)), *(int *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 20) | 1);
}
v6 = (char *)v10 + *(_DWORD *)(*v10 - 12);
if ( (*((_DWORD *)v6 + 3) & 0x2000) == 0 )
return a1;
if ( std::uncaught_exception() )
return a1;
v7 = *((_DWORD *)v6 + 31);
if ( !v7 || (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 24))(v7) != -1 )
return a1;
sub_744C5C(
(_DWORD *)((char *)v10 + *(_DWORD *)(*v10 - 12)),
*(_DWORD *)((char *)v10 + *(_DWORD *)(*v10 - 12) + 20) | 1);
return a1;
}