//
// sub_C78680 from 0xc78680 to 0xc786d4 (84 bytes)
//
// 1 xrefs:
// > sub_C7C8EC @ 0xc7c98c
//
// 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_C78680(const __int16 *a1, unsigned __int32 *a2)
{
int16x8_t v2; // q2
uint8x8_t v3; // d0
uint8x8_t v4; // d1
int8x8_t result; // d0
unsigned __int64 v6; // d1
v2 = vld1q_dup_s16(a1);
v3.n64_u32[0] = *a2;
v4.n64_u32[0] = a2[16];
v3.n64_u32[1] = a2[8];
v4.n64_u32[1] = a2[24];
result.n64_u64[0] = vqmovun_s16(vrsraq_n_s16(vmovl_u8(v3), v2, 3u)).n64_u64[0];
v6 = vqmovun_s16(vrsraq_n_s16(vmovl_u8(v4), v2, 3u)).n64_u64[0];
*a2 = result.n64_u32[0];
a2[8] = result.n64_u32[1];
a2[16] = v6;
a2[24] = HIDWORD(v6);
return result;
}