//
// sub_180075590 from 0x180075590 to 0x18007568a (250 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801ad5b0
// > ??> @ 0x1801f9b34
//
// 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_180075590(__int64 *a1)
{
__int64 v1; // rsi
unsigned int v2; // ebx
_DWORD *v3; // r8
int v4; // ecx
unsigned int v5; // eax
unsigned int v6; // edx
__int64 v7; // rax
__int64 i; // rdi
_DWORD *v9; // rcx
int v10; // eax
v1 = *a1;
v2 = 0;
v3 = (_DWORD *)(*(_QWORD *)(*a1 + 168) + 70096LL);
*(_DWORD *)(v1 + 548) = 1;
v4 = *v3 ^ (*v3 << 11);
*v3 = v3[1];
v3[1] = v3[2];
v5 = v3[3];
v3[2] = v5;
v6 = v4 ^ v5 ^ ((v4 ^ (v5 >> 11)) >> 8);
v3[3] = v6;
*(_DWORD *)(v1 + 556) = v6;
*(_DWORD *)(v1 + 560) = ~v6;
*(_DWORD *)(v1 + 564) = 572572263 * v6;
*(_DWORD *)(v1 + 568) = -1474208055 * ~v6;
v7 = *(_QWORD *)(v1 + 232);
if ( *(int *)(v7 + 96) > 0 )
{
for ( i = 0; ; i += 8 )
{
v9 = *(_DWORD **)(i + *(_QWORD *)(v7 + 104));
if ( !*v9 )
break;
if ( *v9 == 1 )
{
v10 = sub_18009C140(v1, v2, (unsigned int)v9[14]);
LABEL_7:
if ( v10 )
return;
}
v7 = *(_QWORD *)(v1 + 232);
if ( (signed int)++v2 >= *(_DWORD *)(v7 + 96) )
return;
}
sub_18009C0C0(v1, v2);
goto LABEL_7;
}
}