Newer
Older
AMI-Aptio-BIOS-Reversed / LenovoServerPkg / Driver / LnvDriverPei / DebugPrintLevelEnabled.c
@Ajax Dong Ajax Dong 2 days ago 481 bytes Full restructure
int DebugPrintLevelEnabled()
{
  unsigned __int8 v0; // al
  char n3; // al
  char n3_1; // cl

  v0 = __inbyte(0x70u);
  __outbyte(0x70u, v0 & 0x80 | 0x4A);
  n3 = __inbyte(0x71u);
  n3_1 = n3;
  if ( (unsigned __int8)n3 <= 3u )
  {
LABEL_4:
    if ( !n3_1 )
      return 0;
    goto LABEL_5;
  }
  n3_1 = n3;
  if ( !n3 )
  {
    n3_1 = MEMORY[0xFDAF0490] & 2 | 1;
    goto LABEL_4;
  }
LABEL_5:
  if ( n3_1 != -1 )
    return n3_1 != 1 ? -2147483578 : -2147483644;
  return 0;
}