//
// sub_C78360 from 0xc78360 to 0xc78454 (244 bytes)
//
// 1 xrefs:
// > sub_C7C8EC @ 0xc7cae0
//
// 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
//
int8x8_t __fastcall sub_C78360(int8x8_t *a1)
{
int16x8_t v1; // q0
unsigned __int64 v2; // d3
unsigned __int64 v3; // d2
unsigned __int64 v4; // d1
int16x8_t v5; // q3
int16x8_t v6; // q2
int16x8_t v7; // q1
int8x8_t result; // d0
v1 = vsubl_u8(a1[-4], vld1_dup_s8((const char *)&a1[-5] + 7));
v2 = vqmovun_s16(vaddq_s16(v1, vmovl_u8(vld1_dup_s8((const char *)&a1[3] + 7)))).n64_u64[0];
v3 = vqmovun_s16(vaddq_s16(v1, vmovl_u8(vld1_dup_s8((const char *)&a1[7] + 7)))).n64_u64[0];
v4 = vqmovun_s16(vaddq_s16(v1, vmovl_u8(vld1_dup_s8((const char *)&a1[11] + 7)))).n64_u64[0];
a1->n64_u64[0] = vqmovun_s16(vaddq_s16(v1, vmovl_u8(vld1_dup_s8((const char *)&a1[-1] + 7)))).n64_u64[0];
a1[4].n64_u64[0] = v2;
a1[8].n64_u64[0] = v3;
a1[12].n64_u64[0] = v4;
v5 = vaddq_s16(v1, vmovl_u8(vld1_dup_s8((const char *)&a1[15] + 7)));
v6 = vaddq_s16(v1, vmovl_u8(vld1_dup_s8((const char *)&a1[19] + 7)));
v7 = vaddq_s16(v1, vmovl_u8(vld1_dup_s8((const char *)&a1[23] + 7)));
result.n64_u64[0] = vqmovun_s16(vaddq_s16(v1, vmovl_u8(vld1_dup_s8((const char *)&a1[27] + 7)))).n64_u64[0];
a1[16].n64_u64[0] = vqmovun_s16(v5).n64_u64[0];
a1[20].n64_u64[0] = vqmovun_s16(v6).n64_u64[0];
a1[24].n64_u64[0] = vqmovun_s16(v7).n64_u64[0];
a1[28].n64_u64[0] = result.n64_u64[0];
return result;
}