Newer
Older
AMI-Aptio-BIOS-Reversed / PurleySktPkg / SouthClusterLbg / SiInit / Pei / SiInitPreMem / decompiled / ffd85f37.c
@Ajax Dong Ajax Dong 7 days ago 1001 bytes Recovering names
int sub_FFD85F37()
{
  int v0; // eax
  int v1; // eax
  int v2; // esi
  int v3; // eax
  _DWORD v5[2]; // [esp+8h] [ebp-8h] BYREF

  v0 = sub_FFD8AD54(); /*0xffd85f3e*/
  v1 = (*(int (__cdecl **)(int, void *, _DWORD, _DWORD, _DWORD *))(*(_DWORD *)v0 + 32))(v0, &unk_FFD97EEC, 0, 0, v5); /*0xffd85f53*/
  v2 = v1; /*0xffd85f56*/
  if ( v1 < 0 )
  {
    DebugPrint(0x80000000, (int)"ERROR: DWR Can't find PCH Policy (Status: %r)\n", v1);
    DebugPrint(0x80000000, (int)"\nASSERT_EFI_ERROR (Status = %r)\n", v2); /*0xffd85f78*/
    v3 = GetReportStatusCodePpi(); /*0xffd85f80*/
    if ( v3 ) /*0xffd85f88*/
      (*(void (__cdecl **)(const char *, int, const char *))(v3 + 4))( /*0xffd85f99*/
        "e:\\hs\\PurleySktPkg\\SouthClusterLbg\\LibraryPrivate\\PeiPchInitLib\\PchRootPorts.c",
        4100,
        "!EFI_ERROR (Status)");
    v5[1] = 0; /*0xffd85f9f*/
    while ( 1 ) /*0xffd85fa2*/
      ; /*0xffd85fa2*/
  }
  return (unsigned __int8)(*(_DWORD *)(v5[0] + 2975) >> 18); /*0xffd85faa*/
}