//
// sub_1000B322C from 0x1000b322c to 0x1000b32ac (128 bytes)
//
// 1 xrefs:
// > sub_1000B31B0 @ 0x1000b31f8
//
// 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_1000B322C@(__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;
}