user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x40(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  lea    -0x20(%rbp),%rax
  mov    %rax,-0x48(%rbp)
  movl   $0x0,-0x54(%rbp)
  jmp    L83
L20:
  mov    -0x54(%rbp),%eax
  cltq
  mov    -0x54(%rbp),%edx
  mov    %edx,-0x40(%rbp,%rax,4)
  addl   $0x1,-0x54(%rbp)
L83:
  cmpl   $0x4,-0x54(%rbp)
  jle    L20
  lea    -0x20(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <reset_array@plt>
  movl   $0x0,-0x54(%rbp)
  jmp    L30
L87:
  mov    -0x54(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%edx
  mov    -0x54(%rbp),%eax
  cltq
  mov    %edx,-0x20(%rbp,%rax,4)
  addl   $0x1,-0x54(%rbp)
L30:
  cmpl   $0x4,-0x54(%rbp)
  jle    L87
  lea    -0x20(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <print_array@plt>
  lea    -0x20(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <reset_array@plt>
  movl   $0x0,-0x54(%rbp)
  jmp    L38
L39:
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x48(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x54(%rbp)
L38:
  cmpl   $0x4,-0x54(%rbp)
  jle    L39
  lea    -0x20(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <print_array@plt>
  lea    -0x20(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <reset_array@plt>
  movl   $0x0,-0x54(%rbp)
  jmp    L7
L5:
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x54(%rbp),%eax
  cltq
  mov    %edx,-0x20(%rbp,%rax,4)
  addl   $0x1,-0x54(%rbp)
L7:
  cmpl   $0x4,-0x54(%rbp)
  jle    L5
  mov    -0x48(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <print_array@plt>
  lea    -0x20(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <reset_array@plt>
  lea    -0x40(%rbp),%rcx
  lea    -0x20(%rbp),%rax
  mov    $0x5,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <array_copy@plt>
  lea    -0x20(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <print_array@plt>
  lea    -0x20(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <reset_array@plt>
  mov    -0x50(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    $0x5,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <array_copy@plt>
  lea    -0x20(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <print_array@plt>
  lea    -0x20(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <reset_array@plt>
  lea    -0x40(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    $0x5,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <array_copy@plt>
  lea    -0x20(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <print_array@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L10
  call   <__stack_chk_fail@plt>
L10:
  leave
  ret
```

assistant: ```c
int main() {
  int a[5];
  int b[5];
  int *c;
  int *d;
  int i;
  c = a;
  d = b;
  for (i = 0; i < 5; i++) {
    a[i] = i;
  }
  reset_array(b, 5);
  for (i = 0; i < 5; i++) {
    b[i] = a[i];
  }
  print_array(b, 5);
  reset_array(b, 5);
  for (i = 0; i < 5; i++) {
    d[i] = c[i];
  }
  print_array(b, 5);
  reset_array(b, 5);
  for (i = 0; i < 5; i++) {
    b[i] = c[i];
  }
  print_array(d, 5);
  reset_array(b, 5);
  array_copy(b, a, 5);
  print_array(b, 5);
  reset_array(b, 5);
  array_copy(d, c, 5);
  print_array(b, 5);
  reset_array(b, 5);
  array_copy(d, a, 5);
  print_array(b, 5);
  return 0;
}
```