//
// sub_100412DF0 from 0x100412df0 to 0x100412e5c (108 bytes)
//
// 1 xrefs:
// > sub_100407210 @ 0x10040722c
//
// 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 11:04:51 +0000
//
__n128 __fastcall sub_100412DF0(__int64 a1, __int64 a2)
{
__int64 v4; // x21
__n128 result; // q0
v4 = *(_QWORD *)(a1 + 8);
*(_QWORD *)v4 = *(_QWORD *)a2;
*(_QWORD *)(v4 + 16) = 0;
*(_QWORD *)(v4 + 24) = 0;
*(_QWORD *)(v4 + 8) = 0;
sub_100150D48(
(_QWORD *)(v4 + 8),
*(const void **)(a2 + 8),
*(_QWORD *)(a2 + 16),
(__int64)(*(_QWORD *)(a2 + 16) - *(_QWORD *)(a2 + 8)) >> 4);
result = *(__n128 *)(a2 + 32);
*(_OWORD *)(v4 + 42) = *(_OWORD *)(a2 + 42);
*(__n128 *)(v4 + 32) = result;
*(_QWORD *)(a1 + 8) = v4 + 64;
return result;
}