user: Converte this assembly snippet into its equivalent C code:

```asm
<dtrsl_>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  mov    %rcx,-0x38(%rbp)
  mov    %r8d,-0x3c(%rbp)
  mov    %r9,-0x48(%rbp)
  mov    -0x2c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  neg    %rax
  add    %rax,-0x28(%rbp)
  subq   $0x8,-0x38(%rbp)
  movl   $0x1,-0x18(%rbp)
  jmp    L39
L55:
  mov    -0x18(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L30
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jne    L30
  mov    -0x48(%rbp),%rax
  mov    -0x18(%rbp),%edx
  mov    %edx,(%rax)
  jmp    L108
L30:
  addl   $0x1,-0x18(%rbp)
L39:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jle    L55
  mov    -0x48(%rbp),%rax
  movl   $0x0,(%rax)
  cmpl   $0x1,-0x3c(%rbp)
  jne    L84
  mov    -0x38(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x38(%rbp),%rax
  add    $0x8,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  cmpl   $0x1,-0x30(%rbp)
  jle    L108
  movl   $0x2,-0x18(%rbp)
  jmp    L19
L101:
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x38(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    -0x18(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rcx
  mov    -0x28(%rbp),%rax
  add    %rax,%rcx
  mov    -0xc(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <ddot_@plt>
  mov    %rax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %rdx,%xmm1
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x18(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x18(%rbp)
L19:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jle    L101
  jmp    L108
L84:
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x30(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  cmpl   $0x1,-0x30(%rbp)
  jle    L108
  movl   $0x2,-0x14(%rbp)
  jmp    L9
L125:
  mov    -0x30(%rbp),%eax
  sub    -0x14(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movq   D7(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x38(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    -0x18(%rbp),%eax
  add    $0x1,%eax
  imul   -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rcx
  mov    -0x28(%rbp),%rax
  lea    (%rcx,%rax,1),%rsi
  mov    -0x8(%rbp),%rcx
  mov    -0x18(%rbp),%eax
  movq   %rcx,%xmm0
  mov    %eax,%edi
  call   <daxpy_@plt>
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x18(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x14(%rbp)
L9:
  mov    -0x14(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jle    L125
L108:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D7
data_type: f32[2]

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

assistant: ```c
void dtrsl_(double *t, int ldt, int n, double *b, int transp, int *info) {
  int t_offset, i2;
  int j, jj;
  double temp;
  t_offset = 1 + ldt;
  t -= t_offset;
  --b;
  for (j = 1; j <= n; ++j) {
    if (t[j + j * ldt] == 0.0) {
      *info = j;
      return;
    }
  }
  *info = 0;
  if (transp == 1) {
    b[1] /= t[ldt + 1];
    if (n > 1) {
      for (j = 2; j <= n; ++j) {
        i2 = j - 1;
        b[j] -= ddot_(i2, &t[j * ldt + 1], &b[1]);
        b[j] /= t[j + j * ldt];
      }
    }
  } else {
    b[n] /= t[n + n * ldt];
    if (n > 1) {
      for (jj = 2; jj <= n; ++jj) {
        j = n - jj + 1;
        temp = -b[j + 1];
        daxpy_(j, temp, &t[(j + 1) * ldt + 1], &b[1]);
        b[j] /= t[j + j * ldt];
      }
    }
  }
}
```