user: Converte this assembly snippet into its equivalent C code:

```asm
<lob_bnd_ext>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x48(%rsp),%ebp
  mov    0x38(%rsp),%r11d
  mov    %rsi,-0x10(%rsp)
  mov    0x50(%rsp),%rsi
  mov    %rdi,-0x18(%rsp)
  test   %ebp,%ebp
  je     L29
  mov    %rdx,%r12
  mov    %rcx,%rdi
  xor    %edx,%edx
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  nopl   0x0(%rax)
L142:
  mov    %edx,%ecx
  add    $0x1,%eax
  add    $0x2,%edx
  movups %xmm0,(%rsi,%rcx,8)
  cmp    %eax,%ebp
  jne    L142
  test   %r9d,%r9d
  je     L38
  mov    0x40(%rsp),%r10
  mov    %ebp,%r15d
  mov    0x40(%rsp),%r14
  xor    %ebx,%ebx
  shl    $0x4,%r15
  movsd  D8(%rip),%xmm4
  xor    %r13d,%r13d
  add    %r15,%r10
  nopw   0x0(%rax,%rax,1)
L114:
  mov    %ebx,%eax
  xor    %edx,%edx
  movsd  (%r12,%rax,8),%xmm3
  lea    0x1(%rbx),%eax
  movsd  (%r12,%rax,8),%xmm2
  mov    %r14,%rax
  cs nopw 0x0(%rax,%rax,1)
L30:
  movsd  (%rax),%xmm0
  addsd  0x8(%rax),%xmm0
  mov    %edx,%ecx
  movapd %xmm3,%xmm1
  lea    (%rsi,%rcx,8),%rcx
  add    $0x10,%rax
  mulsd  %xmm4,%xmm0
  mulsd  %xmm0,%xmm1
  addsd  (%rcx),%xmm1
  mulsd  %xmm2,%xmm0
  movsd  %xmm1,(%rcx)
  lea    0x1(%rdx),%ecx
  add    $0x2,%edx
  lea    (%rsi,%rcx,8),%rcx
  addsd  (%rcx),%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %r10,%rax
  jne    L30
  add    $0x1,%r13d
  add    %r15,%r14
  add    %r15,%r10
  add    $0x2,%ebx
  cmp    %r13d,%r9d
  jne    L114
L102:
  test   %r11d,%r11d
  je     L199
  mov    %r11d,%eax
  mov    %r11d,%r13d
  mov    %r11d,%r14d
  mov    -0x18(%rsp),%rdx
  shr    %eax
  and    $0xfffffffe,%r13d
  shl    $0x4,%r14
  xor    %ebx,%ebx
  lea    -0x1(%rax),%r10d
  mov    %r13d,%r15d
  xor    %r12d,%r12d
  add    $0x1,%r10
  shl    $0x4,%r15
  shl    $0x4,%r10
  nopl   (%rax)
L48:
  mov    %ebx,%eax
  movsd  (%rsi,%rax,8),%xmm3
  lea    0x1(%rbx),%eax
  movsd  (%rsi,%rax,8),%xmm1
  cmp    $0x1,%r11d
  je     L236
  movapd %xmm1,%xmm5
  movapd %xmm3,%xmm4
  xor    %eax,%eax
  unpcklpd %xmm5,%xmm5
  unpcklpd %xmm4,%xmm4
  nopl   0x0(%rax,%rax,1)
L200:
  movupd (%rdi,%rax,1),%xmm0
  mulpd  %xmm5,%xmm0
  addpd  %xmm4,%xmm0
  movapd %xmm0,%xmm2
  unpcklpd %xmm0,%xmm2
  unpckhpd %xmm0,%xmm0
  movups %xmm2,(%rdx,%rax,2)
  movups %xmm0,0x10(%rdx,%rax,2)
  add    $0x10,%rax
  cmp    %rax,%r10
  jne    L200
  lea    (%rdx,%r15,1),%rax
  mov    %r13d,%ecx
  cmp    %r13d,%r11d
  je     L18
L240:
  mulsd  (%rdi,%rcx,8),%xmm1
  movapd %xmm1,%xmm0
  addsd  %xmm3,%xmm0
  unpcklpd %xmm0,%xmm0
  movups %xmm0,(%rax)
L18:
  add    $0x1,%r12d
  add    %r14,%rdx
  add    $0x2,%ebx
  cmp    %r12d,%ebp
  jne    L48
  test   %r9d,%r9d
  je     L29
  lea    0x0(,%r11,4),%r12d
  shl    $0x3,%r12
L286:
  mov    %ebp,%ebx
  mov    -0x10(%rsp),%rbp
  lea    -0x1(%r9),%eax
  mov    0x40(%rsp),%r10
  mov    %rbx,%r13
  lea    -0x1(%r11),%r9d
  pxor   %xmm4,%xmm4
  neg    %rbx
  lea    0x8(%rbp,%rax,8),%rax
  shl    $0x4,%r13
  add    $0x1,%r9
  shl    $0x4,%rbx
  mov    %rax,-0x10(%rsp)
  add    %r13,%r10
  shl    $0x4,%r9
  xchg   %ax,%ax
L207:
  movsd  0x0(%rbp),%xmm5
  mov    -0x18(%rsp),%rax
  lea    (%rbx,%r10,1),%rcx
  xor    %edi,%edi
L288:
  lea    0x1(%rdi),%edx
  movsd  (%rcx),%xmm1
  add    $0x10,%rcx
  movsd  -0x8(%rcx),%xmm2
  movsd  (%rsi,%rdx,8),%xmm0
  mov    %edi,%edx
  mulsd  %xmm5,%xmm0
  addsd  (%rsi,%rdx,8),%xmm0
  subsd  %xmm0,%xmm1
  subsd  %xmm0,%xmm2
  comisd %xmm4,%xmm1
  jae    L289
  comisd %xmm2,%xmm4
  jae    L184
  lea    (%rax,%r9,1),%r14
  xor    %edx,%edx
  test   %r11d,%r11d
  je     L36
  nopw   0x0(%rax,%rax,1)
L138:
  lea    0x3(%rdx),%r15d
  add    $0x10,%rax
  movsd  (%r8,%r15,8),%xmm0
  mov    %edx,%r15d
  add    $0x4,%edx
  movsd  (%r8,%r15,8),%xmm6
  movapd %xmm0,%xmm3
  mulsd  %xmm1,%xmm3
  movapd %xmm6,%xmm7
  mulsd  %xmm2,%xmm7
  mulsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm6
  addsd  %xmm7,%xmm3
  addsd  -0x10(%rax),%xmm3
  addsd  %xmm6,%xmm0
  movsd  %xmm3,-0x10(%rax)
  addsd  -0x8(%rax),%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %r14,%rax
  jne    L138
L36:
  add    $0x2,%edi
  cmp    %r10,%rcx
  jne    L288
L272:
  add    %r12,%r8
  add    %r13,%r10
  add    $0x8,%rbp
  cmp    %rbp,-0x10(%rsp)
  jne    L207
L29:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L289:
  test   %r11d,%r11d
  je     L36
  lea    (%rax,%r9,1),%r14
  xor    %edx,%edx
  nopl   0x0(%rax,%rax,1)
L247:
  lea    0x1(%rdx),%r15d
  add    $0x10,%rax
  movsd  (%r8,%r15,8),%xmm0
  mov    %edx,%r15d
  movsd  (%r8,%r15,8),%xmm3
  lea    0x3(%rdx),%r15d
  mulsd  %xmm1,%xmm0
  mulsd  %xmm2,%xmm3
  addsd  %xmm3,%xmm0
  addsd  -0x10(%rax),%xmm0
  movsd  %xmm0,-0x10(%rax)
  movsd  (%r8,%r15,8),%xmm0
  lea    0x2(%rdx),%r15d
  add    $0x4,%edx
  movsd  (%r8,%r15,8),%xmm3
  mulsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm3
  addsd  %xmm3,%xmm0
  addsd  -0x8(%rax),%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %r14,%rax
  jne    L247
  add    $0x2,%edi
  cmp    %r10,%rcx
  jne    L288
  jmp    L272
L184:
  test   %r11d,%r11d
  je     L36
  lea    (%rax,%r9,1),%r15
  xor    %edx,%edx
  nop
L84:
  lea    0x3(%rdx),%r14d
  add    $0x10,%rax
  movsd  (%r8,%r14,8),%xmm0
  lea    0x2(%rdx),%r14d
  movsd  (%r8,%r14,8),%xmm3
  lea    0x1(%rdx),%r14d
  mulsd  %xmm1,%xmm0
  mulsd  %xmm2,%xmm3
  addsd  %xmm3,%xmm0
  addsd  -0x10(%rax),%xmm0
  movsd  %xmm0,-0x10(%rax)
  movsd  (%r8,%r14,8),%xmm0
  mov    %edx,%r14d
  add    $0x4,%edx
  movsd  (%r8,%r14,8),%xmm3
  mulsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm3
  addsd  %xmm3,%xmm0
  addsd  -0x8(%rax),%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %r15,%rax
  jne    L84
  add    $0x2,%edi
  cmp    %r10,%rcx
  jne    L288
  jmp    L272
L236:
  mov    %rdx,%rax
  xor    %ecx,%ecx
  jmp    L240
L38:
  test   %ebp,%ebp
  jne    L102
  jmp    L29
L199:
  xor    %r12d,%r12d
  test   %r9d,%r9d
  jne    L286
  jmp    L29
```

tool_calls: name: parse_data
arguments: label: D8
type_guessed: byte[8]

tool: {"D8": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

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];
    }
  }
}
```