user: 下面的汇编指令对应的C源代码是什么:

```asm
<_reproject_slice_c>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x170,%rsp
  mov    %edi,-0xf4(%rbp)
  mov    %esi,-0xf8(%rbp)
  mov    %edx,-0xfc(%rbp)
  mov    %ecx,-0x100(%rbp)
  mov    %r8d,-0x104(%rbp)
  mov    %r9d,-0x108(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x110(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0x118(%rbp)
  mov    0x20(%rbp),%rax
  mov    %rax,-0x120(%rbp)
  mov    0x28(%rbp),%rax
  mov    %rax,-0x128(%rbp)
  mov    0x30(%rbp),%rax
  mov    %rax,-0x130(%rbp)
  mov    0x38(%rbp),%rax
  mov    %rax,-0x138(%rbp)
  mov    0x40(%rbp),%rax
  mov    %rax,-0x140(%rbp)
  mov    0x48(%rbp),%rax
  mov    %rax,-0x148(%rbp)
  mov    0x50(%rbp),%rax
  mov    %rax,-0x150(%rbp)
  mov    0x58(%rbp),%rax
  mov    %rax,-0x158(%rbp)
  mov    0x60(%rbp),%rax
  mov    %rax,-0x160(%rbp)
  mov    0x68(%rbp),%rax
  mov    %rax,-0x168(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0xf4(%rbp),%eax
  mov    %eax,-0xf0(%rbp)
  jmp    L73
L112:
  mov    -0xfc(%rbp),%eax
  mov    %eax,-0xec(%rbp)
  jmp    L58
L67:
  mov    -0xec(%rbp),%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x110(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  mov    -0xec(%rbp),%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x110(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    -0xec(%rbp),%eax
  add    $0x1,%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x110(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0xec(%rbp),%eax
  add    $0x1,%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x110(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0xec(%rbp),%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x118(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0xec(%rbp),%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x118(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0xec(%rbp),%eax
  add    $0x1,%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x118(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0xec(%rbp),%eax
  add    $0x1,%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x118(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  lea    -0x50(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <min_4@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D35(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0xe0(%rbp)
  lea    -0x50(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <max_4@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D35(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0xdc(%rbp)
  lea    -0x30(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <min_4@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D35(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0xd8(%rbp)
  lea    -0x30(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <max_4@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D35(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0xd4(%rbp)
  mov    -0xec(%rbp),%eax
  add    $0x1,%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x120(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0xd0(%rbp)
  mov    -0xec(%rbp),%eax
  add    $0x1,%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x120(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0xc8(%rbp)
  mov    -0xec(%rbp),%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x120(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0xc0(%rbp)
  mov    -0xec(%rbp),%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x120(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  mov    -0xec(%rbp),%eax
  add    $0x1,%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  mov    -0xec(%rbp),%eax
  add    $0x1,%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0xa8(%rbp)
  mov    -0xec(%rbp),%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  mov    -0xec(%rbp),%eax
  imul   0x70(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x98(%rbp)
  mov    -0xe0(%rbp),%eax
  mov    $0x0,%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  mov    %eax,-0xe0(%rbp)
  mov    -0x104(%rbp),%eax
  cmp    -0xdc(%rbp),%eax
  jg     L111
  mov    -0x104(%rbp),%eax
  sub    $0x1,%eax
  jmp    L9
L111:
  mov    -0xdc(%rbp),%eax
L9:
  mov    %eax,-0xdc(%rbp)
  mov    -0xd8(%rbp),%eax
  mov    $0x0,%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  mov    %eax,-0xd8(%rbp)
  mov    -0x108(%rbp),%eax
  cmp    -0xd4(%rbp),%eax
  jg     L62
  mov    -0x108(%rbp),%eax
  sub    $0x1,%eax
  jmp    L69
L62:
  mov    -0xd4(%rbp),%eax
L69:
  mov    %eax,-0xd4(%rbp)
  mov    -0xe0(%rbp),%eax
  mov    %eax,-0xe8(%rbp)
  jmp    L74
L47:
  mov    -0xd8(%rbp),%eax
  mov    %eax,-0xe4(%rbp)
  jmp    L87
L123:
  mov    -0xe4(%rbp),%eax
  add    $0x1,%eax
  imul   0x78(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x90(%rbp)
  mov    -0xe4(%rbp),%eax
  add    $0x1,%eax
  imul   0x78(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x88(%rbp)
  mov    -0xe4(%rbp),%eax
  imul   0x78(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x80(%rbp)
  mov    -0xe4(%rbp),%eax
  imul   0x78(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0xe4(%rbp),%eax
  add    $0x1,%eax
  imul   0x78(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x138(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x70(%rbp)
  mov    -0xe4(%rbp),%eax
  add    $0x1,%eax
  imul   0x78(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x138(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  mov    -0xe4(%rbp),%eax
  imul   0x78(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x138(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x60(%rbp)
  mov    -0xe4(%rbp),%eax
  imul   0x78(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x138(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <to_rad@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  lea    -0x70(%rbp),%r8
  lea    -0x90(%rbp),%rdi
  lea    -0xb0(%rbp),%rcx
  lea    -0xd0(%rbp),%rdx
  mov    -0x160(%rbp),%rsi
  mov    -0x158(%rbp),%rax
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <_compute_overlap@plt>
  lea    -0x70(%rbp),%r8
  lea    -0x90(%rbp),%rdi
  lea    -0x70(%rbp),%rcx
  lea    -0x90(%rbp),%rdx
  mov    -0x160(%rbp),%rsi
  mov    -0x168(%rbp),%rax
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <_compute_overlap@plt>
  mov    -0xe4(%rbp),%eax
  imul   0x88(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x148(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xec(%rbp),%eax
  imul   0x80(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x140(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  mov    -0x158(%rbp),%rax
  movsd  (%rax),%xmm0
  mov    -0x168(%rbp),%rax
  movsd  (%rax),%xmm3
  divsd  %xmm3,%xmm0
  mulsd  %xmm2,%xmm0
  mov    -0xe4(%rbp),%eax
  imul   0x88(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x148(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xe4(%rbp),%eax
  imul   0x88(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x150(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x158(%rbp),%rax
  movsd  (%rax),%xmm0
  mov    -0x168(%rbp),%rax
  movsd  (%rax),%xmm2
  divsd  %xmm2,%xmm0
  mov    -0xe4(%rbp),%eax
  imul   0x88(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe8(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x150(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0xe4(%rbp)
L87:
  mov    -0xd4(%rbp),%eax
  cmp    -0xe4(%rbp),%eax
  jge    L123
  addl   $0x1,-0xe8(%rbp)
L74:
  mov    -0xdc(%rbp),%eax
  cmp    -0xe8(%rbp),%eax
  jge    L47
  addl   $0x1,-0xec(%rbp)
L58:
  mov    -0xec(%rbp),%eax
  cmp    -0x100(%rbp),%eax
  jl     L67
  addl   $0x1,-0xf0(%rbp)
L73:
  mov    -0xf0(%rbp),%eax
  cmp    -0xf8(%rbp),%eax
  jl     L112
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L107
  call   <__stack_chk_fail@plt>
L107:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D35
type_guessed: byte[8]

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

assistant: ```c
void _reproject_slice_c(int startx, int endx, int starty, int endy, int nx_out, int ny_out, double *xp_inout, double *yp_inout, double *xw_in, double *yw_in, double *xw_out, double *yw_out, double *array, double *array_new, double *weights, double *overlap, double *area_ratio, double *original, int col_in, int col_out, int col_array, int col_new) {
  int i, j, ii, jj, xmin, xmax, ymin, ymax;
  double ilon[4], ilat[4], olon[4], olat[4], minmax_x[4], minmax_y[4];
  for (i = startx; i < endx; ++i) {
    for (j = starty; j < endy; ++j) {
      minmax_x[0] = *(xp_inout + (j) * (col_in) + (i));
      minmax_x[1] = *(xp_inout + (j) * (col_in) + (i + 1));
      minmax_x[2] = *(xp_inout + (j + 1) * (col_in) + (i + 1));
      minmax_x[3] = *(xp_inout + (j + 1) * (col_in) + (i));
      minmax_y[0] = *(yp_inout + (j) * (col_in) + (i));
      minmax_y[1] = *(yp_inout + (j) * (col_in) + (i + 1));
      minmax_y[2] = *(yp_inout + (j + 1) * (col_in) + (i + 1));
      minmax_y[3] = *(yp_inout + (j + 1) * (col_in) + (i));
      xmin = (int)(min_4(minmax_x) + .5);
      xmax = (int)(max_4(minmax_x) + .5);
      ymin = (int)(min_4(minmax_y) + .5);
      ymax = (int)(max_4(minmax_y) + .5);
      ilon[0] = to_rad(*(xw_in + (j + 1) * (col_in) + (i)));
      ilon[1] = to_rad(*(xw_in + (j + 1) * (col_in) + (i + 1)));
      ilon[2] = to_rad(*(xw_in + (j) * (col_in) + (i + 1)));
      ilon[3] = to_rad(*(xw_in + (j) * (col_in) + (i)));
      ilat[0] = to_rad(*(yw_in + (j + 1) * (col_in) + (i)));
      ilat[1] = to_rad(*(yw_in + (j + 1) * (col_in) + (i + 1)));
      ilat[2] = to_rad(*(yw_in + (j) * (col_in) + (i + 1)));
      ilat[3] = to_rad(*(yw_in + (j) * (col_in) + (i)));
      xmin = xmin > 0 ? xmin : 0;
      xmax = (nx_out - 1) < xmax ? (nx_out - 1) : xmax;
      ymin = ymin > 0 ? ymin : 0;
      ymax = (ny_out - 1) < ymax ? (ny_out - 1) : ymax;
      for (ii = xmin; ii < xmax + 1; ++ii) {
        for (jj = ymin; jj < ymax + 1; ++jj) {
          olon[0] = to_rad(*(xw_out + (jj + 1) * (col_out) + (ii)));
          olon[1] = to_rad(*(xw_out + (jj + 1) * (col_out) + (ii + 1)));
          olon[2] = to_rad(*(xw_out + (jj) * (col_out) + (ii + 1)));
          olon[3] = to_rad(*(xw_out + (jj) * (col_out) + (ii)));
          olat[0] = to_rad(*(yw_out + (jj + 1) * (col_out) + (ii)));
          olat[1] = to_rad(*(yw_out + (jj + 1) * (col_out) + (ii + 1)));
          olat[2] = to_rad(*(yw_out + (jj) * (col_out) + (ii + 1)));
          olat[3] = to_rad(*(yw_out + (jj) * (col_out) + (ii)));
          _compute_overlap(overlap, area_ratio, ilon, ilat, olon, olat);
          _compute_overlap(original, area_ratio, olon, olat, olon, olat);
          *(array_new + (jj) * (col_new) + (ii)) += *(array + (j) * (col_array) + (i)) * (overlap[0] / original[0]);
          *(weights + (jj) * (col_new) + (ii)) += (overlap[0] / original[0]);
        }
      }
    }
  }
}
```