//
// sub_100123DA8 from 0x100123da8 to 0x100123e14 (108 bytes)
//
// 1 xrefs:
// > sub_100123C88 @ 0x100123d50
//
// 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
//
_OWORD *__fastcall sub_100123DA8(_QWORD *a1, _OWORD *a2)
{
_OWORD *v4; // x19
__int128 v5; // q1
unsigned __int64 v6; // x1
_QWORD *v7; // x0
v4 = operator new(0x40u);
v5 = a2[1];
v4[1] = *a2;
v4[2] = v5;
*(_OWORD *)((char *)v4 + 44) = *(_OWORD *)((char *)a2 + 28);
v6 = *((int *)v4 + 4);
*(_QWORD *)v4 = 0;
*((_QWORD *)v4 + 1) = v6;
v7 = (_QWORD *)sub_10001ABFC((__int64)a1, v6, (_DWORD *)v4 + 4);
sub_10001AD58(a1, v4, v7);
return v4;
}