//
// sub_100123FE0 from 0x100123fe0 to 0x10012406c (140 bytes)
//
// 1 xrefs:
// > sub_100123F6C @ 0x100123f84
//
// 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
//
__n128 __usercall sub_100123FE0@(__n128 *a1@, __n128 *a2@, __n128 **a3@)
{
__n128 *v6; // x20
__n128 result; // q0
v6 = (__n128 *)operator new(0x48u);
*a3 = v6;
a3[1] = a1;
a3[2] = nullptr;
v6->n128_u64[0] = 0;
v6->n128_u64[1] = 0;
v6[1].n128_u32[0] = a2->n128_u32[0];
v6[1].n128_u64[1] = a2->n128_u64[1];
sub_1000229B8((__int64 *)&v6[2], (__int64 *)&a2[1]);
sub_1000229B8(&v6[2].n128_i64[1], &a2[1].n128_i64[1]);
result = a2[2];
v6[3] = result;
v6[4].n128_u32[0] = a2[3].n128_u32[0];
*((_BYTE *)a3 + 16) = 1;
v6->n128_u64[1] = v6[1].n128_i32[0];
return result;
}