//
// sub_777EEC from 0x777eec to 0x777f2e (66 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
//
_DWORD *__fastcall sub_777EEC(_DWORD *a1, wchar_t *a2)
{
wchar_t v3; // r3
int v5; // r1
v3 = *a2;
v5 = *(_DWORD *)(*a2 - 4);
if ( v5 >= 0 && (_UNKNOWN *)(v3 - 12) != &unk_ACDDAC )
{
if ( v5 )
{
sub_7777D0(a2, 0, 0, 0);
v3 = *a2;
}
*(_DWORD *)(v3 - 4) = -1;
}
*a1 = v3 + 4 * *(_DWORD *)(v3 - 12);
return a1;
}