//
// sub_7779C4 from 0x7779c4 to 0x7779e4 (32 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_7779C4(wchar_t *a1, int a2)
{
int v3; // r4
int result; // r0
v3 = a2 - *a1;
sub_7777D0(a1, v3 >> 2, 1, 0);
result = *a1 + v3;
*(_DWORD *)(*a1 - 4) = -1;
return result;
}