user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<redcode_ycbcr2rgb_quarterscale>:
  endbr64
  test   %edx,%edx
  jle    L10
  mov    %esi,%eax
  push   %r15
  movss  D2(%rip),%xmm3
  lea    (%rsi,%rsi,1),%r15d
  push   %r14
  shr    $0x1f,%eax
  movss  D25(%rip),%xmm7
  mov    %rcx,%r14
  push   %r13
  add    %esi,%eax
  movss  D7(%rip),%xmm6
  mov    %edx,%r13d
  push   %r12
  sar    %eax
  movss  D23(%rip),%xmm4
  mov    %esi,%r12d
  push   %rbp
  xor    %r11d,%r11d
  xor    %ebp,%ebp
  pxor   %xmm5,%xmm5
  push   %rbx
  mov    %rdi,%rbx
  mov    %eax,-0xc(%rsp)
  mov    %edx,%eax
  sar    %eax
  mov    %eax,-0x10(%rsp)
  lea    -0x1(%rsi),%eax
  shr    %eax
  add    $0x1,%eax
  shl    $0x4,%rax
  mov    %rax,-0x8(%rsp)
  nopl   (%rax)
L33:
  mov    %r11d,%edx
  mov    -0x10(%rsp),%eax
  shr    $0x1f,%edx
  add    %r11d,%edx
  sar    %edx
  sub    %edx,%eax
  sub    $0x1,%eax
  imul   -0xc(%rsp),%eax
  cltq
  lea    (%r14,%rax,4),%rax
  test   %r12d,%r12d
  jle    L16
  mov    -0x8(%rsp),%rsi
  movslq %ebp,%rdx
  mov    (%rbx),%r10
  mov    0x8(%rbx),%r9
  mov    0x10(%rbx),%r8
  shl    $0x2,%rdx
  mov    0x18(%rbx),%rdi
  add    %rax,%rsi
  xchg   %ax,%ax
L36:
  mov    (%r9,%rdx,1),%ecx
  pxor   %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  pxor   %xmm2,%xmm2
  add    $0x10,%rax
  and    $0xfff,%ecx
  sub    $0x800,%ecx
  cvtsi2ss %ecx,%xmm1
  mov    (%r10,%rdx,1),%ecx
  and    $0xfff,%ecx
  cvtsi2ss %ecx,%xmm0
  mov    (%rdi,%rdx,1),%ecx
  mulss  %xmm3,%xmm1
  and    $0xfff,%ecx
  cvtsi2ss %ecx,%xmm2
  mov    (%r8,%rdx,1),%ecx
  add    $0x8,%rdx
  and    $0xfff,%ecx
  sub    $0x800,%ecx
  addss  %xmm2,%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2ss %ecx,%xmm2
  mulss  %xmm7,%xmm0
  mulss  %xmm3,%xmm2
  mulss  %xmm6,%xmm0
  addss  %xmm0,%xmm2
  movss  %xmm2,-0x10(%rax)
  movaps %xmm0,%xmm2
  addss  %xmm1,%xmm0
  addss  %xmm5,%xmm2
  movss  %xmm0,-0x8(%rax)
  movss  %xmm2,-0xc(%rax)
  movss  %xmm4,-0x4(%rax)
  cmp    %rsi,%rax
  jne    L36
L16:
  add    $0x2,%r11d
  add    %r15d,%ebp
  cmp    %r11d,%r13d
  jg     L33
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L10:
  ret
```

tool_calls: name: disassemble_data
arguments: label: D2
type_infered: byte[4]
name: disassemble_data
arguments: label: D25
type_infered: byte[4]
name: disassemble_data
arguments: label: D7
type_infered: byte[4]
name: disassemble_data
arguments: label: D23
type_infered: f32

tool: {"D2": [0x00,0x00,0x00,0x3a]}

tool: {"D25": [0x00,0x00,0x00,0x3f]}

tool: {"D7": [0x00,0x00,0x80,0x39]}

tool: D23: 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;
    }
  }
}
```