user: Please show me the C implementation that matches the assembly code listed below:

```asm
<selfTest>:
  endbr64
  push   %r13
  mov    $0x5,%ecx
  push   %r12
  push   %rbp
  sub    $0x70,%rsp
  movdqa D38(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbp
  lea    0x40(%rsp),%r13
  lea    0x20(%rsp),%r12
  movaps %xmm0,0x20(%rsp)
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  movdqa D35(%rip),%xmm0
  movl   $0xe,0x30(%rsp)
  movl   $0xb,0x50(%rsp)
  movaps %xmm0,0x40(%rsp)
  call   <otp_encrypt@plt>
  xor    %edi,%edi
  cmpl   $0x3,(%rsp)
  sete   %dil
  call   <assert@plt>
  xor    %edi,%edi
  cmpl   $0x10,0x4(%rsp)
  sete   %dil
  call   <assert@plt>
  xor    %edi,%edi
  cmpl   $0xd,0x8(%rsp)
  sete   %dil
  call   <assert@plt>
  xor    %edi,%edi
  cmpl   $0x15,0xc(%rsp)
  sete   %dil
  call   <assert@plt>
  xor    %edi,%edi
  cmpl   $0x19,0x10(%rsp)
  sete   %dil
  call   <assert@plt>
  mov    $0x5,%ecx
  mov    %r13,%rdx
  mov    %rbp,%rsi
  mov    %rbp,%rdi
  call   <otp_decrypt@plt>
  mov    0x20(%rsp),%eax
  xor    %edi,%edi
  cmp    %eax,(%rsp)
  sete   %dil
  call   <assert@plt>
  mov    0x24(%rsp),%eax
  xor    %edi,%edi
  cmp    %eax,0x4(%rsp)
  sete   %dil
  call   <assert@plt>
  mov    0x28(%rsp),%eax
  xor    %edi,%edi
  cmp    %eax,0x8(%rsp)
  sete   %dil
  call   <assert@plt>
  mov    0x2c(%rsp),%eax
  xor    %edi,%edi
  cmp    %eax,0xc(%rsp)
  sete   %dil
  call   <assert@plt>
  mov    0x30(%rsp),%eax
  xor    %edi,%edi
  cmp    %eax,0x10(%rsp)
  sete   %dil
  call   <assert@plt>
  lea    D14(%rip),%rsi
  mov    %rbp,%rdi
  lea    0x63(%rsp),%rbp
  call   <otp_encode@plt>
  mov    0x20(%rsp),%eax
  xor    %edi,%edi
  cmp    %eax,(%rsp)
  sete   %dil
  call   <assert@plt>
  xor    %edi,%edi
  cmpl   $0x1a,0x4(%rsp)
  sete   %dil
  call   <assert@plt>
  mov    0x28(%rsp),%eax
  xor    %edi,%edi
  cmp    %eax,0x8(%rsp)
  sete   %dil
  call   <assert@plt>
  mov    0x2c(%rsp),%eax
  xor    %edi,%edi
  cmp    %eax,0xc(%rsp)
  sete   %dil
  call   <assert@plt>
  mov    0x30(%rsp),%eax
  xor    %edi,%edi
  cmp    %eax,0x10(%rsp)
  sete   %dil
  call   <assert@plt>
  mov    $0x5,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <otp_decode@plt>
  mov    %rbp,%rdi
  lea    D25(%rip),%rsi
  call   <strstr@plt>
  mov    %eax,%edi
  call   <assert@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  add    $0x70,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L4:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D38
type: byte[16]
name: parse_data
arguments: data_label: D35
type: byte[16]
name: parse_data
arguments: data_label: D14
type: string
name: parse_data
arguments: data_label: D25
type: string

tool: {"D38": [0x07,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x0b,0x00,0x00,0x00,0x0b,0x00,0x00,0x00]}

tool: {"D35": [0x17,0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x0a,0x00,0x00,0x00]}

tool: D14: H LLO

tool: D25: HELLO

assistant: ```c
void selfTest() {
  int buffer[5];
  int inputMsg[] = {7, 4, 11, 11, 14};
  int inputKey[] = {23, 12, 2, 10, 11};
  otp_encrypt(buffer, inputMsg, inputKey, 5);
  assert(buffer[0] == 3);
  assert(buffer[1] == 16);
  assert(buffer[2] == 13);
  assert(buffer[3] == 21);
  assert(buffer[4] == 25);
  otp_decrypt(buffer, buffer, inputKey, 5);
  assert(buffer[0] == inputMsg[0]);
  assert(buffer[1] == inputMsg[1]);
  assert(buffer[2] == inputMsg[2]);
  assert(buffer[3] == inputMsg[3]);
  assert(buffer[4] == inputMsg[4]);
  otp_encode(buffer, "H LLO");
  assert(buffer[0] == inputMsg[0]);
  assert(buffer[1] == 26);
  assert(buffer[2] == inputMsg[2]);
  assert(buffer[3] == inputMsg[3]);
  assert(buffer[4] == inputMsg[4]);
  char buffer2[5];
  otp_decode(buffer2, inputMsg, 5);
  assert(strstr(buffer2, "HELLO"));
}
```