//
// sub_180055C80 from 0x180055c80 to 0x180055d22 (162 bytes)
//
// 4 xrefs:
// > ??> @ 0x18018226c
// > ??> @ 0x18018227c
// > ??> @ 0x1801ac3d0
// > ??> @ 0x1801f8d60
//
// 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
//
__int64 __fastcall sub_180055C80(__int64 *a1, __int64 a2, __int64 a3)
{
__int64 v3; // rdi
unsigned int v4; // ebx
__int64 v5; // rax
__int64 v6; // rsi
_DWORD *v7; // rcx
v3 = *a1;
v4 = 0;
v5 = *(_QWORD *)(*a1 + 232);
if ( *(int *)(v5 + 96) > 0 )
{
v6 = 0;
do
{
v7 = *(_DWORD **)(v6 + *(_QWORD *)(v5 + 104));
if ( *v7 )
{
if ( *v7 == 2 )
{
LOBYTE(a3) = v7[12] != 0;
sub_18009BC60(v3, v4, a3);
}
}
else
{
sub_18009C0C0(v3, v4);
}
v5 = *(_QWORD *)(v3 + 232);
++v4;
v6 += 8;
}
while ( (signed int)v4 < *(_DWORD *)(v5 + 96) );
}
memset((void *)(v3 + 564), 0, 0x100u);
*(_QWORD *)(v3 + 856) = 0;
*(_BYTE *)(v3 + 844) = 1;
return 0;
}