user: Converte this assembly snippet into its equivalent C code:

```asm
<FillImage420_>:
  endbr64
  push   %r15
  mov    %edx,%eax
  push   %r14
  imul   %esi,%eax
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,%ebx
  lea    0x7(%rbx),%ebp
  sub    $0x48,%rsp
  mov    %edx,0x18(%rsp)
  movslq %eax,%rdx
  add    %rdi,%rdx
  mov    %rdi,0x10(%rsp)
  mov    %rdx,0x20(%rsp)
  mov    %rdx,%r14
  lea    (%rax,%rax,4),%edx
  test   %edx,%edx
  lea    0x3(%rdx),%eax
  cmovns %edx,%eax
  sar    $0x2,%eax
  cltq
  add    %rdi,%rax
  test   %ebx,%ebx
  cmovns %ebx,%ebp
  mov    %rax,0x28(%rsp)
  sar    $0x3,%ebp
  mov    %ebp,(%rsp)
  cmp    $0x7,%ebx
  jle    L3
  mov    %esi,%ebx
  lea    (%rsi,%rsi,1),%r13d
  xor    %r8d,%r8d
  mov    %rax,%r15
  shr    $0x1f,%ebx
  movslq %r13d,%r12
  mov    %r13d,0x4(%rsp)
  mov    %r8d,%r13d
  add    %esi,%ebx
  shl    $0x2,%r12
  sar    %ebx
  mov    %r12,0x8(%rsp)
  mov    %rdi,%r12
  movslq %ebx,%rcx
  lea    0x0(,%rcx,4),%rbp
  nopl   0x0(%rax)
L6:
  mov    0x4(%rsp),%edx
  mov    %r12,%rdi
  mov    $0x52,%esi
  add    $0x1,%r13d
  call   <memset@plt>
  mov    %r14,%rdi
  mov    %ebx,%edx
  mov    $0x5b,%esi
  call   <memset@plt>
  mov    %r15,%rdi
  mov    %ebx,%edx
  mov    $0xf0,%esi
  call   <memset@plt>
  add    %rbp,%r14
  add    0x8(%rsp),%r12
  add    %rbp,%r15
  cmp    (%rsp),%r13d
  jl     L6
  mov    (%rsp),%eax
  mov    0x8(%rsp),%r12
  mov    $0x1,%edx
  mov    0x10(%rsp),%r9
  mov    0x20(%rsp),%r14
  sub    $0x1,%eax
  mov    %r12,%rcx
  add    $0x1,%rax
  cmpl   $0x7,0x18(%rsp)
  cmovle %rdx,%rax
  xor    %r8d,%r8d
  mov    %r8d,%r13d
  imul   %rax,%rcx
  imul   %rbp,%rax
  add    %rcx,%r9
  mov    %rcx,0x18(%rsp)
  mov    0x28(%rsp),%rcx
  add    %rax,%r14
  mov    %r9,0x38(%rsp)
  mov    %r9,%r12
  add    %rax,%rcx
  mov    %rax,0x10(%rsp)
  mov    %r14,0x30(%rsp)
  mov    %rcx,%r15
  mov    %rcx,0x20(%rsp)
  nopl   0x0(%rax)
L2:
  mov    0x4(%rsp),%edx
  mov    %r12,%rdi
  mov    $0x91,%esi
  add    $0x1,%r13d
  call   <memset@plt>
  mov    %r14,%rdi
  mov    %ebx,%edx
  mov    $0x37,%esi
  call   <memset@plt>
  mov    %r15,%rdi
  mov    %ebx,%edx
  mov    $0x23,%esi
  call   <memset@plt>
  add    %rbp,%r14
  add    0x8(%rsp),%r12
  add    %rbp,%r15
  cmp    (%rsp),%r13d
  jl     L2
  mov    0x10(%rsp),%rcx
  mov    0x20(%rsp),%rax
  xor    %r8d,%r8d
  mov    0x30(%rsp),%r14
  mov    0x38(%rsp),%r9
  mov    %r8d,%r13d
  add    0x18(%rsp),%r9
  add    %rcx,%rax
  add    %rcx,%r14
  mov    %r9,0x38(%rsp)
  mov    %rax,%r15
  mov    %r9,%r12
  mov    %r14,0x28(%rsp)
  mov    %rax,0x20(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L28:
  mov    0x4(%rsp),%edx
  mov    %r12,%rdi
  mov    $0x29,%esi
  add    $0x1,%r13d
  call   <memset@plt>
  mov    %r14,%rdi
  mov    %ebx,%edx
  mov    $0xf0,%esi
  call   <memset@plt>
  mov    %r15,%rdi
  mov    %ebx,%edx
  mov    $0x6f,%esi
  call   <memset@plt>
  add    %rbp,%r14
  add    0x8(%rsp),%r12
  add    %rbp,%r15
  cmp    (%rsp),%r13d
  jl     L28
  mov    0x10(%rsp),%rax
  mov    0x28(%rsp),%r14
  xor    %r9d,%r9d
  mov    0x20(%rsp),%r15
  mov    0x38(%rsp),%r8
  mov    %r9d,%r13d
  add    0x18(%rsp),%r8
  add    %rax,%r14
  add    %rax,%r15
  mov    %r8,%r12
  nopl   0x0(%rax)
L39:
  mov    0x4(%rsp),%edx
  mov    %r12,%rdi
  mov    $0xeb,%esi
  add    $0x1,%r13d
  call   <memset@plt>
  mov    %r14,%rdi
  mov    %ebx,%edx
  mov    $0x80,%esi
  call   <memset@plt>
  mov    %r15,%rdi
  mov    %ebx,%edx
  mov    $0x80,%esi
  call   <memset@plt>
  add    %rbp,%r14
  add    0x8(%rsp),%r12
  add    %rbp,%r15
  cmp    (%rsp),%r13d
  jl     L39
L3:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  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++) {
    memset(pY, 0x52, width * 2);
    memset(pU, 0x5b, width / 2);
    memset(pV, 0xf0, width / 2);
    pY += width * 2;
    pU += width / 2;
    pV += width / 2;
  }
  for (y = 0; y < height / 8; y++) {
    memset(pY, 0x91, width * 2);
    memset(pU, 0x37, width / 2);
    memset(pV, 0x23, width / 2);
    pY += width * 2;
    pU += width / 2;
    pV += width / 2;
  }
  for (y = 0; y < height / 8; y++) {
    memset(pY, 0x29, width * 2);
    memset(pU, 0xf0, width / 2);
    memset(pV, 0x6f, width / 2);
    pY += width * 2;
    pU += width / 2;
    pV += width / 2;
  }
  for (y = 0; y < height / 8; y++) {
    memset(pY, 0xeb, width * 2);
    memset(pU, 0x80, width / 2);
    memset(pV, 0x80, width / 2);
    pY += width * 2;
    pU += width / 2;
    pV += width / 2;
  }
}
```