user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<otp_encrypt>:
  endbr64
  push   %r14
  mov    %rdi,%r10
  mov    %rsi,%r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %r9,%rbp
  push   %rbx
  mov    %rdx,%rbx
  test   %rdi,%rdi
  je     L263
L219:
  test   %r12,%r12
  je     L143
  test   %r13,%r13
  je     L378
  lea    0x1(%r13),%rcx
  mov    %r10,%rax
  lea    0x1(%rbx),%rsi
  sub    %rcx,%rax
  mov    %r10,%rcx
  lea    -0x1(%r12),%rdx
  cmp    $0xe,%rax
  seta   %al
  sub    %rsi,%rcx
  cmp    $0xe,%rcx
  seta   %cl
  and    %ecx,%eax
  cmp    $0x6,%rdx
  seta   %cl
  test   %cl,%al
  je     L3
  lea    0x1(%rbp),%rcx
  mov    %r10,%rax
  sub    %rcx,%rax
  cmp    $0xe,%rax
  jbe    L3
  cmp    $0xe,%rdx
  jbe    L55
  mov    %r12,%rdx
  xor    %eax,%eax
  and    $0xfffffffffffffff0,%rdx
  nopl   0x0(%rax,%rax,1)
L72:
  movdqu (%rbx,%rax,1),%xmm0
  movdqu 0x0(%rbp,%rax,1),%xmm2
  movdqu 0x0(%r13,%rax,1),%xmm3
  pxor   %xmm2,%xmm0
  pxor   %xmm3,%xmm0
  movups %xmm0,(%r10,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L72
  mov    %r12,%rax
  and    $0xfffffffffffffff0,%rax
  mov    %eax,%edx
  cmp    %rax,%r12
  je     L143
  mov    %r12,%rsi
  sub    %rax,%rsi
  lea    -0x1(%rsi),%rcx
  cmp    $0x6,%rcx
  jbe    L93
L95:
  movq   0x0(%rbp,%rax,1),%xmm1
  movq   (%rbx,%rax,1),%xmm0
  mov    %rsi,%rcx
  and    $0xfffffffffffffff8,%rcx
  pxor   %xmm1,%xmm0
  movq   0x0(%r13,%rax,1),%xmm1
  add    %ecx,%edx
  pxor   %xmm1,%xmm0
  movq   %xmm0,(%r10,%rax,1)
  add    %rcx,%rax
  cmp    %rcx,%rsi
  je     L143
L93:
  movzbl (%rbx,%rax,1),%ecx
  xor    0x0(%rbp,%rax,1),%cl
  xor    0x0(%r13,%rax,1),%cl
  mov    %cl,(%r10,%rax,1)
  lea    0x1(%rdx),%eax
  cltq
  cmp    %rax,%r12
  jbe    L143
  movzbl (%rbx,%rax,1),%ecx
  xor    0x0(%rbp,%rax,1),%cl
  xor    0x0(%r13,%rax,1),%cl
  mov    %cl,(%r10,%rax,1)
  lea    0x2(%rdx),%eax
  cltq
  cmp    %rax,%r12
  jbe    L143
  movzbl (%rbx,%rax,1),%ecx
  xor    0x0(%rbp,%rax,1),%cl
  xor    0x0(%r13,%rax,1),%cl
  mov    %cl,(%r10,%rax,1)
  lea    0x3(%rdx),%eax
  cltq
  cmp    %rax,%r12
  jbe    L143
  movzbl (%rbx,%rax,1),%ecx
  xor    0x0(%rbp,%rax,1),%cl
  xor    0x0(%r13,%rax,1),%cl
  mov    %cl,(%r10,%rax,1)
  lea    0x4(%rdx),%eax
  cltq
  cmp    %rax,%r12
  jbe    L143
  movzbl (%rbx,%rax,1),%ecx
  xor    0x0(%rbp,%rax,1),%cl
  xor    0x0(%r13,%rax,1),%cl
  mov    %cl,(%r10,%rax,1)
  lea    0x5(%rdx),%eax
  cltq
  cmp    %rax,%r12
  jbe    L143
  add    $0x6,%edx
  movzbl (%rbx,%rax,1),%ecx
  xor    0x0(%rbp,%rax,1),%cl
  movslq %edx,%rdx
  xor    0x0(%r13,%rax,1),%cl
  mov    %cl,(%r10,%rax,1)
  cmp    %rdx,%r12
  jbe    L143
  movzbl (%rbx,%rdx,1),%eax
  xor    0x0(%rbp,%rdx,1),%al
  xor    0x0(%r13,%rdx,1),%al
  mov    %al,(%r10,%rdx,1)
  nopl   0x0(%rax,%rax,1)
L143:
  mov    %r12,(%r14)
L144:
  pop    %rbx
  mov    %r10,%rax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nop
L378:
  lea    0x1(%rbp),%rcx
  mov    %r10,%rdx
  lea    0x1(%rbx),%rsi
  sub    %rcx,%rdx
  lea    -0x1(%r12),%rax
  cmp    $0xe,%rdx
  mov    %r10,%rdx
  seta   %cl
  sub    %rsi,%rdx
  cmp    $0xe,%rdx
  seta   %dl
  test   %dl,%cl
  je     L18
  cmp    $0x6,%rax
  jbe    L18
  cmp    $0xe,%rax
  jbe    L48
  mov    %r12,%rdx
  xor    %eax,%eax
  and    $0xfffffffffffffff0,%rdx
  nopl   0x0(%rax)
L0:
  movdqu (%rbx,%rax,1),%xmm0
  movdqu 0x0(%rbp,%rax,1),%xmm4
  pxor   %xmm4,%xmm0
  movups %xmm0,(%r10,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L0
  mov    %r12,%rax
  and    $0xfffffffffffffff0,%rax
  mov    %eax,%edx
  cmp    %rax,%r12
  je     L143
  mov    %r12,%rsi
  sub    %rax,%rsi
  lea    -0x1(%rsi),%rcx
  cmp    $0x6,%rcx
  jbe    L49
L181:
  movq   (%rbx,%rax,1),%xmm0
  movq   0x0(%rbp,%rax,1),%xmm1
  mov    %rsi,%rcx
  and    $0xfffffffffffffff8,%rcx
  pxor   %xmm1,%xmm0
  add    %ecx,%edx
  movq   %xmm0,(%r10,%rax,1)
  add    %rcx,%rax
  cmp    %rcx,%rsi
  je     L143
L49:
  movzbl 0x0(%rbp,%rax,1),%ecx
  xor    (%rbx,%rax,1),%cl
  mov    %cl,(%r10,%rax,1)
  lea    0x1(%rdx),%eax
  cltq
  cmp    %rax,%r12
  jbe    L143
  movzbl 0x0(%rbp,%rax,1),%ecx
  xor    (%rbx,%rax,1),%cl
  mov    %cl,(%r10,%rax,1)
  lea    0x2(%rdx),%eax
  cltq
  cmp    %rax,%r12
  jbe    L143
  movzbl (%rbx,%rax,1),%ecx
  xor    0x0(%rbp,%rax,1),%cl
  mov    %cl,(%r10,%rax,1)
  lea    0x3(%rdx),%eax
  cltq
  cmp    %rax,%r12
  jbe    L143
  movzbl (%rbx,%rax,1),%ecx
  xor    0x0(%rbp,%rax,1),%cl
  mov    %cl,(%r10,%rax,1)
  lea    0x4(%rdx),%eax
  cltq
  cmp    %rax,%r12
  jbe    L143
  movzbl (%rbx,%rax,1),%ecx
  xor    0x0(%rbp,%rax,1),%cl
  mov    %cl,(%r10,%rax,1)
  lea    0x5(%rdx),%eax
  cltq
  cmp    %rax,%r12
  jbe    L143
  movzbl (%rbx,%rax,1),%ecx
  xor    0x0(%rbp,%rax,1),%cl
  mov    %cl,(%r10,%rax,1)
  lea    0x6(%rdx),%eax
  cltq
  cmp    %rax,%r12
  jbe    L143
  movzbl (%rbx,%rax,1),%edx
  xor    0x0(%rbp,%rax,1),%dl
  mov    %dl,(%r10,%rax,1)
  jmp    L143
  cs nopw 0x0(%rax,%rax,1)
L3:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L27:
  movzbl (%rbx,%rax,1),%edx
  xor    0x0(%rbp,%rax,1),%dl
  xor    0x0(%r13,%rax,1),%dl
  mov    %dl,(%r10,%rax,1)
  add    $0x1,%rax
  cmp    %rax,%r12
  jne    L27
  jmp    L143
  nopw   0x0(%rax,%rax,1)
L263:
  mov    %rcx,%rdi
  call   <malloc@plt>
  mov    %rax,%r10
  test   %rax,%rax
  jne    L219
  jmp    L144
  nopl   0x0(%rax)
L18:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L230:
  movzbl (%rbx,%rax,1),%edx
  xor    0x0(%rbp,%rax,1),%dl
  mov    %dl,(%r10,%rax,1)
  add    $0x1,%rax
  cmp    %rax,%r12
  jne    L230
  jmp    L143
L48:
  mov    %r12,%rsi
  xor    %edx,%edx
  xor    %eax,%eax
  jmp    L181
L55:
  mov    %r12,%rsi
  xor    %edx,%edx
  xor    %eax,%eax
  jmp    L95
```

assistant: ```c
unsigned char *otp_encrypt(unsigned char *out, size_t *out_len, const unsigned char *in, size_t in_len, const unsigned char *nonce, const unsigned char *key) {
  int i = 0;
  if (!out) {
    if (!(out = malloc(in_len)))
      return NULL;
  }
  for (i = 0; i < in_len; i++) {
    if (nonce) {
      out[i] = in[i] ^ key[i] ^ nonce[i];
    } else {
      out[i] = in[i] ^ key[i];
    }
  }
  *out_len = in_len;
  return out;
}
```