user: Translate the below assembly code into C programming language:

```asm
<compare_grid_unstructured>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  push   %r13
  push   %r12
  lea    D24(%rip),%r12
  push   %rbp
  lea    D17(%rip),%rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %esi,0xc(%rsp)
  mov    %edi,(%rsp)
  call   <gridInqSize@plt>
  mov    $0x5f,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  movslq %eax,%r13
  xor    %eax,%eax
  mov    %r13d,0x8(%rsp)
  shl    $0x3,%r13
  mov    %r13,%rcx
  call   <Malloc@plt>
  mov    %r13,%rcx
  mov    $0x60,%edx
  mov    %r12,%rsi
  movslq %eax,%rbx
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <Malloc@plt>
  mov    %r13,%rcx
  mov    $0x61,%edx
  mov    %r12,%rsi
  movslq %eax,%r15
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <Malloc@plt>
  mov    %r13,%rcx
  mov    $0x62,%edx
  mov    %r12,%rsi
  movslq %eax,%r14
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <Malloc@plt>
  mov    (%rsp),%r8d
  mov    %rbx,%rsi
  movslq %eax,%r13
  xor    %eax,%eax
  mov    %r8d,%edi
  mov    %r8d,0x4(%rsp)
  call   <gridInqXvals@plt>
  mov    0xc(%rsp),%r10d
  mov    %r15,%rsi
  xor    %eax,%eax
  mov    %r10d,%edi
  mov    %r10d,(%rsp)
  call   <gridInqXvals@plt>
  mov    0x4(%rsp),%edi
  mov    %r14,%rsi
  xor    %eax,%eax
  call   <gridInqYvals@plt>
  mov    (%rsp),%edi
  mov    %r13,%rsi
  xor    %eax,%eax
  call   <gridInqYvals@plt>
  mov    0x8(%rsp),%r9d
  test   %r9d,%r9d
  jle    L17
  lea    -0x1(%r9),%eax
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %r13,%rcx
  lea    0x8(%rbx,%rax,8),%rdi
  sub    %rbx,%rdx
  mov    %rbx,%rax
  sub    %rbx,%rsi
  movq   D20(%rip),%xmm2
  movsd  D18(%rip),%xmm1
  sub    %rbx,%rcx
  jmp    L49
  nopl   0x0(%rax,%rax,1)
L16:
  movsd  (%rsi,%rax,1),%xmm0
  subsd  (%rcx,%rax,1),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  ja     L0
  add    $0x8,%rax
  cmp    %rax,%rdi
  je     L17
L49:
  movsd  (%rax),%xmm0
  subsd  (%rdx,%rax,1),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jbe    L16
L0:
  lea    D14(%rip),%rdi
  xor    %eax,%eax
  call   <cdoWarning@plt>
L17:
  mov    %rbx,%rcx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  mov    $0x70,%edx
  xor    %eax,%eax
  call   <Free@plt>
  mov    %r15,%rcx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  mov    $0x71,%edx
  xor    %eax,%eax
  call   <Free@plt>
  mov    %r14,%rcx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  mov    $0x72,%edx
  xor    %eax,%eax
  call   <Free@plt>
  add    $0x18,%rsp
  mov    %r13,%rcx
  mov    %r12,%rsi
  pop    %rbx
  mov    %rbp,%rdi
  mov    $0x73,%edx
  pop    %rbp
  xor    %eax,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10c0 <Free@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D24
type_infered: string
name: disassemble_data
arguments: data_label: D17
type_infered: string
name: disassemble_data
arguments: data_label: D20
type_infered: qword
name: disassemble_data
arguments: data_label: D18
type_infered: byte[8]
name: disassemble_data
arguments: data_label: D14
type_infered: string

tool: D24: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdo_vlist.c

tool: D17: compare_grid_unstructured

tool: D20: 9223372036854775807

tool: {"D18": [0xf1,0x68,0xe3,0x88,0xb5,0xf8,0xe4,0x3e]}

tool: D14: Geographic location of some grid points differ!

assistant: ```c
void compare_grid_unstructured(int gridID1, int gridID2) {
  double *xvals1, *xvals2;
  double *yvals1, *yvals2;
  int gridsize;
  gridsize = gridInqSize(gridID1);
  xvals1 = (double *)Malloc(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdo_vlist.c", 95, (gridsize * sizeof(double)));
  xvals2 = (double *)Malloc(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdo_vlist.c", 96, (gridsize * sizeof(double)));
  yvals1 = (double *)Malloc(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdo_vlist.c", 97, (gridsize * sizeof(double)));
  yvals2 = (double *)Malloc(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdo_vlist.c", 98, (gridsize * sizeof(double)));
  gridInqXvals(gridID1, xvals1);
  gridInqXvals(gridID2, xvals2);
  gridInqYvals(gridID1, yvals1);
  gridInqYvals(gridID2, yvals2);
  for (int i = 0; i < gridsize; ++i)
    if (fabs(xvals1[i] - xvals2[i]) > 1.e-5 || fabs(yvals1[i] - yvals2[i]) > 1.e-5) {
      cdoWarning("Geographic location of some grid points differ!");
      break;
    }
  Free(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdo_vlist.c", 112, (xvals1));
  Free(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdo_vlist.c", 113, (xvals2));
  Free(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdo_vlist.c", 114, (yvals1));
  Free(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdo_vlist.c", 115, (yvals2));
}
```