//
// sub_D0D520 from 0xd0d520 to 0xd0d564 (68 bytes)
//
// 2 xrefs:
// > sub_D2144C @ 0xd214c0
// > sub_D2150C @ 0xd2157c
//
// 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_D0D520(__int64 result)
{
__int64 v1; // x19
if ( !*(_BYTE *)(result + 168) && !*(_QWORD *)(result + 152) )
{
v1 = result;
*(_QWORD *)(result + 152) = operator new[](*(_QWORD *)(result + 160));
*(_BYTE *)(v1 + 168) = 1;
return 1;
}
return result;
}