//
// sub_10053CF18 from 0x10053cf18 to 0x10053cff0 (216 bytes)
//
// 1 xrefs:
// > sub_10053D4CC @ 0x10053d5a4
//
// 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
//
_QWORD *__fastcall sub_10053CF18(__int64 a1, int a2)
{
_QWORD *v4; // x19
void *v5; // x22
size_t v6; // x20
void *v7; // x0
void *v8; // x21
v4 = (_QWORD *)sub_100588710(104, "d1_both.c", 181);
if ( !v4 )
return nullptr;
if ( a1 )
{
v5 = (void *)sub_100588710(a1, "d1_both.c", 186);
if ( !v5 )
{
LABEL_14:
sub_100588C44(v4);
return nullptr;
}
}
else
{
v5 = nullptr;
}
v4[11] = v5;
if ( a2 )
{
v6 = (unsigned __int64)(a1 + 7) >> 3;
v7 = (void *)sub_100588710(v6, "d1_both.c", 199);
v8 = v7;
if ( !v7 )
{
if ( v5 )
sub_100588C44(v5);
goto LABEL_14;
}
bzero(v7, v6);
}
else
{
v8 = nullptr;
}
v4[12] = v8;
return v4;
}