HalpIommuInitializeDmar

NTSTATUS __stdcall HalpIommuInitializeDmar(){
  NTSTATUS result; 
  NTSTATUS v1; 
  INT64 i; 
  _LARGE_INTEGER *v3; 

  v3 = 0i64;
  if( byte_140C49B2C )
    return 0;
  result = HalpIommuAllocateDmaDomain(0i64, 1, &SortKey);
  v1 = result;
  if( result >= 0 )
  {
    for( i = qword_140C49B50; (INT64 *)i != &qword_140C49B50; i = *(_QWORD *)i )
    {
      if( (*(_DWORD *)(i + 456) & 0x100) != 0 )
      {
        result = HalpIommuGetHardwareDomain(SortKey, i, 1, 0, &v3);
        v1 = result;
        if( result < 0 )
          return result;
      }
    }
    return v1;
  }
  return result;
}

Referenced by:

HalpIommuInitSystem