user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<idct_block>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L75
L28:
  movl   $0x0,-0x14(%rbp)
  jmp    L8
L33:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L26
L62:
  movl   $0x0,-0xc(%rbp)
  jmp    L93
L84:
  mov    -0x10(%rbp),%eax
  mov    %eax,%edi
  call   <C@plt>
  movsd  %xmm0,-0x38(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <C@plt>
  movapd %xmm0,%xmm2
  mulsd  -0x38(%rbp),%xmm2
  movsd  %xmm2,-0x38(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x18(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  %xmm0,%xmm1
  movsd  D40(%rip),%xmm0
  addsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x10(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,-0x40(%rbp)
  mov    $0xffffffff,%edi
  call   <acos@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x40(%rbp),%xmm0
  movsd  D55(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <cos@plt>
  mulsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x14(%rbp),%xmm0
  movapd %xmm0,%xmm3
  addsd  %xmm0,%xmm3
  movapd %xmm3,%xmm1
  movsd  D40(%rip),%xmm0
  addsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xc(%rbp),%xmm0
  movapd %xmm1,%xmm4
  mulsd  %xmm0,%xmm4
  movsd  %xmm4,-0x40(%rbp)
  mov    $0xffffffff,%edi
  call   <acos@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x40(%rbp),%xmm0
  movsd  D55(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <cos@plt>
  movsd  -0x38(%rbp),%xmm1
  mulsd  %xmm0,%xmm1
  mov    -0x10(%rbp),%eax
  lea    0x0(,%rax,8),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  addl   $0x1,-0xc(%rbp)
L93:
  cmpl   $0x7,-0xc(%rbp)
  jle    L84
  addl   $0x1,-0x10(%rbp)
L26:
  cmpl   $0x7,-0x10(%rbp)
  jle    L62
  mov    -0x8(%rbp),%rax
  movq   %rax,%xmm0
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  -0x8(%rbp),%xmm1
  movsd  D96(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movq   %rax,%xmm0
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  -0x8(%rbp),%xmm1
  movsd  D69(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movq   %rax,%xmm0
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  comisd -0x8(%rbp),%xmm0
  jbe    L17
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbp)
L17:
  movsd  -0x8(%rbp),%xmm0
  comisd D94(%rip),%xmm0
  jbe    L88
  movsd  D94(%rip),%xmm0
  movsd  %xmm0,-0x8(%rbp)
L88:
  mov    -0x18(%rbp),%eax
  lea    0x0(,%rax,8),%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x14(%rbp)
L8:
  cmpl   $0x7,-0x14(%rbp)
  jle    L33
  addl   $0x1,-0x18(%rbp)
L75:
  cmpl   $0x7,-0x18(%rbp)
  jle    L28
  mov    $0xa,%edi
  call   <putchar@plt>
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D40
type_infered: f64
name: unpack_data
arguments: data_tag: D55
type_infered: f32[2]
name: unpack_data
arguments: data_tag: D72
type_infered: string
name: unpack_data
arguments: data_tag: D96
type_infered: f64
name: unpack_data
arguments: data_tag: D69
type_infered: f64
name: unpack_data
arguments: data_tag: D94
type_infered: f32

tool: D40: 1

tool: {"D55": [0.0,2.75]}

tool: D72: %f 

tool: D96: 0.25

tool: D69: 128

tool: D94: 0

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");
}
```