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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  lea    -0x3000(%rsp),%rax
  cmp    $0x2,%edi
  je     L160
L159:
  cmp    %rax,%rsp
  je     L82
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L159
L160:
  mov    0x8(%rsi),%rdi
  call   <atoi@plt>
  mov    %eax,%ebx
  cltq
  shl    $0x3,%rax
  lea    0xf(%rax),%rdx
  mov    %rdx,%rsi
  and    $0xfffffffffffffff0,%rsi
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%rcx
  sub    %rdx,%rcx
L169:
  cmp    %rcx,%rsp
  je     L60
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L169
L60:
  mov    %rsi,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L33
  orq    $0x0,-0x8(%rsp,%rdx,1)
L33:
  mov    %rsp,%r12
  add    $0xf,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L134:
  cmp    %rdx,%rsp
  je     L18
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L134
L18:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L117
  orq    $0x0,-0x8(%rsp,%rax,1)
L117:
  mov    %rsp,%r13
  test   %ebx,%ebx
  jle    L145
  jmp    L100
L144:
  pxor   %xmm2,%xmm2
  movapd %xmm2,%xmm0
  jmp    L7
L182:
  call   <sqrt@plt>
  jmp    L39
L82:
  sub    $0xe80,%rsp
  orq    $0x0,0xe78(%rsp)
  mov    %rsp,%r12
  lea    -0x3000(%rsp),%rax
L125:
  cmp    %rax,%rsp
  je     L94
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L125
L94:
  sub    $0xe80,%rsp
  orq    $0x0,0xe78(%rsp)
  mov    %rsp,%r13
  mov    $0x7d0,%ebx
L100:
  mov    $0x0,%eax
  movsd  D14(%rip),%xmm0
L77:
  movsd  %xmm0,(%r12,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L77
L145:
  mov    $0xa,%r14d
L106:
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %ebx,%edi
  call   <eval_AtA_times_u@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %ebx,%edi
  call   <eval_AtA_times_u@plt>
  sub    $0x1,%r14d
  jne    L106
  test   %ebx,%ebx
  jle    L144
  mov    %ebx,%ebx
  mov    $0x0,%eax
  pxor   %xmm2,%xmm2
  movapd %xmm2,%xmm0
L171:
  movsd  0x0(%r13,%rax,8),%xmm1
  movapd %xmm1,%xmm3
  mulsd  (%r12,%rax,8),%xmm3
  addsd  %xmm3,%xmm0
  mulsd  %xmm1,%xmm1
  addsd  %xmm1,%xmm2
  add    $0x1,%rax
  cmp    %rbx,%rax
  jne    L171
L7:
  divsd  %xmm2,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L182
  sqrtsd %xmm0,%xmm0
L39:
  lea    D5(%rip),%rdi
  call   <printf@plt>
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L70
  mov    $0x0,%eax
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
L70:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D14
datatype: byte[8]
name: retrieve_data
arguments: data_label: D5
datatype: string

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

tool: D5: %0.9f


assistant: ```c
int main(int argc, char *argv[]) {
  int i;
  const int N = ((argc == 2) ? atoi(argv[1]) : 2000);
  double u[N], v[N], vBv, vv;
  for (i = 0; i < N; i++)
    u[i] = 1;
  for (i = 0; i < 10; i++) {
    eval_AtA_times_u(N, u, v);
    eval_AtA_times_u(N, v, u);
  }
  vBv = vv = 0;
  for (i = 0; i < N; i++) {
    vBv += u[i] * v[i];
    vv += v[i] * v[i];
  }
  printf("%0.9f\n", sqrt(vBv / vv));
  return 0;
}
```