user: Please show me the C implementation that matches the assembly code listed below:

```asm
<interpolation>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %ecx,-0x38(%rbp)
  movl   $0x1,-0x20(%rbp)
  jmp    L16
L68:
  mov    -0x20(%rbp),%eax
  add    %eax,%eax
  mov    %eax,-0x8(%rbp)
  movl   $0x1,-0x1c(%rbp)
  jmp    L88
L82:
  mov    -0x1c(%rbp),%eax
  add    %eax,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x1c(%rbp)
L88:
  mov    -0x34(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jge    L82
  addl   $0x1,-0x20(%rbp)
L16:
  mov    -0x34(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jge    L68
  movl   $0x2,-0x18(%rbp)
  jmp    L46
L99:
  movl   $0x1,-0x14(%rbp)
  jmp    L67
L45:
  mov    -0x14(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x14(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  D3(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x2,-0x14(%rbp)
L67:
  mov    -0x38(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jge    L45
  addl   $0x2,-0x18(%rbp)
L46:
  mov    -0x38(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jge    L99
  movl   $0x1,-0x10(%rbp)
  jmp    L60
L84:
  movl   $0x1,-0xc(%rbp)
  jmp    L42
L43:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x3,%rax
  sub    $0x8,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  D3(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x2,-0xc(%rbp)
L42:
  mov    -0x38(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jge    L43
  addl   $0x1,-0x10(%rbp)
L60:
  mov    -0x38(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jge    L84
  nop
  nop
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_label: D3
type_infered: f64

tool: D3: 0.5

assistant: ```c
void interpolation(double **coarse, double **fine, int coarseSize, int fineSize) {
  for (int i = 1; i < coarseSize + 1; i++) {
    int m = i << 1;
    for (int j = 1; j < coarseSize + 1; j++) {
      int n = j << 1;
      fine[m][n] = coarse[i][j];
    }
  }
  for (int j = 2; j < fineSize + 1; j += 2) {
    for (int i = 1; i < fineSize + 1; i += 2) {
      fine[i][j] = (fine[i - 1][j] + fine[i + 1][j]) * 0.5;
    }
  }
  for (int i = 1; i < fineSize + 1; i++) {
    for (int j = 1; j < fineSize + 1; j += 2) {
      fine[i][j] = (fine[i][j - 1] + fine[i][j + 1]) * 0.5;
    }
  }
}
```