//
// sub_1005F8BE0 from 0x1005f8be0 to 0x1005f8c3c (92 bytes)
//
// 1 xrefs:
// > sub_1005F5BBC @ 0x1005f5c6c
//
// 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_1005F8BE0(__int64 *a1, __int64 a2)
{
__int64 v2; // x19
__int64 v3; // x8
__int64 v4; // x20
void **v5; // x8
__int64 v6; // x8
if ( a1 )
{
v2 = *a1;
if ( *a1 )
{
v3 = *(_QWORD *)(a2 + 32);
if ( v3 )
{
if ( (*(_BYTE *)(v3 + 8) & 2) != 0 )
{
v4 = *(int *)(v3 + 32);
v5 = (void **)(v2 + v4);
if ( v2 + v4 )
{
if ( *v5 )
sub_100588C44(*v5);
v6 = v2 + v4;
*(_QWORD *)v6 = 0;
*(_QWORD *)(v6 + 8) = 0;
*(_DWORD *)(v6 + 16) = 1;
}
}
}
}
}
}