//
// sub_EEE840 from 0xeee840 to 0xeee894 (84 bytes)
//
// 1 xrefs:
// > sub_EF2AAC @ 0xef2b4c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:11:58 +0000
//
int8x8_t __fastcall sub_EEE840(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;
}