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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D43(%rip),%rsi
  lea    D78(%rip),%rdx
  lea    D120(%rip),%rdi
  lea    D40(%rip),%rcx
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  lea    D49(%rip),%rax
  mov    %rsp,%rbp
  mov    %rsi,0x18(%rsp)
  lea    D4(%rip),%rsi
  mov    %rdx,0x10(%rsp)
  mov    %rdi,0x20(%rsp)
  mov    %rbp,%rdi
  mov    %rsi,0x28(%rsp)
  mov    $0x8,%esi
  mov    %rdx,0x30(%rsp)
  mov    $0x2,%edx
  mov    %rax,(%rsp)
  lea    D114(%rip),%rax
  mov    %rax,0x8(%rsp)
  mov    %rax,0x38(%rsp)
  call   <dotest@plt>
  lea    D24(%rip),%rax
  mov    $0x1,%edx
  mov    %rbp,%rdi
  mov    %rax,(%rsp)
  lea    D124(%rip),%rax
  lea    D57(%rip),%rcx
  mov    $0x5,%esi
  mov    %rax,0x8(%rsp)
  lea    D127(%rip),%rax
  mov    %rax,0x10(%rsp)
  lea    D20(%rip),%rax
  mov    %rcx,0x20(%rsp)
  mov    %rax,0x18(%rsp)
  call   <dotest@plt>
  xor    %esi,%esi
  mov    $0x3,%edx
  mov    %rbp,%rdi
  lea    D88(%rip),%rcx
  call   <dotest@plt>
  lea    D90(%rip),%rax
  mov    $0x2,%edx
  mov    %rbp,%rdi
  mov    %rax,(%rsp)
  lea    D161(%rip),%rax
  lea    D85(%rip),%rcx
  mov    $0x3,%esi
  mov    %rax,0x8(%rsp)
  lea    D58(%rip),%rax
  mov    %rax,0x10(%rsp)
  call   <dotest@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x50,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D43
datatype: string
name: disassemble_data
arguments: data_label: D78
datatype: string
name: disassemble_data
arguments: data_label: D120
datatype: string
name: disassemble_data
arguments: data_label: D40
datatype: string
name: disassemble_data
arguments: data_label: D49
datatype: string
name: disassemble_data
arguments: data_label: D4
datatype: string
name: disassemble_data
arguments: data_label: D114
datatype: string
name: disassemble_data
arguments: data_label: D24
datatype: string
name: disassemble_data
arguments: data_label: D124
datatype: string
name: disassemble_data
arguments: data_label: D57
datatype: string
name: disassemble_data
arguments: data_label: D127
datatype: string
name: disassemble_data
arguments: data_label: D20
datatype: string
name: disassemble_data
arguments: data_label: D88
datatype: string
name: disassemble_data
arguments: data_label: D90
datatype: string
name: disassemble_data
arguments: data_label: D161
datatype: string
name: disassemble_data
arguments: data_label: D85
datatype: string
name: disassemble_data
arguments: data_label: D58
datatype: string

tool: D43: form

tool: D78: theta

tool: D120: libe

tool: D40: abigailtheta

tool: D49: zone

tool: D4: zas

tool: D114: abigail

tool: D24: ejjjjmmtthh

tool: D124: zxxuueeg

tool: D57: oocccffuucccjjjkkkjyyyeehh

tool: D127: aanlljrrrxx

tool: D20: dqqqaaabbb

tool: 

tool: D90: itvayloxrp

tool: D161: wkppqsztdkmvcuwvereiupccauycnjutlv

tool: D85: wkppqsztdkmvcuwvereiupccauycnjutlvvweqilsfytihvrzlaodfixoyxvyuyvgpck

tool: D58: 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");
  }
}
```