//
// sub_1000D8FAC from 0x1000d8fac to 0x1000d902c (128 bytes)
//
// 1 xrefs:
// > sub_1000D8F30 @ 0x1000d8f78
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:58:57 +0000
//
_BYTE *__usercall sub_1000D8FAC@(__int64 a1@, __int64 a2@, _QWORD *a3@)
{
_BYTE *result; // x0
result = operator new(0x38u);
*a3 = result;
a3[1] = a1;
a3[2] = 0;
if ( *(char *)(a2 + 23) < 0 )
{
result = sub_1000097D0(result + 32, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*((_OWORD *)result + 2) = *(_OWORD *)a2;
*((_QWORD *)result + 6) = *(_QWORD *)(a2 + 16);
}
*((_BYTE *)a3 + 16) = 1;
return result;
}