//
// sub_777EAC from 0x777eac to 0x777ee6 (58 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_777EAC(wchar_t *a1)
{
wchar_t v1; // r3
int v2; // r4
v1 = *a1;
v2 = *(_DWORD *)(*a1 - 4);
if ( v2 >= 0 && (_UNKNOWN *)(v1 - 12) != &unk_ACDDAC )
{
if ( v2 )
{
sub_7777D0(a1, 0, 0, 0);
v1 = *a1;
}
*(_DWORD *)(v1 - 4) = -1;
}
return v1 + 4 * *(_DWORD *)(v1 - 12);
}