user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  movl   $0x4,-0x50(%rbp)
  movq   $0xf4240,-0x40(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdq -0x40(%rbp),%xmm1
  movsd  D20(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x50(%rbp),%eax
  cltq
  sub    $0x1,%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x50(%rbp),%eax
  cltq
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    -0x50(%rbp),%eax
  cltq
  mov    %rax,%rsi
  mov    $0x0,%edi
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L32:
  cmp    %rdx,%rsp
  je     L30
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L32
L30:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L14
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L14:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x28(%rbp)
  movl   $0x0,-0x5c(%rbp)
  jmp    L96
L73:
  mov    -0x28(%rbp),%rax
  mov    -0x5c(%rbp),%edx
  movslq %edx,%rdx
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x5c(%rbp)
L96:
  mov    -0x5c(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L73
  mov    -0x50(%rbp),%eax
  mov    %eax,%edi
  call   <omp_set_num_threads@plt>
  mov    $0x0,%eax
  call   <omp_get_thread_num@plt>
  mov    %eax,-0x4c(%rbp)
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x58(%rbp)
  jmp    L99
L62:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x58(%rbp),%xmm1
  movsd  D44(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x38(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x28(%rbp),%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm2
  movsd  -0x38(%rbp),%xmm1
  movsd  D42(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x20(%rbp),%xmm0
  movapd %xmm0,%xmm3
  mulsd  %xmm0,%xmm3
  movsd  D20(%rip),%xmm0
  addsd  %xmm0,%xmm3
  divsd  %xmm3,%xmm1
  movapd %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  mov    -0x28(%rbp),%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
  mov    -0x50(%rbp),%eax
  add    %eax,-0x58(%rbp)
L99:
  mov    -0x58(%rbp),%eax
  cltq
  cmp    %rax,-0x40(%rbp)
  jg     L62
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movl   $0x0,-0x54(%rbp)
  jmp    L63
L89:
  mov    -0x28(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  movsd  -0x48(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  addl   $0x1,-0x54(%rbp)
L63:
  mov    -0x54(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L89
  mov    -0x48(%rbp),%rax
  movq   %rax,%xmm0
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    %rbx,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L16
  call   <__stack_chk_fail@plt>
L16:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D20
type_infered: f64
name: extract_symbolic_data
arguments: data_tag: D44
type_infered: f64
name: extract_symbolic_data
arguments: data_tag: D42
type_infered: f64
name: extract_symbolic_data
arguments: data_tag: D22
type_infered: string

tool: D20: 1

tool: D44: 0.5

tool: D42: 4

tool: D22: pi = %6.12f


assistant: ```c
void main() {
  const int NUM_THREADS = 4;
  const long num_steps = 1000000;
  double step = 1.0 / ((double)num_steps);
  double sum[NUM_THREADS];
  for (int i = 0; i < NUM_THREADS; i++)
    sum[i] = 0;
  omp_set_num_threads(NUM_THREADS);
#pragma omp parallel
  {
    int id = omp_get_thread_num();
    for (int i = id; i < num_steps; i += NUM_THREADS) {
      double x = (i + 0.5) * step;
      sum[id] += 4.0 * step / (1.0 + x * x);
    }
  }
  double pi = 0;
  for (int i = 0; i < NUM_THREADS; i++)
    pi += sum[i];
  printf("pi = %6.12f\n", pi);
}
```