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

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  lea    D76(%rip),%r13
  push   %r12
  push   %rbp
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rbp
  mov    $0x656d,%eax
  movq   $0x74736574,0x20(%rsp)
  mov    %ax,0x11(%rsp)
  mov    %rbp,%rdi
  movabs $0x7420676e69727473,%rax
  lea    0xd(%rsp),%r12
  movq   $0x0,0x28(%rsp)
  lea    0x14(%rsp),%r14
  movl   $0x0,0x30(%rsp)
  movl   $0x656e6564,0xd(%rsp)
  movb   $0x0,0x13(%rsp)
  mov    %rax,0x14(%rsp)
  movl   $0x747365,0x1c(%rsp)
  call   <strlen@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  mov    %eax,%edx
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r12,%rsi
  mov    %r13,%rdi
  mov    %eax,%edx
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %r14,%rsi
  mov    %r13,%rdi
  mov    %eax,%edx
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  lea    D7(%rip),%rdi
  call   <puts@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  mov    %eax,%edx
  xor    %eax,%eax
  call   <printf@plt>
  lea    D50(%rip),%rdi
  call   <puts@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  mov    %eax,%edx
  xor    %eax,%eax
  call   <printf@plt>
  lea    D31(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rsi
  lea    D29(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  xor    %eax,%eax
  movb   $0x61,0xd(%rsp)
  lea    D3(%rip),%rdi
  call   <printf@plt>
  xor    %esi,%esi
  lea    D45(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  lea    D10(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  lea    D64(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D76
type_infered: string
name: disassemble_data
arguments: tag: D7
type_infered: string
name: disassemble_data
arguments: tag: D50
type_infered: string
name: disassemble_data
arguments: tag: D31
type_infered: string
name: disassemble_data
arguments: tag: D29
type_infered: string
name: disassemble_data
arguments: tag: D3
type_infered: string
name: disassemble_data
arguments: tag: D45
type_infered: string
name: disassemble_data
arguments: tag: D10
type_infered: string
name: disassemble_data
arguments: tag: D64
type_infered: string

tool: D76: %s %d


tool: D7: 
strcpy:

tool: D50: 
strcat:

tool: D31: 
strcmp:

tool: D29: s1: %s


tool: D3: s2: %s


tool: D45: s1-s1 %d


tool: D10: s1-s2 %d


tool: D64: s2-s1 %d


assistant: ```c
int main() {
  char s1[20] = {'t', 'e', 's', 't', 0};
  char s2[] = {'d', 'e', 'n', 'e', 'm', 'e', 0};
  char s3[] = "string test";
  char *cp = s3;
  printf("%s %d\n", s1, strlen(s1));
  printf("%s %d\n", s2, strlen(s2));
  printf("%s %d\n", s3, strlen(s3));
  printf("%s\n", cp);
  printf("\nstrcpy:\n");
  strcpy(s1, s2);
  printf("%s %d\n", s1, strlen(s1));
  printf("\nstrcat:\n");
  strcat(s1, s3);
  printf("%s %d\n", s1, strlen(s1));
  printf("\nstrcmp:\n");
  printf("s1: %s\n", s1);
  s2[0] = 'a';
  printf("s2: %s\n", s2);
  printf("s1-s1 %d\n", strcmp(s1, s1));
  printf("s1-s2 %d\n", strcmp(s1, s2));
  printf("s2-s1 %d\n", strcmp(s2, s1));
  return 0;
}
```