Newer
Older
AMI-Aptio-BIOS-Reversed / Platform / LocateProtocol.c
@Ajax Dong Ajax Dong 2 days ago 836 bytes Init
// LocateProtocol - decompiled from Platform.efi
__int64 LocateProtocol()
{
  __int64 result; // rax
  __int64 v1; // rax

  result = qword_FEE8; /*0x5b70*/
  if ( !qword_FEE8 ) /*0x5b7a*/
  {
    v1 = (*(__int64 (__fastcall **)(void *, _QWORD, __int64 *))(BootServices + 320))(&unk_FA50, 0, &qword_FEE8); /*0x5b93*/
    if ( v1 < 0 ) /*0x5b9c*/
    {
      DebugPrint(0x80000000, "\nASSERT_EFI_ERROR (Status = %r)\n", v1); /*0x5bad*/
      Assert((__int64)"e:\\hs\\MdePkg\\Library\\DxePcdLib\\DxePcdLib.c", 78, (__int64)"!EFI_ERROR (Status)"); /*0x5bc5*/
    }
    result = qword_FEE8; /*0x5bca*/
    if ( !qword_FEE8 ) /*0x5bd4*/
    {
      Assert((__int64)"e:\\hs\\MdePkg\\Library\\DxePcdLib\\DxePcdLib.c", 79, (__int64)"mPcd != ((void *) 0)"); /*0x5be7*/
      return qword_FEE8; /*0x5bec*/
    }
  }
  return result; /*0x5bf3*/
}