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

```asm
<maskregion>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x190,%rsp
  mov    %rdi,-0x178(%rbp)
  mov    %esi,-0x17c(%rbp)
  mov    %rdx,-0x188(%rbp)
  mov    %rcx,-0x190(%rbp)
  mov    %r8d,-0x180(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x17c(%rbp),%eax
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <gridInqXsize@plt>
  mov    %eax,-0x158(%rbp)
  mov    -0x17c(%rbp),%eax
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <gridInqYsize@plt>
  mov    %eax,-0x154(%rbp)
  mov    -0x158(%rbp),%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,%rcx
  mov    $0x94,%edx
  lea    D95(%rip),%rax
  mov    %rax,%rsi
  lea    D129(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <Malloc@plt>
  cltq
  mov    %rax,-0x130(%rbp)
  mov    -0x154(%rbp),%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,%rcx
  mov    $0x95,%edx
  lea    D95(%rip),%rax
  mov    %rax,%rsi
  lea    D129(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <Malloc@plt>
  cltq
  mov    %rax,-0x128(%rbp)
  mov    -0x130(%rbp),%rdx
  mov    -0x17c(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <gridInqXvals@plt>
  mov    -0x128(%rbp),%rdx
  mov    -0x17c(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <gridInqYvals@plt>
  lea    -0x110(%rbp),%rdx
  mov    -0x17c(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <gridInqXunits@plt>
  mov    -0x130(%rbp),%rdx
  mov    -0x158(%rbp),%esi
  lea    -0x110(%rbp),%rax
  lea    D84(%rip),%rcx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <grid_to_degree@plt>
  lea    -0x110(%rbp),%rdx
  mov    -0x17c(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <gridInqYunits@plt>
  mov    -0x128(%rbp),%rdx
  mov    -0x154(%rbp),%esi
  lea    -0x110(%rbp),%rax
  lea    D123(%rip),%rcx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <grid_to_degree@plt>
  mov    -0x130(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x150(%rbp)
  mov    -0x130(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x148(%rbp)
  mov    -0x128(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x140(%rbp)
  mov    -0x128(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x138(%rbp)
  movl   $0x1,-0x16c(%rbp)
  jmp    L295
L142:
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x150(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L8
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x150(%rbp)
L8:
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x148(%rbp),%xmm0
  jbe    L281
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x148(%rbp)
L281:
  addl   $0x1,-0x16c(%rbp)
L295:
  mov    -0x16c(%rbp),%eax
  cmp    -0x158(%rbp),%eax
  jl     L142
  movl   $0x1,-0x16c(%rbp)
  jmp    L353
L139:
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x140(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L228
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x140(%rbp)
L228:
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x138(%rbp),%xmm0
  jbe    L404
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x138(%rbp)
L404:
  addl   $0x1,-0x16c(%rbp)
L353:
  mov    -0x16c(%rbp),%eax
  cmp    -0x154(%rbp),%eax
  jl     L139
  movl   $0x0,-0x164(%rbp)
  jmp    L13
L283:
  mov    -0x164(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x120(%rbp)
  movl   $0x0,-0x160(%rbp)
  jmp    L296
L375:
  movl   $0x0,-0x15c(%rbp)
  mov    -0x160(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x118(%rbp)
  movsd  -0x118(%rbp),%xmm0
  comisd -0x150(%rbp),%xmm0
  seta   %al
  xor    $0x1,%eax
  test   %al,%al
  je     L318
  movsd  -0x148(%rbp),%xmm0
  comisd -0x118(%rbp),%xmm0
  seta   %al
  xor    $0x1,%eax
  test   %al,%al
  je     L318
  movsd  -0x120(%rbp),%xmm0
  comisd -0x140(%rbp),%xmm0
  seta   %al
  xor    $0x1,%eax
  test   %al,%al
  je     L318
  movsd  -0x138(%rbp),%xmm0
  comisd -0x120(%rbp),%xmm0
  seta   %al
  xor    $0x1,%eax
  test   %al,%al
  je     L318
  cmpl   $0x0,-0x15c(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x15c(%rbp)
L318:
  cmpl   $0x0,-0x15c(%rbp)
  jne    L12
  movl   $0x0,-0x16c(%rbp)
  mov    -0x180(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x168(%rbp)
  jmp    L226
L3:
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x120(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L25
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x120(%rbp),%xmm0
  ja     L183
L25:
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x120(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L317
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x120(%rbp),%xmm0
  jbe    L317
L183:
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x188(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x188(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  movsd  -0x120(%rbp),%xmm0
  subsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm3
  movapd %xmm1,%xmm2
  subsd  %xmm3,%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x188(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm1,%xmm0
  comisd -0x118(%rbp),%xmm0
  jbe    L317
  cmpl   $0x0,-0x15c(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x15c(%rbp)
L317:
  mov    -0x16c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x16c(%rbp)
  mov    %eax,-0x168(%rbp)
L226:
  mov    -0x16c(%rbp),%eax
  cmp    -0x180(%rbp),%eax
  jl     L3
L12:
  cmpl   $0x0,-0x15c(%rbp)
  jne    L45
  movl   $0x0,-0x16c(%rbp)
  mov    -0x180(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x168(%rbp)
  jmp    L2
L200:
  mov    -0x160(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd D53(%rip),%xmm0
  jbe    L431
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x120(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L409
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x120(%rbp),%xmm0
  ja     L92
L409:
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x120(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L431
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x120(%rbp),%xmm0
  jbe    L431
L92:
  movsd  -0x118(%rbp),%xmm0
  movsd  D128(%rip),%xmm1
  movapd %xmm0,%xmm2
  subsd  %xmm1,%xmm2
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x188(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x188(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm3
  movapd %xmm0,%xmm1
  subsd  %xmm3,%xmm1
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm3
  movsd  -0x120(%rbp),%xmm0
  subsd  %xmm3,%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm4
  movapd %xmm1,%xmm3
  subsd  %xmm4,%xmm3
  movapd %xmm0,%xmm1
  divsd  %xmm3,%xmm1
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x188(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm1,%xmm0
  comisd %xmm2,%xmm0
  jbe    L431
  cmpl   $0x0,-0x15c(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x15c(%rbp)
L431:
  mov    -0x16c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x16c(%rbp)
  mov    %eax,-0x168(%rbp)
L2:
  mov    -0x16c(%rbp),%eax
  cmp    -0x180(%rbp),%eax
  jl     L200
L45:
  cmpl   $0x0,-0x15c(%rbp)
  jne    L252
  movl   $0x0,-0x16c(%rbp)
  mov    -0x180(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x168(%rbp)
  jmp    L176
L62:
  pxor   %xmm0,%xmm0
  comisd -0x118(%rbp),%xmm0
  jbe    L373
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x120(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L69
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x120(%rbp),%xmm0
  ja     L20
L69:
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x120(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L373
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x120(%rbp),%xmm0
  jbe    L373
L20:
  movsd  -0x118(%rbp),%xmm1
  movsd  D128(%rip),%xmm0
  movapd %xmm1,%xmm2
  addsd  %xmm0,%xmm2
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x188(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x188(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm3
  movapd %xmm0,%xmm1
  subsd  %xmm3,%xmm1
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm3
  movsd  -0x120(%rbp),%xmm0
  subsd  %xmm3,%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x190(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm4
  movapd %xmm1,%xmm3
  subsd  %xmm4,%xmm3
  movapd %xmm0,%xmm1
  divsd  %xmm3,%xmm1
  mov    -0x16c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x188(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm1,%xmm0
  comisd %xmm2,%xmm0
  jbe    L373
  cmpl   $0x0,-0x15c(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x15c(%rbp)
L373:
  mov    -0x16c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x16c(%rbp)
  mov    %eax,-0x168(%rbp)
L176:
  mov    -0x16c(%rbp),%eax
  cmp    -0x180(%rbp),%eax
  jl     L62
L252:
  cmpl   $0x0,-0x15c(%rbp)
  je     L301
  mov    -0x158(%rbp),%eax
  imul   -0x164(%rbp),%eax
  mov    %eax,%edx
  mov    -0x160(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x178(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
L301:
  addl   $0x1,-0x160(%rbp)
L296:
  mov    -0x160(%rbp),%eax
  cmp    -0x158(%rbp),%eax
  jl     L375
  addl   $0x1,-0x164(%rbp)
L13:
  mov    -0x164(%rbp),%eax
  cmp    -0x154(%rbp),%eax
  jl     L283
  mov    -0x130(%rbp),%rax
  mov    %rax,%rcx
  mov    $0xe7,%edx
  lea    D95(%rip),%rax
  mov    %rax,%rsi
  lea    D129(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <Free@plt>
  mov    -0x128(%rbp),%rax
  mov    %rax,%rcx
  mov    $0xe8,%edx
  lea    D95(%rip),%rax
  mov    %rax,%rsi
  lea    D129(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <Free@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L180
  call   <__stack_chk_fail@plt>
L180:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D95
data_type: string
name: extract_symbolic_data
arguments: data_tag: D129
data_type: string
name: extract_symbolic_data
arguments: data_tag: D84
data_type: string
name: extract_symbolic_data
arguments: data_tag: D123
data_type: string
name: extract_symbolic_data
arguments: data_tag: D53
data_type: byte[16]
name: extract_symbolic_data
arguments: data_tag: D128
data_type: byte[8]

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

tool: D129: maskregion

tool: D84: grid center lon

tool: D123: grid center lat

tool: {"D53": [0x00,0x00,0x00,0x00,0x00,0x80,0x66,0x40,0x00,0x00,0x00,0x00,0x00,0x80,0x76,0x40]}

tool: {"D128": [0x00,0x00,0x00,0x00,0x00,0x80,0x76,0x40]}

assistant: ```c
void maskregion(int *mask, int gridID, double *xcoords, double *ycoords, int nofcoords) {
  int i, j;
  int nlon, nlat;
  int ilat, ilon;
  int c;
  double *xvals, *yvals;
  double xval, yval;
  double xmin, xmax, ymin, ymax;
  nlon = gridInqXsize(gridID);
  nlat = gridInqYsize(gridID);
  xvals = (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/Maskbox.c", 148, (nlon * sizeof(double)));
  yvals = (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/Maskbox.c", 149, (nlat * sizeof(double)));
  gridInqXvals(gridID, xvals);
  gridInqYvals(gridID, yvals);
  {
    char units[256];
    gridInqXunits(gridID, units);
    grid_to_degree(units, nlon, xvals, "grid center lon");
    gridInqYunits(gridID, units);
    grid_to_degree(units, nlat, yvals, "grid center lat");
  }
  xmin = xvals[0];
  xmax = xvals[0];
  ymin = yvals[0];
  ymax = yvals[0];
  for (i = 1; i < nlon; i++) {
    if (xvals[i] < xmin)
      xmin = xvals[i];
    if (xvals[i] > xmax)
      xmax = xvals[i];
  }
  for (i = 1; i < nlat; i++) {
    if (yvals[i] < ymin)
      ymin = yvals[i];
    if (yvals[i] > ymax)
      ymax = yvals[i];
  }
  for (ilat = 0; ilat < nlat; ilat++) {
    yval = yvals[ilat];
    for (ilon = 0; ilon < nlon; ilon++) {
      c = 0;
      xval = xvals[ilon];
      if (!(((xval > xmin) || (xval < xmax)) || ((yval > ymin) || (yval < ymax))))
        c = !c;
      if (c == 0) {
        for (i = 0, j = nofcoords - 1; i < nofcoords; j = i++)
          if ((((ycoords[i] <= yval) && (yval < ycoords[j])) || ((ycoords[j] <= yval) && (yval < ycoords[i]))) && ((xval) < (xcoords[j] - (xcoords[i])) * (yval - ycoords[i]) / (ycoords[j] - ycoords[i]) + (xcoords[i])))
            c = !c;
      }
      if (c == 0) {
        for (i = 0, j = nofcoords - 1; i < nofcoords; j = i++) {
          if (xvals[ilon] > 180) {
            if ((((ycoords[i] <= yval) && (yval < ycoords[j])) || ((ycoords[j] <= yval) && (yval < ycoords[i]))) && ((xval - 360) < (xcoords[j] - (xcoords[i])) * (yval - ycoords[i]) / (ycoords[j] - ycoords[i]) + (xcoords[i])))
              c = !c;
          }
        }
      }
      if (c == 0) {
        for (i = 0, j = nofcoords - 1; i < nofcoords; j = i++) {
          if (xval < 0) {
            if ((((ycoords[i] <= yval) && (yval < ycoords[j])) || ((ycoords[j] <= yval) && (yval < ycoords[i]))) && ((xval + 360) < (xcoords[j] - (xcoords[i])) * (yval - ycoords[i]) / (ycoords[j] - ycoords[i]) + (xcoords[i])))
              c = !c;
          }
        }
      }
      if (c != 0)
        mask[nlon * ilat + ilon] = 0;
    }
  }
  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/Maskbox.c", 231, (xvals));
  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/Maskbox.c", 232, (yvals));
}
```