user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<cholsol>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %rsi,%r13
  mov    %edx,0x24(%rsp)
  test   %edx,%edx
  jle    L178
  lea    0x1(%rdx),%esi
  mov    %esi,0x20(%rsp)
  movslq %edx,%rbx
  shl    $0x3,%rbx
  lea    (%rdi,%rbx,1),%r12
  mov    %edx,%eax
  mov    %rax,0x18(%rsp)
  lea    0x8(%rbx),%rax
  mov    %rax,0x8(%rsp)
  mov    %rdi,%rbp
  mov    $0x0,%eax
  mov    $0x0,%r14d
  mov    %r13,0x28(%rsp)
  mov    %eax,%r13d
  jmp    L95
L130:
  movsd  (%r12,%r9,1),%xmm1
  test   %r8d,%r8d
  jle    L106
  mov    %rbp,%rax
  mov    $0x0,%edx
L203:
  movsd  (%rax),%xmm0
  mulsd  0x8(%rax,%rdi,8),%xmm0
  subsd  %xmm0,%xmm1
  mov    %edx,%ecx
  add    $0x1,%edx
  add    %rbx,%rax
  cmp    %esi,%ecx
  jne    L203
L106:
  add    %rbx,%r9
  add    0x8(%rsp),%r10
  add    $0x1,%rdi
  mov    %r8d,%esi
L206:
  divsd  (%r10),%xmm1
  movsd  %xmm1,(%r15,%r9,1)
  lea    0x1(%rsi),%r8d
  cmp    %r11d,%r8d
  jne    L130
  movslq %r13d,%rax
  mov    0x10(%rsp),%rsi
  lea    (%rsi,%rax,8),%r15
  movsd  (%r15),%xmm1
  mov    %rbp,%rdx
  mov    $0x0,%eax
L139:
  movsd  (%rdx),%xmm0
  mulsd  %xmm0,%xmm0
  subsd  %xmm0,%xmm1
  add    $0x1,%eax
  add    %rbx,%rdx
  cmp    %r11d,%eax
  jne    L139
L101:
  comisd D3(%rip),%xmm1
  jb     L83
  pxor   %xmm2,%xmm2
  ucomisd %xmm1,%xmm2
  ja     L32
  sqrtsd %xmm1,%xmm1
L21:
  movsd  %xmm1,(%r15)
  add    $0x1,%r14
  add    0x20(%rsp),%r13d
  add    $0x8,%rbp
  add    $0x8,%r12
  cmp    0x18(%rsp),%r14
  je     L229
L95:
  mov    %r14d,%r11d
  test   %r14d,%r14d
  jle    L195
  mov    %rbp,%r15
  movsd  0x0(%rbp),%xmm1
  mov    %r14,%rdi
  neg    %rdi
  mov    0x10(%rsp),%r10
  mov    $0x0,%r9d
  mov    $0x0,%esi
  jmp    L206
L32:
  movapd %xmm1,%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  jmp    L21
L229:
  mov    0x28(%rsp),%r13
L178:
  movsd  0x0(%r13),%xmm0
  mov    0x10(%rsp),%rax
  divsd  (%rax),%xmm0
  movsd  %xmm0,0x0(%r13)
  mov    0x24(%rsp),%r11d
  cmp    $0x1,%r11d
  jle    L200
  lea    0x8(%r13),%rcx
  movslq %r11d,%rsi
  lea    0x8(,%rsi,8),%r10
  shl    $0x3,%rsi
  lea    (%rax,%rsi,1),%r8
  lea    0x8(%rax),%r9
  mov    $0x1,%edi
  jmp    L157
L171:
  mov    %r13,%rax
  mov    %r9,%rdx
  pxor   %xmm1,%xmm1
L11:
  movsd  (%rdx),%xmm0
  mulsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  add    %rsi,%rdx
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L11
L71:
  movsd  (%rcx),%xmm0
  subsd  %xmm1,%xmm0
  divsd  0x8(%r8),%xmm0
  movsd  %xmm0,(%rcx)
  lea    0x1(%rdi),%eax
  add    $0x8,%rcx
  add    %r10,%r8
  add    $0x8,%r9
  cmp    %eax,%r11d
  je     L152
  mov    %eax,%edi
