ViHalPreprocessOptions

VOID __stdcall ViHalPreprocessOptions(
        UINT64 *Enable,
        PSTR Format,
        UINT64 Code,
        UINT64 Param2,
        UINT64 Param3,
        UINT64 Param4,
        UINT64 a7){
  int v8; 
  int v10; 
  v8 = Code & 0x10000000;
  if( (Code & 0x10000000) != 0 )
    Code = (unsigned int)Code & 0xEFFFFFFF;
  v10 = *(_DWORD *)Enable;
  if( *(_DWORD *)Enable == -1 )
  {
    if( (unsigned int)Code >= 0x26 )
      v10 = 4;
    else
      v10 = *((_DWORD *)ViHalDefaultActions + Code);
    *(_DWORD *)Enable = v10;
  }
  if( v10 )
  {
    if( (v10 & 0x10) != 0 )
      *(_DWORD *)Enable = 0;
    VfUtilDbgPrint((INT8 *)"**************** HAL Verifier Detected Violation ****************\n");
    VfUtilDbgPrint((INT8 *)"**\n");
    VfUtilDbgPrint((INT8 *)"** VF: ");
    if( v8 )
      DbgPrintEx(0x65u, 0, Format, Param3, Param4);
    else
      DbgPrintEx(0x65u, 0, Format, Param2, Param3, Param4);
    VfUtilDbgPrint((INT8 *)"\n");
    VfUtilDbgPrint((INT8 *)"**\n");
    VfUtilDbgPrint((INT8 *)"*****************************************************************\n");
  }
}

Referenced by:

ADD_MAP_REGISTERS
DECREMENT_ADAPTER_CHANNELS
DECREMENT_COMMON_BUFFERS
DECREMENT_SCATTER_GATHER_LISTS
INCREASE_MAPPED_TRANSFER_BYTE_COUNT
INCREMENT_ADAPTER_CHANNELS
SUBTRACT_MAP_REGISTERS
VERIFY_BUFFER_LOCKED
VF_ASSERT_IRQL
VF_ASSERT_MAX_IRQL
VfBuildScatterGatherList
VfBuildScatterGatherListEx
VfFlushAdapterBuffers
VfGetScatterGatherList
VfGetScatterGatherListEx
VfMapTransfer
VfMapTransferEx
VfPutDmaAdapter
ViAllocateMapRegistersFromFile
ViCheckPadding
ViCheckTag
ViCopyDeviceDescription
ViFlushDoubleBuffer
ViGetAdapterInformationInternal
ViGetMdlBufferSa
ViGetRealDmaOperation
ViMapDoubleBuffer
ViReleaseDmaAdapter