//
// sub_1000E80B0 from 0x1000e80b0 to 0x1000e8155 (165 bytes)
//
// 6 xrefs:
// > sub_1000D5780 @ 0x1000d5ed1
// > ??> @ 0x1000d61d8
// > sub_1000E7DF0 @ 0x1000e7fa1
// > ??> @ 0x1000e800c
// > ??> @ 0x1000e8083
// > ??> @ 0x1000e8097
//
// 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:21:05 +0000
//
void __fastcall sub_1000E80B0(__int64 *a1)
{
__int64 v1; // rbx
std::__thread_struct *v2; // r14
v1 = *a1;
*a1 = 0;
if ( v1 )
{
if ( (*(_BYTE *)(v1 + 88) & 1) != 0 )
{
operator delete(*(void **)(v1 + 104));
if ( (*(_BYTE *)(v1 + 64) & 1) == 0 )
{
LABEL_4:
if ( (*(_BYTE *)(v1 + 32) & 1) == 0 )
goto LABEL_5;
goto LABEL_12;
}
}
else if ( (*(_BYTE *)(v1 + 64) & 1) == 0 )
{
goto LABEL_4;
}
operator delete(*(void **)(v1 + 80));
if ( (*(_BYTE *)(v1 + 32) & 1) == 0 )
{
LABEL_5:
if ( (*(_BYTE *)(v1 + 8) & 1) == 0 )
goto LABEL_6;
goto LABEL_13;
}
LABEL_12:
operator delete(*(void **)(v1 + 48));
if ( (*(_BYTE *)(v1 + 8) & 1) == 0 )
{
LABEL_6:
v2 = *(std::__thread_struct **)v1;
*(_QWORD *)v1 = 0;
if ( !v2 )
{
LABEL_8:
operator delete((void *)v1);
return;
}
LABEL_7:
std::__thread_struct::~__thread_struct(v2);
operator delete(v2);
goto LABEL_8;
}
LABEL_13:
operator delete(*(void **)(v1 + 24));
v2 = *(std::__thread_struct **)v1;
*(_QWORD *)v1 = 0;
if ( !v2 )
goto LABEL_8;
goto LABEL_7;
}
}