user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<compare_grid_unstructured>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  push   %r13
  push   %r12
  lea    D11(%rip),%r12
  push   %rbp
  lea    D38(%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    L3
  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   D47(%rip),%xmm2
  movsd  D17(%rip),%xmm1
  sub    %rbx,%rcx
  jmp    L16
  nopl   0x0(%rax,%rax,1)
L32:
  movsd  (%rsi,%rax,1),%xmm0
  subsd  (%rcx,%rax,1),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  ja     L24
  add    $0x8,%rax
  cmp    %rdi,%rax
  je     L3
L16:
  movsd  (%rax),%xmm0
  subsd  (%rdx,%rax,1),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jbe    L32
L24:
  lea    D12(%rip),%rdi
  xor    %eax,%eax
  call   <cdoWarning@plt>
L3:
  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: read_data
arguments: data_label: D11
type: string
name: read_data
arguments: data_label: D38
type: string
name: read_data
arguments: data_label: D47
type: qword
name: read_data
arguments: data_label: D17
type: byte[8]
name: read_data
arguments: data_label: D12
type: string

tool: D11: /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: D38: compare_grid_unstructured

tool: D47: 9223372036854775807

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

tool: D12: 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));
}
```