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

```asm
<Cutdata_ve>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %edx,-0x40(%rbp)
  mov    %rcx,-0x48(%rbp)
  mov    %r8d,-0x4c(%rbp)
  mov    %r9d,-0x50(%rbp)
  movsd  %xmm0,-0x58(%rbp)
  movsd  %xmm1,-0x60(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x58(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mov    %eax,-0x20(%rbp)
  mov    -0x60(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mov    %eax,-0x1c(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x20(%rbp),%xmm1
  movsd  -0x58(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x1c(%rbp),%xmm1
  movsd  -0x60(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movl   $0x0,-0x28(%rbp)
  jmp    L37
L39:
  movl   $0x0,-0x24(%rbp)
  jmp    L22
L30:
  movsd  D39(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0x10(%rbp),%xmm1
  movsd  D39(%rip),%xmm0
  subsd  -0x8(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x28(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x4c(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x3c(%rbp)
  mov    %edx,%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x50(%rbp),%eax
  mov    %eax,%esi
  shr    $0x1f,%esi
  add    %esi,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x40(%rbp)
  mov    %edx,%eax
  add    %ecx,%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D39(%rip),%xmm0
  subsd  -0x8(%rbp),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x10(%rbp),%xmm2
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x4c(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x3c(%rbp)
  mov    %edx,%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x50(%rbp),%eax
  mov    %eax,%esi
  shr    $0x1f,%esi
  add    %esi,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x40(%rbp)
  mov    %edx,%eax
  add    %ecx,%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  D39(%rip),%xmm0
  subsd  -0x10(%rbp),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x8(%rbp),%xmm2
  mov    -0x28(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x4c(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x3c(%rbp)
  mov    %edx,%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x24(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x50(%rbp),%eax
  mov    %eax,%esi
  shr    $0x1f,%esi
  add    %esi,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x40(%rbp)
  mov    %edx,%eax
  add    %ecx,%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x10(%rbp),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x8(%rbp),%xmm2
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x4c(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x3c(%rbp)
  mov    %edx,%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x24(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x50(%rbp),%eax
  mov    %eax,%esi
  shr    $0x1f,%esi
  add    %esi,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x40(%rbp)
  mov    %edx,%eax
  add    %ecx,%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  mov    -0x28(%rbp),%eax
  imul   -0x50(%rbp),%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  movsd  D39(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0x10(%rbp),%xmm1
  movsd  D39(%rip),%xmm0
  subsd  -0x8(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x28(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x4c(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x3c(%rbp)
  mov    %edx,%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x50(%rbp),%eax
  mov    %eax,%esi
  shr    $0x1f,%esi
  add    %esi,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x40(%rbp)
  mov    %edx,%eax
  add    %ecx,%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D39(%rip),%xmm0
  subsd  -0x8(%rbp),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x10(%rbp),%xmm2
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x4c(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x3c(%rbp)
  mov    %edx,%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x50(%rbp),%eax
  mov    %eax,%esi
  shr    $0x1f,%esi
  add    %esi,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x40(%rbp)
  mov    %edx,%eax
  add    %ecx,%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  D39(%rip),%xmm0
  subsd  -0x10(%rbp),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x8(%rbp),%xmm2
  mov    -0x28(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x4c(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x3c(%rbp)
  mov    %edx,%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x24(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x50(%rbp),%eax
  mov    %eax,%esi
  shr    $0x1f,%esi
  add    %esi,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x40(%rbp)
  mov    %edx,%eax
  add    %ecx,%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x10(%rbp),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x8(%rbp),%xmm2
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x4c(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x3c(%rbp)
  mov    %edx,%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x24(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x50(%rbp),%eax
  mov    %eax,%esi
  shr    $0x1f,%esi
  add    %esi,%eax
  sar    %eax
  neg    %eax
  add    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0x40(%rbp)
  mov    %edx,%eax
  add    %ecx,%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  mov    -0x28(%rbp),%eax
  imul   -0x50(%rbp),%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x24(%rbp)
L22:
  mov    -0x24(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L30
  addl   $0x1,-0x28(%rbp)
L37:
  mov    -0x28(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L39
  nop
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D39
type: byte[8]

tool: {"D39": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
void Cutdata_ve(double *gpo, int ox, int oy, double *gpn, int nx, int ny, double xofs, double yofs) {
  int x, y, cmxI, cmyI;
  double cmx, cmy, *gppo;
  gppo = gpo;
  cmxI = floor(xofs);
  cmyI = floor(yofs);
  cmx = xofs - cmxI;
  cmy = yofs - cmyI;
  for (x = 0; x < nx; x++)
    for (y = 0; y < ny; y++) {
      gpn[(x * ny + y) * 2] = +(1 - cmx) * (1 - cmy) * gpo[(((x + cmxI - nx / 2 + ox) % ox) * oy + (y + cmyI - ny / 2 + oy) % oy) * 2] + cmx * (1 - cmy) * gpo[(((x + 1 + cmxI - nx / 2 + ox) % ox) * oy + (y + cmyI - ny / 2 + oy) % oy) * 2] + (1 - cmx) * cmy * gpo[(((x + cmxI - nx / 2 + ox) % ox) * oy + (y + 1 + cmyI - ny / 2 + oy) % oy) * 2] + cmx * cmy * gpo[(((x + 1 + cmxI - nx / 2 + ox) % ox) * oy + (y + 1 + cmyI - ny / 2 + oy) % oy) * 2];
      gpn[(x * ny + y) * 2 + 1] = +(1 - cmx) * (1 - cmy) * gpo[(((x + cmxI - nx / 2 + ox) % ox) * oy + (y + cmyI - ny / 2 + oy) % oy) * 2 + 1] + cmx * (1 - cmy) * gpo[(((x + 1 + cmxI - nx / 2 + ox) % ox) * oy + (y + cmyI - ny / 2 + oy) % oy) * 2 + 1] + (1 - cmx) * cmy * gpo[(((x + cmxI - nx / 2 + ox) % ox) * oy + (y + 1 + cmyI - ny / 2 + oy) % oy) * 2 + 1] + cmx * cmy * gpo[(((x + 1 + cmxI - nx / 2 + ox) % ox) * oy + (y + 1 + cmyI - ny / 2 + oy) % oy) * 2 + 1];
    }
}
```