//
// sub_77577C from 0x77577c to 0x7757b8 (60 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_77577C(int *a1)
{
int v1; // r3
int v2; // r5
int v3; // r4
v1 = *a1;
v2 = *(_DWORD *)(*a1 - 4);
v3 = *(_DWORD *)(*a1 - 12) - 1;
if ( v2 >= 0 && (int *)(v1 - 12) != &dword_ACDD9C )
{
if ( v2 )
{
sub_77500C(a1, 0, nullptr, nullptr);
v1 = *a1;
}
*(_DWORD *)(v1 - 4) = -1;
}
return v1 + v3;
}