user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<at_do_raycast_fov>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  movsd  %xmm0,-0x38(%rbp)
  mov    %r8d,-0x3c(%rbp)
  mov    %r9d,-0x40(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x3c(%rbp),%xmm0
  subsd  -0x38(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L19
L78:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x40(%rbp),%xmm0
  subsd  -0x38(%rbp),%xmm0
  cvttsd2si %xmm0,%r8d
  mov    -0x40(%rbp),%r9d
  mov    -0x3c(%rbp),%r10d
  mov    -0x38(%rbp),%rdi
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    -0x18(%rbp),%rax
  push   %r8
  mov    -0x4(%rbp),%r8d
  push   %r8
  mov    %r10d,%r8d
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  call   <ray@plt>
  add    $0x10,%rsp
  addl   $0x1,-0x4(%rbp)
L19:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x4(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x3c(%rbp),%xmm0
  addsd  -0x38(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jae    L78
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x3c(%rbp),%xmm0
  subsd  -0x38(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L68
L8:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x40(%rbp),%xmm0
  addsd  -0x38(%rbp),%xmm0
  cvttsd2si %xmm0,%r8d
  mov    -0x40(%rbp),%r9d
  mov    -0x3c(%rbp),%r10d
  mov    -0x38(%rbp),%rdi
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    -0x18(%rbp),%rax
  push   %r8
  mov    -0x4(%rbp),%r8d
  push   %r8
  mov    %r10d,%r8d
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  call   <ray@plt>
  add    $0x10,%rsp
  addl   $0x1,-0x4(%rbp)
L68:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x4(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x3c(%rbp),%xmm0
  addsd  -0x38(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jae    L8
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x40(%rbp),%xmm0
  subsd  -0x38(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L50
L47:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x3c(%rbp),%xmm0
  subsd  -0x38(%rbp),%xmm0
  cvttsd2si %xmm0,%r8d
  mov    -0x40(%rbp),%r11d
  mov    -0x3c(%rbp),%r10d
  mov    -0x38(%rbp),%rdi
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    -0x18(%rbp),%rax
  mov    -0x4(%rbp),%r9d
  push   %r9
  push   %r8
  mov    %r11d,%r9d
  mov    %r10d,%r8d
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  call   <ray@plt>
  add    $0x10,%rsp
  addl   $0x1,-0x4(%rbp)
L50:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x4(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x40(%rbp),%xmm0
  addsd  -0x38(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jae    L47
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x40(%rbp),%xmm0
  subsd  -0x38(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L49
L9:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x3c(%rbp),%xmm0
  addsd  -0x38(%rbp),%xmm0
  cvttsd2si %xmm0,%r8d
  mov    -0x40(%rbp),%r11d
  mov    -0x3c(%rbp),%r10d
  mov    -0x38(%rbp),%rdi
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    -0x18(%rbp),%rax
  mov    -0x4(%rbp),%r9d
  push   %r9
  push   %r8
  mov    %r11d,%r9d
  mov    %r10d,%r8d
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  call   <ray@plt>
  add    $0x10,%rsp
  addl   $0x1,-0x4(%rbp)
L49:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x4(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x40(%rbp),%xmm0
  addsd  -0x38(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jae    L9
  nop
  nop
  leave
  ret
```

assistant: ```c
void at_do_raycast_fov(int *view, int *grid, size_t w, size_t h, double r, int cx, int cy) {
  int v;
  for (v = cx - r; v <= cx + r; ++v)
    ray(view, grid, w, h, r, cx, cy, v, cy - r);
  for (v = cx - r; v <= cx + r; ++v)
    ray(view, grid, w, h, r, cx, cy, v, cy + r);
  for (v = cy - r; v <= cy + r; ++v)
    ray(view, grid, w, h, r, cx, cy, cx - r, v);
  for (v = cy - r; v <= cy + r; ++v)
    ray(view, grid, w, h, r, cx, cy, cx + r, v);
}
```