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

```asm
<rte_memcpy_func>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x8,%rsp
  cmp    $0xf,%rdx
  jbe    L63
  cmp    $0x20,%rdx
  jbe    L11
  cmp    $0x40,%rdx
  jbe    L117
  cmp    $0x80,%rdx
  jbe    L154
  mov    %rdx,%r14
  mov    %rsi,%r13
  mov    %rdi,%r12
  cmp    $0xff,%rdx
  jbe    L77
  nopl   0x0(%rax)
L188:
  mov    %r13,%rsi
  mov    %r12,%rdi
  sub    $0x100,%r14
  add    $0x400,%r12
  call   <rte_mov256@plt>
  add    $0x400,%r13
  cmp    $0xff,%r14
  ja     L188
  lea    -0x100(%rbx),%rax
  movzbl %bl,%ebx
  shr    $0x8,%rax
  mov    %rbx,%rdx
  add    $0x1,%rax
  shr    $0x6,%rdx
  shl    $0xa,%rax
  lea    (%r15,%rax,1),%r12
  add    %rax,%rbp
  mov    $0x3,%eax
  sub    %rdx,%rax
  cmp    $0x1,%rax
  je     L82
  cmp    $0x2,%rax
  je     L12
  test   %rax,%rax
  je     L0
L81:
  mov    %rbx,%rdx
  mov    $0x3,%eax
  shr    $0x4,%rdx
  sub    %rdx,%rax
  cmp    $0x1,%rax
  je     L159
  cmp    $0x2,%rax
  je     L68
  test   %rax,%rax
  je     L198
  test   %rbx,%rbx
  jne    L190
L73:
  add    $0x8,%rsp
  mov    %r15,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L77:
  mov    %rdx,%rax
  shr    $0x6,%rax
  cmp    $0x2,%rax
  je     L82
L0:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    $0x40,%rbx
  add    $0x100,%r12
  call   <rte_mov64@plt>
  add    $0x100,%rbp
L82:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    $0x40,%rbx
  add    $0x100,%r12
  call   <rte_mov64@plt>
  add    $0x100,%rbp
L12:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    $0x40,%rbx
  add    $0x100,%r12
  call   <rte_mov64@plt>
  add    $0x100,%rbp
  jmp    L81
  nopl   0x0(%rax)
L63:
  mov    %rdi,%rax
  test   $0x1,%dl
  je     L246
  mov    (%rsi),%eax
  add    $0x4,%rbp
  mov    %eax,(%rdi)
  lea    0x4(%rdi),%rax
L246:
  test   $0x2,%bl
  je     L215
  mov    0x0(%rbp),%edx
  add    $0x4,%rax
  add    $0x4,%rbp
  mov    %edx,-0x4(%rax)
L215:
  test   $0x4,%bl
  je     L139
  mov    0x0(%rbp),%edx
  add    $0x4,%rax
  add    $0x4,%rbp
  mov    %edx,-0x4(%rax)
L139:
  and    $0x8,%ebx
  je     L73
  mov    0x0(%rbp),%edx
  mov    %edx,(%rax)
  jmp    L73
  nopl   (%rax)
L198:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    $0x10,%rbx
  add    $0x40,%r12
  call   <rte_mov16@plt>
  add    $0x40,%rbp
L159:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    $0x10,%rbx
  add    $0x40,%r12
  call   <rte_mov16@plt>
  add    $0x40,%rbp
L68:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    $0x10,%rbx
  add    $0x40,%r12
  call   <rte_mov16@plt>
  add    $0x40,%rbp
  test   %rbx,%rbx
  je     L73
L190:
  lea    -0x40(,%rbx,4),%rdi
  lea    0x0(%rbp,%rdi,1),%rsi
  add    %r12,%rdi
  call   <rte_mov16@plt>
  jmp    L73
L117:
  call   <rte_mov32@plt>
  lea    -0x80(,%rbx,4),%rdi
  lea    0x0(%rbp,%rdi,1),%rsi
  add    %r15,%rdi
  call   <rte_mov32@plt>
  jmp    L73
  nop
L11:
  call   <rte_mov16@plt>
  lea    -0x40(,%rbx,4),%rdi
  lea    0x0(%rbp,%rdi,1),%rsi
  add    %r15,%rdi
  call   <rte_mov16@plt>
  jmp    L73
  nop
L154:
  call   <rte_mov64@plt>
  lea    -0x100(,%rbx,4),%rdi
  lea    0x0(%rbp,%rdi,1),%rsi
  add    %r15,%rdi
  call   <rte_mov64@plt>
  jmp    L73
```

