user: 下面的汇编指令对应的C源代码是什么：

```asm
<ti_linregslope>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  cvttsd2si (%rdx),%r13d
  mov    $0x1,%eax
  test   %r13d,%r13d
  jle    L54
  mov    %edi,%r12d
  mov    %rdx,%r14
  mov    %rcx,%r15
  mov    (%rsi),%rbx
  mov    (%rcx),%rbp
  mov    %rdx,%rdi
  mov    $0x0,%eax
  call   <ti_linregslope_start@plt>
  mov    %eax,%edx
  mov    $0x0,%eax
  cmp    %r12d,%edx
  jge    L54
  lea    -0x1(%r13),%esi
  test   %esi,%esi
  jle    L28
  lea    -0x2(%r13),%ecx
  add    $0x2,%rcx
  mov    $0x1,%eax
  pxor   %xmm1,%xmm1
  movapd %xmm1,%xmm3
  movapd %xmm1,%xmm4
  movapd %xmm1,%xmm5
L37:
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  %xmm0,%xmm5
  mov    %eax,%edx
  imul   %eax,%edx
  pxor   %xmm2,%xmm2
  cvtsi2sd %edx,%xmm2
  addsd  %xmm2,%xmm4
  movsd  -0x8(%rbx,%rax,8),%xmm2
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  addsd  %xmm2,%xmm3
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L37
L3:
  pxor   %xmm6,%xmm6
  cvtsi2sd %r13d,%xmm6
  addsd  %xmm6,%xmm5
  mov    %r13d,%eax
  imul   %r13d,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  %xmm4,%xmm0
  mulsd  %xmm6,%xmm0
  movapd %xmm5,%xmm2
  mulsd  %xmm5,%xmm2
  subsd  %xmm2,%xmm0
  movsd  D0(%rip),%xmm4
  divsd  %xmm0,%xmm4
  cmp    %esi,%r12d
  jle    L10
  mov    %r12d,%ecx
  sub    %r13d,%ecx
  lea    0x1(%rcx),%rdi
  movslq %r13d,%r13
  lea    (%rbx,%r13,8),%rsi
  mov    $0x0,%eax
L42:
  movsd  -0x8(%rsi,%rax,8),%xmm0
  movapd %xmm6,%xmm2
  mulsd  %xmm0,%xmm2
  addsd  %xmm1,%xmm2
  addsd  %xmm3,%xmm0
  movapd %xmm6,%xmm1
  mulsd  %xmm2,%xmm1
  movapd %xmm5,%xmm3
  mulsd  %xmm0,%xmm3
  subsd  %xmm3,%xmm1
  mulsd  %xmm4,%xmm1
  movsd  %xmm1,0x0(%rbp,%rax,8)
  movapd %xmm2,%xmm1
  subsd  %xmm0,%xmm1
  movapd %xmm0,%xmm3
  subsd  (%rbx,%rax,8),%xmm3
  mov    %rax,%rdx
  add    $0x1,%rax
  cmp    %rcx,%rdx
  jne    L42
  lea    0x0(%rbp,%rdi,8),%rbp
L10:
  sub    (%r15),%rbp
  sar    $0x3,%rbp
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <ti_linregslope_start@plt>
  sub    %eax,%r12d
  movslq %r12d,%r12
  cmp    %rbp,%r12
  sete   %dil
  movzbl %dil,%edi
  mov    $0x0,%eax
  call   <assert@plt>
  mov    $0x0,%eax
L54:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L28:
  pxor   %xmm1,%xmm1
  movapd %xmm1,%xmm3
  movapd %xmm1,%xmm4
  movapd %xmm1,%xmm5
  jmp    L3
```

tool_calls: name: unpack_data
arguments: data_tag: D0
type_infered: f64

tool: D0: 1

assistant: ```c
int ti_linregslope(int size, double const *const *inputs, double const *options, double *const *outputs) {
  const double *input = inputs[0];
  const int period = (int)options[0];
  double *output = outputs[0];
  if (period < 1)
    return 1;
  if (size <= ti_linregslope_start(options))
    return 0;
  do {
    double x = 0;
    double x2 = 0;
    double y = 0;
    double xy = 0;
    do {
    } while (0);
    int i;
    for (i = 0; i < (period)-1; ++i) {
      x += i + 1;
      x2 += (i + 1) * (i + 1);
      xy += (input)[i] * (i + 1);
      y += (input)[i];
    }
    x += (period);
    x2 += (period) * (period);
    const double bd = 1.0 / ((period)*x2 - x * x);
    for (i = (period)-1; i < (size); ++i) {
      xy += (input)[i] * (period);
      y += (input)[i];
      const double b = ((period)*xy - x * y) * bd;
      do {
        *output++ = b;
      } while (0);
      xy -= y;
      y -= (input)[i - (period) + 1];
    }
  } while (0);
  assert(output - outputs[0] == size - ti_linregslope_start(options));
  return 0;
}
```