user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  movl   $0xa,-0x48(%rbp)
  movl   $0xd,-0x44(%rbp)
  mov    -0x48(%rbp),%eax
  add    $0x1,%eax
  cltq
  sub    $0x1,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x48(%rbp),%eax
  add    $0x1,%eax
  cltq
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    -0x48(%rbp),%eax
  add    $0x1,%eax
  cltq
  mov    %rax,%rsi
  mov    $0x0,%edi
  mov    -0x48(%rbp),%eax
  add    $0x1,%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
L70:
  cmp    %rdx,%rsp
  je     L68
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L70
L68:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L28
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L28:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  movsd  D20(%rip),%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  movl   $0x0,-0x4c(%rbp)
  jmp    L40
L21:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x4c(%rbp),%xmm0
  mov    -0x48(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  divsd  %xmm1,%xmm0
  mov    -0x38(%rbp),%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x4c(%rbp)
L40:
  mov    -0x4c(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L21
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x4c(%rbp)
  jmp    L5
L71:
  mov    -0x38(%rbp),%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rax
  mov    -0x44(%rbp),%edx
  mov    %edx,%edi
  movq   %rax,%xmm0
  call   <partialSum@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x38(%rbp),%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rax
  mov    -0x44(%rbp),%edx
  mov    %edx,%edi
  movq   %rax,%xmm0
  call   <extrapolateSum@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm1
  movsd  D15(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <log@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x20(%rbp)
  movsd  -0x20(%rbp),%xmm1
  movsd  -0x28(%rbp),%xmm0
  mov    -0x30(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  addl   $0x1,-0x4c(%rbp)
L5:
  mov    -0x48(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jge    L71
  mov    %rbx,%rsp
  mov    $0x0,%eax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L47
  call   <__stack_chk_fail@plt>
L47:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D20
type_guessed: f64
name: disassemble_data
arguments: data_tag: D36
type_guessed: string
name: disassemble_data
arguments: data_tag: D15
type_guessed: f64
name: disassemble_data
arguments: data_tag: D13
type_guessed: string

tool: D20: 1.25

tool: D36: 	partial sum 	extrapolated sum  	true value

tool: D15: 1

tool: D13: 
	%.10f	%.10f		%.10f 


assistant: ```c
int main() {
  const int N = 10, n = 13;
  int i;
  double xlist[N + 1], val1, val2, val3;
  xlist[N] = 1.25;
  for (i = 0; i < N; i++)
    xlist[i] = 1.0 * i / (N - 1);
  printf("\tpartial sum \textrapolated sum  \ttrue value\n");
  for (i = 0; i < N + 1; i++) {
    val1 = partialSum(xlist[i], n);
    val2 = extrapolateSum(xlist[i], n);
    val3 = log(1 + xlist[i]);
    printf("\n\t%.10f\t%.10f\t\t%.10f \n", val1, val2, val3);
  }
}
```