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

```asm
<bandet>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,-0x18(%rsp)
  test   %esi,%esi
  jle    L31
  mov    %rdi,%r15
  mov    %esi,%r9d
  test   %edx,%edx
  jle    L31
  lea    (%rsi,%rsi,1),%eax
  lea    0x1(%rax),%ebx
  mov    %ebx,-0x44(%rsp)
  movslq %esi,%rsi
  mov    %rsi,-0x8(%rsp)
  lea    (%rdi,%rsi,8),%rdi
  movsd  (%rdi),%xmm3
  movslq %ebx,%rbx
  mov    %rbx,-0x38(%rsp)
  lea    0x0(,%rbx,8),%rcx
  mov    %rcx,-0x10(%rsp)
  add    %rbx,%rsi
  lea    (%r15,%rsi,8),%r13
  mov    -0x18(%rsp),%esi
  add    $0x1,%esi
  mov    %esi,-0x14(%rsp)
  cltq
  neg    %rax
  shl    $0x3,%rax
  mov    %rax,-0x58(%rsp)
  mov    %rbx,-0x40(%rsp)
  mov    $0x0,%r14d
  mov    $0x1,%r12d
  lea    -0x1(%rbx),%rax
  mov    %rax,-0x50(%rsp)
  jmp    L59
L82:
  movsd  %xmm3,(%rsi)
L61:
  mov    -0x38(%rsp),%rbx
  add    %rbx,-0x40(%rsp)
  add    -0x44(%rsp),%r14d
  mov    -0x10(%rsp),%rax
  add    %rax,%r13
  add    %rax,%rdi
  mov    %ecx,%r12d
L59:
  lea    -0x1(%r12),%r10d
  mov    %r14d,-0x28(%rsp)
  mov    -0x18(%rsp),%eax
  sub    %r12d,%eax
  cmp    %r9d,%eax
  cmovg  %r9d,%eax
  test   %eax,%eax
  jg     L14
L48:
  lea    0x1(%r12),%ecx
  cmp    -0x14(%rsp),%ecx
  je     L31
  mov    %r13,%rsi
  movsd  0x0(%r13),%xmm3
  cmp    %r12d,%r9d
  cmovle %r9d,%r12d
  test   %r12d,%r12d
  jle    L61
  lea    -0x8(%r13),%rax
  movslq -0x28(%rsp),%rdx
  add    -0x8(%rsp),%rdx
  lea    (%r15,%rdx,8),%rdx
  lea    -0x10(%r13),%r8
  lea    -0x1(%r12),%r10d
  shl    $0x3,%r10
  sub    %r10,%r8
L127:
  movsd  (%rax),%xmm0
  mulsd  0x8(%rdx),%xmm0
  subsd  %xmm0,%xmm3
  sub    $0x8,%rax
  add    -0x58(%rsp),%rdx
  cmp    %r8,%rax
  jne    L127
  jmp    L82
L14:
  mov    -0x38(%rsp),%rcx
  mov    -0x40(%rsp),%rbx
  sub    %rbx,%rcx
  movslq %ebx,%rdx
  lea    -0x1(%rcx,%rdx,1),%rsi
  lea    0x1(%rax),%ebx
  mov    %r14d,%eax
  sub    -0x44(%rsp),%eax
  cltq
  add    -0x8(%rsp),%rax
  lea    (%r15,%rax,8),%rax
  mov    %rax,-0x30(%rsp)
  mov    $0x1,%ecx
  lea    (%r9,%r14,1),%eax
  mov    %eax,-0x24(%rsp)
  lea    -0x10(%rdi),%rax
  mov    %rax,-0x20(%rsp)
  jmp    L69
L126:
  movsd  %xmm2,0x0(%rbp)
L109:
  divsd  %xmm3,%xmm1
  movsd  %xmm1,(%r11,%rsi,8)
  add    $0x1,%rcx
  add    -0x50(%rsp),%rsi
  cmp    %rbx,%rcx
  je     L48
L69:
  mov    %rdi,%r11
  movsd  (%rdi,%rsi,8),%xmm1
  mov    %r9d,%edx
  sub    %ecx,%edx
  cmp    %r10d,%edx
  cmovg  %r10d,%edx
  test   %edx,%edx
  jle    L109
  mov    -0x24(%rsp),%eax
  add    %ecx,%eax
  cltq
  lea    (%r15,%rax,8),%rbp
  movsd  0x0(%rbp),%xmm2
  lea    -0x8(%rdi),%rax
  lea    -0x1(%rdx),%edx
  shl    $0x3,%rdx
  mov    -0x20(%rsp),%r8
  sub    %rdx,%r8
  mov    -0x30(%rsp),%rdx
L85:
  movsd  (%rax),%xmm0
  mulsd  0x8(%rdx,%rcx,8),%xmm0
  subsd  %xmm0,%xmm2
  movsd  (%rax,%rsi,8),%xmm0
  mulsd  0x8(%rdx),%xmm0
  subsd  %xmm0,%xmm1
  sub    $0x8,%rax
  add    -0x58(%rsp),%rdx
  cmp    %r8,%rax
  jne    L85
  jmp    L126
L31:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void bandet(double *e, int m, int n) {
  int i, k, l, mi, lm, km, m2p1;
  double di, du, dl;
  m2p1 = 2 * m + 1;
  if (m <= 0) {
    return;
  }
  for (i = 1; i <= n; i++) {
    di = e[(i - 1) * m2p1 + m];
    mi = (m < (i - 1)) ? m : i - 1;
    if (mi >= 1) {
      for (k = 1; k <= mi; k++) {
        di -= e[(i - 1) * m2p1 - k + m] * e[(i - k - 1) * m2p1 + k + m];
      }
      e[(i - 1) * m2p1 + m] = di;
    }
    lm = (m < (n - i)) ? m : n - i;
    if (lm >= 1) {
      for (l = 1; l <= lm; l++) {
        dl = e[(i + l - 1) * m2p1 - l + m];
        km = ((m - l) < (i - 1)) ? m - l : i - 1;
        if (km >= 1) {
          du = e[(i - 1) * m2p1 + l + m];
          for (k = 1; k <= km; k++) {
            du -= e[(i - 1) * m2p1 - k + m] * e[(i - k - 1) * m2p1 + l + k + m];
            dl -= e[(l + i - 1) * m2p1 - l - k + m] * e[(i - k - 1) * m2p1 + k + m];
          }
          e[(i - 1) * m2p1 + l + m] = du;
        }
        e[(i + l - 1) * m2p1 - l + m] = dl / di;
      }
    }
  }
}
```