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

```asm
<fromroot_transtable>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  mov    %ecx,-0x28(%rbp)
  mov    %r8d,-0x2c(%rbp)
  mov    %r9,-0x38(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L97
L59:
  movl   $0x0,-0x8(%rbp)
  jmp    L85
L133:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  cltq
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  addl   $0x1,-0x8(%rbp)
L85:
  cmpl   $0x5,-0x8(%rbp)
  jle    L133
  addl   $0x1,-0xc(%rbp)
L97:
  cmpl   $0x5,-0xc(%rbp)
  jle    L59
  movl   $0x0,-0x4(%rbp)
  jmp    L99
L124:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x2c(%rbp),%esi
  mov    -0x28(%rbp),%eax
  mov    %eax,%edi
  call   <assign_cell@plt>
  mov    %eax,-0x8(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L122
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L122
  mov    0x18(%rbp),%rax
  mov    -0x8(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  %xmm1,%xmm0
  mov    0x18(%rbp),%rax
  mov    -0x8(%rbp),%edx
  movslq %edx,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
  jmp    L64
L122:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jle    L101
  mov    0x18(%rbp),%rax
  movsd  0x20(%rax),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  %xmm1,%xmm0
  mov    0x18(%rbp),%rax
  movsd  %xmm0,0x20(%rax)
  mov    0x18(%rbp),%rax
  add    $0xc0,%rax
  movsd  0x20(%rax),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  pxor   %xmm2,%xmm2
  cvtsi2ss %eax,%xmm2
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    0x18(%rbp),%rax
  add    $0xc0,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x20(%rax)
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jle    L81
  mov    0x18(%rbp),%rax
  add    $0xc0,%rax
  movsd  0x28(%rax),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    0x18(%rbp),%rax
  add    $0xc0,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x28(%rax)
  mov    0x18(%rbp),%rax
  add    $0xf0,%rax
  movsd  0x28(%rax),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  pxor   %xmm2,%xmm2
  cvtsi2ss %eax,%xmm2
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    0x18(%rbp),%rax
  add    $0xf0,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x28(%rax)
  mov    0x18(%rbp),%rax
  lea    0xf0(%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    0x18(%rbp),%rax
  lea    0xf0(%rax),%rdx
  addsd  %xmm1,%xmm0
  mov    -0x8(%rbp),%eax
  cltq
  movsd  %xmm0,(%rdx,%rax,8)
  jmp    L64
L81:
  mov    0x18(%rbp),%rax
  lea    0xc0(%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    0x18(%rbp),%rax
  lea    0xc0(%rax),%rdx
  addsd  %xmm1,%xmm0
  mov    -0x8(%rbp),%eax
  cltq
  movsd  %xmm0,(%rdx,%rax,8)
  jmp    L64
L101:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jle    L64
  mov    0x18(%rbp),%rax
  movsd  0x28(%rax),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  %xmm1,%xmm0
  mov    0x18(%rbp),%rax
  movsd  %xmm0,0x28(%rax)
  mov    0x18(%rbp),%rax
  add    $0xf0,%rax
  movsd  0x28(%rax),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  pxor   %xmm2,%xmm2
  cvtsi2ss %eax,%xmm2
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    0x18(%rbp),%rax
  add    $0xf0,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x28(%rax)
  mov    0x18(%rbp),%rax
  lea    0xf0(%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    0x18(%rbp),%rax
  lea    0xf0(%rax),%rdx
  addsd  %xmm1,%xmm0
  mov    -0x8(%rbp),%eax
  cltq
  movsd  %xmm0,(%rdx,%rax,8)
L64:
  addl   $0x1,-0x4(%rbp)
L99:
  mov    -0x4(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L124
  nop
  nop
  leave
  ret
```

assistant: ```c
void fromroot_transtable(int **aseqsT, float *weights, int nseq, int i2, int j2, int *accum_insl, int *accum_insr, double trans[6][6]) {
  int fy, ty;
  int idx;
  for (fy = 0; fy < 6; fy++)
    for (ty = 0; ty < 6; ty++)
      trans[fy][ty] = 0.0;
  for (idx = 0; idx < nseq; idx++) {
    ty = assign_cell(i2, j2, aseqsT[i2][idx], aseqsT[j2][idx]);
    if (accum_insl[idx] == 0 && accum_insr[idx] == 0) {
      trans[0][ty] += weights[idx];
    } else if (accum_insl[idx] > 0) {
      trans[0][4] += weights[idx];
      trans[4][4] += (accum_insl[idx] - 1) * weights[idx];
      if (accum_insr[idx] > 0) {
        trans[4][5] += weights[idx];
        trans[5][5] += (accum_insr[idx] - 1) * weights[idx];
        trans[5][ty] += weights[idx];
      } else {
        trans[4][ty] += weights[idx];
      }
    } else if (accum_insr[idx] > 0) {
      trans[0][5] += weights[idx];
      trans[5][5] += (accum_insr[idx] - 1) * weights[idx];
      trans[5][ty] += weights[idx];
    }
  }
}
```