user: Translate the below assembly code into C programming language:

```asm
<ramd>:
  endbr64
  push   %r14
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  cmp    $0x1,%edi
  jle    L7
  pxor   %xmm6,%xmm6
  mov    D37(%rip),%rax
  movsd  D48(%rip),%xmm2
  lea    D123(%rip),%rbp
  cvtsi2sd %edi,%xmm6
  movsd  D78(%rip),%xmm3
  lea    D103(%rip),%rbx
  mov    %rax,(%rsp)
  movapd %xmm2,%xmm4
  movsd  %xmm2,0x8(%rsp)
  movq   %xmm6,%r14
  nopl   (%rax)
L0:
  movsd  D92(%rip),%xmm0
  movsd  (%rsp),%xmm7
  mov    %rbp,%rdi
  movsd  %xmm2,0x18(%rsp)
  mulsd  %xmm2,%xmm0
  movapd %xmm0,%xmm1
  subsd  0x8(%rsp),%xmm1
  movapd %xmm0,%xmm5
  subsd  D22(%rip),%xmm5
  mulsd  %xmm0,%xmm1
  subsd  D52(%rip),%xmm0
  mulsd  %xmm5,%xmm1
  mulsd  %xmm0,%xmm1
  movapd %xmm2,%xmm0
  mulsd  %xmm2,%xmm0
  mulsd  %xmm2,%xmm0
  mulsd  %xmm2,%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  divsd  %xmm0,%xmm1
  movsd  D54(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D37(%rip),%xmm0
  mulsd  %xmm1,%xmm4
  mulsd  %xmm4,%xmm0
  movsd  %xmm4,0x10(%rsp)
  addsd  %xmm0,%xmm7
  movsd  %xmm7,(%rsp)
  call   <printf@plt>
  movsd  0x10(%rsp),%xmm4
  mov    %rbx,%rdi
  movapd %xmm4,%xmm0
  call   <printf@plt>
  movsd  0x18(%rsp),%xmm2
  movq   %r14,%xmm7
  addsd  0x8(%rsp),%xmm2
  mov    D78(%rip),%rax
  movsd  0x10(%rsp),%xmm4
  comisd %xmm2,%xmm7
  movq   %rax,%xmm3
  ja     L0
L25:
  mov    $0x2,%edi
  call   <sqrt@plt>
  pxor   %xmm1,%xmm1
  movsd  0x8(%rsp),%xmm0
  lea    D96(%rip),%rdi
  add    %eax,%eax
  movslq %eax,%rdx
  imul   $0xffffffffd5f92819,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x1f,%eax
  sar    $0xd,%edx
  sub    %eax,%edx
  cvtsi2sd %edx,%xmm1
  mulsd  (%rsp),%xmm1
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r14
  divsd  %xmm1,%xmm0
  jmp    1060 <printf@plt>
  xchg   %ax,%ax
L7:
  movsd  D37(%rip),%xmm6
  movsd  %xmm6,(%rsp)
  movsd  D48(%rip),%xmm6
  movsd  %xmm6,0x8(%rsp)
  jmp    L25
```

tool_calls: name: read_data
arguments: data_label: D37
type: byte[8]
name: read_data
arguments: data_label: D48
type: byte[8]
name: read_data
arguments: data_label: D123
type: string
name: read_data
arguments: data_label: D78
type: byte[8]
name: read_data
arguments: data_label: D103
type: string
name: read_data
arguments: data_label: D92
type: byte[8]
name: read_data
arguments: data_label: D22
type: byte[8]
name: read_data
arguments: data_label: D52
type: byte[8]
name: read_data
arguments: data_label: D54
type: byte[8]
name: read_data
arguments: data_label: D96
type: string

tool: {"D37": [0x00,0x00,0x00,0x00,0x00,0x3c,0x91,0x40]}

tool: {"D48": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: D123: term:%16.12g


tool: {"D78": [0x00,0x00,0x00,0x00,0x00,0xc0,0x78,0x40]}

tool: D103: mult:%16.12g


tool: {"D92": [0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x40]}

tool: {"D22": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40]}

tool: {"D52": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

tool: {"D54": [0x00,0x00,0x00,0x00,0x80,0xc5,0xd9,0x40]}

tool: D96: %16g


assistant: ```c
void ramd(int times) {
  double n, pi, term, mult, tmp;
  pi = 1103;
  term = 0;
  mult = 1;
  tmp = 0;
  for (n = 1; n < times; n++) {
    tmp = ((4 * n) * (4 * n - 1) * (4 * n - 2) * (4 * n - 3)) / (n * n * n * n * 396 * 396 * 396 * 396);
    mult *= tmp;
    term = mult * (1103 + 26390 * n);
    pi += term;
    printf("term:%16.12g\n", term);
    printf("mult:%16.12g\n", mult);
  }
  pi *= (2 * sqrt(2)) / 9801;
  pi = 1 / pi;
  printf("%16g\n", pi);
}
```