//
// sub_100172EE0 from 0x100172ee0 to 0x100172f2a (74 bytes)
//
// 7 xrefs:
// > ??> @ 0x100172ec8
// > ??> @ 0x1001733d8
// > ??> @ 0x1003eb0de
// > ??> @ 0x1003eb81e
// > ??> @ 0x1003ebd08
// > ??> @ 0x1003ec1f5
// > ??> @ 0x1003ed8ae
//
// 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
//
void __fastcall sub_100172EE0(__int64 *a1)
{
__int64 v2; // rdi
v2 = *a1;
*a1 = 0;
if ( v2 )
{
if ( *((_BYTE *)a1 + 16) == 1 && (*(_BYTE *)(v2 + 24) & 1) != 0 )
operator delete(*(void **)(v2 + 40));
operator delete((void *)v2);
}
}