//
// sub_10036DDA4 from 0x10036dda4 to 0x10036de10 (108 bytes)
//
// 1 xrefs:
// > sub_100365148 @ 0x100365164
//
// 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 __fastcall sub_10036DDA4(__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_100126AAC(
(_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;
}