//
// sub_D10744 from 0xd10744 to 0xd107a0 (92 bytes)
//
// 2 xrefs:
// > sub_D216A0 @ 0xd21714
// > sub_D21760 @ 0xd217d0
//
// 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
//
__int64 __fastcall sub_D10744(__int64 result)
{
unsigned __int64 v1; // x1
__int64 v2; // x19
size_t v3; // x0
if ( !*(_BYTE *)(result + 168) && !*(_QWORD *)(result + 152) )
{
v1 = *(_QWORD *)(result + 160);
v2 = result;
v3 = 4 * v1;
if ( v1 > 0x1FC0000000000000LL )
v3 = -1;
*(_QWORD *)(v2 + 152) = operator new[](v3);
*(_BYTE *)(v2 + 168) = 1;
return 1;
}
return result;
}