Newer
Older
AMI-Aptio-BIOS-Reversed / TxtPei / ReportProgressCode.c
@Ajax Dong Ajax Dong 2 days ago 756 bytes Init
// Decompiled: 0xffe072c5
// Function: ReportProgressCode
// Module: TxtPei.efi (TXTPEI)

__int64 __thiscall ReportProgressCode(void *n8, __int64 a2)
{
  int v2; // eax
  __int64 v3; // rax
  char n8_1; // [esp+0h] [ebp-4h]

  n8_1 = (char)n8; /*0xffe072c9*/
  if ( (unsigned int)n8 >= 0x40 ) /*0xffe072cf*/
  {
    v2 = DebugPrintProtocol(); /*0xffe072d1*/
    if ( v2 ) /*0xffe072d8*/
      (*(void (__cdecl **)(const char *, int, const char *))(v2 + 4))( /*0xffe072e6*/
        "e:\\hs\\MdePkg\\Library\\BaseLib\\LShiftU64.c",
        39,
        "Count < 64");
  }
  LODWORD(v3) = 0; /*0xffe072ef*/
  HIDWORD(v3) = a2; /*0xffe072f1*/
  if ( (n8_1 & 0x20) == 0 ) /*0xffe072f7*/
    v3 = a2; /*0xffe072f9*/
  return v3 << (n8_1 & 0x1F); /*0xffe07303*/
}