HalMatchAcpiOemTableId

__int64 __fastcall HalMatchAcpiOemTableId(__int64 a1, __int64 a2, unsigned int **a3, int a4){
  unsigned int v5; 
  _LARGE_INTEGER *Table; 
  unsigned int *v7; 
  unsigned __int64 v8; 
  __int64 buf1; 

  v5 = 1;
  if( a4 == 2 )
  {
    if( *a3 )
    {
      if( a3[1] )
      {
        Table = HalpAcpiGetTable(0i64, (const UINT8 *)**a3, 0i64);
        if( Table )
        {
          buf1 = 0i64;
          v7 = a3[1];
          v8 = -1i64;
          do
            ++v8;
          while( *((_BYTE *)v7 + v8) );
          if( v8 == 1 )
          {
            if( *(_BYTE *)v7 == 42 )
              return 2;
          }
          else if( v8 > 8 )
          {
            LODWORD(v8) = 8;
          }
          memmove(&buf1, v7, v8);
          return memcmp(&buf1, &Table[2], 8ui64) == 0 ? 2 : 0;
        }
      }
    }
  }
  return v5;
}

Referenced by:

No references.