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

```asm
<move_plane>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %esi,-0x28(%rbp)
  mov    %edx,-0x2c(%rbp)
  mov    %ecx,-0x30(%rbp)
  mov    %r8d,-0x34(%rbp)
  mov    %r9d,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x0,-0x30(%rbp)
  jne    L55
  lea    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%ecx
  mov    -0x24(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <vis5d_get_hclip@plt>
  lea    -0xc(%rbp),%rdx
  mov    -0x34(%rbp),%ecx
  mov    -0x24(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <vis5d_get_clip_mode@plt>
  mov    -0x38(%rbp),%r8d
  lea    -0x20(%rbp),%rdi
  mov    -0x2c(%rbp),%ecx
  mov    -0x28(%rbp),%edx
  mov    -0x34(%rbp),%esi
  mov    -0x24(%rbp),%eax
  mov    %r8d,%r9d
  mov    %rdi,%r8
  mov    %eax,%edi
  call   <move_hclip@plt>
  test   %rax,%rax
  je     L29
  mov    -0xc(%rbp),%eax
  test   %eax,%eax
  je     L29
  mov    -0x20(%rbp),%ecx
  mov    -0x34(%rbp),%edx
  mov    -0x24(%rbp),%eax
  movd   %ecx,%xmm0
  mov    %edx,%esi
  mov    %eax,%edi
  call   <vis5d_set_hclip@plt>
  jmp    L29
L55:
  cmpl   $0x1,-0x30(%rbp)
  jne    L29
  lea    -0x10(%rbp),%r8
  lea    -0x14(%rbp),%rdi
  lea    -0x18(%rbp),%rcx
  lea    -0x1c(%rbp),%rdx
  mov    -0x34(%rbp),%esi
  mov    -0x24(%rbp),%eax
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %eax,%edi
  call   <vis5d_get_vclip@plt>
  mov    -0x34(%rbp),%eax
  lea    0x2(%rax),%ecx
  lea    -0xc(%rbp),%rdx
  mov    -0x24(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <vis5d_get_clip_mode@plt>
  lea    -0x18(%rbp),%r9
  lea    -0x1c(%rbp),%r8
  mov    -0x2c(%rbp),%ecx
  mov    -0x28(%rbp),%edx
  mov    -0x34(%rbp),%esi
  mov    -0x24(%rbp),%eax
  sub    $0x8,%rsp
  mov    -0x38(%rbp),%edi
  push   %rdi
  lea    -0x10(%rbp),%rdi
  push   %rdi
  lea    -0x14(%rbp),%rdi
  push   %rdi
  mov    %eax,%edi
  call   <move_vclip@plt>
  add    $0x20,%rsp
  test   %rax,%rax
  je     L29
  mov    -0xc(%rbp),%eax
  test   %eax,%eax
  je     L29
  movss  -0x10(%rbp),%xmm2
  movss  -0x14(%rbp),%xmm1
  movss  -0x18(%rbp),%xmm0
  mov    -0x1c(%rbp),%ecx
  mov    -0x34(%rbp),%edx
  mov    -0x24(%rbp),%eax
  movaps %xmm2,%xmm3
  movaps %xmm1,%xmm2
  movaps %xmm0,%xmm1
  movd   %ecx,%xmm0
  mov    %edx,%esi
  mov    %eax,%edi
  call   <vis5d_set_vclip@plt>
L29:
  mov    -0x24(%rbp),%eax
  mov    %eax,%edi
  call   <vis5d_invalidate_dtx_frames@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L4
  call   <__stack_chk_fail@plt>
L4:
  leave
  ret
```

assistant: ```c
void move_plane(int index, int curx, int cury, int planetype, int planenum, int corner) {
  float level, r1, c1, r2, c2;
  int current;
  if (planetype == 0) {
    vis5d_get_hclip(index, planenum, &level);
    vis5d_get_clip_mode(index, planenum, &current);
    if (move_hclip(index, planenum, curx, cury, &level, corner) && current) {
      vis5d_set_hclip(index, planenum, level);
    }
  } else if (planetype == 1) {
    vis5d_get_vclip(index, planenum, &r1, &c1, &r2, &c2);
    vis5d_get_clip_mode(index, planenum + 2, &current);
    if (move_vclip(index, planenum, curx, cury, &r1, &c1, &r2, &c2, corner) && current) {
      vis5d_set_vclip(index, planenum, r1, c1, r2, c2);
    }
  }
  vis5d_invalidate_dtx_frames(index);
}
```