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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0xe8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xd8(%rsp)
  xor    %eax,%eax
  cmp    $0x2,%edi
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    0x8(%rbx),%rdi
  call   <atoi@plt>
  pxor   %xmm0,%xmm0
  movsd  D30(%rip),%xmm1
  movsd  D17(%rip),%xmm2
  cvtsi2sd %eax,%xmm0
  mov    %eax,0x58(%rsp)
  mov    %eax,%ebx
  xor    %eax,%eax
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x50(%rsp)
  mulsd  D25(%rip),%xmm1
  movsd  %xmm1,0x40(%rsp)
  divsd  D28(%rip),%xmm1
  mulsd  %xmm1,%xmm2
  movapd %xmm1,%xmm0
  movsd  %xmm0,0xd0(%rsp)
  unpcklpd %xmm2,%xmm1
  movaps %xmm1,0xc0(%rsp)
  call   <clock@plt>
  lea    0xa0(%rsp),%rdi
  xor    %esi,%esi
  mov    %rax,0x98(%rsp)
  call   <gettimeofday@plt>
  mov    $0x10,%edi
  call   <omp_set_num_threads@plt>
  test   %ebx,%ebx
  jle    L160
  movl   $0x0,0x7c(%rsp)
  lea    0xc0(%rsp),%r15
  movq   $0x0,0x8(%rsp)
  mov    %r15,%r14
L122:
  pxor   %xmm0,%xmm0
  pxor   %xmm7,%xmm7
  xor    %r15d,%r15d
  mov    %r14,%rax
  cvtsi2sdl 0x7c(%rsp),%xmm0
  mulsd  0x50(%rsp),%xmm0
  mov    %r15,%r14
  mov    %rax,%r15
  addsd  %xmm7,%xmm0
  movsd  %xmm0,0x80(%rsp)
L168:
  pxor   %xmm0,%xmm0
  movl   $0x0,0x78(%rsp)
  mov    %r15,%r13
  movsd  0x80(%rsp),%xmm4
  cvtsi2sd %r14d,%xmm0
  mulsd  0x40(%rsp),%xmm0
  mov    %r14,0x48(%rsp)
  addsd  %xmm0,%xmm4
L57:
  pxor   %xmm0,%xmm0
  pxor   %xmm7,%xmm7
  movl   $0x0,0x70(%rsp)
  mov    %r13,%r14
  cvtsi2sdl 0x78(%rsp),%xmm0
  mulsd  0x50(%rsp),%xmm0
  addsd  %xmm7,%xmm0
  movsd  %xmm0,0x88(%rsp)
L106:
  pxor   %xmm0,%xmm0
  movl   $0x0,0x6c(%rsp)
  mov    %r13,%r15
  mov    %r14,%rbp
  movsd  0x88(%rsp),%xmm3
  cvtsi2sdl 0x70(%rsp),%xmm0
  mulsd  0x40(%rsp),%xmm0
  addsd  %xmm0,%xmm3
L73:
  pxor   %xmm0,%xmm0
  pxor   %xmm7,%xmm7
  mov    %rbp,%r14
  mov    %rbp,%r12
  cvtsi2sdl 0x6c(%rsp),%xmm0
  mulsd  0x50(%rsp),%xmm0
  movl   $0x0,0x74(%rsp)
  addsd  %xmm7,%xmm0
  movsd  %xmm0,0x90(%rsp)
L6:
  pxor   %xmm2,%xmm2
  movl   $0x0,0x68(%rsp)
  cvtsi2sdl 0x74(%rsp),%xmm2
  mulsd  0x40(%rsp),%xmm2
  addsd  0x90(%rsp),%xmm2
  nopl   0x0(%rax,%rax,1)
L131:
  pxor   %xmm0,%xmm0
  pxor   %xmm7,%xmm7
  movl   $0x0,0x5c(%rsp)
  mov    %r12,%rbx
  cvtsi2sdl 0x68(%rsp),%xmm0
  mulsd  0x50(%rsp),%xmm0
  addsd  %xmm7,%xmm0
  movsd  %xmm0,0x60(%rsp)
L87:
  pxor   %xmm1,%xmm1
  xor    %r13d,%r13d
  cvtsi2sdl 0x5c(%rsp),%xmm1
  mulsd  0x40(%rsp),%xmm1
  addsd  0x60(%rsp),%xmm1
  nopw   0x0(%rax,%rax,1)
L75:
  pxor   %xmm0,%xmm0
  pxor   %xmm7,%xmm7
  xor    %ebp,%ebp
  mov    %r12,%rax
  cvtsi2sd %r13d,%xmm0
  mulsd  0x50(%rsp),%xmm0
  mov    %rbp,%r12
  mov    %rax,%rbp
  addsd  %xmm7,%xmm0
  movsd  %xmm0,0x38(%rsp)
