//
// sub_1000905F0 from 0x1000905f0 to 0x1000906aa (186 bytes)
//
// 2 xrefs:
// > sub_100090010 @ 0x1000903e9
// > sub_100090010 @ 0x1000903f5
//
// 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:20:08 +0000
//
void __fastcall sub_1000905F0(__int64 a1)
{
_QWORD *v2; // r14
void *v3; // rdi
void *v4; // rdi
_QWORD *v5; // r12
__int64 v6; // r13
__int64 v7; // r15
_QWORD *v8; // rsi
void *v9; // rdi
v2 = *(_QWORD **)(a1 + 16);
if ( v2 )
{
do
{
v5 = (_QWORD *)*v2;
v6 = v2[3];
if ( v6 )
{
v7 = v2[4];
v4 = (void *)v2[3];
if ( v7 != v6 )
{
do
{
v9 = *(void **)(v7 - 32);
if ( v9 )
{
*(_QWORD *)(v7 - 24) = v9;
operator delete(v9);
}
v8 = *(_QWORD **)(v7 - 232);
v7 -= 240;
sub_10001ADF0(v7, v8);
}
while ( v7 != v6 );
v4 = (void *)v2[3];
}
v2[4] = v6;
operator delete(v4);
}
operator delete(v2);
v2 = v5;
}
while ( v5 );
}
v3 = *(void **)a1;
*(_QWORD *)a1 = 0;
if ( v3 )
operator delete(v3);
}