user: What is the c source code of the assembly code below?

```asm
<unroot>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    -0x2(%rsi),%r13d
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdx,0x38(%rsp)
  mov    %rcx,0x40(%rsp)
  mov    %r8,0x48(%rsp)
  mov    %r9,0x28(%rsp)
  test   %r13d,%r13d
  jle    L440
  mov    (%rdi),%rax
  lea    -0x3(%rsi),%edx
  mov    %edx,0x30(%rsp)
  lea    0x4(%rax,%rdx,4),%rdx
  jmp    L273
  nopl   (%rax)
L521:
  add    $0x4,%rax
  cmp    %rdx,%rax
  je     L363
L273:
  mov    (%rax),%r10d
  test   %r10d,%r10d
  je     L521
  add    $0x58,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L440:
  lea    -0x3(%rsi),%eax
  mov    %eax,0x30(%rsp)
L363:
  mov    0x30(%rsp),%r9d
  test   %r9d,%r9d
  jle    L373
  lea    -0x1(%rbp),%eax
  lea    0x8(%r12),%rbx
  movq   $0x0,0x20(%rsp)
  xor    %r10d,%r10d
  mov    %eax,0x34(%rsp)
  mov    %ebp,%eax
  mov    $0x1,%r11d
  mov    %rbx,0x10(%rsp)
  lea    (%rbx,%rax,8),%rdx
  mov    %r13d,%eax
  movl   $0x0,0xc(%rsp)
  lea    0x10(%r12,%rax,8),%r14
L143:
  mov    %r12,%rax
  xor    %r9d,%r9d
  test   %ebp,%ebp
  js     L152
  nopl   (%rax)
L80:
  mov    (%rax),%rcx
  add    $0x8,%rax
  add    (%rcx,%r10,1),%r9d
  cmp    %rax,%rdx
  jne    L80
L152:
  movslq 0xc(%rsp),%rax
  lea    0x1(%rax),%r15d
  cmp    0x34(%rsp),%r9d
  je     L433
  lea    0x4(%r10),%rax
  mov    %r15d,%ebx
  mov    %rax,0x18(%rsp)
  cmp    %r15d,%r13d
  jle    L266
  nopl   (%rax)
L536:
  mov    %r12,%rcx
  xor    %esi,%esi
  test   %ebp,%ebp
  js     L160
  nopl   (%rax)
L318:
  mov    (%rcx),%rdi
  add    $0x8,%rcx
  add    (%rdi,%rax,1),%esi
  cmp    %rcx,%rdx
  jne    L318
  mov    %ebp,%ecx
  sub    %esi,%ecx
L74:
  cmp    %ecx,%r9d
  je     L645
L418:
  add    $0x1,%ebx
  add    $0x4,%rax
  cmp    %r13d,%ebx
  jne    L536
L266:
  addq   $0x1,0x20(%rsp)
  mov    0x18(%rsp),%r10
  cmp    %r15d,0x30(%rsp)
  je     L373
  mov    %r15d,0xc(%rsp)
  jmp    L143
  nopl   0x0(%rax)
L645:
  cmp    $0x1,%ebp
  jle    L562
  mov    0x10(%rsp),%rsi
  xor    %edi,%edi
  nopl   0x0(%rax)
L118:
  mov    (%rsi),%r8
  mov    (%r8,%r10,1),%ecx
  sub    (%r8,%rax,1),%ecx
  mov    %ecx,%r8d
  neg    %r8d
  cmovns %r8d,%ecx
  cmp    $0x1,%ecx
  cmovne %r11d,%edi
  add    $0x8,%rsi
  cmp    %rsi,%r14
  jne    L118
  test   %edi,%edi
  jne    L418
L562:
  mov    0x38(%rsp),%rax
  test   %rax,%rax
  je     L674
  mov    0x20(%rsp),%rdx
  movsd  (%rax,%rdx,8),%xmm0
L374:
  cmpq   $0x0,0xa0(%rsp)
  je     L42
L208:
  test   %ebp,%ebp
  jle    L368
  movslq 0xc(%rsp),%rax
  mov    $0xffffffff,%esi
  lea    0x0(,%rax,4),%rdi
L549:
  mov    0x28(%rsp),%r9
  mov    $0x1,%eax
  xor    %r14d,%r14d
  xor    %r8d,%r8d
  mov    0x90(%rsp),%r10
  mov    0x98(%rsp),%r11
  jmp    L327
L12:
  movslq %r8d,%rcx
  add    $0x1,%rax
  add    $0x1,%r8d
  mov    %rdx,(%r10,%rcx,8)
  cmp    %eax,%ebp
  jl     L501
L327:
  mov    (%r12,%rax,8),%rcx
  mov    (%r9,%rax,8),%rdx
  mov    (%rcx,%rdi,1),%ecx
  test   %ecx,%ecx
  je     L12
  movslq %r14d,%rcx
  add    $0x1,%rax
  add    $0x1,%r14d
  mov    %rdx,(%r11,%rcx,8)
  cmp    %eax,%ebp
  jge    L327
L501:
  test   %r8d,%r8d
  jle    L112
  test   %r14d,%r14d
  jle    L112
L139:
  mov    0xa0(%rsp),%rax
  mov    %r8d,(%rax)
  mov    0xa8(%rsp),%rax
  mov    %r14d,(%rax)
  cmp    $0xffffffff,%esi
  je     L688
  mov    0x40(%rsp),%rdx
  movslq %esi,%rax
  movsd  (%rdx,%rax,8),%xmm1
  mov    0xb0(%rsp),%rdx
  movapd %xmm1,%xmm2
  addsd  %xmm0,%xmm2
  divsd  %xmm2,%xmm1
  movsd  %xmm1,(%rdx)
  cmp    $0xffffffff,%ebx
  je     L497
  mov    0x38(%rsp),%rsi
  movslq %ebx,%rdx
  movsd  (%rsi,%rdx,8),%xmm1
  mov    0xb0(%rsp),%rdx
  movapd %xmm1,%xmm2
  addsd  %xmm0,%xmm2
  divsd  %xmm2,%xmm1
  movsd  %xmm1,(%rdx)
L497:
  mov    0x40(%rsp),%rdx
  lea    (%rdx,%rax,8),%rax
  movsd  (%rax),%xmm1
  addsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
L42:
  cmp    $0xffffffff,%ebx
  je     L61
  mov    0x38(%rsp),%rax
  movslq %ebx,%rbx
  lea    (%rax,%rbx,8),%rax
L625:
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
L61:
  movslq 0xc(%rsp),%rax
  cmp    %eax,0x30(%rsp)
  jle    L581
L469:
  mov    0x38(%rsp),%rdx
  mov    0x48(%rsp),%rcx
  mov    0x30(%rsp),%esi
L63:
  test   %rdx,%rdx
  je     L643
  movsd  0x8(%rdx,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
L643:
  test   %rcx,%rcx
  je     L517
  movsd  0x8(%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
L517:
  add    $0x1,%rax
  cmp    %eax,%esi
  jg     L63
L581:
  cmpq   $0x0,0x40(%rsp)
  je     L414
L289:
  test   %ebp,%ebp
  jle    L261
  mov    0x40(%rsp),%rdi
  movslq %ebp,%rbx
  lea    0x0(,%rbx,8),%rdx
  lea    0x8(%rdi),%rsi
  call   <memmove@plt>
  cmpq   $0x0,0x28(%rsp)
  je     L111
  mov    0x28(%rsp),%rax
  mov    (%rax),%rdi
  call   <free@plt>
L462:
  lea    -0x1(%rbp),%eax
  mov    0x28(%rsp),%rdi
  test   %ebp,%ebp
  lea    0x8(,%rax,8),%rdx
  mov    $0x8,%eax
  cmovle %rax,%rdx
  lea    0x8(%rdi),%rsi
  call   <memmove@plt>
L203:
  mov    0x28(%rsp),%rax
  mov    $0x1,%esi
  mov    $0x65,%edi
  lea    (%rax,%rbx,8),%rbx
  call   <check_alloc@plt>
  mov    %rax,(%rbx)
L219:
  test   %ebp,%ebp
  jle    L132
L111:
  lea    -0x1(%rbp),%eax
  mov    0x30(%rsp),%edi
  mov    %r12,%r8
  lea    0x8(%r12,%rax,8),%r9
L367:
  test   %r13d,%r13d
  jle    L498
  mov    0x8(%r8),%rsi
  mov    (%r8),%rcx
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L482:
  mov    (%rsi,%rax,4),%edx
  mov    %edx,(%rcx,%rax,4)
  mov    %rax,%rdx
  add    $0x1,%rax
  cmp    %rdx,%rdi
  jne    L482
L498:
  add    $0x8,%r8
  cmp    %r8,%r9
  jne    L367
L132:
  cmp    %r13d,%r15d
  jge    L443
  mov    0x30(%rsp),%r9d
  movslq %r15d,%rax
  lea    -0x4(,%rax,4),%rsi
  sub    %r15d,%r9d
  add    %rax,%r9
  lea    -0x1(%rbp),%eax
  shl    $0x2,%r9
  lea    0x8(%r12,%rax,8),%r8
L158:
  lea    0x4(%rsi),%rdi
  mov    %r12,%rax
  test   %ebp,%ebp
  jle    L383
  nopl   (%rax)
L267:
  mov    (%rax),%rdx
  add    $0x8,%rax
  mov    (%rdx,%rdi,1),%ecx
  mov    %ecx,(%rdx,%rsi,1)
  cmp    %rax,%r8
  jne    L267
L383:
  mov    %rdi,%rsi
  cmp    %rdi,%r9
  jne    L158
L443:
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L160:
  mov    %ebp,%ecx
  jmp    L74
L255:
  cmpq   $0x0,0xa0(%rsp)
  mov    $0xffffffff,%ebx
  jne    L208
  movslq 0xc(%rsp),%rax
  cmp    %eax,0x30(%rsp)
  jg     L469
L414:
  mov    0x28(%rsp),%rax
  test   %rax,%rax
  je     L219
  mov    (%rax),%rdi
  movslq %ebp,%rbx
  call   <free@plt>
  test   %ebp,%ebp
  jg     L462
  jmp    L203
L674:
  mov    $0xffffffff,%ebx
  jmp    L374
L433:
  cmpq   $0x0,0x40(%rsp)
  je     L255
  mov    0x38(%rsp),%rbx
  movsd  (%rbx,%rax,8),%xmm0
  test   %ebp,%ebp
  jle    L276
  lea    0x0(,%rax,4),%rdi
  mov    $0x1,%edx
  jmp    L96
L646:
  add    $0x1,%rdx
  cmp    %edx,%ebp
  jl     L40
L96:
  mov    (%r12,%rdx,8),%rcx
  mov    %edx,%esi
  mov    (%rcx,%rdi,1),%r8d
  test   %r8d,%r8d
  jne    L646
  cmpq   $0x0,0xa0(%rsp)
  mov    $0xffffffff,%ebx
  movslq %edx,%rax
  jne    L549
  jmp    L497
  nopw   0x0(%rax,%rax,1)
L373:
  movl   $0xffffffff,0xc(%rsp)
  xor    %r15d,%r15d
  mov    $0xffffffff,%ebx
  jmp    L374
L688:
  cmp    $0xffffffff,%ebx
  je     L61
  mov    0x38(%rsp),%rax
  movslq %ebx,%rbx
  lea    (%rax,%rbx,8),%rax
  mov    0xb0(%rsp),%rbx
  movsd  (%rax),%xmm1
  movapd %xmm1,%xmm2
  addsd  %xmm0,%xmm2
  divsd  %xmm2,%xmm1
  movsd  %xmm1,(%rbx)
  jmp    L625
L368:
  xor    %r14d,%r14d
  xor    %r8d,%r8d
  mov    $0xffffffff,%esi
L112:
  lea    D5(%rip),%rdi
  mov    %esi,0x18(%rsp)
  mov    %r8d,0x10(%rsp)
  movsd  %xmm0,0x20(%rsp)
  call   <printf@plt>
  movsd  0x20(%rsp),%xmm0
  mov    0x18(%rsp),%esi
  mov    0x10(%rsp),%r8d
  jmp    L139
L40:
  cmpq   $0x0,0xa0(%rsp)
  mov    $0xffffffff,%ebx
  mov    $0xffffffff,%esi
  jne    L549
L310:
  mov    0xc(%rsp),%edx
  cmp    %edx,0x30(%rsp)
  jg     L469
  jmp    L289
  nopl   0x0(%rax)
L261:
  cmpq   $0x0,0x28(%rsp)
  je     L132
  mov    0x28(%rsp),%rax
  movslq %ebp,%rbx
  mov    (%rax),%rdi
  call   <free@plt>
  jmp    L203
L276:
  cmpq   $0x0,0xa0(%rsp)
  je     L310
  xor    %r14d,%r14d
  xor    %r8d,%r8d
  mov    $0xffffffff,%ebx
  mov    $0xffffffff,%esi
  jmp    L112
```

