Newer
Older
AMI-Aptio-BIOS-Reversed / PurleySktPkg / SouthClusterLbg / SiInit / Pei / SiInitPreMem / decompiled / ffd8b940.c
@Ajax Dong Ajax Dong 7 days ago 1 KB Recovering names
int __thiscall sub_FFD8B940(void *this)
{
  int n256; // esi
  int n13; // edi
  int v3; // eax
  void *v4; // ecx
  int v5; // eax
  int result; // eax

  n256 = 256; /*0xffd8b947*/
  n13 = 13; /*0xffd8b94e*/
  do /*0xffd8b9e0*/
  {
    v3 = sub_FFD8B14D(n256, this, -1, 0, 0); /*0xffd8b95f*/
    if ( v3 < 0 ) /*0xffd8b969*/
    {
      DebugPrint(0x80000000, (int)"\nASSERT_EFI_ERROR (Status = %r)\n", v3); /*0xffd8b976*/
      v5 = GetReportStatusCodePpi(); /*0xffd8b97e*/
      if ( v5 ) /*0xffd8b985*/
        (*(void (__cdecl **)(const char *, int, const char *))(v5 + 4))( /*0xffd8b992*/
          "e:\\hs\\PurleySktPkg\\SouthClusterLbg\\Library\\PeiDxeSmmGpioLib\\GpioLib.c",
          1584,
          "!EFI_ERROR (Status)");
    }
    result = sub_FFD8B14D(n256, v4, -1, 0, 0); /*0xffd8b9a3*/
    if ( result < 0 ) /*0xffd8b9ad*/
    {
      DebugPrint(0x80000000, (int)"\nASSERT_EFI_ERROR (Status = %r)\n", result); /*0xffd8b9ba*/
      result = GetReportStatusCodePpi(); /*0xffd8b9c2*/
      if ( result ) /*0xffd8b9c9*/
        result = (*(int (__cdecl **)(const char *, int, const char *))(result + 4))( /*0xffd8b9d6*/
                   "e:\\hs\\PurleySktPkg\\SouthClusterLbg\\Library\\PeiDxeSmmGpioLib\\GpioLib.c",
                   1712,
                   "!EFI_ERROR (Status)");
    }
    ++n256; /*0xffd8b9dc*/
    --n13; /*0xffd8b9dd*/
  }
  while ( n13 ); /*0xffd8b9e0*/
  return result; /*0xffd8b9e6*/
}