//
// sub_10013FE50 from 0x10013fe50 to 0x10013ff20 (208 bytes)
//
// 1 xrefs:
// > sub_10013FC28 @ 0x10013fcf8
//
// 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_10013FE50@(__int64 a1@, __int64 a2@, _DWORD **a3@, _QWORD *a4@)
{
char *v8; // x20
double result; // d0
v8 = (char *)operator new(0x78u);
*a4 = v8;
a4[1] = a1;
a4[2] = 0;
*(_QWORD *)v8 = 0;
*((_QWORD *)v8 + 1) = a2;
*((_DWORD *)v8 + 4) = **a3;
*(_OWORD *)(v8 + 40) = 0u;
*(_OWORD *)(v8 + 56) = 0u;
*(_OWORD *)(v8 + 72) = 0u;
*(_OWORD *)(v8 + 88) = 0u;
*(_OWORD *)(v8 + 104) = 0u;
*(_OWORD *)(v8 + 24) = 0u;
sub_100009900((_QWORD *)v8 + 3, "");
*((_QWORD *)v8 + 6) = 1065353216;
*((_DWORD *)v8 + 14) = 1065353216;
*((_DWORD *)v8 + 20) = 0;
v8[84] = 0;
*((_DWORD *)v8 + 22) = 0;
v8[92] = 0;
*((_DWORD *)v8 + 24) = 0;
*((_QWORD *)v8 + 13) = 0;
v8[112] = 0;
*(_QWORD *)(v8 + 68) = 0;
*(_QWORD *)(v8 + 60) = 0;
v8[76] = 0;
*((_BYTE *)a4 + 16) = 1;
*(_QWORD *)&result = 1065353216;
return result;
}