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

_WORD *__fastcall HobEndCheck(int a1, _WORD *a2)
{
  _WORD *v2; // esi
  int v3; // eax

  v2 = a2; /*0xffe07416*/
  if ( !a2 ) /*0xffe0741a*/
  {
    v3 = DebugPrintProtocol(); /*0xffe0741c*/
    if ( v3 ) /*0xffe07423*/
      (*(void (__cdecl **)(const char *, int, const char *))(v3 + 4))( /*0xffe07431*/
        "e:\\hs\\MdePkg\\Library\\PeiHobLib\\HobLib.c",
        82,
        "HobStart != ((void *) 0)");
  }
  while ( 1 ) /*0xffe0744a*/
  {
    if ( *v2 == 0xFFFF ) /*0xffe07450*/
      return 0; /*0xffe07455*/
    if ( *v2 == 4 ) /*0xffe07442*/
      break; /*0xffe07442*/
    v2 = (_WORD *)((char *)v2 + (unsigned __int16)v2[1]); /*0xffe07448*/
  }
  return v2; /*0xffe07454*/
}