//
// sub_100054A00 from 0x100054a00 to 0x100054a5a (90 bytes)
//
// 2 xrefs:
// > ??> @ 0x1000549f2
// > ??> @ 0x100329b10
//
// 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_100054A00(__int64 a1)
{
__int64 v2; // r14
__int64 v3; // rax
void *v4; // rdi
__int64 v5; // rcx
v2 = *(_QWORD *)(a1 + 8);
v3 = *(_QWORD *)(a1 + 16);
if ( v3 != v2 )
{
do
{
v5 = v3 - 24;
*(_QWORD *)(a1 + 16) = v3 - 24;
if ( (*(_BYTE *)(v3 - 24) & 1) != 0 )
{
operator delete(*(void **)(v3 - 8));
v5 = *(_QWORD *)(a1 + 16);
}
v3 = v5;
}
while ( v5 != v2 );
}
v4 = *(void **)a1;
if ( *(_QWORD *)a1 )
operator delete(v4);
}