assistant: ```c
void *rte_memcpy_func(void *dst, const void *src, size_t n) {
  void *ret = dst;
  if (n < 16) {
    if (n & 0x01) {
      *(uint8_t *)dst = *(const uint8_t *)src;
      dst = (uint8_t *)dst + 1;
      src = (const uint8_t *)src + 1;
    }
    if (n & 0x02) {
      *(uint16_t *)dst = *(const uint16_t *)src;
      dst = (uint16_t *)dst + 1;
      src = (const uint16_t *)src + 1;
    }
    if (n & 0x04) {
      *(uint32_t *)dst = *(const uint32_t *)src;
      dst = (uint32_t *)dst + 1;
      src = (const uint32_t *)src + 1;
    }
    if (n & 0x08) {
      *(uint64_t *)dst = *(const uint64_t *)src;
    }
    return ret;
  }
  if (n <= 32) {
    rte_mov16((uint8_t *)dst, (const uint8_t *)src);
    rte_mov16((uint8_t *)dst - 16 + n, (const uint8_t *)src - 16 + n);
    return ret;
  }
  if (n <= 64) {
    rte_mov32((uint8_t *)dst, (const uint8_t *)src);
    rte_mov32((uint8_t *)dst - 32 + n, (const uint8_t *)src - 32 + n);
    return ret;
  }
  if (n <= 128) {
    rte_mov64((uint8_t *)dst, (const uint8_t *)src);
    rte_mov64((uint8_t *)dst - 64 + n, (const uint8_t *)src - 64 + n);
    return ret;
  }
  for (; n >= 256; n -= 256) {
    rte_mov256((uint8_t *)dst, (const uint8_t *)src);
    dst = (uint8_t *)dst + 256;
    src = (const uint8_t *)src + 256;
  }
  switch (3 - (n >> 6)) {
  case 0x00:
    rte_mov64((uint8_t *)dst, (const uint8_t *)src);
    n -= 64;
    dst = (uint8_t *)dst + 64;
    src = (const uint8_t *)src + 64;
  case 0x01:
    rte_mov64((uint8_t *)dst, (const uint8_t *)src);
    n -= 64;
    dst = (uint8_t *)dst + 64;
    src = (const uint8_t *)src + 64;
  case 0x02:
    rte_mov64((uint8_t *)dst, (const uint8_t *)src);
    n -= 64;
    dst = (uint8_t *)dst + 64;
    src = (const uint8_t *)src + 64;
  default:;
  }
  switch (3 - (n >> 4)) {
  case 0x00:
    rte_mov16((uint8_t *)dst, (const uint8_t *)src);
    n -= 16;
    dst = (uint8_t *)dst + 16;
    src = (const uint8_t *)src + 16;
  case 0x01:
    rte_mov16((uint8_t *)dst, (const uint8_t *)src);
    n -= 16;
    dst = (uint8_t *)dst + 16;
    src = (const uint8_t *)src + 16;
  case 0x02:
    rte_mov16((uint8_t *)dst, (const uint8_t *)src);
    n -= 16;
    dst = (uint8_t *)dst + 16;
    src = (const uint8_t *)src + 16;
  default:;
  }
  if (n != 0) {
    rte_mov16((uint8_t *)dst - 16 + n, (const uint8_t *)src - 16 + n);
  }
  return ret;
}
```