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

```asm
<paw_triang_matrix_inverse>:
  endbr64
  push   %r14
  mov    %rdx,%r14
  push   %r13
  lea    D31(%rip),%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %esi,%ebp
  mov    %r13,%rsi
  push   %rbx
  mov    %rcx,%rbx
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L64
  test   %ebp,%ebp
  jle    L76
  movslq %ebp,%rdi
  xor    %ecx,%ecx
  lea    0x0(,%rdi,8),%r8
L150:
  mov    (%r14,%rcx,1),%rsi
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L94:
  movsd  (%rsi,%rax,8),%xmm0
  mov    (%rbx,%rax,8),%rdx
  add    $0x1,%rax
  movsd  %xmm0,(%rdx,%rcx,1)
  cmp    %rax,%rdi
  jne    L94
  add    $0x8,%rcx
  cmp    %rcx,%r8
  jne    L150
L73:
  movsd  D12(%rip),%xmm3
  mov    $0x1,%r10d
  xor    %r8d,%r8d
  pxor   %xmm2,%xmm2
  nopl   (%rax)
L85:
  mov    (%rbx,%r8,8),%r9
  lea    0x0(,%r8,8),%rcx
  movapd %xmm3,%xmm0
  lea    (%r9,%rcx,1),%rax
  divsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  cmp    %r10d,%ebp
  jle    L168
  mov    %r10,%rdi
  nopl   0x0(%rax)
L199:
  mov    (%rbx,%rdi,8),%rdx
  mov    %edi,%esi
  mov    %r8,%rax
  mov    %r9,%r14
  lea    0x0(,%rdi,8),%r11
  movapd %xmm2,%xmm1
  cmp    %r8d,%edi
  jg     L80
  jmp    L19
  nop
L78:
  mov    (%rbx,%rax,8),%r14
L80:
  movsd  (%r14,%rcx,1),%xmm0
  mulsd  (%rdx,%rax,8),%xmm0
  add    $0x1,%rax
  subsd  %xmm0,%xmm1
  cmp    %eax,%esi
  jg     L78
L19:
  add    $0x1,%rdi
  divsd  (%rdx,%r11,1),%xmm1
  movsd  %xmm1,(%rdx,%rcx,1)
  cmp    %edi,%ebp
  jg     L199
  add    $0x1,%r8
  add    $0x1,%r10
  jmp    L85
L168:
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L137
  mov    $0x1,%edi
  xor    %ecx,%ecx
  cmp    %edi,%ebp
  jle    L137
L9:
  mov    (%rbx,%rcx,1),%rsi
  mov    %rdi,%rax
  nopw   0x0(%rax,%rax,1)
L101:
  mov    (%rbx,%rax,8),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  movq   $0x0,(%rdx)
  cmp    %eax,%ebp
  jg     L101
  add    $0x1,%rdi
  add    $0x8,%rcx
  cmp    %edi,%ebp
  jg     L9
L137:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L64:
  lea    D8(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L66
  test   %ebp,%ebp
  jle    L76
  movslq %ebp,%rsi
  xor    %edx,%edx
  lea    0x0(,%rsi,8),%rdi
L8:
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L107:
  mov    (%r14,%rax,8),%rcx
  movsd  (%rcx,%rdx,1),%xmm0
  mov    (%rbx,%rax,8),%rcx
  add    $0x1,%rax
  movsd  %xmm0,(%rcx,%rdx,1)
  cmp    %rax,%rsi
  jne    L107
  add    $0x8,%rdx
  cmp    %rdx,%rdi
  jne    L8
  jmp    L73
L66:
  lea    D5(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  test   %ebp,%ebp
  jg     L73
L76:
  pop    %rbx
  mov    %r13,%rsi
  pop    %rbp
  mov    %r12,%rdi
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1080 <strcmp@plt>
```

tool_calls: name: disassemble_data
arguments: label: D31
datatype: string
name: disassemble_data
arguments: label: D12
datatype: f64
name: disassemble_data
arguments: label: D8
datatype: string
name: disassemble_data
arguments: label: D5
datatype: string

tool: D31: u

tool: D12: 1

tool: D8: l

tool: D5: unknown matrix type in triang_matrix_inverse


assistant: ```c
void paw_triang_matrix_inverse(char *matrix_type, int N, double **a, double **a_inv) {
  int i;
  int j;
  int k;
  double sum;
  if (strcmp(matrix_type, "u") == 0) {
    for (j = 0; j <= N - 1; j++) {
      for (i = 0; i <= N - 1; i++) {
        a_inv[i][j] = a[j][i];
      }
    }
  } else if (strcmp(matrix_type, "l") == 0) {
    for (j = 0; j <= N - 1; j++) {
      for (i = 0; i <= N - 1; i++) {
        a_inv[i][j] = a[i][j];
      }
    }
  } else {
    printf("unknown matrix type in triang_matrix_inverse\n");
    exit(1);
  }
  for (i = 0; i <= N - 1; i++) {
    a_inv[i][i] = 1.0 / a_inv[i][i];
    for (j = i + 1; j <= N - 1; j++) {
      sum = 0.0;
      for (k = i; k <= j - 1; k++) {
        sum = sum - a_inv[j][k] * a_inv[k][i];
      }
      a_inv[j][i] = sum / a_inv[j][j];
    }
  }
  if (strcmp(matrix_type, "u") == 0) {
    for (i = 0; i <= N - 1; i++) {
      for (j = i + 1; j <= N - 1; j++) {
        a_inv[i][j] = a_inv[j][i];
        a_inv[j][i] = 0.0;
      }
    }
  }
}
```