user: Converte this assembly snippet into its equivalent C code:

```asm
<idct_block>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  lea    D20(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,0x38(%rsp)
  mov    %rsi,0x48(%rsp)
  movq   $0x0,0x40(%rsp)
L56:
  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)
L0:
  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)
L23:
  pxor   %xmm1,%xmm1
  xor    %r13d,%r13d
  cvtsi2sd %r15d,%xmm1
  movsd  %xmm1,0x18(%rsp)
  nopw   0x0(%rax,%rax,1)
L44:
  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  D60(%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  D4(%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  D60(%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  D4(%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    L44
  add    $0x1,%r15d
  add    $0x40,%rbx
  cmp    $0x8,%r15d
  jne    L23
  mov    %r12,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  D6(%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  D72(%rip),%xmm0
  mov    $0x1,%eax
  movsd  %xmm0,(%rsp)
  call   <printf@plt>
  movsd  (%rsp),%xmm0
  pxor   %xmm6,%xmm6
  comisd %xmm0,%xmm6
  ja     L35
  movsd  D39(%rip),%xmm6
  minsd  %xmm0,%xmm6
  movapd %xmm6,%xmm0
L28:
  mov    0x30(%rsp),%rax
  movsd  %xmm0,(%rax,%rbp,8)
  add    $0x1,%rbp
  cmp    $0x8,%rbp
  jne    L0
  addq   $0x1,0x40(%rsp)
  mov    0x40(%rsp),%rax
  cmp    $0x8,%rax
  jne    L56
  add    $0x58,%rsp
  mov    $0xa,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1090 <putchar@plt>
L35:
  pxor   %xmm0,%xmm0
  jmp    L28
```

tool_calls: name: parse_data
arguments: data_label: D20
type_infered: string
name: parse_data
arguments: data_label: D60
type_infered: f64
name: parse_data
arguments: data_label: D4
type_infered: f32[2]
name: parse_data
arguments: data_label: D6
type_infered: f64
name: parse_data
arguments: data_label: D72
type_infered: f64
name: parse_data
arguments: data_label: D39
type_infered: f32[2]

tool: D20: %f 

tool: D60: 1

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

tool: D6: 0.25

tool: D72: 128

tool: {"D39": [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");
}
```