INT64 __fastcall MiDecrementControlAreaCount(INT64 a1, volatile INT64 *a2){
INT64 result;
_InterlockedDecrement64(a2);
result = *(_QWORD *)(a1 + 1352);
if( !result )
{
result = *(_QWORD *)(a1 + 1360);
if( !result )
LODWORD(result) = KeSetEvent(*(PRKEVENT *)(a1 + 2128), 0);
}
return result;
}