user: Please show me the C implementation that matches the assembly code listed below:

```asm
<lmpar>:
  endbr64
  push   %r15
  mov    %r9,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  movslq %edx,%rbp
  push   %rbx
  lea    0x0(,%rbp,8),%r14d
  mov    %rdi,%rbx
  mov    %rbp,%r13
  sub    $0xa8,%rsp
  mov    0xe0(%rsp),%rax
  mov    %rdi,0x58(%rsp)
  mov    %r14d,%edi
  mov    %esi,0x78(%rsp)
  mov    %rax,0x18(%rsp)
  mov    0xe8(%rsp),%rax
  mov    %rcx,0x40(%rsp)
  mov    %rax,0x28(%rsp)
  mov    0xf0(%rsp),%rax
  mov    %r8,0x48(%rsp)
  mov    %r9,0x68(%rsp)
  movsd  %xmm0,0x30(%rsp)
  mov    %rax,0x50(%rsp)
  call   <malloc@plt>
  mov    %r14d,%edi
  mov    %rax,%r12
  call   <malloc@plt>
  mov    %rax,%r14
  test   %ebp,%ebp
  jle    L70
  lea    0x1(%rbp),%rax
  pxor   %xmm3,%xmm3
  mov    %rbx,%rdi
  mov    %r12,%rdx
  mov    %rax,0x8(%rsp)
  mov    %ebp,%ebx
  xor    %r8d,%r8d
  mov    %r15,%r9
  lea    0x0(,%rax,8),%rcx
  movsd  %xmm3,(%rsp)
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L505:
  movsd  (%r9,%rax,8),%xmm0
  movsd  (%rsp),%xmm7
  movsd  %xmm0,(%rdx)
  ucomisd (%rdi),%xmm7
  setnp  %sil
  cmovne %r8d,%esi
  test   %sil,%sil
  je     L447
  cmp    %ebx,%r13d
  cmove  %eax,%ebx
L447:
  cmp    %r13d,%ebx
  jge    L296
  pxor   %xmm0,%xmm0
L296:
  add    $0x1,%rax
  movsd  %xmm0,(%rdx)
  add    %rcx,%rdi
  add    $0x8,%rdx
  cmp    %rbp,%rax
  jne    L505
  test   %ebx,%ebx
  je     L284
  lea    -0x1(%rbx),%eax
  mov    %r13d,%r11d
  movslq %ebx,%rdx
  mov    0x58(%rsp),%r15
  imul   %r13d,%eax
  not    %r11d
  lea    -0x8(%r12,%rdx,8),%rsi
  sub    $0x8,%rcx
  movslq %r11d,%r11
  lea    0x8(%r12),%r10
  shl    $0x3,%r11
  cltq
  add    %rdx,%rax
  lea    (%r15,%rax,8),%r9
  mov    %ebx,%eax
  nopl   0x0(%rax)
L84:
  lea    -0x1(%rax),%edi
  movsd  (%rsi),%xmm1
  divsd  -0x8(%r9),%xmm1
  movsd  %xmm1,(%rsi)
  test   %edi,%edi
  jg     L415
  sub    $0x8,%rsi
  add    %r11,%r9
  test   %edi,%edi
  je     L284
  mov    %edi,%eax
  jmp    L84
  nopl   0x0(%rax,%rax,1)
L284:
  mov    %r13d,%esi
  mov    0x40(%rsp),%rdx
  mov    0x28(%rsp),%r8
  mov    %r12,%rax
  shl    $0x3,%rsi
  lea    (%r12,%rsi,1),%rdi
  nopl   0x0(%rax,%rax,1)
L402:
  movsd  (%rax),%xmm0
  movslq (%rdx),%rcx
  add    $0x8,%rax
  add    $0x4,%rdx
  movsd  %xmm0,(%r8,%rcx,8)
  cmp    %rax,%rdi
  jne    L402
  mov    0x28(%rsp),%rcx
  lea    (%r14,%rsi,1),%rdx
  mov    0x48(%rsp),%rsi
  mov    %r14,%rax
  sub    %r14,%rsi
  sub    %r14,%rcx
  nopl   0x0(%rax)
L249:
  movsd  (%rsi,%rax,1),%xmm0
  mulsd  (%rcx,%rax,1),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rdx
  jne    L249
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <enorm@plt>
  movsd  0x30(%rsp),%xmm4
  movsd  D0(%rip),%xmm1
  movapd %xmm0,%xmm6
  movapd %xmm0,%xmm3
  subsd  %xmm4,%xmm6
  mulsd  %xmm1,%xmm4
  movsd  %xmm6,0x60(%rsp)
  comisd %xmm4,%xmm6
  movsd  %xmm4,0x70(%rsp)
  jbe    L469
  movsd  (%rsp),%xmm5
  lea    -0x1(%r13),%r15d
  movsd  %xmm5,0x20(%rsp)
  cmp    %r13d,%ebx
  jge    L348
L129:
  test   %r13d,%r13d
  jle    L197
  mov    0x68(%rsp),%rbx
  mov    $0xfffffffffffffff8,%r9
  mov    0x58(%rsp),%r8
  xor    %edi,%edi
  mov    0x40(%rsp),%r10
  mov    0x48(%rsp),%r11
  lea    0x0(,%rbp,8),%rsi
  lea    0x8(%rbx),%rcx
  sub    %rbx,%r9
  nopl   0x0(%rax)
L422:
  mov    %rbx,%rax
  mov    %r8,%rdx
  pxor   %xmm2,%xmm2
  nopw   0x0(%rax,%rax,1)
L271:
  movsd  (%rdx),%xmm0
  mulsd  (%rax),%xmm0
  add    $0x8,%rax
  add    %rsi,%rdx
  addsd  %xmm0,%xmm2
  cmp    %rax,%rcx
  jne    L271
  movslq (%r10,%rdi,4),%rdx
  lea    (%r12,%rcx,1),%rax
  add    $0x1,%rdi
  add    $0x8,%r8
  add    $0x8,%rcx
  divsd  (%r11,%rdx,8),%xmm2
  movsd  %xmm2,(%rax,%r9,1)
  cmp    %rdi,%rbp
  jne    L422
L197:
  mov    %r13d,%esi
  mov    %r12,%rdi
  movsd  %xmm3,0x10(%rsp)
  movsd  %xmm1,0x38(%rsp)
  call   <enorm@plt>
  movsd  0x10(%rsp),%xmm3
  movapd %xmm0,%xmm7
  divsd  0x30(%rsp),%xmm7
  ucomisd (%rsp),%xmm7
  movq   %xmm0,%rbx
  movsd  %xmm7,0x80(%rsp)
  jp     L104
  movsd  0x38(%rsp),%xmm1
  je     L411
L104:
  mov    0x18(%rsp),%rbp
  movsd  0x20(%rsp),%xmm1
  movsd  %xmm3,0x10(%rsp)
  movsd  0x0(%rbp),%xmm0
  call   <pmax@plt>
  movsd  0x80(%rsp),%xmm1
  movsd  %xmm0,0x0(%rbp)
  call   <pmin@plt>
  ucomisd (%rsp),%xmm0
  jp     L395
  movsd  0x10(%rsp),%xmm3
  jne    L395
  movq   %rbx,%xmm0
  divsd  %xmm3,%xmm0
L395:
  mov    0x18(%rsp),%rax
  movl   $0xa,0x7c(%rsp)
  movsd  %xmm0,(%rax)
  mov    %r15d,%eax
  mov    0x48(%rsp),%r15
  mov    %rax,0x10(%rsp)
  lea    0x8(,%rax,8),%rax
  lea    (%rax,%r12,1),%rbp
  add    %r14,%rax
  sub    %r14,%r15
  mov    %rax,0x88(%rsp)
  mov    0x8(%rsp),%rax
  shl    $0x3,%rax
  lea    -0x8(%rax),%rbx
  mov    %rax,0x38(%rsp)
  mov    0x58(%rsp),%rax
  add    %rbx,%rax
  mov    %rax,0x98(%rsp)
  mov    %r14,%rax
  neg    %rax
  mov    %rax,0x90(%rsp)
  nopl   0x0(%rax,%rax,1)
L136:
  ucomisd (%rsp),%xmm0
  jp     L289
  je     L355
L289:
  movsd  (%rsp),%xmm3
  ucomisd %xmm0,%xmm3
  ja     L233
  sqrtsd %xmm0,%xmm0
L314:
  test   %r13d,%r13d
  jle    L174
  mov    0x48(%rsp),%rdx
  mov    %r12,%rax
  sub    %r12,%rdx
  nopl   0x0(%rax)
L157:
  movsd  (%rdx,%rax,1),%xmm1
  add    $0x8,%rax
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,-0x8(%rax)
  cmp    %rax,%rbp
  jne    L157
  push   0x50(%rsp)
  mov    %r13d,%edx
  mov    %r12,%r8
  push   0x30(%rsp)
  mov    0x78(%rsp),%r9
  mov    0x50(%rsp),%rcx
  mov    0x88(%rsp),%esi
  mov    0x68(%rsp),%rdi
  call   <qrsolv@plt>
  pop    %rcx
  pop    %rsi
  mov    %r14,%rax
  mov    0x88(%rsp),%rcx
  mov    0x28(%rsp),%rdx
  add    0x90(%rsp),%rdx
  nopw   0x0(%rax,%rax,1)
L235:
  movsd  (%r15,%rax,1),%xmm0
  mulsd  (%rdx,%rax,1),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rcx
  jne    L235
L417:
  mov    %r13d,%esi
  mov    %r14,%rdi
  call   <enorm@plt>
  movsd  0x70(%rsp),%xmm3
  movapd %xmm0,%xmm6
  subsd  0x30(%rsp),%xmm6
  movapd %xmm0,%xmm1
  movapd %xmm6,%xmm0
  andpd  D2(%rip),%xmm0
  movsd  %xmm6,0x8(%rsp)
  comisd %xmm0,%xmm3
  jae    L217
  subl   $0x1,0x7c(%rsp)
  je     L217
  movsd  0x20(%rsp),%xmm6
  ucomisd (%rsp),%xmm6
  jp     L439
  jne    L439
  movsd  0x60(%rsp),%xmm5
  comisd 0x8(%rsp),%xmm5
  jb     L439
  movsd  (%rsp),%xmm3
  comisd %xmm5,%xmm3
  ja     L217
L439:
  mov    0x40(%rsp),%rdx
  mov    0x48(%rsp),%rsi
  mov    %r12,%rax
  test   %r13d,%r13d
  jle    L543
  nopl   (%rax)
L523:
  movslq (%rdx),%rcx
  add    $0x8,%rax
  add    $0x4,%rdx
  movsd  (%r14,%rcx,8),%xmm0
  divsd  %xmm1,%xmm0
  mulsd  (%rsi,%rcx,8),%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rbp
  jne    L523
  mov    0x50(%rsp),%r10
  mov    %r12,%rdi
  xor    %esi,%esi
  lea    -0x2(%r13),%r11d
  mov    0x98(%rsp),%r8
  lea    0x10(%r12),%r9
L49:
  movsd  (%rdi),%xmm1
  divsd  (%r10,%rsi,8),%xmm1
  movsd  %xmm1,(%rdi)
  cmp    %rsi,0x10(%rsp)
  jne    L179
L543:
  mov    %r13d,%esi
  mov    %r12,%rdi
  call   <enorm@plt>
  movsd  0x8(%rsp),%xmm4
  comisd (%rsp),%xmm4
  movapd %xmm0,%xmm2
  ja     L153
  movsd  (%rsp),%xmm6
  comisd 0x8(%rsp),%xmm6
  ja     L485
L20:
  movsd  0x8(%rsp),%xmm1
  divsd  0x30(%rsp),%xmm1
  divsd  %xmm2,%xmm1
  mov    0x18(%rsp),%rax
  movsd  0x20(%rsp),%xmm0
  divsd  %xmm2,%xmm1
  addsd  (%rax),%xmm1
  call   <pmax@plt>
  mov    0x18(%rsp),%rax
  movsd  0x8(%rsp),%xmm1
  movsd  %xmm0,(%rax)
  movsd  %xmm1,0x60(%rsp)
  jmp    L136
L469:
  mov    0x18(%rsp),%rax
  movq   $0x0,(%rax)
L217:
  mov    %r12,%rdi
  call   <free@plt>
  add    $0xa8,%rsp
  mov    %r14,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10b0 <free@plt>
  nopl   0x0(%rax,%rax,1)
L415:
  movslq %eax,%rdx
  sub    $0x2,%eax
  lea    (%r10,%rax,8),%r8
  lea    -0x8(%r15,%rdx,8),%rdx
  mov    %r12,%rax
  nopw   0x0(%rax,%rax,1)
L336:
  movsd  (%rdx),%xmm2
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  add    %rcx,%rdx
  mulsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %r8,%rax
  jne    L336
  sub    $0x8,%rsi
  add    %r11,%r9
  mov    %edi,%eax
  jmp    L84
  nopw   0x0(%rax,%rax,1)
L179:
  mov    %r11d,%eax
  add    $0x8,%rdi
  mov    %r8,%rdx
  sub    %esi,%eax
  add    %rsi,%rax
  lea    (%r9,%rax,8),%rcx
  mov    %rdi,%rax
  cs nopw 0x0(%rax,%rax,1)
L257:
  movsd  (%rdx),%xmm2
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  add    %rbx,%rdx
  mulsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rcx,%rax
  jne    L257
  add    $0x1,%rsi
  add    0x38(%rsp),%r8
  jmp    L49
  nop
L153:
  mov    0x18(%rsp),%rax
  movsd  %xmm0,0x60(%rsp)
  movsd  0x20(%rsp),%xmm0
  movsd  (%rax),%xmm1
  call   <pmax@plt>
  movsd  (%rsp),%xmm6
  comisd 0x8(%rsp),%xmm6
  movsd  0x60(%rsp),%xmm2
  movsd  %xmm0,0x20(%rsp)
  jbe    L20
L485:
  mov    0x18(%rsp),%rax
  movsd  %xmm2,0x60(%rsp)
  movsd  0x80(%rsp),%xmm0
  movsd  (%rax),%xmm1
  call   <pmin@plt>
  movsd  0x60(%rsp),%xmm2
  movsd  %xmm0,0x80(%rsp)
  jmp    L20
  nopl   0x0(%rax,%rax,1)
L355:
  movsd  D47(%rip),%xmm1
  mov    D59(%rip),%rax
  mulsd  0x80(%rsp),%xmm1
  movq   %rax,%xmm0
  call   <pmax@plt>
  mov    0x18(%rsp),%rax
  movsd  %xmm0,(%rax)
  jmp    L289
L174:
  push   0x50(%rsp)
  mov    %r13d,%edx
  mov    %r12,%r8
  push   0x30(%rsp)
  mov    0x78(%rsp),%r9
  mov    0x50(%rsp),%rcx
  mov    0x88(%rsp),%esi
  mov    0x68(%rsp),%rdi
  call   <qrsolv@plt>
  pop    %rax
  pop    %rdx
  jmp    L417
L70:
  mov    %ebp,%esi
  mov    %rax,%rdi
  call   <enorm@plt>
  movsd  0x30(%rsp),%xmm5
  movsd  D0(%rip),%xmm1
  movapd %xmm0,%xmm6
  movapd %xmm0,%xmm3
  subsd  %xmm5,%xmm6
  mulsd  %xmm1,%xmm5
  movsd  %xmm6,0x60(%rsp)
  comisd %xmm5,%xmm6
  movsd  %xmm5,0x70(%rsp)
  jbe    L469
  lea    0x1(%rbp),%rax
  pxor   %xmm7,%xmm7
  mov    %rax,0x8(%rsp)
  movsd  %xmm7,(%rsp)
L348:
  test   %r13d,%r13d
  jle    L261
  mov    %r13d,%eax
  mov    0x40(%rsp),%rdx
  mov    0x48(%rsp),%rdi
  lea    -0x1(%r13),%r15d
  lea    (%r12,%rax,8),%rcx
  mov    %r12,%rax
  nopl   0x0(%rax)
L7:
  movslq (%rdx),%rsi
  add    $0x8,%rax
  add    $0x4,%rdx
  movsd  (%r14,%rsi,8),%xmm0
  divsd  %xmm3,%xmm0
  mulsd  (%rdi,%rsi,8),%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rcx
  jne    L7
  lea    0x1(%r13),%ebx
  mov    0x58(%rsp),%r10
  mov    %r12,%r8
  mov    $0xffffffff,%r9d
  movslq %ebx,%rbx
  shl    $0x3,%rbx
  mov    %r10,%r11
  sub    %r12,%r10
  lea    -0x8(%rbx),%rdi
  nop
L295:
  mov    %r9d,%esi
  pxor   %xmm2,%xmm2
  add    $0x1,%r9d
  cmp    $0xffffffff,%esi
  je     L472
  lea    (%r10,%r8,1),%rcx
  mov    %r12,%rdx
  xor    %eax,%eax
  nopl   0x0(%rax)
L89:
  movsd  (%rcx),%xmm0
  mulsd  (%rdx),%xmm0
  add    $0x1,%eax
  add    %rdi,%rcx
  add    $0x8,%rdx
  addsd  %xmm0,%xmm2
  cmp    %esi,%eax
  jle    L89
L472:
  movsd  (%r8),%xmm0
  add    $0x8,%r8
  subsd  %xmm2,%xmm0
  divsd  (%r11),%xmm0
  add    %rbx,%r11
  movsd  %xmm0,-0x8(%r8)
  cmp    %r9d,%r15d
  jne    L295
L267:
  mov    %r13d,%esi
  mov    %r12,%rdi
  movsd  %xmm1,0x38(%rsp)
  movsd  %xmm3,0x10(%rsp)
  call   <enorm@plt>
  movsd  0x10(%rsp),%xmm3
  movsd  0x38(%rsp),%xmm1
  movapd %xmm0,%xmm2
  movsd  0x60(%rsp),%xmm0
  divsd  0x30(%rsp),%xmm0
  divsd  %xmm2,%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,0x20(%rsp)
  jmp    L129
L411:
  movsd  0x30(%rsp),%xmm0
  movsd  %xmm3,0x10(%rsp)
  call   <pmin@plt>
  movsd  D59(%rip),%xmm1
  movsd  0x10(%rsp),%xmm3
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x80(%rsp)
  jmp    L104
L261:
  lea    -0x1(%r13),%r15d
  jmp    L267
L233:
  call   <sqrt@plt>
  jmp    L314
```

