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

```asm
<gauss_make_triangular>:
  endbr64
  push   %r15
  movslq %edx,%rax
  push   %r14
  lea    -0x1(%rax),%edx
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %edx,-0x4(%rsi,%rax,4)
  mov    %rsi,0x78(%rsp)
  mov    %rax,0x80(%rsp)
  mov    %edx,0x9c(%rsp)
  test   %eax,%eax
  jle    L18
  mov    %rdi,%r14
  mov    %rax,%r13
  mov    %edx,0x48(%rsp)
  lea    0x0(,%rax,8),%r8
  shl    $0x4,%rax
  lea    0x8(%r8),%rdi
  lea    0x8(%r14),%r15
  mov    %r13d,%ebp
  mov    %rax,0xa0(%rsp)
  lea    (%r8,%r14,1),%rax
  mov    %r14,%rdx
  mov    %r15,%rcx
  mov    %rax,0x90(%rsp)
  lea    0x10(%r14),%rax
  mov    %rdi,0x88(%rsp)
  movq   $0x0,0x70(%rsp)
  movq   $0x10,0x28(%rsp)
  movq   $0x1,0x40(%rsp)
  movq   $0x0,0x30(%rsp)
  mov    %rax,0xa8(%rsp)
  xchg   %ax,%ax
L73:
  mov    0x40(%rsp),%rsi
  mov    0x30(%rsp),%rdi
  mov    %ebp,%eax
  sub    %r13d,%eax
  mov    %eax,0x3c(%rsp)
  lea    -0x8(%rcx),%rax
  mov    %edi,0x54(%rsp)
  mov    %edi,0x10(%rsp)
  mov    %esi,0x50(%rsp)
  mov    %esi,0x4c(%rsp)
  mov    %esi,0x38(%rsp)
  cmp    %esi,%r13d
  jle    L92
  movslq %ebp,%rax
  mov    %ebp,0x98(%rsp)
  mov    %edi,%r12d
  mov    %ebp,%r15d
  mov    %rax,0x68(%rsp)
  add    %rdi,%rax
  mov    %rdx,0x58(%rsp)
  lea    (%r14,%rax,8),%r10
  mov    %r8,0x18(%rsp)
  mov    %r10,%rbx
  mov    %rcx,0x60(%rsp)
  mov    %r14,0x20(%rsp)
  mov    %esi,%r14d
  nopw   0x0(%rax,%rax,1)
L257:
  movsd  (%rbx),%xmm0
  mov    %r13d,%ebp
  imul   %r12d,%ebp
  call   <fabs@plt>
  mov    0x10(%rsp),%edx
  mov    %rax,(%rsp)
  lea    0x0(%rbp,%rdx,1),%eax
  mov    0x20(%rsp),%rdx
  cltq
  lea    (%rdx,%rax,8),%rcx
  movsd  (%rcx),%xmm0
  mov    %rcx,0x8(%rsp)
  call   <fabs@plt>
  mov    0x8(%rsp),%rcx
  cmp    %rax,(%rsp)
  cmovg  %r15d,%ebp
  cmovg  %r14d,%r12d
  cmovg  %rbx,%rcx
  add    $0x1,%r14d
  add    0x18(%rsp),%rbx
  add    %r13d,%r15d
  cmp    %r14d,%r13d
  jne    L257
  mov    %rcx,%rbx
  pxor   %xmm5,%xmm5
  mov    0x60(%rsp),%rcx
  mov    %ebp,%r15d
  movsd  (%rbx),%xmm1
  mov    0x78(%rsp),%rax
  movsd  -0x8(%rcx),%xmm0
  mov    0x30(%rsp),%rsi
  ucomisd %xmm5,%xmm1
  mov    0x58(%rsp),%rdx
  mov    0x18(%rsp),%r8
  mov    0x98(%rsp),%ebp
  mov    0x20(%rsp),%r14
  mov    %r12d,(%rax,%rsi,4)
  movsd  %xmm0,(%rbx)
  movsd  %xmm1,-0x8(%rcx)
  jp     L72
  je     L288
L72:
  cmp    0x38(%rsp),%r13d
  jle    L18
  mov    0x9c(%rsp),%ebx
  sub    0x50(%rsp),%ebx
  cmp    $0x2,%ebx
  jbe    L222
  mov    0x48(%rsp),%edi
  mov    0x68(%rsp),%rax
  movapd %xmm1,%xmm2
  xor    %r9d,%r9d
  add    0x30(%rsp),%rax
  mov    0xa0(%rsp),%rsi
  unpcklpd %xmm2,%xmm2
  shr    %edi
  lea    (%r14,%rax,8),%rax
  nopw   0x0(%rax,%rax,1)
L269:
  movsd  (%rax),%xmm0
  add    $0x1,%r9d
  movhpd (%rax,%r8,1),%xmm0
  xorpd  D28(%rip),%xmm0
  divpd  %xmm2,%xmm0
  movlpd %xmm0,(%rax)
  movhpd %xmm0,(%rax,%r8,1)
  add    %rsi,%rax
  cmp    %edi,%r9d
  jne    L269
  mov    0x48(%rsp),%esi
  mov    0x4c(%rsp),%eax
  mov    %esi,%edi
  and    $0xfffffffe,%edi
  add    %edi,%eax
  cmp    %esi,%edi
  je     L188
  imul   %r13d,%eax
  add    0x10(%rsp),%eax
  cltq
  lea    (%r14,%rax,8),%rax
  movsd  (%rax),%xmm0
  xorpd  D0(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
L188:
  cmp    0x30(%rsp),%r12d
  jne    L112
L246:
  mov    0x28(%rsp),%rax
  mov    0x4c(%rsp),%r11d
  lea    (%rdx,%r8,1),%r12
  mov    0x90(%rsp),%rsi
  mov    0x50(%rsp),%r9d
  mov    %r12,0x10(%rsp)
  cmp    %r11d,%r13d
  lea    -0x8(%rax,%rsi,1),%rax
  mov    $0x1,%esi
  cmovg  0x48(%rsp),%esi
  mov    %esi,%r15d
  shr    %esi
  mov    %r15d,%ebx
  lea    -0x1(%rsi),%edi
  mov    0x3c(%rsp),%esi
  mov    %r15d,0x8(%rsp)
  and    $0xfffffffe,%ebx
  add    $0x1,%rdi
  add    %ebx,%r9d
  mov    %ebx,(%rsp)
  shl    $0x4,%rdi
  add    %r9d,%esi
  movslq %esi,%rsi
  lea    (%r14,%rsi,8),%r10
  mov    %r12,%rsi
  mov    %r13d,%r12d
  sub    0x54(%rsp),%r12d
L229:
  cmp    $0x2,%r12d
  setne  %r15b
  cmp    0x38(%rsp),%r13d
  setg   %bl
  test   %bl,%r15b
  je     L136
  mov    %rax,%rbx
  sub    %r14,%rbx
  cmp    0x28(%rsp),%rbx
  je     L136
  movsd  -0x8(%rax),%xmm1
  xor    %ebx,%ebx
  unpcklpd %xmm1,%xmm1
  nopl   (%rax)
L22:
  movupd (%rcx,%rbx,1),%xmm0
  movupd (%rax,%rbx,1),%xmm3
  mulpd  %xmm1,%xmm0
  addpd  %xmm3,%xmm0
  movups %xmm0,(%rax,%rbx,1)
  add    $0x10,%rbx
  cmp    %rdi,%rbx
  jne    L22
  mov    0x8(%rsp),%r15d
  cmp    %r15d,(%rsp)
  je     L19
  lea    0x0(%rbp,%r9,1),%ebx
  movsd  (%r10),%xmm0
  mulsd  -0x8(%rax),%xmm0
  movslq %ebx,%rbx
  lea    (%r14,%rbx,8),%rbx
  addsd  (%rbx),%xmm0
  movsd  %xmm0,(%rbx)
L19:
  add    $0x1,%r11d
  add    %r13d,%ebp
  add    %r8,%rsi
  add    %r8,%rax
  cmp    %r11d,%r13d
  jg     L229
  mov    0x88(%rsp),%rdx
  mov    0x3c(%rsp),%eax
  add    %rdx,0x28(%rsp)
  mov    0x80(%rsp),%rdi
  add    %rdx,%rcx
  addq   $0x1,0x30(%rsp)
  mov    0x10(%rsp),%rdx
  lea    (%rax,%r13,2),%ebp
  addq   $0x1,0x40(%rsp)
  subl   $0x1,0x48(%rsp)
  add    %rdi,0x70(%rsp)
  jmp    L73
  cs nopw 0x0(%rax,%rax,1)
L136:
  mov    0x40(%rsp),%rbx
  nopl   (%rax)
L80:
  movsd  (%rdx,%rbx,8),%xmm0
  mulsd  -0x8(%rax),%xmm0
  addsd  (%rsi,%rbx,8),%xmm0
  movsd  %xmm0,(%rsi,%rbx,8)
  add    $0x1,%rbx
  cmp    %ebx,%r13d
  jg     L80
  jmp    L19
L112:
  mov    0x30(%rsp),%rax
  movslq %r15d,%r11
  mov    0x28(%rsp),%rsi
  lea    0x3(%r11,%rax,1),%rdi
  lea    0x8(%rsi),%r9
  shl    $0x3,%rdi
  lea    -0x8(%rsi),%r10
  lea    -0x10(%rdi),%rax
  cmp    %r9,%rax
  setge  %r9b
  cmp    %r10,%rdi
  setle  %dil
  or     %r9b,%dil
  je     L34
  cmp    $0x1,%ebx
  jbe    L34
  mov    0x48(%rsp),%r9d
  add    %r14,%rax
  xor    %edi,%edi
  shr    %r9d
  shl    $0x4,%r9
  nopl   (%rax)
L144:
  movupd (%rax,%rdi,1),%xmm0
  movupd (%rcx,%rdi,1),%xmm4
  movups %xmm4,(%rax,%rdi,1)
  movups %xmm0,(%rcx,%rdi,1)
  add    $0x10,%rdi
  cmp    %r9,%rdi
  jne    L144
  mov    0x48(%rsp),%esi
  mov    0x4c(%rsp),%eax
  mov    %esi,%edi
  and    $0xfffffffe,%edi
  add    %edi,%eax
  cmp    %esi,%edi
  je     L246
  lea    (%r15,%rax,1),%esi
  add    0x3c(%rsp),%eax
  movslq %esi,%rsi
  cltq
  lea    (%r14,%rsi,8),%rsi
  lea    (%r14,%rax,8),%rax
  movsd  (%rsi),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rsi)
  movsd  %xmm0,(%rax)
  jmp    L246
L222:
  mov    0x68(%rsp),%rax
  mov    0x4c(%rsp),%edi
  add    0x30(%rsp),%rax
  lea    (%r14,%rax,8),%rax
  xchg   %ax,%ax
L292:
  movsd  (%rax),%xmm0
  xorpd  D0(%rip),%xmm0
  add    $0x1,%edi
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    %r8,%rax
  cmp    %edi,%r13d
  jne    L292
  jmp    L188
L92:
  movsd  (%rax),%xmm0
  pxor   %xmm6,%xmm6
  movsd  -0x8(%rcx),%xmm1
  mov    %rdi,%rdx
  mov    0x78(%rsp),%rdi
  ucomisd %xmm6,%xmm0
  mov    %edx,(%rdi,%rdx,4)
  movsd  %xmm1,(%rax)
  movsd  %xmm0,-0x8(%rcx)
  jp     L18
  je     L288
L18:
  mov    $0x1,%eax
L150:
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L34:
  mov    0xa8(%rsp),%rdi
  mov    %ebx,%esi
  add    0x30(%rsp),%rsi
  add    %r11,%rsi
  mov    0x40(%rsp),%rax
  lea    (%rdi,%rsi,8),%rdi
  mov    0x70(%rsp),%rsi
  add    %r11,%rax
  lea    (%r14,%rax,8),%rax
  sub    %r11,%rsi
L71:
  movsd  (%rax),%xmm0
  movsd  (%rax,%rsi,8),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rax,%rsi,8)
  add    $0x8,%rax
  cmp    %rax,%rdi
  jne    L71
  jmp    L246
L288:
  xor    %eax,%eax
  jmp    L150
```

tool_calls: name: read_data
arguments: data_tag: D28
type: byte[16]
name: read_data
arguments: data_tag: D0
type: byte[16]

tool: {"D28": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

tool: {"D0": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
int gauss_make_triangular(double *A, int *p, int n) {
  p[n - 1] = n - 1;
  for (int k = 0; k < n; ++k) {
    int m = k;
    for (int i = k + 1; i < n; ++i)
      if (fabs(A[k + n * i]) > fabs(A[k + n * m]))
        m = i;
    p[k] = m;
    double t1 = A[k + n * m];
    A[k + n * m] = A[k + n * k];
    A[k + n * k] = t1;
    if (t1 != 0) {
      for (int i = k + 1; i < n; ++i)
        A[k + n * i] /= -t1;
      if (k != m)
        for (int i = k + 1; i < n; ++i) {
          double t2 = A[i + n * m];
          A[i + n * m] = A[i + n * k];
          A[i + n * k] = t2;
        }
      for (int j = k + 1; j < n; ++j)
        for (int i = k + 1; i < n; ++i)
          A[i + n * j] += A[k + j * n] * A[i + k * n];
    } else
      return 0;
  }
  return 1;
}
```