//
// sub_100164B70 from 0x100164b70 to 0x100164bf8 (136 bytes)
//
// 1 xrefs:
// > sub_100164ADC @ 0x100164b38
//
// 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
//
_BYTE *__usercall sub_100164B70@(__int64 a1@, __int128 **a2@, _QWORD *a3@)
{
_BYTE *result; // x0
_BYTE *v7; // x20
__int128 *v8; // x8
__int128 v9; // q0
result = operator new(0x40u);
v7 = result;
*a3 = result;
a3[1] = a1;
a3[2] = 0;
v8 = *a2;
if ( *((char *)*a2 + 23) < 0 )
{
result = sub_1000097D0(result + 32, *(void **)v8, *((_QWORD *)v8 + 1));
}
else
{
v9 = *v8;
*((_QWORD *)result + 6) = *((_QWORD *)v8 + 2);
*((_OWORD *)result + 2) = v9;
}
v7[56] = 0;
*((_BYTE *)a3 + 16) = 1;
return result;
}