//
// sub_777E70 from 0x777e70 to 0x777ea8 (56 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_777E70(wchar_t *a1, int a2)
{
wchar_t v2; // r3
int v4; // r1
v2 = *a1;
v4 = *(_DWORD *)(*a1 - 4);
if ( v4 >= 0 && (_UNKNOWN *)(v2 - 12) != &unk_ACDDAC )
{
if ( v4 )
{
sub_7777D0(a1, 0, 0, 0);
v2 = *a1;
}
*(_DWORD *)(v2 - 4) = -1;
}
return v2 + 4 * a2;
}