L113:
  movsd  0x0(%rbp,%r12,8),%xmm0
  mulsd  (%rbx),%xmm0
  movsd  %xmm4,0x30(%rsp)
  mulsd  (%r14),%xmm0
  mov    0x48(%rsp),%rax
  movsd  %xmm3,0x28(%rsp)
  mulsd  (%r15),%xmm0
  movsd  %xmm2,0x20(%rsp)
  mulsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm0,0x10(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sd %r12d,%xmm0
  mulsd  0x40(%rsp),%xmm0
  add    $0x1,%r12
  addsd  0x38(%rsp),%xmm0
  call   <f@plt>
  mulsd  0x10(%rsp),%xmm0
  cmp    $0x3,%r12
  movsd  0x18(%rsp),%xmm1
  addsd  0x8(%rsp),%xmm0
  movsd  0x20(%rsp),%xmm2
  movsd  0x28(%rsp),%xmm3
  movsd  0x30(%rsp),%xmm4
  movsd  %xmm0,0x8(%rsp)
  jne    L113
  mov    %rbp,%r12
  lea    0x1(%r13),%eax
  cmp    %eax,0x58(%rsp)
  je     L26
  mov    %eax,%r13d
  jmp    L75
  nopl   (%rax)
L26:
  addl   $0x1,0x5c(%rsp)
  mov    0x5c(%rsp),%eax
  add    $0x8,%rbx
  cmp    $0x3,%eax
  jne    L87
  mov    0x68(%rsp),%ecx
  lea    0x1(%rcx),%eax
  cmp    %ecx,%r13d
  je     L81
  mov    %eax,0x68(%rsp)
  jmp    L131
L81:
  addl   $0x1,0x74(%rsp)
  mov    0x74(%rsp),%eax
  add    $0x8,%r14
  cmp    $0x3,%eax
  jne    L6
  mov    0x6c(%rsp),%esi
  lea    0x1(%rsi),%eax
  cmp    %r13d,%esi
  je     L50
  mov    %eax,0x6c(%rsp)
  jmp    L73
L50:
  addl   $0x1,0x70(%rsp)
  mov    0x70(%rsp),%eax
  mov    %r15,%r13
  mov    %rbp,%r14
  add    $0x8,%r13
  cmp    $0x3,%eax
  jne    L106
  mov    0x78(%rsp),%esi
  mov    %rbp,%r13
  lea    0x1(%rsi),%eax
  cmp    %esi,0x6c(%rsp)
  je     L10
  mov    %eax,0x78(%rsp)
  jmp    L57
L10:
  mov    0x48(%rsp),%r14
  mov    %rbp,%r15
  add    $0x1,%r14
  cmp    $0x3,%r14
  jne    L168
  mov    0x7c(%rsp),%esi
  mov    %rbp,%r14
  lea    0x1(%rsi),%eax
  cmp    %esi,0x6c(%rsp)
  je     L134
  mov    %eax,0x7c(%rsp)
  jmp    L122
L160:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x8(%rsp)
L134:
  xor    %esi,%esi
  lea    0xb0(%rsp),%rdi
  call   <gettimeofday@plt>
  mov    0xb0(%rsp),%eax
  pxor   %xmm1,%xmm1
  sub    0xa0(%rsp),%eax
  imul   $0xf4240,%eax,%eax
  cvtsi2sd %rax,%xmm1
  xor    %eax,%eax
  addsd  0xb8(%rsp),%xmm1
  subsd  0xa8(%rsp),%xmm1
  divsd  D22(%rip),%xmm1
  movsd  %xmm1,0x10(%rsp)
  call   <clock@plt>
  pxor   %xmm0,%xmm0
  sub    0x98(%rsp),%rax
  movsd  0x10(%rsp),%xmm1
  cvtsi2sd %rax,%xmm0
  lea    D62(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D33(%rip),%rdi
  call   <printf@plt>
  mov    0xd8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L28
  add    $0xe8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L28:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D30
type_guessed: f64
name: read_data
arguments: data_tag: D17
type_guessed: f64
name: read_data
arguments: data_tag: D25
type_guessed: f32[2]
name: read_data
arguments: data_tag: D28
type_guessed: f64
name: read_data
arguments: data_tag: D22
type_guessed: f64
name: read_data
arguments: data_tag: D62
type_guessed: string
name: read_data
arguments: data_tag: D33
type_guessed: string

tool: D30: 1

tool: D17: 4

tool: {"D25": [0.0,1.75]}

tool: D28: 3

tool: D22: 1000000

tool: D62: %ld clocks (%lf seconds)


tool: D33: integral is: %lf


assistant: ```c
int main(int argc, char **argv) {
  double a = 0.0;
  double b = 1.0;
  assert(argc == 2);
  int n = atoi(argv[1]);
  double delta = (b - a) / n;
  double integral = 0.0;
  double h = delta / 2.0;
  double w[3];
  w[0] = h / 3.0;
  w[1] = 4.0 * w[0];
  w[2] = w[0];
  clock_t ts = clock();
  struct timeval start, end;
  gettimeofday(&start, NULL);
  omp_set_num_threads(16);
#pragma omp parallel for shared(integral)
  for (int i5 = 0; i5 < n; i5++) {
    for (int j5 = 0; j5 < 3; j5++) {
      double x5 = a + i5 * delta + j5 * h;
      for (int i4 = 0; i4 < n; i4++) {
        for (int j4 = 0; j4 < 3; j4++) {
          double x4 = a + i4 * delta + j4 * h;
          for (int i3 = 0; i3 < n; i3++) {
            for (int j3 = 0; j3 < 3; j3++) {
              double x3 = a + i3 * delta + j3 * h;
              for (int i2 = 0; i2 < n; i2++) {
                for (int j2 = 0; j2 < 3; j2++) {
                  double x2 = a + i2 * delta + j2 * h;
                  for (int i1 = 0; i1 < n; i1++) {
                    for (int j1 = 0; j1 < 3; j1++) {
                      double x1 = a + i1 * delta + j1 * h;
#pragma omp atomic
                      integral += w[j1] * w[j2] * w[j3] * w[j4] * w[j5] * f(x1, x2, x3, x4, x5);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  gettimeofday(&end, NULL);
  double elapsed = ((end.tv_sec - start.tv_sec) * 1000000u + end.tv_usec - start.tv_usec) / 1.e6;
  ts = clock() - ts;
  printf("%ld clocks (%lf seconds)\n", ts, elapsed);
  printf("integral is: %lf\n", integral);
  return 0;
}
```