//
// sub_100980A80 from 0x100980a80 to 0x100980b0c (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x100980a59
//
// 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:39:00 +0000
//
void __fastcall sub_100980A80(void **a1)
{
void **v1; // r14
void **v3; // r15
void *v4; // rdi
void **v5; // r12
v1 = (void **)*a1;
if ( *a1 )
{
v3 = (void **)a1[1];
v4 = *a1;
if ( v3 == v1 )
{
LABEL_11:
a1[1] = v1;
operator delete(v4);
return;
}
while ( 1 )
{
if ( (*(_BYTE *)(v3 - 3) & 1) != 0 )
{
operator delete(*(v3 - 1));
v5 = v3 - 6;
if ( (*(_BYTE *)(v3 - 6) & 1) != 0 )
LABEL_9:
operator delete(*(v3 - 4));
}
else
{
v5 = v3 - 6;
if ( (*(_BYTE *)(v3 - 6) & 1) != 0 )
goto LABEL_9;
}
v3 = v5;
if ( v5 == v1 )
{
v4 = *a1;
goto LABEL_11;
}
}
}
}