//
// sub_100581754 from 0x100581754 to 0x1005817ec (152 bytes)
//
// 2 xrefs:
// > sub_100551254 @ 0x100551b1c
// > sub_10055CD64 @ 0x10055e970
//
// 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_100581754(size_t a1, __int64 a2)
{
__int64 v4; // x0
__int64 *v5; // x0
__int64 v6; // x21
unsigned __int8 **v7; // x22
int v8; // w8
v4 = *(_QWORD *)(a1 + 96);
if ( !v4 )
return 0;
v5 = (__int64 *)sub_10056F518(v4);
if ( !v5 )
return 0;
v6 = *v5;
if ( !*v5 )
return 0;
while ( 1 )
{
v7 = *(unsigned __int8 ***)v6;
if ( sub_100573FB8(**(unsigned __int8 ***)v6, *(_BYTE **)(a2 + 192)) )
{
v8 = *((unsigned __int16 *)v7 + 4);
if ( v8 == *(_DWORD *)(a2 + 248) )
break;
}
v6 = *(_QWORD *)(v6 + 16);
if ( !v6 )
return 0;
}
sub_1005524A4(a1, "Site %s:%d is pipeline blacklisted\n", *(const char **)(a2 + 192), v8);
return 1;
}