//
// sub_75BFF4 from 0x75bff4 to 0x75c046 (82 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_75BFF4(_DWORD *a1, int a2)
{
unsigned int v2; // r3
int v3; // r1
_BOOL4 v5; // r2
v2 = a1[2];
if ( a1[1] >= v2 )
return -1;
if ( a2 == -1 )
{
v3 = 0;
a1[2] = v2 - 4;
return v3;
}
v5 = *(_DWORD *)(v2 - 4) == a2;
if ( !((a1[8] >> 4) & 1 | v5) )
return -1;
a1[2] = v2 - 4;
if ( !v5 )
*(_DWORD *)(v2 - 4) = a2;
return a2;
}