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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  movl   $0x0,-0x7c(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x70(%rbp)
  lea    -0x70(%rbp),%rdx
  lea    -0x7c(%rbp),%rax
  mov    %rax,%rsi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x7c(%rbp),%eax
  add    %eax,%eax
  mov    %eax,%edx
  sub    $0x1,%rdx
  mov    %rdx,-0x50(%rbp)
  mov    %eax,%edx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  mov    %eax,%edx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  mov    %eax,%eax
  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
L17:
  cmp    %rdx,%rsp
  je     L135
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L17
L135:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L82
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L82:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x48(%rbp)
  movsd  D71(%rip),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  movsd  D84(%rip),%xmm0
  movsd  %xmm0,-0x60(%rbp)
  movl   $0x0,-0x78(%rbp)
  jmp    L91
L119:
  mov    -0x7c(%rbp),%edx
  mov    -0x78(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rax,%rdx
  mov    -0x78(%rbp),%eax
  lea    0x0(,%rax,8),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    %rax,%rsi
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x7c(%rbp),%edx
  mov    -0x78(%rbp),%eax
  add    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,%edx
  movsd  (%rax,%rdx,8),%xmm1
  movsd  -0x68(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L117
  mov    -0x7c(%rbp),%edx
  mov    -0x78(%rbp),%eax
  add    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,%edx
  movsd  (%rax,%rdx,8),%xmm0
  movsd  %xmm0,-0x68(%rbp)
L117:
  addl   $0x1,-0x78(%rbp)
L91:
  mov    -0x7c(%rbp),%eax
  cmp    %eax,-0x78(%rbp)
  jb     L119
  movsd  -0x68(%rbp),%xmm0
  movq   D48(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  jmp    L142
L147:
  movsd  -0x68(%rbp),%xmm0
  addsd  -0x60(%rbp),%xmm0
  movsd  D79(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movl   $0x0,-0x74(%rbp)
  jmp    L125
L69:
  mov    -0x48(%rbp),%rax
  mov    -0x74(%rbp),%edx
  movsd  (%rax,%rdx,8),%xmm0
  mov    -0x7c(%rbp),%edx
  mov    -0x74(%rbp),%eax
  add    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,%edx
  movsd  (%rax,%rdx,8),%xmm1
  addsd  -0x40(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movsd  -0x58(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  addl   $0x1,-0x74(%rbp)
L125:
  mov    -0x7c(%rbp),%eax
  cmp    %eax,-0x74(%rbp)
  jb     L69
  movsd  -0x70(%rbp),%xmm1
  movsd  -0x58(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L104
  movsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  jmp    L142
L104:
  movsd  -0x70(%rbp),%xmm0
  comisd -0x58(%rbp),%xmm0
  ja     L103
  jmp    L61
L103:
  movsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x60(%rbp)
L142:
  movsd  -0x60(%rbp),%xmm0
  subsd  -0x68(%rbp),%xmm0
  comisd D40(%rip),%xmm0
  ja     L147
L61:
  movsd  -0x68(%rbp),%xmm0
  addsd  -0x60(%rbp),%xmm0
  movsd  D79(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L16
  call   <__stack_chk_fail@plt>
L16:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_label: D13
type_infered: string
name: parse_data
arguments: data_label: D71
type_infered: f64
name: parse_data
arguments: data_label: D84
type_infered: f64
name: parse_data
arguments: data_label: D76
type_infered: string
name: parse_data
arguments: data_label: D48
type_infered: f32[2]
name: parse_data
arguments: data_label: D79
type_infered: f64
name: parse_data
arguments: data_label: D40
type_infered: f64
name: parse_data
arguments: data_label: D31
type_infered: string

tool: D13: %u %lf

tool: D71: 100000000

tool: D84: 1001000

tool: D76: %lf %lf

tool: {"D48": [0.0,-0.0]}

tool: D79: 2

tool: D40: 1e-09

tool: D31: %.10lf


assistant: ```c
int main() {
  unsigned int n = 0;
  double t = 0.0;
  scanf("%u %lf", &n, &t);
  double arr[n << 1U];
  double min = 100000000.0, max = 1001000.0;
  for (unsigned int i = 0; i < n; i++) {
    scanf("%lf %lf", arr + i, arr + (n + i));
    if (arr[n + i] < min)
      min = arr[n + i];
  }
  min = -min;
  while (max - min > 0.000000001) {
    double mid = (min + max) / 2.0;
    double sum = 0.0;
    for (unsigned int i = 0; i < n; i++)
      sum += arr[i] / (arr[n + i] + mid);
    if (sum > t)
      min = mid;
    else if (sum < t)
      max = mid;
    else
      break;
  }
  printf("%.10lf\n", (min + max) / 2.0);
  return 0;
}
```