//
// sub_7051D8 from 0x7051d8 to 0x70524c (116 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_7051D8(int result)
{
uint8x8_t v1; // d17
uint8x8_t v2; // d16
unsigned __int64 v3; // d16
v1.n64_u64[0] = vshld_n_s64(*(_QWORD *)(result - 33), 0x20u)
| *(unsigned __int8 *)(result + 95)
| (*(unsigned __int8 *)(result + 31) << 16)
| (*(unsigned __int8 *)(result + 63) << 8)
| (unsigned __int64)(*(unsigned __int8 *)(result - 1) << 24);
v2.n64_u64[0] = vshrd_n_u64(v1.n64_u64[0], 0x10u);
v2.n64_u8[6] = *(_DWORD *)(result - 29);
v3 = vrhadd_u8(vhadd_u8(v2, v1), (uint8x8_t)vshrd_n_u64(v1.n64_u64[0], 8u)).n64_u64[0];
*(_DWORD *)result = vshrd_n_u64(v3, 0x18u);
*(_DWORD *)(result + 32) = vshrd_n_u64(v3, 0x10u);
*(_DWORD *)(result + 64) = vshrd_n_u64(v3, 8u);
*(_DWORD *)(result + 96) = v3;
return result;
}