user: Translate the below assembly code into C programming language:

```asm
<v4lconvert_uyvy_to_bgr24>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %ecx,-0x38(%rbp)
  jmp    L78
L258:
  movl   $0x0,-0x18(%rbp)
  jmp    L255
L31:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x28(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x14(%rbp),%eax
  add    $0xffffff80,%eax
  shl    $0x7,%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    $0xffffff80,%eax
  add    %edx,%eax
  sar    $0x6,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x14(%rbp),%eax
  add    $0xffffff80,%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x14(%rbp),%eax
  add    $0xffffff80,%eax
  add    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    $0xffffff80,%eax
  shl    $0x2,%eax
  add    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    $0xffffff80,%eax
  add    %eax,%eax
  add    %edx,%eax
  sar    $0x3,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x10(%rbp),%eax
  add    $0xffffff80,%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x10(%rbp),%eax
  add    $0xffffff80,%eax
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x4(%rbp)
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  jg     L194
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  js     L74
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    -0xc(%rbp),%edx
  add    %edx,%eax
  jmp    L115
L74:
  mov    $0x0,%eax
  jmp    L115
L194:
  mov    $0xffffffff,%eax
L115:
  mov    -0x30(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,-0x30(%rbp)
  mov    %al,(%rdx)
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  sub    -0x8(%rbp),%eax
  cmp    $0xff,%eax
  jg     L33
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  sub    -0x8(%rbp),%eax
  test   %eax,%eax
  js     L119
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    -0x8(%rbp),%edx
  sub    %edx,%eax
  jmp    L203
L119:
  mov    $0x0,%eax
  jmp    L203
L33:
  mov    $0xffffffff,%eax
L203:
  mov    -0x30(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,-0x30(%rbp)
  mov    %al,(%rdx)
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  jg     L264
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  js     L257
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    -0x4(%rbp),%edx
  add    %edx,%eax
  jmp    L215
L257:
  mov    $0x0,%eax
  jmp    L215
L264:
  mov    $0xffffffff,%eax
L215:
  mov    -0x30(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,-0x30(%rbp)
  mov    %al,(%rdx)
  mov    -0x28(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  jg     L198
  mov    -0x28(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  js     L138
  mov    -0x28(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  mov    -0xc(%rbp),%edx
  add    %edx,%eax
  jmp    L10
L138:
  mov    $0x0,%eax
  jmp    L10
L198:
  mov    $0xffffffff,%eax
L10:
  mov    -0x30(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,-0x30(%rbp)
  mov    %al,(%rdx)
  mov    -0x28(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  sub    -0x8(%rbp),%eax
  cmp    $0xff,%eax
  jg     L127
  mov    -0x28(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  sub    -0x8(%rbp),%eax
  test   %eax,%eax
  js     L229
  mov    -0x28(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  mov    -0x8(%rbp),%edx
  sub    %edx,%eax
  jmp    L107
L229:
  mov    $0x0,%eax
  jmp    L107
L127:
  mov    $0xffffffff,%eax
L107:
  mov    -0x30(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,-0x30(%rbp)
  mov    %al,(%rdx)
  mov    -0x28(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  jg     L164
  mov    -0x28(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  js     L81
  mov    -0x28(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  mov    -0x4(%rbp),%edx
  add    %edx,%eax
  jmp    L272
L81:
  mov    $0x0,%eax
  jmp    L272
L164:
  mov    $0xffffffff,%eax
L272:
  mov    -0x30(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,-0x30(%rbp)
  mov    %al,(%rdx)
  addq   $0x4,-0x28(%rbp)
  addl   $0x2,-0x18(%rbp)
L255:
  mov    -0x18(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L31
L78:
  subl   $0x1,-0x38(%rbp)
  cmpl   $0x0,-0x38(%rbp)
  jns    L258
  nop
  nop
  pop    %rbp
  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;
    }
  }
}
```