AlpcpClearOwnerPortMessage

void __fastcall AlpcpClearOwnerPortMessage(__int64 a1){
  struct _DMA_ADAPTER *v2; 
  v2 = *(struct _DMA_ADAPTER **)(a1 + 24);
  if( v2 )
  {
    if( (*(_DWORD *)(a1 + 40) & 0x1000) != 0 )
      HalPutDmaAdapter(v2);
    *(_QWORD *)(a1 + 24) = 0i64;
  }
}

Referenced by:

AlpcpCancelMessage
AlpcpCancelMessagesByRequestor
AlpcpDispatchReplyToPort
AlpcpReplyLegacySynchronousRequest