Newer
Older
AMI-Aptio-BIOS-Reversed / PurleyPlatPkg / Platform / Pei / EarlyVideoPei / ImageRenderPutPixel.c
@Ajax Dong Ajax Dong 2 days ago 516 bytes Full restructure
int __fastcall ImageRenderPutPixel(int buf, int a2, int n6, int a4)
{
  char *v4; // esi
  int n5; // ebx
  int result; // eax
  _BYTE *v7; // ecx
  _BYTE *v8; // edx
  int n5_1; // ebp

  v4 = (char *)&unk_FFE7726C;
  n5 = 5;
  result = n6 + a2 * (a4 - 2);
  v7 = (_BYTE *)(result + buf - 2);
  do
  {
    v8 = v7;
    n5_1 = 5;
    do
    {
      LOBYTE(result) = v8[v4 - v7];
      *v8++ = result;
      --n5_1;
    }
    while ( n5_1 );
    v7 += a2;
    v4 += 5;
    --n5;
  }
  while ( n5 );
  return result;
}