//
// sub_100342120 from 0x100342120 to 0x1003421ac (140 bytes)
//
// 1 xrefs:
// > sub_100341EB8 @ 0x100341fc4
//
// 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
//
_QWORD *__usercall sub_100342120@(__int64 a1@, __int64 a2@, __int128 **a3@, _QWORD *a4@)
{
_QWORD *result; // x0
_QWORD *v9; // x20
__int128 *v10; // x8
__int128 v11; // q0
result = operator new(0x40u);
v9 = result;
*a4 = result;
a4[1] = a1;
a4[2] = 0;
*result = 0;
result[1] = a2;
v10 = *a3;
if ( *((char *)*a3 + 23) < 0 )
{
result = sub_1000097D0((_BYTE *)result + 16, *(void **)v10, *((_QWORD *)v10 + 1));
}
else
{
v11 = *v10;
result[4] = *((_QWORD *)v10 + 2);
*((_OWORD *)result + 1) = v11;
}
v9[5] = 0;
v9[6] = 0;
v9[7] = 0;
*((_BYTE *)a4 + 16) = 1;
return result;
}