user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D26(%rip),%r13
  push   %r12
  mov    %r13,%rdi
  lea    D16(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x2c(%rsp),%r14
  movl   $0x1,0x2c(%rsp)
  mov    %r14,%rsi
  movl   $0x0,0x30(%rsp)
  movl   $0x0,0x34(%rsp)
  call   <scanf@plt>
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  je     L9
  nopl   0x0(%rax)
L5:
  test   %eax,%eax
  jle    L26
  movl   $0x0,0xc(%rsp)
  pxor   %xmm4,%xmm4
  xor    %r15d,%r15d
  lea    0x34(%rsp),%rbp
  movaps %xmm4,%xmm2
  movaps %xmm4,%xmm0
  movaps %xmm4,%xmm1
  lea    0x30(%rsp),%rbx
  nopw   0x0(%rax,%rax,1)
L30:
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  movss  %xmm4,0x1c(%rsp)
  add    $0x1,%r15d
  movss  %xmm2,0x18(%rsp)
  movss  %xmm0,0x14(%rsp)
  movss  %xmm1,0x10(%rsp)
  call   <scanf@plt>
  mov    0x30(%rsp),%edx
  pxor   %xmm3,%xmm3
  movss  0x10(%rsp),%xmm1
  mov    0x34(%rsp),%eax
  movss  0x14(%rsp),%xmm0
  cvtsi2ss %edx,%xmm3
  mov    %edx,%esi
  movss  0x18(%rsp),%xmm2
  movss  0x1c(%rsp),%xmm4
  imul   %eax,%esi
  imul   %edx,%edx
  addss  %xmm3,%xmm1
  pxor   %xmm3,%xmm3
  cvtsi2ss %eax,%xmm3
  imul   %eax,%eax
  addss  %xmm3,%xmm0
  pxor   %xmm3,%xmm3
  cvtsi2ss %esi,%xmm3
  addss  %xmm3,%xmm2
  pxor   %xmm3,%xmm3
  cvtsi2ss %edx,%xmm3
  addss  %xmm3,%xmm4
  pxor   %xmm3,%xmm3
  cvtsi2ss %eax,%xmm3
  addss  0xc(%rsp),%xmm3
  mov    0x2c(%rsp),%eax
  movss  %xmm3,0xc(%rsp)
  cmp    %r15d,%eax
  jg     L30
  movaps %xmm1,%xmm6
  movaps %xmm1,%xmm5
  mulss  %xmm1,%xmm6
  mulss  %xmm2,%xmm1
  mulss  %xmm0,%xmm5
  movaps %xmm1,%xmm3
  movaps %xmm0,%xmm1
  mulss  %xmm4,%xmm1
  subss  %xmm3,%xmm1
L10:
  pxor   %xmm3,%xmm3
  movss  %xmm0,0x1c(%rsp)
  cvtsi2ss %eax,%xmm3
  mulss  %xmm3,%xmm2
  mulss  %xmm4,%xmm3
  subss  %xmm5,%xmm2
  subss  %xmm6,%xmm3
  movaps %xmm2,%xmm4
  movss  %xmm2,0x18(%rsp)
  divss  %xmm3,%xmm4
  cvttss2si %xmm3,%edi
  divss  %xmm3,%xmm1
  movss  %xmm4,0x14(%rsp)
  movss  %xmm1,0x10(%rsp)
  call   <sqrt@plt>
  movss  0x1c(%rsp),%xmm0
  pxor   %xmm3,%xmm3
  cvtsi2ssl 0x2c(%rsp),%xmm3
  mulss  0xc(%rsp),%xmm3
  mov    %eax,%ebx
  mulss  %xmm0,%xmm0
  subss  %xmm0,%xmm3
  cvttss2si %xmm3,%edi
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  movss  0x18(%rsp),%xmm2
  movss  0x14(%rsp),%xmm4
  imul   %eax,%ebx
  movss  0x10(%rsp),%xmm1
  lea    D22(%rip),%rdi
  cvtsi2ss %ebx,%xmm0
  divss  %xmm0,%xmm2
  movaps %xmm4,%xmm0
  call   <printf@plt>
  mov    %r14,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jne    L5
L9:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L36
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L26:
  pxor   %xmm1,%xmm1
  movaps %xmm1,%xmm6
  movaps %xmm1,%xmm5
  movss  %xmm1,0xc(%rsp)
  movaps %xmm1,%xmm4
  movaps %xmm1,%xmm2
  movaps %xmm1,%xmm0
  jmp    L10
L36:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D26
datatype: string
name: unpack_data
arguments: tag: D16
datatype: string
name: unpack_data
arguments: tag: D22
datatype: string

tool: D26: %d

tool: D16: %d %d


tool: D22: a = %.2f, b = %.2f, R = %.2f


assistant: ```c
int main() {
  int i, n = 1, x = 0, y = 0;
  float Sx = 0, Sy = 0, Sxy = 0, Sxx = 0, Syy = 0, a = 0, b = 0, r = 0;
  scanf("%d", &n);
  while (n != 0) {
    for (i = 0; i < n; ++i) {
      scanf("%d %d\n", &x, &y);
      Sx = Sx + x;
      Sy = Sy + y;
      Sxy = Sxy + (x * y);
      Sxx = Sxx + (x * x);
      Syy = Syy + (y * y);
    }
    a = (n * Sxy - Sx * Sy) / (n * Sxx - Sx * Sx);
    b = (Sy * Sxx - Sx * Sxy) / (n * Sxx - (Sx * Sx));
    r = (n * Sxy - Sx * Sy) / (sqrt(n * Sxx - (Sx * Sx)) * sqrt(n * Syy - (Sy * Sy)));
    printf("a = %.2f, b = %.2f, R = %.2f\n", a, b, r);
    Sx = 0;
    Sy = 0;
    Sxy = 0;
    Sxx = 0;
    Syy = 0;
    scanf("%d", &n);
  }
  return 0;
}
```