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

```asm
<v4lconvert_uyvy_to_bgr24>:
  endbr64
  sub    $0x1,%ecx
  js     L14
  lea    -0x1(%rdx),%eax
  push   %r15
  mov    %rsi,%r11
  mov    %ecx,%r10d
  shr    %eax
  push   %r14
  xor    %r8d,%r8d
  add    $0x1,%eax
  push   %r13
  push   %r12
  lea    0x0(,%rax,4),%r12
  push   %rbp
  lea    (%rax,%rax,2),%rbp
  push   %rbx
  add    %rbp,%rbp
  mov    %edx,%ebx
  nopl   0x0(%rax)
L33:
  lea    (%rdi,%r12,1),%r9
  mov    %r11,%rsi
  test   %ebx,%ebx
  jle    L10
  nop
L85:
  movzbl (%rdi),%edx
  movzbl 0x2(%rdi),%eax
  mov    $0xffffffff,%r15d
  add    $0xffffff80,%edx
  add    $0xffffff80,%eax
  mov    %edx,%ecx
  lea    (%rax,%rax,1),%r13d
  shl    $0x7,%ecx
  add    %edx,%ecx
  lea    (%rdx,%rdx,2),%edx
  lea    (%rdx,%rax,4),%edx
  add    %r13d,%eax
  sar    $0x6,%ecx
  add    %r13d,%edx
  movzbl 0x1(%rdi),%r13d
  sar    %eax
  sar    $0x3,%edx
  mov    %r13d,%r14d
  add    %ecx,%r13d
  cmp    $0xff,%r13d
  jg     L80
  add    %ecx,%r14d
  test   %r13d,%r13d
  mov    %r14d,%r15d
  cmovs  %r8d,%r15d
L80:
  mov    %r15b,(%rsi)
  movzbl 0x1(%rdi),%r13d
  mov    $0xffffffff,%r15d
  mov    %r13d,%r14d
  sub    %edx,%r13d
  cmp    $0xff,%r13d
  jg     L17
  sub    %edx,%r14d
  test   %r13d,%r13d
  mov    %r14d,%r15d
  cmovs  %r8d,%r15d
L17:
  mov    %r15b,0x1(%rsi)
  movzbl 0x1(%rdi),%r13d
  mov    $0xffffffff,%r15d
  mov    %r13d,%r14d
  add    %eax,%r13d
  cmp    $0xff,%r13d
  jg     L66
  add    %eax,%r14d
  test   %r13d,%r13d
  mov    %r14d,%r15d
  cmovs  %r8d,%r15d
L66:
  mov    %r15b,0x2(%rsi)
  movzbl 0x3(%rdi),%r13d
  mov    $0xffffffff,%r15d
  mov    %r13d,%r14d
  add    %ecx,%r13d
  cmp    $0xff,%r13d
  jg     L5
  add    %ecx,%r14d
  test   %r13d,%r13d
  mov    %r14d,%r15d
  cmovs  %r8d,%r15d
L5:
  mov    %r15b,0x3(%rsi)
  movzbl 0x3(%rdi),%ecx
  mov    $0xffffffff,%r14d
  mov    %ecx,%r13d
  sub    %edx,%ecx
  cmp    $0xff,%ecx
  jg     L95
  sub    %edx,%r13d
  test   %ecx,%ecx
  mov    %r13d,%r14d
  cmovs  %r8d,%r14d
L95:
  mov    %r14b,0x4(%rsi)
  movzbl 0x3(%rdi),%edx
  mov    $0xffffffff,%r13d
  mov    %edx,%ecx
  add    %eax,%edx
  cmp    $0xff,%edx
  jg     L88
  add    %eax,%ecx
  test   %edx,%edx
  cmovs  %r8d,%ecx
  mov    %ecx,%r13d
L88:
  add    $0x4,%rdi
  add    $0x6,%rsi
  mov    %r13b,-0x1(%rsi)
  cmp    %r9,%rdi
  jne    L85
  add    %rbp,%r11
L10:
  sub    $0x1,%r10d
  jae    L33
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L14:
  ret
```

assistant: ```c
void v4lconvert_uyvy_to_bgr24(const unsigned char *src, unsigned char *dest, int width, int height) {
  int j;
  while (--height >= 0) {
    for (j = 0; j < width; j += 2) {
      int u = src[0];
      int v = src[2];
      int u1 = (((u - 128) << 7) + (u - 128)) >> 6;
      int rg = (((u - 128) << 1) + (u - 128) + ((v - 128) << 2) + ((v - 128) << 1)) >> 3;
      int v1 = (((v - 128) << 1) + (v - 128)) >> 1;
      *dest++ = (unsigned char)(((src[1] + u1) > 0xFF) ? 0xff : (((src[1] + u1) < 0) ? 0 : (src[1] + u1)));
      *dest++ = (unsigned char)(((src[1] - rg) > 0xFF) ? 0xff : (((src[1] - rg) < 0) ? 0 : (src[1] - rg)));
      *dest++ = (unsigned char)(((src[1] + v1) > 0xFF) ? 0xff : (((src[1] + v1) < 0) ? 0 : (src[1] + v1)));
      *dest++ = (unsigned char)(((src[3] + u1) > 0xFF) ? 0xff : (((src[3] + u1) < 0) ? 0 : (src[3] + u1)));
      *dest++ = (unsigned char)(((src[3] - rg) > 0xFF) ? 0xff : (((src[3] - rg) < 0) ? 0 : (src[3] - rg)));
      *dest++ = (unsigned char)(((src[3] + v1) > 0xFF) ? 0xff : (((src[3] + v1) < 0) ? 0 : (src[3] + v1)));
      src += 4;
    }
  }
}
```