Newer
Older
AMI-Aptio-BIOS-Reversed / PurleySktPkg / SouthClusterLbg / SiInit / Pei / SiInitPreMem / decompiled / ffd7fc9b.c
@Ajax Dong Ajax Dong 7 days ago 1 KB Recovering names
int SetTraceHubFwBar()
{
  int v0; // eax
  int v2; // esi
  int v3; // eax
  int v4; // [esp+4h] [ebp-4h] BYREF

  sub_FFD8C2A0(0xEFu, 0x2234u, 4, &v4); /*0xffd7fcb0*/
  if ( v4 < 0 ) /*0xffd7fcbf*/
  {
    DebugPrint(0x80000000, (int)"TraceHubBaseSet Error. DMIC.SRL is set.\n"); /*0xffd7fcc7*/
    v0 = GetReportStatusCodePpi(); /*0xffd7fcce*/
    if ( v0 ) /*0xffd7fcd5*/
      (*(void (__cdecl **)(const char *, int, const char *))(v0 + 4))( /*0xffd7fce3*/
        "e:\\hs\\PurleySktPkg\\SouthClusterLbg\\Library\\PeiDxeSmmTraceHubInitLib\\PeiDxeSmmTraceHubInitLib.c",
        64,
        "((BOOLEAN)(0==1))");
    return -2147483645; /*0xffd7fcee*/
  }
  v2 = sub_FFD8CBBA(0, 31, 7); /*0xffd7fcfd*/
  if ( (unsigned __int16)sub_FFD8CCA5((unsigned __int16 *)v2) == 0xFFFF ) /*0xffd7fd0e*/
  {
    v3 = GetReportStatusCodePpi(); /*0xffd7fd10*/
    if ( v3 ) /*0xffd7fd17*/
      (*(void (__cdecl **)(const char *, int, const char *))(v3 + 4))( /*0xffd7fd20*/
        "e:\\hs\\PurleySktPkg\\SouthClusterLbg\\Library\\PeiDxeSmmTraceHubInitLib\\PeiDxeSmmTraceHubInitLib.c",
        74,
        "((BOOLEAN)(0==1))");
    return -2147483645; /*0xffd7fd20*/
  }
  *(_DWORD *)(v2 + 112) = -32768000; /*0xffd7fd2c*/
  *(_DWORD *)(v2 + 116) = 0; /*0xffd7fd2f*/
  sub_FFD8C497(4, -32768000); /*0xffd7fd40*/
  sub_FFD8C497(4, 0); /*0xffd7fd50*/
  sub_FFD8C5F6(255, 2); /*0xffd7fd63*/
  return 0; /*0xffd7fd6d*/
}