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

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x70,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  movl   $0x746163,0xb(%rsp)
  movl   $0x676f64,0xf(%rsp)
  movl   $0x776f63,0x13(%rsp)
  movabs $0x65706f6c65746e61,%rax
  mov    %rax,0x17(%rsp)
  movb   $0x0,0x1f(%rsp)
  lea    D15(%rip),%rdi
  call   <puts@plt>
  lea    0xf(%rsp),%rsi
  lea    0xb(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  js     L69
L39:
  lea    0x13(%rsp),%rsi
  lea    0xf(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jg     L110
L105:
  lea    0x17(%rsp),%rsi
  lea    0xb(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jg     L10
L86:
  lea    0x13(%rsp),%rdi
  lea    D68(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L92
L78:
  lea    D19(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x20(%rsp),%rbx
  mov    %rbx,%rsi
  lea    D40(%rip),%r12
  mov    %r12,%rdi
  call   <scanf@plt>
  lea    D74(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x40(%rsp),%rbp
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  js     L14
  lea    0x40(%rsp),%rsi
  lea    0x20(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L60
  lea    D81(%rip),%rdi
  call   <puts@plt>
  jmp    L41
L69:
  lea    0xf(%rsp),%rdx
  lea    0xb(%rsp),%rsi
  lea    D97(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L39
L110:
  lea    0x13(%rsp),%rdx
  lea    0xf(%rsp),%rsi
  lea    D31(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L105
L10:
  lea    0x17(%rsp),%rdx
  lea    0xb(%rsp),%rsi
  lea    D31(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L86
L92:
  lea    D56(%rip),%rdi
  call   <puts@plt>
  jmp    L78
L14:
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  lea    D111(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L41:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L109
  mov    $0x0,%eax
  add    $0x70,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L60:
  lea    0x40(%rsp),%rdx
  lea    0x20(%rsp),%rsi
  lea    D78(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L41
L109:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D15
type_infered: string
name: unpack_data
arguments: data_label: D68
type_infered: string
name: unpack_data
arguments: data_label: D19
type_infered: string
name: unpack_data
arguments: data_label: D40
type_infered: string
name: unpack_data
arguments: data_label: D74
type_infered: string
name: unpack_data
arguments: data_label: D81
type_infered: string
name: unpack_data
arguments: data_label: D97
type_infered: string
name: unpack_data
arguments: data_label: D31
type_infered: string
name: unpack_data
arguments: data_label: D56
type_infered: string
name: unpack_data
arguments: data_label: D111
type_infered: string
name: unpack_data
arguments: data_label: D78
type_infered: string

tool: D15: strcmp() Examples


tool: D68: cow

tool: D19: Enter first name (no spaces): 

tool: D40: %s

tool: D74: Enter second name (no spaces): 

tool: D81: These strings are the same.


tool: D97: %s appears before %s.



tool: D31: %s appears after %s.



tool: D56: These two strings are the same.


tool: D111: '%s' appears before '%s'.



tool: D78: '%s' appears after '%s'.



assistant: ```c
int main() {
  char str1[] = "cat", str2[] = "dog", str3[] = "cow", str4[] = "antelope";
  char name1[30 + 1], name2[30 + 1];
  printf("strcmp() Examples\n\n");
  if (strcmp(str1, str2) < 0)
    printf("%s appears before %s.\n\n", str1, str2);
  if (strcmp(str2, str3) > 0)
    printf("%s appears after %s.\n\n", str2, str3);
  if (strcmp(str1, str4) > 0)
    printf("%s appears after %s.\n\n", str1, str4);
  if (strcmp(str3, "cow") == 0)
    printf("These two strings are the same.\n\n");
  printf("Enter first name (no spaces): ");
  scanf("%s", name1);
  printf("Enter second name (no spaces): ");
  scanf("%s", name2);
  if (strcmp(name1, name2) < 0)
    printf("'%s' appears before '%s'.\n\n", name1, name2);
  else if (strcmp(name1, name2) == 0)
    printf("These strings are the same.\n\n");
  else
    printf("'%s' appears after '%s'.\n\n", name1, name2);
  return 0;
}
```