user: Please show me the C implementation that matches the assembly code listed below:

```asm
<FillImage420>:
  endbr64
  mov    %rdi,%rax
  mov    %esi,%r10d
  mov    %esi,%ecx
  imul   %edx,%ecx
  movslq %ecx,%rsi
  add    %rdi,%rsi
  lea    (%rcx,%rcx,4),%edi
  lea    0x3(%rdi),%ecx
  test   %edi,%edi
  cmovns %edi,%ecx
  sar    $0x2,%ecx
  movslq %ecx,%rcx
  add    %rax,%rcx
  lea    0x7(%rdx),%r11d
  test   %edx,%edx
  cmovns %edx,%r11d
  sar    $0x3,%r11d
  cmp    $0x7,%edx
  jle    L164
  push   %rbp
  push   %rbx
  mov    %r10d,%edi
  shr    $0x1f,%edi
  add    %r10d,%edi
  sar    %edi
  lea    -0x1(%rdi),%edx
  add    $0x1,%rdx
  mov    %rdx,%rbx
  shl    $0x4,%rbx
  cmp    $0x1,%r10d
  mov    $0x10,%r8d
  cmovle %r8,%rbx
  shl    $0x2,%rdx
  cmp    $0x1,%r10d
  mov    $0x4,%r8d
  mov    %r8,%r9
  cmovg  %rdx,%r9
  mov    $0x0,%ebp
  jmp    L54
L164:
  ret
L162:
  movl   $0x52,(%rax,%rdx,4)
  movl   $0x52,0x4(%rax,%rdx,4)
  movl   $0x52,0x8(%rax,%rdx,4)
  movl   $0x52,0xc(%rax,%rdx,4)
  movl   $0x5b,(%rsi,%rdx,1)
  movl   $0xf0,(%rcx,%rdx,1)
  add    $0x1,%r8d
  add    $0x4,%rdx
  cmp    %edi,%r8d
  jl     L162
  add    %rbx,%rax
  add    %r9,%rsi
  add    %r9,%rcx
L123:
  add    $0x1,%ebp
  cmp    %r11d,%ebp
  jge    L159
L54:
  mov    $0x0,%edx
  mov    $0x0,%r8d
  cmp    $0x1,%r10d
  jg     L162
  jmp    L123
L159:
  mov    $0x0,%ebp
  jmp    L133
L14:
  movl   $0x91,(%rax,%rdx,4)
  movl   $0x91,0x4(%rax,%rdx,4)
  movl   $0x91,0x8(%rax,%rdx,4)
  movl   $0x91,0xc(%rax,%rdx,4)
  movl   $0x37,(%rsi,%rdx,1)
  movl   $0x23,(%rcx,%rdx,1)
  add    $0x1,%r8d
  add    $0x4,%rdx
  cmp    %edi,%r8d
  jl     L14
  add    %rbx,%rax
  add    %r9,%rsi
  add    %r9,%rcx
L161:
  add    $0x1,%ebp
  cmp    %r11d,%ebp
  jge    L86
L133:
  mov    $0x0,%edx
  mov    $0x0,%r8d
  cmp    $0x1,%r10d
  jg     L14
  jmp    L161
L107:
  movl   $0x29,(%rax,%rdx,4)
  movl   $0x29,0x4(%rax,%rdx,4)
  movl   $0x29,0x8(%rax,%rdx,4)
  movl   $0x29,0xc(%rax,%rdx,4)
  movl   $0xf0,(%rsi,%rdx,1)
  movl   $0x6f,(%rcx,%rdx,1)
  add    $0x1,%r8d
  add    $0x4,%rdx
  cmp    %edi,%r8d
  jl     L107
  add    %rbx,%rax
  add    %r9,%rsi
  add    %r9,%rcx
L0:
  add    $0x1,%ebp
  cmp    %r11d,%ebp
  jge    L98
L78:
  mov    $0x0,%edx
  mov    $0x0,%r8d
  cmp    $0x1,%r10d
  jg     L107
  jmp    L0
L86:
  mov    $0x0,%ebp
  jmp    L78
L82:
  movl   $0xeb,(%rax,%rdx,4)
  movl   $0xeb,0x4(%rax,%rdx,4)
  movl   $0xeb,0x8(%rax,%rdx,4)
  movl   $0xeb,0xc(%rax,%rdx,4)
  movl   $0x80,(%rsi,%rdx,1)
  movl   $0x80,(%rcx,%rdx,1)
  add    $0x1,%r8d
  add    $0x4,%rdx
  cmp    %edi,%r8d
  jl     L82
  add    %rbx,%rax
  add    %r9,%rsi
  add    %r9,%rcx
L3:
  add    $0x1,%ebp
  cmp    %r11d,%ebp
  jge    L156
L10:
  mov    $0x0,%edx
  mov    $0x0,%r8d
  cmp    $0x1,%r10d
  jg     L82
  jmp    L3
L98:
  mov    $0x0,%ebp
  jmp    L10
L156:
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
void FillImage420(unsigned char *image, int width, int height) {
  uint8_t *pY = (uint8_t *)(image);
  uint8_t *pU = (uint8_t *)(image + width * height);
  uint8_t *pV = (uint8_t *)(image + width * height * 5 / 4);
  int y, x;
  for (y = 0; y < height / 8; y++) {
    for (x = 0; x < width / 2; x++) {
      *pY++ = 0x52;
      *pY++ = 0x52;
      *pY++ = 0x52;
      *pY++ = 0x52;
      *pU++ = 0x5b;
      *pV++ = 0xf0;
    }
  }
  for (y = 0; y < height / 8; y++) {
    for (x = 0; x < width / 2; x++) {
      *pY++ = 0x91;
      *pY++ = 0x91;
      *pY++ = 0x91;
      *pY++ = 0x91;
      *pU++ = 0x37;
      *pV++ = 0x23;
    }
  }
  for (y = 0; y < height / 8; y++) {
    for (x = 0; x < width / 2; x++) {
      *pY++ = 0x29;
      *pY++ = 0x29;
      *pY++ = 0x29;
      *pY++ = 0x29;
      *pU++ = 0xf0;
      *pV++ = 0x6f;
    }
  }
  for (y = 0; y < height / 8; y++) {
    for (x = 0; x < width / 2; x++) {
      *pY++ = 0xeb;
      *pY++ = 0xeb;
      *pY++ = 0xeb;
      *pY++ = 0xeb;
      *pU++ = 0x80;
      *pV++ = 0x80;
    }
  }
}
```