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

```asm
<cross>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  movsd  %xmm0,-0x18(%rbp)
  movsd  %xmm1,-0x20(%rbp)
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  movsd  %xmm2,-0x38(%rbp)
  mov    %ecx,-0x3c(%rbp)
  mov    %r8d,-0x40(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  jmp    L110
L159:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x4(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  -0x18(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x2c(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L286
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm3,%xmm3
  cvtsi2sd %eax,%xmm3
  movsd  %xmm3,-0x48(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movsd  -0x20(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  D117(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D105(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x48(%rbp),%xmm3
  comisd %xmm0,%xmm3
  jbe    L201
  mov    $0xffffffff,%edx
  jmp    L134
L201:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm4,%xmm4
  cvtsi2sd %eax,%xmm4
  movsd  %xmm4,-0x48(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movsd  -0x20(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  D117(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  -0x48(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edx
L134:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%ecx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%ecx
  mov    -0x4(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    (%rax,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
L286:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x4(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  -0x18(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x2c(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L183
  mov    -0x30(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  comisd -0x20(%rbp),%xmm0
  jbe    L183
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %eax,%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm5,%xmm5
  cvtsi2sd %eax,%xmm5
  movsd  %xmm5,-0x48(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movapd %xmm0,%xmm1
  movsd  -0x20(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D105(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x48(%rbp),%xmm5
  comisd %xmm0,%xmm5
  jbe    L276
  mov    $0xffffffff,%edx
  jmp    L248
L276:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %eax,%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm6,%xmm6
  cvtsi2sd %eax,%xmm6
  movsd  %xmm6,-0x48(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movapd %xmm0,%xmm1
  movsd  -0x20(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  -0x48(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edx
L248:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%ecx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%ecx
  mov    -0x4(%rbp),%eax
  add    %eax,%ecx
  mov    -0x2c(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    (%rax,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
L183:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x4(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  -0x20(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x30(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L187
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm7,%xmm7
  cvtsi2sd %eax,%xmm7
  movsd  %xmm7,-0x48(%rbp)
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movsd  -0x18(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  D117(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D105(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x48(%rbp),%xmm7
  comisd %xmm0,%xmm7
  jbe    L175
  mov    $0xffffffff,%edx
  jmp    L241
L175:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  movsd  %xmm2,-0x48(%rbp)
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movsd  -0x18(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  D117(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  -0x48(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edx
L241:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%ecx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%ecx
  mov    -0x4(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    (%rax,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
L187:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x4(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  -0x20(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x30(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L171
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  comisd -0x18(%rbp),%xmm0
  jbe    L171
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  add    %edx,%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm3,%xmm3
  cvtsi2sd %eax,%xmm3
  movsd  %xmm3,-0x48(%rbp)
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movapd %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D105(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x48(%rbp),%xmm3
  comisd %xmm0,%xmm3
  jbe    L294
  mov    $0xffffffff,%edx
  jmp    L106
L294:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  add    %edx,%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm4,%xmm4
  cvtsi2sd %eax,%xmm4
  movsd  %xmm4,-0x48(%rbp)
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movapd %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  -0x48(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edx
L106:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%ecx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%ecx
  mov    -0x4(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  add    %ecx,%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
L171:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x4(%rbp),%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L263
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %edx,%eax
  sub    -0x4(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm5,%xmm5
  cvtsi2sd %eax,%xmm5
  movsd  %xmm5,-0x48(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movsd  -0x20(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  D117(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D105(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x48(%rbp),%xmm5
  comisd %xmm0,%xmm5
  jbe    L249
  mov    $0xffffffff,%edx
  jmp    L129
L249:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %edx,%eax
  sub    -0x4(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm6,%xmm6
  cvtsi2sd %eax,%xmm6
  movsd  %xmm6,-0x48(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movsd  -0x20(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  D117(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  -0x48(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edx
L129:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%ecx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %ecx,%eax
  sub    -0x4(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
L263:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x4(%rbp),%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L160
  mov    -0x30(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  comisd -0x20(%rbp),%xmm0
  jbe    L160
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %edx,%eax
  sub    -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm7,%xmm7
  cvtsi2sd %eax,%xmm7
  movsd  %xmm7,-0x48(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movapd %xmm0,%xmm1
  movsd  -0x20(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D105(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x48(%rbp),%xmm7
  comisd %xmm0,%xmm7
  jbe    L156
  mov    $0xffffffff,%edx
  jmp    L84
L156:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %edx,%eax
  sub    -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  movsd  %xmm2,-0x48(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movapd %xmm0,%xmm1
  movsd  -0x20(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  -0x48(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edx
L84:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%ecx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %ecx,%eax
  sub    -0x4(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x2c(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    (%rax,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
L160:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x4(%rbp),%xmm1
  movsd  -0x20(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L181
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm3,%xmm3
  cvtsi2sd %eax,%xmm3
  movsd  %xmm3,-0x48(%rbp)
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movsd  -0x18(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  D117(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D105(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x48(%rbp),%xmm3
  comisd %xmm0,%xmm3
  jbe    L207
  mov    $0xffffffff,%ecx
  jmp    L278
L207:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm4,%xmm4
  cvtsi2sd %eax,%xmm4
  movsd  %xmm4,-0x48(%rbp)
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movsd  -0x18(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  D117(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  -0x48(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%ecx
L278:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%esi
  mov    %edx,%eax
  sub    %esi,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %cx,(%rax)
L181:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x4(%rbp),%xmm1
  movsd  -0x20(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L99
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  comisd -0x18(%rbp),%xmm0
  jbe    L99
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm5,%xmm5
  cvtsi2sd %eax,%xmm5
  movsd  %xmm5,-0x48(%rbp)
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movapd %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D105(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x48(%rbp),%xmm5
  comisd %xmm0,%xmm5
  jbe    L128
  mov    $0xffffffff,%ecx
  jmp    L27
L128:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  pxor   %xmm6,%xmm6
  cvtsi2sd %eax,%xmm6
  movsd  %xmm6,-0x48(%rbp)
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  movapd %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D202(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  -0x48(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%ecx
L27:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  movsd  -0x20(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  imul   -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%esi
  mov    %edx,%eax
  sub    %esi,%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %cx,(%rax)
L99:
  addl   $0x1,-0x4(%rbp)
L110:
  mov    -0x4(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L159
  nop
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D117
data_type: byte[8]
name: read_data
arguments: tag: D202
data_type: byte[8]
name: read_data
arguments: tag: D105
data_type: byte[8]

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

tool: {"D202": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x40]}

tool: {"D105": [0x00,0x00,0x00,0x00,0xe0,0xff,0xef,0x40]}

assistant: ```c
void cross(double x, double y, unsigned short *pic, int w, int h, double a, int f, int t) {
  int j;
  for (j = f; j < t; j++) {
    if (x + j < w)
      ((pic[(int)x + ((int)y) * w + j]) = (pic[(int)x + ((int)y) * w + j]) > 65535 - 32768 * (a * (1 - (y - floor(y)))) ? 65535 : (pic[(int)x + ((int)y) * w + j]) + 32768 * (a * (1 - (y - floor(y)))));
    if (x + j < w && y < h - 1)
      ((pic[(int)x + ((int)y) * w + j + w]) = (pic[(int)x + ((int)y) * w + j + w]) > 65535 - 32768 * (a * (y - floor(y))) ? 65535 : (pic[(int)x + ((int)y) * w + j + w]) + 32768 * (a * (y - floor(y))));
    if (y + j < h)
      ((pic[(int)x + ((int)y) * w + j * w]) = (pic[(int)x + ((int)y) * w + j * w]) > 65535 - 32768 * (a * (1 - (x - floor(x)))) ? 65535 : (pic[(int)x + ((int)y) * w + j * w]) + 32768 * (a * (1 - (x - floor(x)))));
    if (y + j < h && x < w - 1)
      ((pic[(int)x + ((int)y) * w + j * w + 1]) = (pic[(int)x + ((int)y) * w + j * w + 1]) > 65535 - 32768 * (a * (x - floor(x))) ? 65535 : (pic[(int)x + ((int)y) * w + j * w + 1]) + 32768 * (a * (x - floor(x))));
    if (x - j >= 0)
      ((pic[(int)x + ((int)y) * w - j]) = (pic[(int)x + ((int)y) * w - j]) > 65535 - 32768 * (a * (1 - (y - floor(y)))) ? 65535 : (pic[(int)x + ((int)y) * w - j]) + 32768 * (a * (1 - (y - floor(y)))));
    if (x - j >= 0 && y < h - 1)
      ((pic[(int)x + ((int)y) * w - j + w]) = (pic[(int)x + ((int)y) * w - j + w]) > 65535 - 32768 * (a * (y - floor(y))) ? 65535 : (pic[(int)x + ((int)y) * w - j + w]) + 32768 * (a * (y - floor(y))));
    if (y - j >= 0)
      ((pic[(int)x + ((int)y) * w - j * w]) = (pic[(int)x + ((int)y) * w - j * w]) > 65535 - 32768 * (a * (1 - (x - floor(x)))) ? 65535 : (pic[(int)x + ((int)y) * w - j * w]) + 32768 * (a * (1 - (x - floor(x)))));
    if (y - j >= 0 && x < w - 1)
      ((pic[(int)x + ((int)y) * w - j * w + 1]) = (pic[(int)x + ((int)y) * w - j * w + 1]) > 65535 - 32768 * (a * (x - floor(x))) ? 65535 : (pic[(int)x + ((int)y) * w - j * w + 1]) + 32768 * (a * (x - floor(x))));
  }
}
```