user: Demonstrate the C code that generates the assembly output below:

```asm
<yuv422_rgb24>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %edx,-0x54(%rbp)
  mov    %ecx,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x50(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L8
L91:
  movl   $0x0,-0x3c(%rbp)
  jmp    L168
L108:
  mov    -0x40(%rbp),%eax
  imul   -0x54(%rbp),%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %rax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x40(%rbp),%eax
  imul   -0x54(%rbp),%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %rdx,%rax
  lea    0x1(%rax),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x40(%rbp),%eax
  imul   -0x54(%rbp),%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %rdx,%rax
  lea    0x2(%rax),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x40(%rbp),%eax
  imul   -0x54(%rbp),%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %rdx,%rax
  lea    0x3(%rax),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x20(%rbp),%edx
  mov    -0x14(%rbp),%eax
  add    $0xffffff80,%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    $0xffffff80,%eax
  imul   $0x68,%eax,%eax
  sar    $0x8,%eax
  add    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x20(%rbp),%eax
  mov    -0x1c(%rbp),%edx
  add    $0xffffff80,%edx
  imul   $0x59,%edx,%edx
  mov    %edx,%ecx
  sar    $0x8,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    $0xffffff80,%eax
  imul   $0xb7,%eax,%eax
  sar    $0x8,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    $0xffffff80,%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xffffff80,%eax
  imul   $0xc7,%eax,%eax
  sar    $0x8,%eax
  add    %edx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x2c(%rbp),%eax
  cmp    $0xff,%eax
  jle    L59
  movl   $0xff,-0x2c(%rbp)
L59:
  mov    -0x2c(%rbp),%eax
  test   %eax,%eax
  jns    L83
  movl   $0x0,-0x2c(%rbp)
L83:
  mov    -0x28(%rbp),%eax
  cmp    $0xff,%eax
  jle    L43
  movl   $0xff,-0x28(%rbp)
L43:
  mov    -0x28(%rbp),%eax
  test   %eax,%eax
  jns    L141
  movl   $0x0,-0x28(%rbp)
L141:
  mov    -0x24(%rbp),%eax
  cmp    $0xff,%eax
  jle    L62
  movl   $0xff,-0x24(%rbp)
L62:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jns    L149
  movl   $0x0,-0x24(%rbp)
L149:
  mov    -0x2c(%rbp),%ecx
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x28(%rbp),%ecx
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%ecx
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x18(%rbp),%edx
  mov    -0x14(%rbp),%eax
  add    $0xffffff80,%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    $0xffffff80,%eax
  imul   $0x68,%eax,%eax
  sar    $0x8,%eax
  add    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x18(%rbp),%eax
  mov    -0x1c(%rbp),%edx
  add    $0xffffff80,%edx
  imul   $0x59,%edx,%edx
  mov    %edx,%ecx
  sar    $0x8,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    $0xffffff80,%eax
  imul   $0xb7,%eax,%eax
  sar    $0x8,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x18(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    $0xffffff80,%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xffffff80,%eax
  imul   $0xc7,%eax,%eax
  sar    $0x8,%eax
  add    %edx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x2c(%rbp),%eax
  cmp    $0xff,%eax
  jle    L38
  movl   $0xff,-0x2c(%rbp)
L38:
  mov    -0x2c(%rbp),%eax
  test   %eax,%eax
  jns    L145
  movl   $0x0,-0x2c(%rbp)
L145:
  mov    -0x28(%rbp),%eax
  cmp    $0xff,%eax
  jle    L96
  movl   $0xff,-0x28(%rbp)
L96:
  mov    -0x28(%rbp),%eax
  test   %eax,%eax
  jns    L137
  movl   $0x0,-0x28(%rbp)
L137:
  mov    -0x24(%rbp),%eax
  cmp    $0xff,%eax
  jle    L28
  movl   $0xff,-0x24(%rbp)
L28:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jns    L32
  movl   $0x0,-0x24(%rbp)
L32:
  mov    -0x2c(%rbp),%ecx
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x28(%rbp),%ecx
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%ecx
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x4,-0x3c(%rbp)
L168:
  mov    -0x3c(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jb     L108
  addl   $0x1,-0x40(%rbp)
L8:
  mov    -0x58(%rbp),%eax
  add    %eax,%eax
  cmp    %eax,-0x40(%rbp)
  jb     L91
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L148
  call   <__stack_chk_fail@plt>
L148:
  leave
  ret
```

assistant: ```c
int yuv422_rgb24(unsigned char *yuv_buf, unsigned char *rgb_buf, unsigned int width, unsigned int height) {
  int yuvdata[4];
  int rgbdata[3];
  unsigned char *rgb_temp;
  unsigned int i, j;
  rgb_temp = rgb_buf;
  for (i = 0; i < height * 2; i++) {
    for (j = 0; j < width; j += 4) {
      yuvdata[0] = *(yuv_buf + i * width + j + 0);
      yuvdata[1] = *(yuv_buf + i * width + j + 1);
      yuvdata[2] = *(yuv_buf + i * width + j + 2);
      yuvdata[3] = *(yuv_buf + i * width + j + 3);
      rgbdata[0] = yuvdata[0] + (yuvdata[3] - 128) + (((yuvdata[3] - 128) * 104) >> 8);
      rgbdata[1] = yuvdata[0] - (((yuvdata[1] - 128) * 89) >> 8) - (((yuvdata[3] - 128) * 183) >> 8);
      rgbdata[2] = yuvdata[0] + (yuvdata[1] - 128) + (((yuvdata[1] - 128) * 199) >> 8);
      if (rgbdata[0] > 255)
        rgbdata[0] = 255;
      if (rgbdata[0] < 0)
        rgbdata[0] = 0;
      if (rgbdata[1] > 255)
        rgbdata[1] = 255;
      if (rgbdata[1] < 0)
        rgbdata[1] = 0;
      if (rgbdata[2] > 255)
        rgbdata[2] = 255;
      if (rgbdata[2] < 0)
        rgbdata[2] = 0;
      *(rgb_temp++) = rgbdata[0];
      *(rgb_temp++) = rgbdata[1];
      *(rgb_temp++) = rgbdata[2];
      rgbdata[0] = yuvdata[2] + (yuvdata[3] - 128) + (((yuvdata[3] - 128) * 104) >> 8);
      rgbdata[1] = yuvdata[2] - (((yuvdata[1] - 128) * 89) >> 8) - (((yuvdata[3] - 128) * 183) >> 8);
      rgbdata[2] = yuvdata[2] + (yuvdata[1] - 128) + (((yuvdata[1] - 128) * 199) >> 8);
      if (rgbdata[0] > 255)
        rgbdata[0] = 255;
      if (rgbdata[0] < 0)
        rgbdata[0] = 0;
      if (rgbdata[1] > 255)
        rgbdata[1] = 255;
      if (rgbdata[1] < 0)
        rgbdata[1] = 0;
      if (rgbdata[2] > 255)
        rgbdata[2] = 255;
      if (rgbdata[2] < 0)
        rgbdata[2] = 0;
      *(rgb_temp++) = rgbdata[0];
      *(rgb_temp++) = rgbdata[1];
      *(rgb_temp++) = rgbdata[2];
    }
  }
  return 0;
}
```