//
// sub_100909030 from 0x100909030 to 0x100909120 (240 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bbfec8
//
// 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:38:06 +0000
//
__int64 __fastcall sub_100909030(_QWORD *a1)
{
__int64 v1; // rbx
__int64 v2; // r15
__int64 v4; // r12
void *v5; // rdi
v1 = (__int64)(a1 - 40);
*(a1 - 40) = off_100BBF950;
*a1 = off_100BBFEC8;
a1[1] = &off_100BBFF38;
a1[2] = off_100BBFF50;
a1[3] = off_100BBFF70;
a1[4] = off_100BBFF98;
a1[11] = off_100BBFFC8;
a1[14] = off_100BC0048;
a1[28] = off_100BC0068;
a1[43] = off_100BC00B0;
v2 = a1[55];
if ( v2 )
{
v4 = a1[56];
v5 = (void *)a1[55];
if ( v4 != v2 )
{
do
{
if ( (*(_BYTE *)(v4 - 24) & 1) != 0 )
operator delete(*(void **)(v4 - 8));
v4 -= 32;
}
while ( v4 != v2 );
v5 = (void *)a1[55];
}
a1[56] = v2;
operator delete(v5);
}
return sub_1004936F0(v1);
}