tool_calls: name: unpack_data
arguments: data_tag: D5
type_guessed: string

tool: D5: probleme


assistant: ```c
int unroot(int **treer, int notu, double *lgbi, double *lgbp, double *bootvals, char **nom, char **list1, char **list2, int *l1, int *l2, double *fracroot1) {
  int i, j, j1, j2, br_a_virer = -1, bp_a_modifier = -1, bi_a_modifier = -1, somme1, somme2, drapeau;
  double l;
  for (j = 0; j < notu - 2; j++)
    if (treer[0][j] != 0)
      return 1;
  for (j1 = 0; j1 < notu - 3; j1++) {
    somme1 = 0;
    for (i = 0; i < notu + 1; i++)
      somme1 += treer[i][j1];
    if (somme1 == notu - 1) {
      br_a_virer = j1;
      if (lgbp) {
        l = lgbi[j1];
        for (i = 1; i < notu + 1; i++)
          if (treer[i][j1] == 0) {
            bp_a_modifier = i;
            break;
          }
      }
      break;
    }
    for (j2 = j1 + 1; j2 < notu - 2; j2++) {
      somme2 = 0;
      for (i = 0; i < notu + 1; i++)
        somme2 += treer[i][j2];
      if (somme1 == notu - somme2) {
        drapeau = 0;
        for (i = 1; i < notu; i++)
          if (abs(treer[i][j1] - treer[i][j2]) != 1)
            drapeau = 1;
        if (drapeau == 0) {
          br_a_virer = j1;
          if (lgbi) {
            bi_a_modifier = j2;
            l = lgbi[j1];
          }
          break;
        }
      }
      if (br_a_virer != -1)
        break;
    }
    if (br_a_virer != -1)
      break;
  }
  if (l1) {
    j1 = j2 = 0;
    for (i = 1; i <= notu; i++) {
      if (treer[i][br_a_virer] == 0) {
        list1[j1] = nom[i];
        j1++;
      } else {
        list2[j2] = nom[i];
        j2++;
      }
    }
    if (j1 < 1 || j2 < 1)
      printf("probleme\n");
    *l1 = j1;
    *l2 = j2;
    if (bp_a_modifier != -1)
      *fracroot1 = lgbp[bp_a_modifier] / (lgbp[bp_a_modifier] + l);
    if (bi_a_modifier != -1)
      *fracroot1 = lgbi[bi_a_modifier] / (lgbi[bi_a_modifier] + l);
  }
  if (bp_a_modifier != -1)
    lgbp[bp_a_modifier] += l;
  if (bi_a_modifier != -1)
    lgbi[bi_a_modifier] += l;
  for (i = br_a_virer; i < notu - 3; i++) {
    if (lgbi)
      lgbi[i] = lgbi[i + 1];
    if (bootvals)
      bootvals[i] = bootvals[i + 1];
  }
  if (lgbp)
    for (i = 0; i < notu; i++)
      lgbp[i] = lgbp[i + 1];
  if (nom) {
    free(nom[0]);
    for (i = 0; i < notu; i++)
      nom[i] = nom[i + 1];
    nom[notu] = check_alloc(100 + 1, sizeof(char));
  }
  for (i = 1; i < notu + 1; i++)
    for (j = 0; j < notu - 2; j++)
      treer[i - 1][j] = treer[i][j];
  for (j = br_a_virer + 1; j < notu - 2; j++)
    for (i = 0; i < notu; i++)
      treer[i][j - 1] = treer[i][j];
  return 0;
}
```