tool_calls: name: extract_symbolic_data
arguments: label: D0
datatype: byte[8]
name: extract_symbolic_data
arguments: label: D2
datatype: qword[2]
name: extract_symbolic_data
arguments: label: D47
datatype: byte[8]
name: extract_symbolic_data
arguments: label: D59
datatype: byte[8]

tool: {"D0": [0x9a,0x99,0x99,0x99,0x99,0x99,0xb9,0x3f]}

tool: {"D2": [0x7fffffffffffffff,0x0000000000000000]}

tool: {"D47": [0xfc,0xa9,0xf1,0xd2,0x4d,0x62,0x50,0x3f]}

tool: {"D59": [0x31,0x65,0x00,0x00,0x00,0x00,0x10,0x00]}

assistant: ```c
void lmpar(double *r, int ldr, int N, int *ipvt, double *diag, double *qtb, double delta, double *par, double *x, double *sdiag) {
  int i, iter, j, jm1, jp1, k, l, nsing;
  double dxnorm, dwarf, fp, gnorm, parc, parl, paru, p1, p001, sum, temp, zero;
  double *wa1, *wa2;
  wa1 = (double *)malloc(sizeof(double) * N);
  wa2 = (double *)malloc(sizeof(double) * N);
  p1 = 1.0e-01;
  p001 = 1.0e-03;
  zero = 0.0;
  dwarf = 2.22507385852e-308;
  nsing = N;
  for (j = 1; j <= N; ++j) {
    wa1[j - 1] = qtb[j - 1];
    if (r[(j - 1) * N + j - 1] == zero && nsing == N) {
      nsing = j - 1;
    }
    if (nsing < N) {
      wa1[j - 1] = zero;
    }
  }
  if (nsing >= 1) {
    for (k = 1; k <= nsing; ++k) {
      j = nsing - k + 1;
      wa1[j - 1] = wa1[j - 1] / r[(j - 1) * N + j - 1];
      temp = wa1[j - 1];
      jm1 = j - 1;
      if (jm1 >= 1) {
        for (i = 1; i <= jm1; ++i) {
          wa1[i - 1] = wa1[i - 1] - r[(i - 1) * N + j - 1] * temp;
        }
      }
    }
  }
  for (j = 0; j < N; ++j) {
    l = ipvt[j];
    x[l] = wa1[j];
  }
  iter = 0;
  for (j = 0; j < N; ++j) {
    wa2[j] = diag[j] * x[j];
  }
  dxnorm = enorm(wa2, N);
  fp = dxnorm - delta;
  if (fp > p1 * delta) {
    parl = zero;
    if (nsing >= N) {
      for (j = 0; j < N; ++j) {
        l = ipvt[j];
        wa1[j] = diag[l] * (wa2[l] / dxnorm);
      }
      for (j = 0; j < N; ++j) {
        sum = zero;
        jm1 = j - 1;
        if (jm1 >= 0) {
          for (i = 0; i <= jm1; ++i) {
            sum = sum + r[i * N + j] * wa1[i];
          }
        }
        wa1[j] = (wa1[j] - sum) / r[j * N + j];
      }
      temp = enorm(wa1, N);
      parl = ((fp / delta) / temp) / temp;
    }
    for (j = 0; j < N; ++j) {
      sum = zero;
      for (i = 0; i <= j; ++i) {
        sum = sum + r[i * N + j] * qtb[i];
      }
      l = ipvt[j];
      wa1[j] = sum / diag[l];
    }
    gnorm = enorm(wa1, N);
    paru = gnorm / delta;
    if (paru == zero) {
      paru = dwarf / pmin(delta, p1);
    }
    *par = pmax(*par, parl);
    *par = pmin(*par, paru);
    if (*par == zero) {
      *par = gnorm / dxnorm;
    }
    while (1) {
      iter++;
      if (*par == zero) {
        *par = pmax(dwarf, p001 * paru);
      }
      temp = sqrt(*par);
      for (j = 0; j < N; ++j) {
        wa1[j] = temp * diag[j];
      }
      qrsolv(r, ldr, N, ipvt, wa1, qtb, x, sdiag);
      for (j = 0; j < N; ++j) {
        wa2[j] = diag[j] * x[j];
      }
      dxnorm = enorm(wa2, N);
      temp = fp;
      fp = dxnorm - delta;
      if (fabs(fp) <= p1 * delta) {
        break;
      }
      if (iter == 10) {
        break;
      }
      if (parl == zero && fp <= temp && temp < zero) {
        break;
      }
      for (j = 0; j < N; ++j) {
        l = ipvt[j];
        wa1[j] = diag[l] * (wa2[l] / dxnorm);
      }
      for (j = 0; j < N; ++j) {
        wa1[j] = wa1[j] / sdiag[j];
        temp = wa1[j];
        jp1 = j + 1;
        if (N >= jp1 + 1) {
          for (i = jp1; i < N; ++i) {
            wa1[i] = wa1[i] - r[i * N + j] * temp;
          }
        }
      }
      temp = enorm(wa1, N);
      parc = ((fp / delta) / temp) / temp;
      if (fp > zero) {
        parl = pmax(parl, *par);
      }
      if (fp < zero) {
        paru = pmin(paru, *par);
      }
      *par = pmax(parl, *par + parc);
    }
  }
  if (iter == 0) {
    *par = zero;
  }
  free(wa1);
  free(wa2);
}
```