Newer
Older
AMI-Aptio-BIOS-Reversed / PurleyPlatPkg / Platform / Pei / EarlyVideoPei / ImageRenderSkipPixel.c
@Ajax Dong Ajax Dong 2 days ago 506 bytes Full restructure
int *__cdecl ImageRenderSkipPixel(int n0x100, int a2, int n0x100a, int a4, int a5)
{
  int *result; // eax

  for ( result = *(int **)(a5 + 3424); result; result = (int *)result[11] )
  {
    if ( result[9] == a4 && result[5] == n0x100a && *result == 8 && result[10] == 285 && !result[6] && result[7] == 1 )
      return result;
  }
  result = ImageRenderScanline(a4, a4, n0x100a, a4);
  if ( result )
  {
    result[11] = *(_DWORD *)(a5 + 3424);
    *(_DWORD *)(a5 + 3424) = result;
  }
  return result;
}