Newer
Older
AMI-Aptio-BIOS-Reversed / EarlyVideoPei / PciRegVerifyWrite.c
@Ajax Dong Ajax Dong 2 days ago 392 bytes Init
int __thiscall PciRegVerifyWrite(int *this)
{
  int v2; // esi
  int v3; // ebp
  unsigned int i; // edi

  v2 = 0;
  v3 = *this;
  while ( 1 )
  {
    PciRegWrite(v3, 510525564, dword_FFE76FAC[v2]);
    for ( i = 0; i < 2; ++i )
    {
      if ( PciRegReadModify(this) )
        break;
    }
    if ( i == 2 )
      break;
    if ( (unsigned int)++v2 >= 8 )
      return 1;
  }
  return 0;
}