user: What would the C source look like for the assembly code provided here:

```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    L213
  cmp    $0x20,%rdx
  jbe    L25
  cmp    $0x40,%rdx
  jbe    L236
  cmp    $0x80,%rdx
  jbe    L37
  mov    %rdx,%r14
  mov    %rsi,%r13
  mov    %rdi,%r12
  cmp    $0xff,%rdx
  jbe    L200
  nopl   0x0(%rax)
L103:
  mov    %r13,%rsi
  mov    %r12,%rdi
  sub    $0x100,%r14
  add    $0x400,%r12
  call   <rte_mov256@plt>
  add    $0x400,%r13
  cmp    $0xff,%r14
  ja     L103
  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     L121
  cmp    $0x2,%rax
  je     L246
  test   %rax,%rax
  je     L167
L227:
  mov    %rbx,%rdx
  mov    $0x3,%eax
  shr    $0x4,%rdx
  sub    %rdx,%rax
  cmp    $0x1,%rax
  je     L75
  cmp    $0x2,%rax
  je     L181
  test   %rax,%rax
  je     L57
  test   %rbx,%rbx
  jne    L173
L122:
  add    $0x8,%rsp
  mov    %r15,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L200:
  mov    %rdx,%rax
  shr    $0x6,%rax
  cmp    $0x2,%rax
  je     L121
L167:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    $0x40,%rbx
  add    $0x100,%r12
  call   <rte_mov64@plt>
  add    $0x100,%rbp
L121:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    $0x40,%rbx
  add    $0x100,%r12
  call   <rte_mov64@plt>
  add    $0x100,%rbp
L246:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    $0x40,%rbx
  add    $0x100,%r12
  call   <rte_mov64@plt>
  add    $0x100,%rbp
  jmp    L227
  nopl   0x0(%rax)
L213:
  mov    %rdi,%rax
  test   $0x1,%dl
  je     L238
  mov    (%rsi),%eax
  add    $0x4,%rbp
  mov    %eax,(%rdi)
  lea    0x4(%rdi),%rax
L238:
  test   $0x2,%bl
  je     L3
  mov    0x0(%rbp),%edx
  add    $0x4,%rax
  add    $0x4,%rbp
  mov    %edx,-0x4(%rax)
L3:
  test   $0x4,%bl
  je     L220
  mov    0x0(%rbp),%edx
  add    $0x4,%rax
  add    $0x4,%rbp
  mov    %edx,-0x4(%rax)
L220:
  and    $0x8,%ebx
  je     L122
  mov    0x0(%rbp),%edx
  mov    %edx,(%rax)
  jmp    L122
  nopl   (%rax)
L57:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    $0x10,%rbx
  add    $0x40,%r12
  call   <rte_mov16@plt>
  add    $0x40,%rbp
L75:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    $0x10,%rbx
  add    $0x40,%r12
  call   <rte_mov16@plt>
  add    $0x40,%rbp
L181:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    $0x10,%rbx
  add    $0x40,%r12
  call   <rte_mov16@plt>
  add    $0x40,%rbp
  test   %rbx,%rbx
  je     L122
L173:
  lea    -0x40(,%rbx,4),%rdi
  lea    0x0(%rbp,%rdi,1),%rsi
  add    %r12,%rdi
  call   <rte_mov16@plt>
  jmp    L122
L236:
  call   <rte_mov32@plt>
  lea    -0x80(,%rbx,4),%rdi
  lea    0x0(%rbp,%rdi,1),%rsi
  add    %r15,%rdi
  call   <rte_mov32@plt>
  jmp    L122
  nop
L25:
  call   <rte_mov16@plt>
  lea    -0x40(,%rbx,4),%rdi
  lea    0x0(%rbp,%rdi,1),%rsi
  add    %r15,%rdi
  call   <rte_mov16@plt>
  jmp    L122
  nop
L37:
  call   <rte_mov64@plt>
  lea    -0x100(,%rbx,4),%rdi
  lea    0x0(%rbp,%rdi,1),%rsi
  add    %r15,%rdi
  call   <rte_mov64@plt>
  jmp    L122
```

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;
}
```