//
// sub_1005D8078 from 0x1005d8078 to 0x1005d818c (276 bytes)
//
// 2 xrefs:
// > sub_1005830D8 @ 0x100583104
// > sub_1005D818C @ 0x1005d81d0
//
// 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
//
bool __fastcall sub_1005D8078(__int64 a1, __int16 a2)
{
if ( (a2 & 0x40) != 0 && !(unsigned int)sub_1005D8940(a1) )
return 0;
if ( (a2 & 0x80) != 0 && !(unsigned int)sub_1005D8ACC(a1) )
return 0;
if ( (a2 & 1) != 0 && !(unsigned int)sub_1005D8524(a1) )
return 0;
if ( (a2 & 2) != 0 && !(unsigned int)sub_1005D85CC(a1) )
return 0;
if ( (a2 & 4) != 0 && !(unsigned int)sub_1005D8710(a1) )
return 0;
if ( (a2 & 0x10) != 0 && !(unsigned int)sub_1005D87B8(a1) )
return 0;
if ( (a2 & 0x20) != 0 && !(unsigned int)sub_1005D8674(a1) )
return 0;
if ( (a2 & 8) != 0 && !(unsigned int)sub_1005D8854(a1) )
return 0;
if ( (a2 & 0x200) != 0 && !(unsigned int)sub_1005D8C58(a1) )
return 0;
return (a2 & 0x400) == 0 || (unsigned int)sub_1005D8DF0(a1);
}