//
// 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 (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:53:50 +0000
//
__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;
}