user: 请将以下的汇编代码转换成C语言代码:

```asm
<paw_triang_matrix_inverse>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  lea    D29(%rip),%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %esi,%ebp
  mov    %r13,%rsi
  push   %rbx
  mov    %rcx,%rbx
  sub    $0x8,%rsp
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L82
  test   %ebp,%ebp
  jle    L85
  movslq %ebp,%rdi
  xor    %ecx,%ecx
  lea    0x0(,%rdi,8),%r8
L185:
  mov    (%r14,%rcx,1),%rsi
  xor    %eax,%eax
L2:
  movsd  (%rsi,%rax,8),%xmm0
  mov    (%rbx,%rax,8),%rdx
  add    $0x1,%rax
  movsd  %xmm0,(%rdx,%rcx,1)
  cmp    %rax,%rdi
  jne    L2
  add    $0x8,%rcx
  cmp    %rcx,%r8
  jne    L185
L18:
  mov    (%rbx),%rax
  movsd  D28(%rip),%xmm3
  movapd %xmm3,%xmm0
  divsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  cmp    $0x1,%ebp
  jle    L85
  xor    %r11d,%r11d
  mov    %r12,%r15
  pxor   %xmm2,%xmm2
  mov    $0x2,%r9d
  mov    $0x8,%edi
  mov    $0x1,%r14d
  mov    %r11,%r12
  xchg   %ax,%ax
L73:
  lea    -0x8(%rdi),%r8
  cmp    %r12d,%r14d
  jle    L143
  mov    (%rbx,%rdi,1),%r10
  movslq %r14d,%rcx
  nopl   0x0(%rax)
L155:
  mov    (%rbx,%rcx,8),%rsi
  lea    0x0(,%rcx,8),%r11
  mov    %r12,%rax
  movapd %xmm2,%xmm1
  nopl   0x0(%rax,%rax,1)
L71:
  mov    (%rbx,%rax,8),%rdx
  movsd  (%rdx,%r8,1),%xmm0
  mulsd  (%rsi,%rax,8),%xmm0
  add    $0x1,%rax
  subsd  %xmm0,%xmm1
  cmp    %eax,%ecx
  jg     L71
  add    $0x1,%rcx
  divsd  (%rsi,%r11,1),%xmm1
  movsd  %xmm1,(%rsi,%r8,1)
  cmp    %ecx,%ebp
  jg     L155
L84:
  add    %rdi,%r10
  add    $0x1,%r14d
  movapd %xmm3,%xmm0
  add    $0x1,%r12
  divsd  (%r10),%xmm0
  add    $0x8,%rdi
  movsd  %xmm0,(%r10)
  add    $0x1,%r9
  cmp    %r14d,%ebp
  jne    L73
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L152
  movslq %ebp,%r8
  xor    %ecx,%ecx
  mov    $0x1,%edi
L90:
  mov    (%rbx,%rcx,1),%rsi
  mov    %rdi,%rax
  nopw   0x0(%rax,%rax,1)
L140:
  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     L140
  add    $0x1,%rdi
  add    $0x8,%rcx
  cmp    %rdi,%r8
  jne    L90
L152:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L143:
  mov    (%rbx,%rdi,1),%r10
  movapd %xmm2,%xmm0
  movslq %r9d,%rcx
  divsd  (%r10,%rdi,1),%xmm0
  movsd  %xmm0,-0x8(%r10,%rdi,1)
  cmp    %r9d,%ebp
  jg     L155
  jmp    L84
L82:
  lea    D15(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L38
  test   %ebp,%ebp
  jle    L85
  movslq %ebp,%rsi
  xor    %edx,%edx
  lea    0x0(,%rsi,8),%rdi
L118:
  xor    %eax,%eax
  nopl   (%rax)
L117:
  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    L117
  add    $0x8,%rdx
  cmp    %rdx,%rdi
  jne    L118
  jmp    L18
L38:
  lea    D20(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  test   %ebp,%ebp
  jg     L18
L85:
  add    $0x8,%rsp
  mov    %r13,%rsi
  mov    %r12,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <strcmp@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D29
type_guessed: string
name: retrieve_data
arguments: data_label: D28
type_guessed: f64
name: retrieve_data
arguments: data_label: D15
type_guessed: string
name: retrieve_data
arguments: data_label: D20
type_guessed: string

tool: D29: u

tool: D28: 1

tool: D15: l

tool: D20: 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;
      }
    }
  }
}
```