Newer
Older
AMI-Aptio-BIOS-Reversed / PurleyPlatPkg / Platform / Pei / EarlyVideoPei / VgaModeSetClock.c
@Ajax Dong Ajax Dong 2 days ago 391 bytes Full restructure
int __thiscall VgaModeSetClock(_DWORD *this)
{
  int result; // eax

  result = (VgaCrtcRegAnd(0xAAu, 0xFFu) & 3) - 1;
  if ( result )
  {
    if ( --result )
    {
      if ( --result )
        *(this + 10) = 0x800000;
      else
        *(this + 10) = 0x4000000;
    }
    else
    {
      *(this + 10) = 0x2000000;
    }
  }
  else
  {
    *(this + 10) = 0x1000000;
  }
  return result;
}