user: 下面的汇编指令对应的C源代码是什么：

```asm
<redcode_ycbcr2rgb_quarterscale>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %edx,-0x50(%rbp)
  mov    %rcx,-0x58(%rbp)
  movl   $0x1000,-0x34(%rbp)
  mov    -0x34(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x30(%rbp)
  movl   $0x0,-0x38(%rbp)
  jmp    L19
L4:
  mov    -0x4c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  mov    %eax,%esi
  mov    -0x38(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %esi,%eax
  sub    $0x1,%eax
  imul   %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x3c(%rbp)
  jmp    L10
L3:
  mov    -0x38(%rbp),%eax
  imul   -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  and    -0x30(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  and    -0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x24(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  and    -0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x20(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  and    -0x30(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  mov    -0x34(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  movss  -0x24(%rbp),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  mov    -0x34(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  movss  -0x20(%rbp),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x28(%rbp),%xmm0
  addss  -0x1c(%rbp),%xmm0
  movss  D3(%rip),%xmm1
  divss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x34(%rbp),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  mov    -0x8(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movss  -0x14(%rbp),%xmm0
  addss  -0xc(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movss  -0x10(%rbp),%xmm0
  addss  -0xc(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movss  -0x18(%rbp),%xmm0
  addss  -0xc(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movss  D18(%rip),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x2,-0x3c(%rbp)
L10:
  mov    -0x3c(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L3
  addl   $0x2,-0x38(%rbp)
L19:
  mov    -0x38(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L4
  nop
  nop
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: data_tag: D3
data_type: f32
name: read_data
arguments: data_tag: D18
data_type: f32

tool: D3: 2

tool: D18: 1

assistant: ```c
void redcode_ycbcr2rgb_quarterscale(int **planes, int width, int height, float *out) {
  int x, y;
  int pix_max = 4096;
  int mask = pix_max - 1;
  for (y = 0; y < height; y += 2) {
    float *o = out + (width / 2) * (height / 2 - y / 2 - 1);
    for (x = 0; x < width; x += 2) {
      int i = y * width + x;
      float y1 = planes[0][i] & mask;
      float cb = (planes[1][i] & mask) - pix_max / 2;
      float cr = (planes[2][i] & mask) - pix_max / 2;
      float y2 = planes[3][i] & mask;
      float b_ = cb / (pix_max / 2);
      float r_ = cr / (pix_max / 2);
      float g_ = 0.0;
      float y = (y1 + y2) / 2 / pix_max;
      *o++ = r_ + y;
      *o++ = g_ + y;
      *o++ = b_ + y;
      *o++ = 1.0;
    }
  }
}
```