user: What is the c source code of the assembly code below?

```asm
<remez>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %esi,0x54(%rsp)
  mov    0xd0(%rsp),%r14d
  mov    %rdi,0x60(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  mov    %esi,%eax
  shr    $0x1f,%eax
  add    %esi,%eax
  and    $0x1,%esi
  sar    %eax
  mov    %esi,0x40(%rsp)
  mov    %eax,0x2c(%rsp)
  cmp    $0x1,%r14d
  je     L241
  mov    %eax,%ebx
  movl   $0x0,0x50(%rsp)
  mov    $0xfffffffffffffff8,%r12
  mov    $0xffffffff,%eax
  movl   $0x0,0x84(%rsp)
  test   %edx,%edx
  jle    L17
L44:
  mov    %ebx,%eax
  pxor   %xmm6,%xmm6
  mov    $0x1,%esi
  shl    $0x5,%eax
  test   %edx,%edx
  cvtsi2sd %eax,%xmm6
  cmovg  %edx,%esi
  cmp    $0x3,%edx
  jle    L217
  mov    %esi,%edi
  movapd %xmm6,%xmm5
  movapd D99(%rip),%xmm4
  mov    %rcx,%rax
  shr    $0x2,%edi
  unpcklpd %xmm5,%xmm5
  pxor   %xmm3,%xmm3
  sub    $0x1,%edi
  shl    $0x6,%rdi
  lea    0x40(%rcx,%rdi,1),%rdi
  cs nopw 0x0(%rax,%rax,1)
L430:
  movupd (%rax),%xmm1
  movupd 0x10(%rax),%xmm0
  add    $0x40,%rax
  movlpd -0x38(%rax),%xmm0
  movupd -0x20(%rax),%xmm2
  movhpd -0x30(%rax),%xmm1
  subpd  %xmm1,%xmm0
  movupd -0x10(%rax),%xmm1
  movlpd -0x18(%rax),%xmm1
  movhpd -0x10(%rax),%xmm2
  subpd  %xmm2,%xmm1
  mulpd  %xmm5,%xmm0
  mulpd  %xmm5,%xmm1
  addpd  %xmm4,%xmm0
  addpd  %xmm4,%xmm1
  cvttpd2dq %xmm0,%xmm0
  cvttpd2dq %xmm1,%xmm1
  punpcklqdq %xmm1,%xmm0
  paddd  %xmm0,%xmm3
  cmp    %rdi,%rax
  jne    L430
  movdqa %xmm3,%xmm0
  mov    %esi,%edi
  psrldq $0x8,%xmm0
  and    $0xfffffffc,%edi
  and    $0x3,%esi
  paddd  %xmm0,%xmm3
  movdqa %xmm3,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm3
  movd   %xmm3,%eax
  je     L222
L448:
  lea    (%rdi,%rdi,1),%esi
  movsd  D99(%rip),%xmm1
  movslq %esi,%r11
  movsd  0x8(%rcx,%r11,8),%xmm0
  subsd  (%rcx,%r11,8),%xmm0
  lea    0x0(,%r11,8),%r10
  mulsd  %xmm6,%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%r11d
  add    %r11d,%eax
  lea    0x1(%rdi),%r11d
  cmp    %r11d,%edx
  jle    L222
  add    $0x2,%esi
  add    $0x2,%edi
  movslq %esi,%rsi
  movsd  0x8(%rcx,%rsi,8),%xmm0
  subsd  0x10(%rcx,%r10,1),%xmm0
  mulsd  %xmm6,%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%r11d
  add    %r11d,%eax
  cmp    %edi,%edx
  jle    L222
  movsd  0x18(%rcx,%rsi,8),%xmm0
  subsd  0x20(%rcx,%r10,1),%xmm0
  mulsd  %xmm6,%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%esi
  add    %esi,%eax
L222:
  mov    0x50(%rsp),%r10d
  mov    %eax,0x84(%rsp)
  test   %r10d,%r10d
  je     L352
  movslq %eax,%r12
  shl    $0x3,%r12
  jmp    L427
  nop
L352:
  sub    $0x1,%eax
  movslq %eax,%r12
  shl    $0x3,%r12
L17:
  mov    %eax,0x84(%rsp)
  movl   $0x0,0x50(%rsp)
L427:
  mov    %r12,%rdi
  mov    %r9,0x68(%rsp)
  lea    0x1(%rbx),%r15d
  mov    %r8,0x48(%rsp)
  movslq %r15d,%r15
  mov    %rcx,0x30(%rsp)
  mov    %edx,0x20(%rsp)
  call   <malloc@plt>
  mov    %r12,%rdi
  mov    %rax,0x38(%rsp)
  call   <malloc@plt>
  mov    %r12,%rdi
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    %r12,%rdi
  mov    %rax,0x8(%rsp)
  call   <malloc@plt>
  lea    0x0(,%r15,4),%rdi
  shl    $0x3,%r15
  mov    %rax,%r13
  call   <malloc@plt>
  mov    %r15,%rdi
  mov    %rax,%r12
  call   <malloc@plt>
  mov    %r15,%rdi
  mov    %rax,0x58(%rsp)
  call   <malloc@plt>
  mov    %r15,%rdi
  mov    %rax,0x10(%rsp)
  call   <malloc@plt>
  mov    %r15,%rdi
  mov    %rax,0x18(%rsp)
  call   <malloc@plt>
  sub    $0x8,%rsp
  mov    %ebx,%edi
  mov    0x58(%rsp),%ecx
  mov    %rax,%r15
  push   %rcx
  push   0x18(%rsp)
  push   %rbp
  push   0x58(%rsp)
  lea    0xac(%rsp),%rax
  push   %rax
  mov    0x84(%rsp),%esi
  xor    %eax,%eax
  mov    0x98(%rsp),%r9
  mov    0x78(%rsp),%r8
  mov    0x60(%rsp),%rcx
  mov    0x50(%rsp),%edx
  call   <CreateDenseGrid@plt>
  mov    0xb4(%rsp),%edx
  xor    %eax,%eax
  mov    %ebx,%edi
  add    $0x30,%rsp
  mov    %r12,%rsi
  call   <InitialGuess@plt>
  cmp    $0x2,%r14d
  je     L306
L337:
  cmpl   $0x1,0x50(%rsp)
  je     L367
  mov    0x40(%rsp),%edi
  mov    0x84(%rsp),%r14d
  test   %edi,%edi
  je     L401
  test   %r14d,%r14d
  jle    L184
  movslq %r14d,%rax
  movsd  D1(%rip),%xmm4
  xor    %r14d,%r14d
  mov    %r13,0x20(%rsp)
  mov    %r12,0x48(%rsp)
  mov    0x8(%rsp),%r13
  mov    %rbp,%r12
  mov    %r14,%rbp
  mov    0x38(%rsp),%r14
  mov    %ebx,0x68(%rsp)
  mov    %rax,%rbx
  movsd  %xmm4,0x30(%rsp)
  nopl   0x0(%rax,%rax,1)
L236:
  movsd  0x30(%rsp),%xmm0
  mulsd  (%r14,%rbp,8),%xmm0
  call   <sin@plt>
  movsd  (%r12,%rbp,8),%xmm1
  divsd  %xmm0,%xmm1
  mulsd  0x0(%r13,%rbp,8),%xmm0
  movsd  %xmm0,0x0(%r13,%rbp,8)
  movsd  %xmm1,(%r12,%rbp,8)
  add    $0x1,%rbp
  cmp    %rbx,%rbp
  jne    L236
L155:
  mov    %r12,%rbp
  mov    0x20(%rsp),%r13
  mov    0x48(%rsp),%r12
  mov    0x68(%rsp),%ebx
L184:
  mov    $0x64,%r14d
  mov    %r14d,0x20(%rsp)
  mov    %r12,%r14
  mov    0x38(%rsp),%r12
  jmp    L235
  xchg   %ax,%ax
L76:
  subl   $0x1,0x20(%rsp)
  je     L131
L235:
  push   0x18(%rsp)
  mov    %r15,%r9
  mov    %rbp,%rcx
  mov    %r12,%rdx
  push   0x18(%rsp)
  mov    %r14,%rsi
  mov    %ebx,%edi
  xor    %eax,%eax
  mov    0x18(%rsp),%r8
  call   <CalcParms@plt>
  mov    %r13,(%rsp)
  mov    %r12,%r9
  mov    %r15,%rsi
  push   0x18(%rsp)
  mov    %ebx,%edi
  xor    %eax,%eax
  push   %rbp
  mov    0xa4(%rsp),%r8d
  mov    0x38(%rsp),%rcx
  mov    0x30(%rsp),%rdx
  call   <CalcError@plt>
  mov    0xa4(%rsp),%edx
  mov    %ebx,%edi
  xor    %eax,%eax
  add    $0x20,%rsp
  mov    %r14,%rsi
  mov    %r13,%rcx
  call   <Search@plt>
  xor    %eax,%eax
  mov    %r13,%rdx
  mov    %r14,%rsi
  mov    %ebx,%edi
  call   <isDone@plt>
  test   %eax,%eax
  je     L76
  mov    %r14,%r12
L169:
  push   0x18(%rsp)
  mov    %rbp,%rcx
  mov    %r12,%rsi
  xor    %eax,%eax
  push   0x18(%rsp)
  mov    %r15,%r9
  mov    %ebx,%edi
  mov    0x18(%rsp),%r8
  mov    0x48(%rsp),%rdx
  call   <CalcParms@plt>
  pop    %rcx
  pop    %rsi
  cmpl   $0xffffffff,0x54(%rsp)
  jl     L28
  pxor   %xmm6,%xmm6
  xor    %r14d,%r14d
  cmpl   $0x1,0x50(%rsp)
  cvtsi2sdl 0x54(%rsp),%xmm6
  movsd  %xmm6,0x20(%rsp)
  je     L319
  mov    0x40(%rsp),%edx
  test   %edx,%edx
  jne    L5
  movsd  D56(%rip),%xmm7
  mov    %rbp,0x68(%rsp)
  mov    %r13,0x70(%rsp)
  mov    0x58(%rsp),%rbp
  mov    %r12,0x78(%rsp)
  mov    0x18(%rsp),%r13
  mov    0x10(%rsp),%r12
  movsd  %xmm7,0x30(%rsp)
  nopw   0x0(%rax,%rax,1)
L230:
  pxor   %xmm1,%xmm1
  movsd  0x30(%rsp),%xmm0
  cvtsi2sd %r14d,%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm1,0x48(%rsp)
  divsd  0x20(%rsp),%xmm0
  call   <sin@plt>
  mov    %r13,%rcx
  mov    %r12,%rdx
  movsd  0x48(%rsp),%xmm1
  mov    %r15,%rsi
  mov    %ebx,%edi
  mov    $0x1,%eax
  movsd  %xmm0,0x40(%rsp)
  divsd  0x20(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <ComputeA@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x40(%rsp),%xmm0
  movsd  %xmm0,0x0(%rbp,%r14,8)
  add    $0x1,%r14
  cmp    %r14d,0x2c(%rsp)
  jge    L230
L273:
  mov    0x68(%rsp),%rbp
  mov    0x70(%rsp),%r13
  mov    0x78(%rsp),%r12
L28:
  mov    0x50(%rsp),%ecx
  mov    0x60(%rsp),%rdx
  xor    %eax,%eax
  mov    0x58(%rsp),%rsi
  mov    0x54(%rsp),%edi
  call   <FreqSample@plt>
  mov    0x38(%rsp),%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L53
  add    $0x98,%rsp
  mov    %r15,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1120 <free@plt>
  nop
L401:
  test   %r14d,%r14d
  jle    L184
  movslq %r14d,%rax
  movsd  D56(%rip),%xmm6
  xor    %r14d,%r14d
  mov    %r13,0x20(%rsp)
  mov    %r12,0x48(%rsp)
  mov    0x8(%rsp),%r13
  mov    %r14,%r12
  mov    0x38(%rsp),%r14
  mov    %ebx,0x68(%rsp)
  mov    %rax,%rbx
  movsd  %xmm6,0x30(%rsp)
  nopl   0x0(%rax,%rax,1)
L287:
  movsd  0x30(%rsp),%xmm0
  mulsd  (%r14,%r12,8),%xmm0
  call   <sin@plt>
  movsd  0x0(%rbp,%r12,8),%xmm1
  divsd  %xmm0,%xmm1
  mulsd  0x0(%r13,%r12,8),%xmm0
  movsd  %xmm0,0x0(%r13,%r12,8)
  movsd  %xmm1,0x0(%rbp,%r12,8)
  add    $0x1,%r12
  cmp    %r12,%rbx
  jne    L287
  mov    0x20(%rsp),%r13
  mov    0x48(%rsp),%r12
  mov    0x68(%rsp),%ebx
  jmp    L184
  nopl   (%rax)
L241:
  test   %esi,%esi
  je     L380
  movl   $0x0,0x84(%rsp)
  lea    0x1(%rax),%ebx
  movl   $0x1,0x50(%rsp)
  test   %edx,%edx
  jg     L44
L19:
  xor    %r12d,%r12d
  jmp    L427
  xchg   %ax,%ax
L367:
  mov    0x40(%rsp),%r8d
  test   %r8d,%r8d
  jne    L184
  movslq 0x84(%rsp),%rax
  test   %eax,%eax
  jle    L184
  movsd  D56(%rip),%xmm6
  xor    %r14d,%r14d
  mov    %r13,0x20(%rsp)
  mov    %ebx,0x68(%rsp)
  mov    0x8(%rsp),%r13
  mov    0x38(%rsp),%rbx
  mov    %r12,0x48(%rsp)
  mov    %rbp,%r12
  mov    %r14,%rbp
  movsd  %xmm6,0x30(%rsp)
  mov    %rax,%r14
L61:
  movsd  0x30(%rsp),%xmm0
  mulsd  (%rbx,%rbp,8),%xmm0
  call   <cos@plt>
  movsd  (%r12,%rbp,8),%xmm1
  divsd  %xmm0,%xmm1
  mulsd  0x0(%r13,%rbp,8),%xmm0
  movsd  %xmm0,0x0(%r13,%rbp,8)
  movsd  %xmm1,(%r12,%rbp,8)
  add    $0x1,%rbp
  cmp    %rbp,%r14
  jne    L61
  jmp    L155
  nopl   0x0(%rax)
L306:
  movslq 0x84(%rsp),%rdx
  test   %edx,%edx
  jle    L337
  movsd  D41(%rip),%xmm1
  mov    0x38(%rsp),%rsi
  xor    %eax,%eax
  mov    0x8(%rsp),%rcx
  nopl   0x0(%rax)
L312:
  movsd  0x0(%rbp,%rax,8),%xmm0
  comisd %xmm1,%xmm0
  jbe    L415
  movsd  (%rcx,%rax,8),%xmm0
  divsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
L415:
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L312
  jmp    L337
  nopl   0x0(%rax)
L319:
  mov    0x40(%rsp),%eax
  test   %eax,%eax
  jne    L432
  movsd  D56(%rip),%xmm3
  mov    %rbp,0x68(%rsp)
  mov    %r13,0x70(%rsp)
  mov    0x58(%rsp),%rbp
  mov    %r12,0x78(%rsp)
  mov    0x18(%rsp),%r13
  mov    0x10(%rsp),%r12
  movsd  %xmm3,0x30(%rsp)
L213:
  pxor   %xmm1,%xmm1
  movsd  0x30(%rsp),%xmm0
  cvtsi2sd %r14d,%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm1,0x48(%rsp)
  divsd  0x20(%rsp),%xmm0
  call   <cos@plt>
  mov    %r13,%rcx
  mov    %r12,%rdx
  movsd  0x48(%rsp),%xmm1
  mov    %r15,%rsi
  mov    %ebx,%edi
  mov    $0x1,%eax
  movsd  %xmm0,0x40(%rsp)
  divsd  0x20(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <ComputeA@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x40(%rsp),%xmm0
  movsd  %xmm0,0x0(%rbp,%r14,8)
  add    $0x1,%r14
  cmp    %r14d,0x2c(%rsp)
  jge    L213
  jmp    L273
  nopl   0x0(%rax)
L5:
  movsd  D1(%rip),%xmm4
  mov    %rbp,0x68(%rsp)
  mov    %r13,0x70(%rsp)
  mov    0x58(%rsp),%rbp
  mov    %r12,0x78(%rsp)
  mov    0x18(%rsp),%r13
  mov    0x10(%rsp),%r12
  movsd  %xmm4,0x30(%rsp)
  nopl   0x0(%rax)
L334:
  pxor   %xmm1,%xmm1
  movsd  0x30(%rsp),%xmm0
  cvtsi2sd %r14d,%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm1,0x48(%rsp)
  divsd  0x20(%rsp),%xmm0
  call   <sin@plt>
  mov    %r13,%rcx
  mov    %r12,%rdx
  movsd  0x48(%rsp),%xmm1
  mov    %r15,%rsi
  mov    %ebx,%edi
  mov    $0x1,%eax
  movsd  %xmm0,0x40(%rsp)
  divsd  0x20(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <ComputeA@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x40(%rsp),%xmm0
  movsd  %xmm0,0x0(%rbp,%r14,8)
  add    $0x1,%r14
  cmp    %r14d,0x2c(%rsp)
  jge    L334
  jmp    L273
  nopl   0x0(%rax)
L380:
  movl   $0x0,0x84(%rsp)
  mov    %eax,%ebx
  movl   $0x1,0x50(%rsp)
  test   %edx,%edx
  jg     L44
  jmp    L19
L432:
  mov    %rbp,0x30(%rsp)
  mov    0x58(%rsp),%rbp
  mov    %r13,0x40(%rsp)
  mov    0x18(%rsp),%r13
  mov    %r12,0x48(%rsp)
  mov    0x10(%rsp),%r12
L353:
  pxor   %xmm0,%xmm0
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %r15,%rsi
  mov    %ebx,%edi
  cvtsi2sd %r14d,%xmm0
  mov    $0x1,%eax
  divsd  0x20(%rsp),%xmm0
  call   <ComputeA@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,0x0(%rbp,%r14,8)
  add    $0x1,%r14
  cmp    %r14d,0x2c(%rsp)
  jge    L353
  mov    0x30(%rsp),%rbp
  mov    0x40(%rsp),%r13
  mov    0x48(%rsp),%r12
  jmp    L28
  nopw   0x0(%rax,%rax,1)
L131:
  lea    D48(%rip),%rdi
  mov    %r14,%r12
  call   <puts@plt>
  jmp    L169
L217:
  xor    %eax,%eax
  xor    %edi,%edi
  jmp    L448
L53:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D99
type_infered: byte[16]
name: parse_data
arguments: data_tag: D1
type_infered: f64
name: parse_data
arguments: data_tag: D56
type_infered: f64
name: parse_data
arguments: data_tag: D41
type_infered: f64
name: parse_data
arguments: data_tag: D48
type_infered: string

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

tool: D1: 6.283185307179586

tool: D56: 3.141592653589793

tool: D41: 0.0001

tool: D48: Reached maximum iteration count.
Results may be bad.

assistant: ```c
void remez(double h[], int numtaps, int numband, double bands[], double des[], double weight[], int type) {
  double *Grid, *W, *D, *E;
  int i, iter, gridsize, r, *Ext;
  double *taps, c;
  double *x, *y, *ad;
  int symmetry;
  if (type == 1)
    symmetry = 1;
  else
    symmetry = 0;
  r = numtaps / 2;
  if ((numtaps % 2) && (symmetry == 1))
    r++;
  gridsize = 0;
  for (i = 0; i < numband; i++) {
    gridsize += (int)(2 * r * 16 * (bands[2 * i + 1] - bands[2 * i]) + .5);
  }
  if (symmetry == 0) {
    gridsize--;
  }
  Grid = (double *)malloc(gridsize * sizeof(double));
  D = (double *)malloc(gridsize * sizeof(double));
  W = (double *)malloc(gridsize * sizeof(double));
  E = (double *)malloc(gridsize * sizeof(double));
  Ext = (int *)malloc((r + 1) * sizeof(int));
  taps = (double *)malloc((r + 1) * sizeof(double));
  x = (double *)malloc((r + 1) * sizeof(double));
  y = (double *)malloc((r + 1) * sizeof(double));
  ad = (double *)malloc((r + 1) * sizeof(double));
  CreateDenseGrid(r, numtaps, numband, bands, des, weight, &gridsize, Grid, D, W, symmetry);
  InitialGuess(r, Ext, gridsize);
  if (type == 2) {
    for (i = 0; i < gridsize; i++) {
      if (D[i] > 0.0001)
        W[i] = W[i] / Grid[i];
    }
  }
  if (symmetry == 1) {
    if (numtaps % 2 == 0) {
      for (i = 0; i < gridsize; i++) {
        c = cos(3.1415926535897932 * Grid[i]);
        D[i] /= c;
        W[i] *= c;
      }
    }
  } else {
    if (numtaps % 2) {
      for (i = 0; i < gridsize; i++) {
        c = sin(6.2831853071795865 * Grid[i]);
        D[i] /= c;
        W[i] *= c;
      }
    } else {
      for (i = 0; i < gridsize; i++) {
        c = sin(3.1415926535897932 * Grid[i]);
        D[i] /= c;
        W[i] *= c;
      }
    }
  }
  for (iter = 0; iter < 100; iter++) {
    CalcParms(r, Ext, Grid, D, W, ad, x, y);
    CalcError(r, ad, x, y, gridsize, Grid, D, W, E);
    Search(r, Ext, gridsize, E);
    if (isDone(r, Ext, E))
      break;
  }
  if (iter == 100) {
    printf("Reached maximum iteration count.\nResults may be bad.\n");
  }
  CalcParms(r, Ext, Grid, D, W, ad, x, y);
  for (i = 0; i <= numtaps / 2; i++) {
    if (symmetry == 1) {
      if (numtaps % 2)
        c = 1;
      else
        c = cos(3.1415926535897932 * (double)i / numtaps);
    } else {
      if (numtaps % 2)
        c = sin(6.2831853071795865 * (double)i / numtaps);
      else
        c = sin(3.1415926535897932 * (double)i / numtaps);
    }
    taps[i] = ComputeA((double)i / numtaps, r, ad, x, y) * c;
  }
  FreqSample(numtaps, taps, h, symmetry);
  free(Grid);
  free(W);
  free(D);
  free(E);
  free(Ext);
  free(x);
  free(y);
  free(ad);
}
```