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

```asm
<invband_compute>:
  endbr64
  push   %r15
  lea    -0x1(%rdx),%eax
  mov    %rdi,%r10
  mov    %rsi,%r8
  push   %r14
  push   %r13
  mov    %edx,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  mov    %ecx,-0x4(%rsp)
  mov    %eax,-0x8(%rsp)
  test   %edx,%edx
  jle    L45
  movslq %edx,%r9
  mov    %ecx,%ebx
  movsd  D2(%rip),%xmm3
  xor    %edi,%edi
  lea    0x0(,%r9,8),%rcx
  lea    0x1(%rbx),%esi
  mov    %rcx,%r11
  nopw   0x0(%rax,%rax,1)
L41:
  movsd  (%r8,%rdi,8),%xmm1
  movapd %xmm3,%xmm0
  movapd %xmm1,%xmm2
  mulsd  %xmm1,%xmm2
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%r10,%rdi,8)
  test   %ebx,%ebx
  js     L66
  movsd  (%r8,%rdi,8),%xmm0
  mov    %r11,%rax
  mov    $0x1,%edx
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%r8,%rdi,8)
  je     L66
  nopw   0x0(%rax,%rax,1)
L69:
  movsd  (%r8,%rax,1),%xmm0
  add    $0x1,%edx
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%r8,%rax,1)
  movq   $0x0,(%r10,%rax,1)
  add    %rcx,%rax
  cmp    %esi,%edx
  jne    L69
L66:
  add    $0x1,%rdi
  add    $0x8,%r11
  cmp    %r9,%rdi
  jne    L41
  cmp    $0x1,%r13d
  jne    L34
L131:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L45:
  mov    -0x8(%rsp),%eax
  test   %eax,%eax
  js     L131
  movslq %edx,%r9
L34:
  movslq -0x8(%rsp),%r14
  mov    $0x1,%r11d
  lea    0x0(,%r9,8),%rdi
  sub    %r9,%r11
  lea    (%r14,%r9,1),%rax
  shl    $0x3,%r11
  shl    $0x3,%rax
  mov    %rax,-0x10(%rsp)
L57:
  mov    -0x8(%rsp),%r9d
  mov    -0x4(%rsp),%eax
  sub    %r14d,%r9d
  cmp    %eax,%r9d
  cmovg  %eax,%r9d
  test   %r9d,%r9d
  jle    L104
  mov    -0x10(%rsp),%rax
  lea    0x1(%r9),%ebx
  xor    %r12d,%r12d
  mov    $0x1,%ebp
  mov    %ebx,-0x1c(%rsp)
  mov    $0x1,%ebx
  lea    (%r10,%rax,1),%rsi
  add    %r8,%rax
  mov    %rax,-0x18(%rsp)
  nopl   0x0(%rax)
L136:
  cmp    %r9d,%ebx
  mov    %r9d,%r15d
  movslq %r12d,%rax
  movsd  (%rsi),%xmm0
  cmovle %ebx,%r15d
  mov    -0x18(%rsp),%rcx
  add    %r14,%rax
  lea    (%r10,%rax,8),%rdx
  mov    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L53:
  movsd  (%rcx),%xmm1
  mulsd  0x8(%rdx),%xmm1
  add    $0x1,%eax
  add    %rdi,%rcx
  add    %r11,%rdx
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rsi)
  cmp    %r15d,%eax
  jle    L53
  cmp    %r9d,%eax
  jg     L134
  mov    %r13d,%edx
  lea    0x0(%rbp,%r14,1),%rcx
  imul   %eax,%edx
  movslq %edx,%rdx
  add    %r14,%rdx
  lea    (%r8,%rdx,8),%r15
  mov    %eax,%edx
  sub    %ebx,%edx
  imul   %r13d,%edx
  movslq %edx,%rdx
  add    %rcx,%rdx
  lea    (%r10,%rdx,8),%rcx
  xor    %edx,%edx
  nopl   (%rax)
L121:
  movsd  (%rcx,%rdx,1),%xmm1
  mulsd  (%r15,%rdx,1),%xmm1
  add    $0x1,%eax
  add    %rdi,%rdx
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rsi)
  cmp    %eax,%r9d
  jge    L121
L134:
  add    $0x1,%ebx
  add    $0x1,%rbp
  add    %rdi,%rsi
  add    %r13d,%r12d
  cmp    -0x1c(%rsp),%ebx
  jne    L136
  movsd  (%r10,%r14,8),%xmm1
  mov    -0x10(%rsp),%rax
  mov    $0x1,%edx
  mov    -0x1c(%rsp),%ecx
  nopl   0x0(%rax)
L24:
  movsd  (%r8,%rax,1),%xmm0
  mulsd  (%r10,%rax,1),%xmm0
  add    $0x1,%edx
  add    %rdi,%rax
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%r10,%r14,8)
  cmp    %ecx,%edx
  jne    L24
L104:
  sub    $0x1,%r14
  subq   $0x8,-0x10(%rsp)
  test   %r14d,%r14d
  jns    L57
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: read_data
arguments: data_label: D2
type_guessed: f64

tool: D2: 1

assistant: ```c
void invband_compute(double *dataptr, double *L, int n, int m) {
  int i, j, k;
  int idx, idy;
  double *data, *odata;
  double diag;
  data = dataptr;
  for (i = 0; i < n; i++) {
    diag = L[i];
    data[i] = 1.0 / (diag * diag);
    for (j = 0; j <= m; j++) {
      L[j * n + i] /= diag;
      if (j > 0) {
        data[j * n + i] = 0;
      }
    }
  }
  for (i = n - 1; i >= 0; i--) {
    for (j = 1; j <= (m < n - 1 - i ? m : n - 1 - i); j++) {
      for (k = 1; k <= (n - 1 - i < m ? n - 1 - i : m); k++) {
        idx = (j < k ? k - j : j - k);
        idy = (j < k ? i + j : i + k);
        data[j * n + i] -= L[k * n + i] * data[idx * n + idy];
      }
    }
    for (k = 1; k <= (n - 1 - i < m ? n - 1 - i : m); k++) {
      data[i] -= L[k * n + i] * data[k * n + i];
    }
  }
  return;
}
```