Newer
Older
AMI-Aptio-BIOS-Reversed / ServerCommonPkg / Universal / GetSec / Pei / TxtPei / HobStart.c
@Ajax Dong Ajax Dong 2 days ago 998 bytes Restructure the repo
// Decompiled: 0xffe073a7
// Function: HobStart
// Module: TxtPei.efi (TXTPEI)

int HobStart()
{
  int v0; // eax
  int v1; // eax
  int v2; // eax
  int v4; // [esp+4h] [ebp-4h] BYREF

  v0 = PeiServicesGet(); /*0xffe073ac*/
  if ( (*(int (__cdecl **)(int, int *))(*(_DWORD *)v0 + 48))(v0, &v4) < 0 ) /*0xffe073c4*/
  {
    DebugPrint(0x80000000, "\nASSERT_EFI_ERROR (Status = %r)\n"); /*0xffe073d1*/
    v1 = DebugPrintProtocol(); /*0xffe073d9*/
    if ( v1 ) /*0xffe073e0*/
      (*(void (__cdecl **)(const char *, int, const char *))(v1 + 4))( /*0xffe073ea*/
        "e:\\hs\\MdePkg\\Library\\PeiHobLib\\HobLib.c",
        50,
        "!EFI_ERROR (Status)");
  }
  if ( !v4 ) /*0xffe073f4*/
  {
    v2 = DebugPrintProtocol(); /*0xffe073f6*/
    if ( v2 ) /*0xffe073fd*/
      (*(void (__cdecl **)(const char *, int, const char *))(v2 + 4))( /*0xffe07407*/
        "e:\\hs\\MdePkg\\Library\\PeiHobLib\\HobLib.c",
        51,
        "HobList != ((void *) 0)");
  }
  return v4; /*0xffe07410*/
}