Newer
Older
AMI-Aptio-BIOS-Reversed / PurleyRpPkg / Platform / Dxe / Setup / DxePlatform / Platform / ReadCpRcCfg2.c
@Ajax Dong Ajax Dong 2 days ago 833 bytes Restructure the repo
// ReadCpRcCfg2 - decompiled from Platform.efi
__int64 __fastcall ReadCpRcCfg2(unsigned int a1, __int64 a2, UINTN Length)
{
  unsigned int v4; // ebx
  _WORD *v5; // rax

  v4 = -1; /*0x7c70*/
  v5 = HiiStringToToken2(&DestinationBuffer__4, a2, Length); /*0x7c7a*/
  if ( !v5 ) /*0x7c82*/
    goto LABEL_6; /*0x7c82*/
  if ( *((_DWORD *)v5 + 7) ) /*0x7c84*/
    Assert( /*0x7ca2*/
      (__int64)"e:\\hs\\PurleySktPkg\\Me\\Heci\\Library\\MeTypeLib\\MeTypeLib.c",
      67,
      (__int64)"MeFwHob->Group[0].FunNumber == HECI1_DEVICE");
  else
    v4 = *((_DWORD *)v5 + 8); /*0x7c8a*/
  if ( v4 == -1 )
  {
LABEL_6:
    DebugPrint(0x80000000, "HECI: GetMeFs1FromHob() Can't read correctly MeFwHob info\n");
    v4 = a1; /*0x7cbd*/
  }
  DebugPrint(0x40u, "HECI: GetMeFs1FromHob() returns MEFS1 = %d\n", v4);
  return v4; /*0x7cda*/
}