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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D21(%rip),%rdx
  mov    $0x8,%esi
  lea    D52(%rip),%rcx
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  lea    D40(%rip),%rax
  mov    %rsp,%rbp
  mov    %rbp,%rdi
  movq   %rax,%xmm2
  lea    D49(%rip),%rax
  movq   %rax,%xmm0
  lea    D83(%rip),%rax
  movq   %rax,%xmm1
  lea    D59(%rip),%rax
  punpcklqdq %xmm2,%xmm1
  movq   %rax,%xmm3
  lea    D126(%rip),%rax
  movaps %xmm1,(%rsp)
  movdqa %xmm0,%xmm1
  movq   %rax,%xmm4
  punpcklqdq %xmm2,%xmm0
  punpcklqdq %xmm3,%xmm1
  movaps %xmm0,0x30(%rsp)
  movaps %xmm1,0x10(%rsp)
  movq   %rdx,%xmm1
  mov    $0x2,%edx
  punpcklqdq %xmm4,%xmm1
  movaps %xmm1,0x20(%rsp)
  call   <dotest@plt>
  lea    D55(%rip),%rax
  lea    D96(%rip),%rsi
  mov    $0x1,%edx
  movq   %rax,%xmm5
  movq   %rsi,%xmm0
  lea    D47(%rip),%rax
  mov    $0x5,%esi
  punpcklqdq %xmm5,%xmm0
  lea    D102(%rip),%rdi
  movq   %rax,%xmm6
  movaps %xmm0,(%rsp)
  movq   %rdi,%xmm0
  lea    D98(%rip),%rcx
  mov    %rbp,%rdi
  punpcklqdq %xmm6,%xmm0
  mov    %rcx,0x20(%rsp)
  movaps %xmm0,0x10(%rsp)
  call   <dotest@plt>
  xor    %esi,%esi
  mov    $0x3,%edx
  mov    %rbp,%rdi
  lea    D164(%rip),%rcx
  call   <dotest@plt>
  lea    D115(%rip),%rax
  mov    $0x3,%esi
  mov    %rbp,%rdi
  lea    D37(%rip),%rdx
  movq   %rax,%xmm7
  lea    D153(%rip),%rcx
  movq   %rdx,%xmm0
  lea    D104(%rip),%rax
  mov    $0x2,%edx
  punpcklqdq %xmm7,%xmm0
  mov    %rax,0x10(%rsp)
  movaps %xmm0,(%rsp)
  call   <dotest@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x50,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D21
type: string
name: retrieve_data
arguments: tag: D52
type: string
name: retrieve_data
arguments: tag: D40
type: string
name: retrieve_data
arguments: tag: D49
type: string
name: retrieve_data
arguments: tag: D83
type: string
name: retrieve_data
arguments: tag: D59
type: string
name: retrieve_data
arguments: tag: D126
type: string
name: retrieve_data
arguments: tag: D55
type: string
name: retrieve_data
arguments: tag: D96
type: string
name: retrieve_data
arguments: tag: D47
type: string
name: retrieve_data
arguments: tag: D102
type: string
name: retrieve_data
arguments: tag: D98
type: string
name: retrieve_data
arguments: tag: D164
type: string
name: retrieve_data
arguments: tag: D115
type: string
name: retrieve_data
arguments: tag: D37
type: string
name: retrieve_data
arguments: tag: D153
type: string
name: retrieve_data
arguments: tag: D104
type: string

tool: D21: libe

tool: D52: abigailtheta

tool: D40: abigail

tool: D49: theta

tool: D83: zone

tool: D59: form

tool: D126: zas

tool: D55: zxxuueeg

tool: D96: ejjjjmmtthh

tool: D47: dqqqaaabbb

tool: D102: aanlljrrrxx

tool: D98: oocccffuucccjjjkkkjyyyeehh

tool: 

tool: D115: wkppqsztdkmvcuwvereiupccauycnjutlv

tool: D37: itvayloxrp

tool: D153: wkppqsztdkmvcuwvereiupccauycnjutlvvweqilsfytihvrzlaodfixoyxvyuyvgpck

tool: D104: vweqilsfytihvrzlaodfixoyxvyuyvgpck

assistant: ```c
int main() {
  {
    char *a1[] = {"zone", "abigail", "theta", "form", "libe", "zas", "theta", "abigail"};
    dotest(a1, 8, 2, "abigailtheta");
  }
  {
    char *a1[] = {"ejjjjmmtthh", "zxxuueeg", "aanlljrrrxx", "dqqqaaabbb", "oocccffuucccjjjkkkjyyyeehh"};
    dotest(a1, 5, 1, "oocccffuucccjjjkkkjyyyeehh");
  }
  {
    char *arr[] = {};
    dotest(arr, 0, 3, "");
  }
  {
    char *arr[] = {"itvayloxrp", "wkppqsztdkmvcuwvereiupccauycnjutlv", "vweqilsfytihvrzlaodfixoyxvyuyvgpck"};
    dotest(arr, 3, 2, "wkppqsztdkmvcuwvereiupccauycnjutlvvweqilsfytihvrzlaodfixoyxvyuyvgpck");
  }
}
```