user: What would the C source look like for the assembly code provided here?

```asm
<RGB_2_YUV_AUTOTEST>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x18,%rsp
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x20(%rbp)
  jmp    L26
L29:
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x18,%edx
  add    %edx,%eax
  movzbl %al,%eax
  sub    %edx,%eax
  shl    $0x10,%eax
  mov    %eax,%ebx
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x18,%edx
  add    %edx,%eax
  movzbl %al,%eax
  sub    %edx,%eax
  shl    $0x8,%eax
  or     %eax,%ebx
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x18,%edx
  add    %edx,%eax
  movzbl %al,%eax
  sub    %edx,%eax
  or     %ebx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edi
  call   <instr_rgb2yuv@plt>
  mov    %eax,-0x18(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edi
  call   <prog_rgb2yuv@plt>
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  je     L10
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x1c(%rbp),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  sar    $0x8,%eax
  movzbl %al,%eax
  mov    -0x1c(%rbp),%ecx
  sar    $0x10,%ecx
  mov    %ecx,%esi
  mov    %edx,%ecx
  mov    %eax,%edx
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x18(%rbp),%eax
  movzbl %al,%edx
  mov    -0x18(%rbp),%eax
  sar    $0x8,%eax
  movzbl %al,%eax
  mov    -0x18(%rbp),%ecx
  mov    %ecx,%esi
  sar    $0x10,%esi
  mov    %edx,%ecx
  mov    %eax,%edx
  lea    D61(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x14(%rbp),%eax
  movzbl %al,%edx
  mov    -0x14(%rbp),%eax
  sar    $0x8,%eax
  movzbl %al,%eax
  mov    -0x14(%rbp),%ecx
  sar    $0x10,%ecx
  mov    %ecx,%esi
  mov    %edx,%ecx
  mov    %eax,%edx
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L12
L10:
  addl   $0x1,-0x20(%rbp)
L26:
  cmpl   $0x9,-0x20(%rbp)
  jle    L29
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%eax
L12:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D8
type: string
name: read_data
arguments: tag: D26
type: string
name: read_data
arguments: tag: D54
type: string
name: read_data
arguments: tag: D58
type: string
name: read_data
arguments: tag: D61
type: string
name: read_data
arguments: tag: D9
type: string
name: read_data
arguments: tag: D31
type: string

tool: D8: LAUNCHING THE (RGB_2_YUV) RESOURCE TEST...

tool: D26: - TEST OF THE (RGB_2_YUV) RESOURCE => FAILED !

tool: D54:   + %d COMPUTATION BEFORE ERROR... !


tool: D58:   + INPUT DATA         = (%d, %d, %d)


tool: D61:   + INSTRUCTION RESULT = (%d, %d, %d)


tool: D9:   + C CODE RESULT      = (%d, %d, %d)


tool: D31: - TEST OF THE (RGB_2_YUV) RESOURCE => OK

assistant: ```c
int RGB_2_YUV_AUTOTEST() {
  int i, j;
  printf("LAUNCHING THE (RGB_2_YUV) RESOURCE TEST...\n");
  for (j = 0; j < 10; j++) {
    int op1 = ((rand() % 256) << 16) | ((rand() % 256) << 8) | (rand() % 256);
    int res1 = instr_rgb2yuv(op1);
    int res2 = prog_rgb2yuv(op1);
    if (res1 != res2) {
      printf("- TEST OF THE (RGB_2_YUV) RESOURCE => FAILED !\n");
      printf("  + %d COMPUTATION BEFORE ERROR... !\n", j);
      printf("  + INPUT DATA         = (%d, %d, %d)\n", (op1 >> 16), ((op1 >> 8) & 0xFF), (op1 & 0xFF));
      printf("  + INSTRUCTION RESULT = (%d, %d, %d)\n", (res1 >> 16), ((res1 >> 8) & 0xFF), (res1 & 0xFF));
      printf("  + C CODE RESULT      = (%d, %d, %d)\n", (res2 >> 16), ((res2 >> 8) & 0xFF), (res2 & 0xFF));
      return 0;
    }
  }
  printf("- TEST OF THE (RGB_2_YUV) RESOURCE => OK\n");
  return 1;
}
```