L157:
  pxor   %xmm1,%xmm1
  test   %edi,%edi
  jg     L171
  jmp    L71
L200:
  mov    0x24(%rsp),%esi
  movslq %esi,%rax
  lea    -0x8(%r13,%rax,8),%rdx
  mov    %esi,%eax
  imul   %esi,%eax
  lea    -0x1(%rax),%eax
  cltq
  movsd  (%rdx),%xmm0
  mov    0x10(%rsp),%rsi
  divsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,(%rdx)
  mov    $0x0,%eax
  jmp    L228
L67:
  pxor   %xmm1,%xmm1
  jmp    L125
L83:
  mov    $0x1,%eax
L228:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L152:
  lea    -0x10(%r13,%r10,1),%rdx
  imul   %edi,%eax
  add    %edi,%eax
  cltq
  movsd  (%rdx),%xmm0
  mov    0x10(%rsp),%rbx
  divsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,(%rdx)
  lea    -0x1(%rdi),%esi
  movslq %esi,%rcx
  mov    0x24(%rsp),%eax
  mov    %eax,%edx
  not    %edx
  movslq %edx,%r9
  shl    $0x3,%r9
  mov    %eax,%edx
  imul   %eax,%esi
  movslq %esi,%rax
  add    %rcx,%rax
  lea    (%rbx,%rax,8),%r8
  mov    %rbx,%r11
L133:
  cmp    %edi,%edx
  jle    L67
  movslq %edi,%rax
  movslq %esi,%r10
  lea    (%r11,%r10,8),%r10
  pxor   %xmm1,%xmm1
L47:
  movsd  (%r10,%rax,8),%xmm0
  mulsd  0x0(%r13,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %eax,%edx
  jg     L47
L125:
  movsd  0x0(%r13,%rcx,8),%xmm0
  subsd  %xmm1,%xmm0
  divsd  (%r8),%xmm0
  movsd  %xmm0,0x0(%r13,%rcx,8)
  sub    $0x1,%rcx
  sub    $0x1,%edi
  add    %r9,%r8
  sub    %edx,%esi
  test   %ecx,%ecx
  jns    L133
  mov    $0x0,%eax
  jmp    L228
L195:
  movslq %r13d,%rax
  mov    0x10(%rsp),%rsi
  lea    (%rsi,%rax,8),%r15
  movsd  (%r15),%xmm1
  jmp    L101
```

tool_calls: name: disassemble_data
arguments: tag: D3
data_type: f64

tool: D3: 0

assistant: ```c
int cholsol(double *A, double *b, int n) {
  int i, j, k;
  double sum;
  for (i = 0; i < n; ++i) {
    for (j = 0; j < i; ++j) {
      sum = A[i + n * j];
      for (k = 0; k < j; ++k)
        sum -= A[i + n * k] * A[j + n * k];
      A[i + n * j] = sum / A[j + n * j];
    }
    sum = A[i + n * i];
    for (k = 0; k < i; ++k)
      sum -= A[i + n * k] * A[i + n * k];
    if (sum >= 0.0)
      A[i + n * i] = sqrt(sum);
    else
      return 1;
  }
  b[0] = b[0] / A[0];
  for (i = 1; i < n; ++i) {
    sum = 0.;
    for (k = 0; k < i; ++k)
      sum += A[i + n * k] * b[k];
    b[i] = (b[i] - sum) / A[i + n * i];
  }
  b[n - 1] = b[n - 1] / A[n - 1 + n * (n - 1)];
  for (i = n - 2; i >= 0; --i) {
    sum = 0.;
    for (k = i + 1; k < n; ++k)
      sum += A[n * i + k] * b[k];
    b[i] = (b[i] - sum) / A[n * i + i];
  }
  return 0;
}
```