HalMatchAcpiOemTableId

__int64 __fastcall HalMatchAcpiOemTableId(__int64 a1, __int64 a2, __int64 a3, int a4){
  unsigned int v5; 
  INT64 Table; 
  UINT8 *v7; 
  UINT64 v8; 
  __int64 Buf1; 
  v5 = 1;
  if( a4 == 2 )
  {
    if( *(_QWORD *)a3 )
    {
      if( *(_QWORD *)(a3 + 8) )
      {
        Table = HalpAcpiGetTable(0i64);
        if( Table )
        {
          Buf1 = 0i64;
          v7 = *(UINT8 **)(a3 + 8);
          v8 = -1i64;
          do
            ++v8;
          while( v7[v8] );
          if( v8 == 1 )
          {
            if( *v7 == 42 )
              return 2;
          }
          else if( v8 > 8 )
          {
            v8 = 8i64;
          }
          memmove((UINT8 *)&Buf1, v7, v8);
          return memcmp(&Buf1, (PVOID)(Table + 16), 8ui64) == 0 ? 2 : 0;
        }
      }
    }
  }
  return v5;
}

Referenced by:

No references.