user: Converte this assembly snippet into its equivalent C code:

```asm
<memmove>:
  endbr64
  push   %r12
  mov    %rdi,%r12
  mov    %rdx,%rdi
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdx,%rbx
  call   <opa_malloc@plt>
  mov    %rax,%rdi
  test   %rbx,%rbx
  je     L133
  lea    -0x1(%rbx),%rsi
  lea    0x1(%rbp),%rdx
  cmp    $0x6,%rsi
  seta   %r8b
  sub    %rdx,%rax
  cmp    $0xe,%rax
  jbe    L7
  test   %r8b,%r8b
  je     L7
  mov    %rbx,%rdx
  cmp    $0xe,%rsi
  jbe    L211
  and    $0xfffffffffffffff0,%rdx
  xor    %eax,%eax
  xchg   %ax,%ax
L255:
  movdqu 0x0(%rbp,%rax,1),%xmm0
  movups %xmm0,(%rdi,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L255
  mov    %rbx,%rax
  and    $0xfffffffffffffff0,%rax
  test   $0xf,%bl
  je     L3
  mov    %rbx,%rdx
  sub    %rax,%rdx
  lea    -0x1(%rdx),%rcx
  cmp    $0x6,%rcx
  jbe    L40
L131:
  mov    0x0(%rbp,%rax,1),%rcx
  mov    %rcx,(%rdi,%rax,1)
  mov    %rdx,%rcx
  and    $0xfffffffffffffff8,%rcx
  add    %rcx,%rax
  cmp    %rcx,%rdx
  je     L3
L40:
  movzbl 0x0(%rbp,%rax,1),%edx
  mov    %dl,(%rdi,%rax,1)
  lea    0x1(%rax),%rdx
  cmp    %rdx,%rbx
  jbe    L3
  movzbl 0x1(%rbp,%rax,1),%edx
  mov    %dl,0x1(%rdi,%rax,1)
  lea    0x2(%rax),%rdx
  cmp    %rdx,%rbx
  jbe    L3
  movzbl 0x2(%rbp,%rax,1),%edx
  mov    %dl,0x2(%rdi,%rax,1)
  lea    0x3(%rax),%rdx
  cmp    %rdx,%rbx
  jbe    L3
  movzbl 0x3(%rbp,%rax,1),%edx
  mov    %dl,0x3(%rdi,%rax,1)
  lea    0x4(%rax),%rdx
  cmp    %rdx,%rbx
  jbe    L3
  movzbl 0x4(%rbp,%rax,1),%edx
  mov    %dl,0x4(%rdi,%rax,1)
  lea    0x5(%rax),%rdx
  cmp    %rdx,%rbx
  jbe    L3
  movzbl 0x5(%rbp,%rax,1),%edx
  mov    %dl,0x5(%rdi,%rax,1)
  lea    0x6(%rax),%rdx
  cmp    %rdx,%rbx
  jbe    L3
  movzbl 0x6(%rbp,%rax,1),%edx
  mov    %dl,0x6(%rdi,%rax,1)
L3:
  lea    0x1(%rdi),%rdx
  mov    %r12,%rax
  sub    %rdx,%rax
  cmp    $0xe,%rax
  jbe    L23
  test   %r8b,%r8b
  je     L23
  mov    %rbx,%rdx
  cmp    $0xe,%rsi
  jbe    L281
  and    $0xfffffffffffffff0,%rdx
  xor    %eax,%eax
  nop
L14:
  movdqu (%rdi,%rax,1),%xmm1
  movups %xmm1,(%r12,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L14
  mov    %rbx,%rax
  and    $0xfffffffffffffff0,%rax
  test   $0xf,%bl
  je     L133
  mov    %rbx,%rdx
  sub    %rax,%rdx
  lea    -0x1(%rdx),%rcx
  cmp    $0x6,%rcx
  jbe    L137
L114:
  mov    (%rdi,%rax,1),%rcx
  mov    %rcx,(%r12,%rax,1)
  mov    %rdx,%rcx
  and    $0xfffffffffffffff8,%rcx
  add    %rcx,%rax
  cmp    %rdx,%rcx
  je     L133
L137:
  movzbl (%rdi,%rax,1),%edx
  mov    %dl,(%r12,%rax,1)
  lea    0x1(%rax),%rdx
  cmp    %rdx,%rbx
  jbe    L133
  movzbl 0x1(%rdi,%rax,1),%edx
  mov    %dl,0x1(%r12,%rax,1)
  lea    0x2(%rax),%rdx
  cmp    %rbx,%rdx
  jae    L133
  movzbl 0x2(%rdi,%rax,1),%edx
  mov    %dl,0x2(%r12,%rax,1)
  lea    0x3(%rax),%rdx
  cmp    %rdx,%rbx
  jbe    L133
  movzbl 0x3(%rdi,%rax,1),%edx
  mov    %dl,0x3(%r12,%rax,1)
  lea    0x4(%rax),%rdx
  cmp    %rdx,%rbx
  jbe    L133
  movzbl 0x4(%rdi,%rax,1),%edx
  mov    %dl,0x4(%r12,%rax,1)
  lea    0x5(%rax),%rdx
  cmp    %rdx,%rbx
  jbe    L133
  movzbl 0x5(%rdi,%rax,1),%edx
  mov    %dl,0x5(%r12,%rax,1)
  lea    0x6(%rax),%rdx
  cmp    %rdx,%rbx
  jbe    L133
  movzbl 0x6(%rdi,%rax,1),%edx
  mov    %dl,0x6(%r12,%rax,1)
L133:
  call   <opa_free@plt>
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L23:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L39:
  movzbl (%rdi,%rax,1),%edx
  mov    %dl,(%r12,%rax,1)
  add    $0x1,%rax
  cmp    %rax,%rbx
  jne    L39
  call   <opa_free@plt>
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  xchg   %ax,%ax
L7:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L213:
  movzbl 0x0(%rbp,%rax,1),%edx
  mov    %dl,(%rdi,%rax,1)
  add    $0x1,%rax
  cmp    %rax,%rbx
  jne    L213
  jmp    L3
L211:
  xor    %eax,%eax
  jmp    L131
L281:
  xor    %eax,%eax
  jmp    L114
```

assistant: ```c
void *memmove(void *dest, const void *src, size_t n) {
  unsigned char *d = dest;
  const unsigned char *s = src;
  unsigned char *t = opa_malloc(n);
  for (size_t i = 0; i < n; i++) {
    t[i] = s[i];
  }
  for (size_t i = 0; i < n; i++) {
    d[i] = t[i];
  }
  opa_free(t);
  return dest;
}
```