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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x10(%rbp),%rcx
  lea    -0x18(%rbp),%rdx
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xc(%rbp),%rcx
  lea    -0x14(%rbp),%rdx
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x10(%rbp),%edx
  mov    -0xc(%rbp),%eax
  cmp    %eax,%edx
  jne    L27
  mov    -0x10(%rbp),%edx
  mov    -0xc(%rbp),%eax
  cmp    %eax,%edx
  jne    L51
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  cmp    %eax,%edx
  jne    L27
L51:
  mov    -0x10(%rbp),%edx
  mov    -0xc(%rbp),%eax
  cmp    %eax,%edx
  jne    L130
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  cmp    %eax,%edx
  jne    L130
  mov    -0x18(%rbp),%edx
  mov    -0x14(%rbp),%eax
  cmp    %eax,%edx
  je     L130
L27:
  mov    -0x10(%rbp),%edx
  mov    -0xc(%rbp),%eax
  cmp    %eax,%edx
  jl     L70
  mov    -0x10(%rbp),%edx
  mov    -0xc(%rbp),%eax
  cmp    %eax,%edx
  jne    L66
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  cmp    %eax,%edx
  jl     L70
L66:
  mov    -0x10(%rbp),%edx
  mov    -0xc(%rbp),%eax
  cmp    %eax,%edx
  jne    L20
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  cmp    %eax,%edx
  jne    L20
  mov    -0x18(%rbp),%edx
  mov    -0x14(%rbp),%eax
  cmp    %eax,%edx
  jge    L20
L70:
  mov    -0xc(%rbp),%esi
  mov    -0x14(%rbp),%r8d
  mov    -0x1c(%rbp),%edi
  mov    -0x10(%rbp),%ecx
  mov    -0x18(%rbp),%edx
  mov    -0x20(%rbp),%eax
  sub    $0x8,%rsp
  push   %rsi
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %eax,%esi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x10,%rsp
  jmp    L3
L20:
  mov    -0x10(%rbp),%esi
  mov    -0x18(%rbp),%r8d
  mov    -0x20(%rbp),%edi
  mov    -0xc(%rbp),%ecx
  mov    -0x14(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  sub    $0x8,%rsp
  push   %rsi
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %eax,%esi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x10,%rsp
  jmp    L3
L130:
  mov    -0xc(%rbp),%esi
  mov    -0x14(%rbp),%r8d
  mov    -0x1c(%rbp),%edi
  mov    -0x10(%rbp),%ecx
  mov    -0x18(%rbp),%edx
  mov    -0x20(%rbp),%eax
  sub    $0x8,%rsp
  push   %rsi
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %eax,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x10,%rsp
L3:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L14
  call   <__stack_chk_fail@plt>
L14:
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D58
data_type: string
name: parse_data
arguments: tag: D33
data_type: string
name: parse_data
arguments: tag: D18
data_type: string
name: parse_data
arguments: tag: D7
data_type: string
name: parse_data
arguments: tag: D28
data_type: string

tool: D58: Enter first date (mm/dd/yy) : 

tool: D33: %d/%d/%d

tool: D18: Enter second date (mm/dd/yy) : 

tool: D7: %d/%d/%.2d is earlier than %d/%d/%.2d


tool: D28: Dates %d/%d/%.2d and %d/%d/%.2d are the same.


assistant: ```c
int main(void) {
  int m1, m2, d1, d2, y1, y2;
  printf("Enter first date (mm/dd/yy) : ");
  scanf("%d/%d/%d", &m1, &d1, &y1);
  printf("Enter second date (mm/dd/yy) : ");
  scanf("%d/%d/%d", &m2, &d2, &y2);
  if (y1 != y2 || (y1 == y2 && m1 != m2) || (y1 == y2 && m1 == m2 && d1 != d2)) {
    if (y1 < y2 || (y1 == y2 && m1 < m2) || (y1 == y2 && m1 == m2 && d1 < d2)) {
      printf("%d/%d/%.2d is earlier than %d/%d/%.2d\n", m1, d1, y1, m2, d2, y2);
    } else {
      printf("%d/%d/%.2d is earlier than %d/%d/%.2d\n", m2, d2, y2, m1, d1, y1);
    }
  } else {
    printf("Dates %d/%d/%.2d and %d/%d/%.2d are the same.\n", m1, d1, y1, m2, d2, y2);
  }
  return 0;
}
```