//
// sub_C776D4 from 0xc776d4 to 0xc7774c (120 bytes)
//
// 1 xrefs:
// > sub_C7C8EC @ 0xc7ca68
//
// 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_C776D4(__int64 a1)
{
unsigned __int64 v1; // d1
uint8x8_t v2; // d0
unsigned __int64 v3; // d0
_DWORD *result; // x0
v1 = (*(unsigned __int8 *)(a1 + 31) << 16)
| (*(unsigned __int8 *)(a1 + 63) << 8)
| *(unsigned __int8 *)(a1 + 95)
| (*(unsigned __int8 *)(a1 - 1) << 24)
| (*(_QWORD *)(a1 - 33) << 32);
v2.n64_u64[0] = vshrd_n_u64(v1, 0x10u);
v2.n64_u8[6] = BYTE4(*(_QWORD *)(a1 - 33));
v3 = vrhadd_u8(vhadd_u8(v2, (uint8x8_t)v1), (uint8x8_t)vshrd_n_u64(v1, 8u)).n64_u64[0];
*(_DWORD *)a1 = vshrd_n_u64(v3, 0x18u);
*(_DWORD *)(a1 + 32) = vshrd_n_u64(v3, 0x10u);
*(_DWORD *)(a1 + 64) = vshrd_n_u64(v3, 8u);
result = (_DWORD *)(a1 + 96);
*result = v3;
return result;
}