user: 请将以下的汇编代码转换成C语言代码：

```asm
<idct_block>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  lea    D42(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,0x38(%rsp)
  mov    %rsi,0x48(%rsp)
  movq   $0x0,0x40(%rsp)
L16:
  mov    0x40(%rsp),%rax
  pxor   %xmm5,%xmm5
  xor    %ebp,%ebp
  cvtsi2sd %eax,%xmm5
  mov    %rax,%r14
  shl    $0x6,%r14
  add    0x48(%rsp),%r14
  mov    %r14,0x30(%rsp)
  movsd  %xmm5,0x28(%rsp)
  nopw   0x0(%rax,%rax,1)
L21:
  pxor   %xmm5,%xmm5
  movq   $0x0,(%rsp)
  mov    0x38(%rsp),%rbx
  xor    %r15d,%r15d
  cvtsi2sd %ebp,%xmm5
  movsd  %xmm5,0x20(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L17:
  pxor   %xmm1,%xmm1
  xor    %r13d,%r13d
  cvtsi2sd %r15d,%xmm1
  movsd  %xmm1,0x18(%rsp)
  nopw   0x0(%rax,%rax,1)
L46:
  mov    %r15d,%edi
  call   <C@plt>
  mov    %r13d,%edi
  movsd  %xmm0,0x8(%rsp)
  call   <C@plt>
  movsd  0x28(%rsp),%xmm2
  movsd  0x8(%rsp),%xmm4
  mov    $0xffffffff,%edi
  mulsd  %xmm0,%xmm4
  movapd %xmm2,%xmm0
  addsd  %xmm2,%xmm0
  addsd  D22(%rip),%xmm0
  mulsd  0x18(%rsp),%xmm0
  movsd  %xmm4,0x8(%rsp)
  movsd  %xmm0,0x10(%rsp)
  call   <acos@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x10(%rsp),%xmm0
  mulsd  D17(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <cos@plt>
  mulsd  0x8(%rsp),%xmm0
  movsd  0x20(%rsp),%xmm3
  pxor   %xmm1,%xmm1
  cvtsi2sd %r13d,%xmm1
  mov    $0xffffffff,%edi
  movsd  %xmm0,0x8(%rsp)
  movapd %xmm3,%xmm0
  addsd  %xmm3,%xmm0
  addsd  D22(%rip),%xmm0
  movapd %xmm0,%xmm7
  mulsd  %xmm1,%xmm7
  movsd  %xmm7,0x10(%rsp)
  call   <acos@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x10(%rsp),%xmm0
  mulsd  D17(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <cos@plt>
  mulsd  0x8(%rsp),%xmm0
  mulsd  (%rbx,%r13,8),%xmm0
  add    $0x1,%r13
  addsd  (%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  cmp    $0x8,%r13
  jne    L46
  add    $0x1,%r15d
  add    $0x40,%rbx
  cmp    $0x8,%r15d
  jne    L17
  movsd  (%rsp),%xmm0
  mov    %r12,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  D73(%rip),%xmm5
  mulsd  (%rsp),%xmm5
  mov    %r12,%rdi
  mov    $0x1,%eax
  movapd %xmm5,%xmm0
  movsd  %xmm5,(%rsp)
  call   <printf@plt>
  movsd  (%rsp),%xmm0
  mov    %r12,%rdi
  addsd  D76(%rip),%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,(%rsp)
  call   <printf@plt>
  movsd  (%rsp),%xmm0
  pxor   %xmm6,%xmm6
  comisd %xmm0,%xmm6
  ja     L1
  movsd  D62(%rip),%xmm6
  minsd  %xmm0,%xmm6
  movapd %xmm6,%xmm0
L15:
  mov    0x30(%rsp),%rax
  movsd  %xmm0,(%rax,%rbp,8)
  add    $0x1,%rbp
  cmp    $0x8,%rbp
  jne    L21
  addq   $0x1,0x40(%rsp)
  mov    0x40(%rsp),%rax
  cmp    $0x8,%rax
  jne    L16
  add    $0x58,%rsp
  mov    $0xa,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1090 <putchar@plt>
L1:
  pxor   %xmm0,%xmm0
  jmp    L15
```

tool_calls: name: retrieve_data
arguments: label: D42
type_guessed: string
name: retrieve_data
arguments: label: D22
type_guessed: f64
name: retrieve_data
arguments: label: D17
type_guessed: f32[2]
name: retrieve_data
arguments: label: D73
type_guessed: f64
name: retrieve_data
arguments: label: D76
type_guessed: f64
name: retrieve_data
arguments: label: D62
type_guessed: f32[2]

tool: D42: %f 

tool: D22: 1

tool: {"D17": [0.0,1.375]}

tool: D73: 0.25

tool: D76: 128

tool: {"D62": [0.0,3.748046875]}

assistant: ```c
void idct_block(int32_t in[64], uint8_t out[64]) {
  for (uint32_t i = 0; i < 8; i++) {
    for (uint32_t j = 0; j < 8; j++) {
      double sum = 0;
      for (uint32_t k = 0; k < 8; k++) {
        for (uint32_t l = 0; l < 8; l++) {
          sum += C(k) * C(l) * (cos(((2. * i + 1.) * k * acos(-1) / 16))) * (cos(((2. * j + 1.) * l * acos(-1) / 16))) * in[8 * k + l];
        }
      }
      printf("%f ", sum);
      sum *= 0.25;
      printf("%f ", sum);
      sum += 128.;
      printf("%f ", sum);
      if (sum < 0)
        sum = 0;
      if (sum > 255)
        sum = 255;
      out[8 * i + j] = sum;
    }
  }
  printf("\n");
}
```