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

```asm
<lob_bnd_ext>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x28,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %rdx,-0x88(%rbp)
  mov    %rcx,-0x90(%rbp)
  mov    %r8,-0x98(%rbp)
  mov    %r9d,-0x9c(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x78(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  movl   $0x0,-0x64(%rbp)
  jmp    L116
L37:
  mov    -0x64(%rbp),%eax
  add    %eax,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x64(%rbp),%edx
  add    %edx,%edx
  add    $0x1,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    0x28(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rdx)
  addl   $0x1,-0x64(%rbp)
L116:
  mov    -0x64(%rbp),%eax
  cmp    0x20(%rbp),%eax
  jb     L37
  movl   $0x0,-0x60(%rbp)
  jmp    L141
L196:
  mov    -0x60(%rbp),%eax
  add    %eax,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x60(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movl   $0x0,-0x64(%rbp)
  jmp    L206
L106:
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D4(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  addq   $0x10,-0x58(%rbp)
  mov    -0x64(%rbp),%eax
  add    %eax,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x18(%rbp),%xmm0
  mulsd  -0x8(%rbp),%xmm0
  mov    -0x64(%rbp),%eax
  add    %eax,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x64(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x10(%rbp),%xmm0
  mulsd  -0x8(%rbp),%xmm0
  mov    -0x64(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x64(%rbp)
L206:
  mov    -0x64(%rbp),%eax
  cmp    0x20(%rbp),%eax
  jb     L106
  addl   $0x1,-0x60(%rbp)
L141:
  mov    -0x60(%rbp),%eax
  cmp    -0x9c(%rbp),%eax
  jb     L196
  movl   $0x0,-0x64(%rbp)
  jmp    L217
L55:
  mov    -0x64(%rbp),%eax
  add    %eax,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x64(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movl   $0x0,-0x5c(%rbp)
  jmp    L224
L221:
  mov    -0x5c(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  addsd  -0x28(%rbp),%xmm0
  mov    -0x50(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rdx)
  addq   $0x10,-0x50(%rbp)
  addl   $0x1,-0x5c(%rbp)
L224:
  mov    -0x5c(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jb     L221
  addl   $0x1,-0x64(%rbp)
L217:
  mov    -0x64(%rbp),%eax
  cmp    0x20(%rbp),%eax
  jb     L55
  mov    0x18(%rbp),%rax
  mov    %rax,-0x58(%rbp)
  movl   $0x0,-0x60(%rbp)
  jmp    L122
L135:
  mov    -0x60(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    -0x78(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  movl   $0x0,-0x64(%rbp)
  jmp    L73
L154:
  mov    -0x64(%rbp),%eax
  add    %eax,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x64(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x58(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x58(%rbp)
  movsd  (%rax),%xmm0
  subsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x58(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x58(%rbp)
  movsd  (%rax),%xmm0
  subsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x38(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L166
  movl   $0x0,-0x5c(%rbp)
  jmp    L2
L19:
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  movsd  (%rax),%xmm1
  mov    -0x5c(%rbp),%edx
  shl    $0x2,%edx
  add    $0x1,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x98(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x38(%rbp),%xmm2
  mov    -0x5c(%rbp),%edx
  shl    $0x2,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x98(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  addsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  movsd  (%rax),%xmm1
  mov    -0x5c(%rbp),%edx
  shl    $0x2,%edx
  add    $0x3,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x98(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x30(%rbp),%xmm2
  mov    -0x5c(%rbp),%edx
  shl    $0x2,%edx
  add    $0x2,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x98(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  mulsd  -0x38(%rbp),%xmm0
  addsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x5c(%rbp)
L2:
  mov    -0x5c(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jb     L19
  jmp    L205
L166:
  pxor   %xmm0,%xmm0
  comisd -0x30(%rbp),%xmm0
  jb     L6
  movl   $0x0,-0x5c(%rbp)
  jmp    L3
L117:
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  movsd  (%rax),%xmm1
  mov    -0x5c(%rbp),%edx
  shl    $0x2,%edx
  add    $0x3,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x98(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x38(%rbp),%xmm2
  mov    -0x5c(%rbp),%edx
  shl    $0x2,%edx
  add    $0x2,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x98(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  addsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  movsd  (%rax),%xmm1
  mov    -0x5c(%rbp),%edx
  shl    $0x2,%edx
  add    $0x1,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x98(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x30(%rbp),%xmm2
  mov    -0x5c(%rbp),%edx
  shl    $0x2,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x98(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  mulsd  -0x38(%rbp),%xmm0
  addsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x5c(%rbp)
L3:
  mov    -0x5c(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jb     L117
  jmp    L205
L6:
  movl   $0x0,-0x5c(%rbp)
  jmp    L99
L108:
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  movsd  (%rax),%xmm1
  mov    -0x5c(%rbp),%edx
  shl    $0x2,%edx
  add    $0x3,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x98(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x38(%rbp),%xmm2
  mov    -0x5c(%rbp),%edx
  shl    $0x2,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x98(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  addsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  movsd  (%rax),%xmm1
  mov    -0x5c(%rbp),%edx
  shl    $0x2,%edx
  add    $0x3,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x98(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x30(%rbp),%xmm2
  mov    -0x5c(%rbp),%edx
  shl    $0x2,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x98(%rbp),%rdx
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  mulsd  -0x38(%rbp),%xmm0
  addsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x5c(%rbp)
L99:
  mov    -0x5c(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jb     L108
L205:
  addl   $0x1,-0x64(%rbp)
L73:
  mov    -0x64(%rbp),%eax
  cmp    0x20(%rbp),%eax
  jb     L154
  addl   $0x1,-0x60(%rbp)
  mov    0x10(%rbp),%eax
  shl    $0x2,%eax
  mov    %eax,%eax
  shl    $0x3,%rax
  add    %rax,-0x98(%rbp)
L122:
  mov    -0x60(%rbp),%eax
  cmp    -0x9c(%rbp),%eax
  jb     L135
  nop
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D4
data_type: f64

tool: D4: 2

assistant: ```c
void lob_bnd_ext(double *restrict b_, const double *restrict z, const double *restrict Q, const double *restrict h, const double *restrict lbnp, unsigned n, unsigned m, const double *restrict br_, unsigned mr, double *restrict a) {
  const double *restrict br = br_;
  double *restrict b = b_;
  unsigned i, j, k;
  for (i = 0; i < mr; ++i)
    a[2 * i + 1] = a[2 * i + 0] = 0;
  for (j = 0; j < n; ++j) {
    double t, q0 = Q[2 * j], q1 = Q[2 * j + 1];
    for (i = 0; i < mr; ++i)
      t = (br[0] + br[1]) / 2, br += 2, a[2 * i] += q0 * t, a[2 * i + 1] += q1 * t;
  }
  for (i = 0; i < mr; ++i) {
    double a0 = a[2 * i], a1 = a[2 * i + 1];
    for (k = 0; k < m; ++k)
      b[1] = b[0] = a0 + a1 * h[k], b += 2;
  }
  br = br_;
  for (j = 0; j < n; ++j, lbnp += 4 * m) {
    double zj = z[j];
    b = b_;
    for (i = 0; i < mr; ++i) {
      double t = a[2 * i] + a[2 * i + 1] * zj;
      double w0 = *br++ - t;
      double w1 = *br++ - t;
      if (w0 >= 0)
        for (k = 0; k < m; ++k)
          *b++ += w0 * lbnp[4 * k + 1] + w1 * lbnp[4 * k + 0], *b++ += w1 * lbnp[4 * k + 3] + w0 * lbnp[4 * k + 2];
      else if (w1 <= 0)
        for (k = 0; k < m; ++k)
          *b++ += w0 * lbnp[4 * k + 3] + w1 * lbnp[4 * k + 2], *b++ += w1 * lbnp[4 * k + 1] + w0 * lbnp[4 * k + 0];
      else
        for (k = 0; k < m; ++k)
          *b++ += w0 * lbnp[4 * k + 3] + w1 * lbnp[4 * k + 0], *b++ += w1 * lbnp[4 * k + 3] + w0 * lbnp[4 * k + 0];
    }
  }
}
```