//
// sub_10056FF20 from 0x10056ff20 to 0x10056ff75 (85 bytes)
//
// 3 xrefs:
// > ??> @ 0x100533d29
// > ??> @ 0x100533d80
// > ??> @ 0x100533db2
//
// This function is hookable on this platform (idp: pc, 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 12:32:14 +0000
//
void __fastcall sub_10056FF20(__int64 a1)
{
void *v2; // rdi
if ( (*(_BYTE *)(a1 + 80) & 1) != 0 )
{
operator delete(*(void **)(a1 + 96));
if ( (*(_BYTE *)(a1 + 56) & 1) == 0 )
{
LABEL_3:
v2 = *(void **)(a1 + 16);
if ( !v2 )
return;
goto LABEL_4;
}
}
else if ( (*(_BYTE *)(a1 + 56) & 1) == 0 )
{
goto LABEL_3;
}
operator delete(*(void **)(a1 + 72));
v2 = *(void **)(a1 + 16);
if ( v2 )
{
LABEL_4:
*(_QWORD *)(a1 + 24) = v2;
operator delete(v2);
}
}