user: 请将以下的汇编代码转换成C语言代码:

```asm
<move_char>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  cltq
  add    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L80
  mov    -0x58(%rbp),%rax
  movl   $0x0,(%rax)
L80:
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L64:
  cmp    %rdx,%rsp
  je     L13
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L64
L13:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L58
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L58:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x50(%rbp)
  jmp    L53
L24:
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x50(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%ecx
  mov    -0x40(%rbp),%rdx
  mov    -0x50(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
  addl   $0x1,-0x50(%rbp)
L53:
  mov    -0x50(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L24
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x50(%rbp),%eax
  cltq
  add    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%ecx
  mov    -0x40(%rbp),%rdx
  mov    -0x50(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x50(%rbp),%eax
  cltq
  add    %rdx,%rax
  mov    -0x50(%rbp),%edx
  lea    0x1(%rdx),%esi
  movzbl (%rax),%ecx
  mov    -0x40(%rbp),%rdx
  movslq %esi,%rax
  mov    %cl,(%rdx,%rax,1)
  addl   $0x2,-0x50(%rbp)
  jmp    L28
L11:
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x50(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%ecx
  mov    -0x40(%rbp),%rdx
  mov    -0x50(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
  addl   $0x1,-0x50(%rbp)
L28:
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x50(%rbp)
  jle    L11
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rax
  mov    -0x40(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,(%rax)
  mov    $0x1,%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L6
  call   <__stack_chk_fail@plt>
L6:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
int move_char(int *index, char **in) {
  if ((*in)[*index + 1] == '\0')
    *index = 0;
  int j, f = *index;
  char temp[strlen(*in) + 1];
  for (j = 0; j < f; ++j)
    temp[j] = (*in)[j];
  temp[j] = (*in)[j + 1];
  temp[j + 1] = (*in)[j];
  for (j = j + 2; j <= (int)strlen(*in); ++j)
    temp[j] = (*in)[j];
  strcpy(*in, temp);
  ++(*index);
  return 1;
}
```