//
// sub_10014029C from 0x10014029c to 0x100140330 (148 bytes)
//
// 1 xrefs:
// > sub_100140034 @ 0x100140140
//
// 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
//
double __usercall sub_10014029C@(__int64 a1@, __int64 a2@, __int128 **a3@, _QWORD *a4@)
{
_QWORD *v8; // x0
_QWORD *v9; // x20
__int128 *v10; // x8
__int128 v11; // q0
v8 = operator new(0x58u);
v9 = v8;
*a4 = v8;
a4[1] = a1;
a4[2] = 0;
*v8 = 0;
v8[1] = a2;
v10 = *a3;
if ( *((char *)*a3 + 23) < 0 )
{
sub_1000097D0((_BYTE *)v8 + 16, *(void **)v10, *((_QWORD *)v10 + 1));
}
else
{
v11 = *v10;
v8[4] = *((_QWORD *)v10 + 2);
*((_OWORD *)v8 + 1) = v11;
}
*(_OWORD *)((char *)v9 + 69) = 0u;
*(_OWORD *)(v9 + 7) = 0u;
*(_OWORD *)(v9 + 5) = 0u;
*((_BYTE *)a4 + 16) = 1;
return 0.0;
}