//
// sub_18009B7E0 from 0x18009b7e0 to 0x18009b814 (52 bytes)
//
// 6 xrefs:
// > sub_180018DF0 @ 0x18001ba39
// > FMOD::DSP::setBypass @ 0x1800a36f1
// > sub_1800C9580 @ 0x1800c96cc
// > sub_1800C9580 @ 0x1800c970a
// > sub_1800C9580 @ 0x1800c9724
// > sub_1800C9580 @ 0x1800c973d
//
// 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_18009B7E0(__int64 a1, char a2)
{
if ( a2 != (*(_DWORD *)(a1 + 100) & 1) )
*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 168) + 67512LL) + 48LL) = 1;
if ( a2 )
_InterlockedOr((volatile signed __int32 *)(a1 + 100), 1u);
else
_InterlockedAnd((volatile signed __int32 *)(a1 + 100), 0xFFFFFFFE);
return 0;
}