//
// sub_100530880 from 0x100530880 to 0x1005309e0 (352 bytes)
//
// 1 xrefs:
// > sub_100528370 @ 0x100528498
//
// 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_100530880(__int64 a1, __int64 a2)
{
__int64 v3; // x8
__int64 v4; // x20
char v5; // w8
__int64 result; // x0
int v7; // w8
__int64 v8; // x8
_BYTE v9[2]; // [xsp+Ch] [xbp-14h] BYREF
char v10; // [xsp+Eh] [xbp-12h] BYREF
unsigned __int8 v11; // [xsp+Fh] [xbp-11h]
v3 = *(_QWORD *)(a1 + 256);
v4 = *(_QWORD *)(v3 + 88);
if ( (*(_BYTE *)(v3 + 110) & 3) != 0 )
{
if ( a2 == 50380844 )
{
v5 = 24;
}
else
{
if ( a2 != 50380843 )
return 0;
v5 = 23;
}
v11 = v5;
v10 = 0;
v7 = sub_1005309E0(a1, &v10, 0);
result = 0;
if ( v7 )
{
v8 = *(_QWORD *)(a1 + 256);
if ( *(_DWORD *)(v8 + 104) )
{
return 1;
}
else if ( *(_QWORD *)(v8 + 96) )
{
return 1;
}
else if ( v4 )
{
if ( (unsigned int)sub_100530BCC(v9, 0, v4) )
return !v9[0] || v9[1] == v11;
else
return 0;
}
else
{
return 0;
}
}
}
else if ( *(_DWORD *)(v3 + 104) )
{
return (unsigned int)sub_100530178(a1, 0) != 0;
}
else if ( v4 )
{
if ( (unsigned int)sub_100530BCC(&v10, 0, *(_QWORD *)(v3 + 88)) )
return sub_1005309E0(a1, &v10, 0);
else
return 0;
}
else
{
return *(_QWORD *)(v3 + 96) != 0;
}
return result;
}