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

```asm
<main>:
  endbr64
  push   %r14
  lea    D337(%rip),%rdi
  push   %r13
  push   %r12
  push   %rbp
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0xe(%rsp),%r14
  lea    0x6(%rsp),%rbp
  lea    0xa(%rsp),%r12
  lea    0x8(%rsp),%r13
  call   <printf@plt>
  mov    %r14,%rdi
  call   <gets@plt>
  mov    %r14,%rdi
  mov    %r12,%r8
  mov    %r13,%rcx
  lea    D338(%rip),%rsi
  mov    %rbp,%rdx
  call   <sscanf@plt>
  lea    D270(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L131
  lea    D140(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L246
L131:
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D358(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L1:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L137
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L246:
  lea    D40(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L30
  lea    D213(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L225
L30:
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D84(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L1
L225:
  lea    D97(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L61
  lea    D38(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L41
L61:
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D23(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L1
L41:
  lea    D340(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L232
  lea    D16(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L96
L232:
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D51(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L1
L96:
  lea    D218(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L133
  lea    D193(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L230
L133:
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D106(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L1
L137:
  call   <__stack_chk_fail@plt>
L230:
  lea    D181(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L167
  lea    D142(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L193
L167:
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D322(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L1
L193:
  lea    D311(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L212
  lea    D243(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L22
L212:
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D244(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L1
L22:
  lea    D238(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L117
  lea    D30(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L327
L117:
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L1
L327:
  lea    D166(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L297
  lea    D198(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L252
L297:
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D11(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L1
L252:
  lea    D370(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L261
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D87(%rip),%rdi
  call   <printf@plt>
  jmp    L1
L261:
  lea    D58(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L18
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D21(%rip),%rdi
  call   <printf@plt>
  jmp    L1
L18:
  lea    D346(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L59
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D266(%rip),%rdi
  call   <printf@plt>
  jmp    L1
L59:
  lea    D48(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rsi
  lea    D382(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13,%rsi
  lea    D168(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  lea    D313(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L1
```

tool_calls: name: disassemble_data
arguments: label: D337
type_guessed: string
name: disassemble_data
arguments: label: D338
type_guessed: string
name: disassemble_data
arguments: label: D270
type_guessed: string
name: disassemble_data
arguments: label: D140
type_guessed: string
name: disassemble_data
arguments: label: D358
type_guessed: string
name: disassemble_data
arguments: label: D40
type_guessed: string
name: disassemble_data
arguments: label: D213
type_guessed: string
name: disassemble_data
arguments: label: D84
type_guessed: string
name: disassemble_data
arguments: label: D97
type_guessed: string
name: disassemble_data
arguments: label: D38
type_guessed: string
name: disassemble_data
arguments: label: D23
type_guessed: string
name: disassemble_data
arguments: label: D340
type_guessed: string
name: disassemble_data
arguments: label: D16
type_guessed: string
name: disassemble_data
arguments: label: D51
type_guessed: string
name: disassemble_data
arguments: label: D218
type_guessed: string
name: disassemble_data
arguments: label: D193
type_guessed: string
name: disassemble_data
arguments: label: D106
type_guessed: string
name: disassemble_data
arguments: label: D181
type_guessed: string
name: disassemble_data
arguments: label: D142
type_guessed: string
name: disassemble_data
arguments: label: D322
type_guessed: string
name: disassemble_data
arguments: label: D311
type_guessed: string
name: disassemble_data
arguments: label: D243
type_guessed: string
name: disassemble_data
arguments: label: D244
type_guessed: string
name: disassemble_data
arguments: label: D238
type_guessed: string
name: disassemble_data
arguments: label: D30
type_guessed: string
name: disassemble_data
arguments: label: D10
type_guessed: string
name: disassemble_data
arguments: label: D166
type_guessed: string
name: disassemble_data
arguments: label: D198
type_guessed: string
name: disassemble_data
arguments: label: D11
type_guessed: string
name: disassemble_data
arguments: label: D370
type_guessed: string
name: disassemble_data
arguments: label: D87
type_guessed: string
name: disassemble_data
arguments: label: D58
type_guessed: string
name: disassemble_data
arguments: label: D21
type_guessed: string
name: disassemble_data
arguments: label: D346
type_guessed: string
name: disassemble_data
arguments: label: D266
type_guessed: string
name: disassemble_data
arguments: label: D48
type_guessed: string
name: disassemble_data
arguments: label: D382
type_guessed: string
name: disassemble_data
arguments: label: D168
type_guessed: string
name: disassemble_data
arguments: label: D313
type_guessed: string

tool: D337: Enter date. [E.g. 04 29 1980] : 

tool: D338: %s %s %s

tool: D270: 1

tool: D140: 01

tool: D358:  January %s, %s


tool: D40: 2

tool: D213: 02

tool: D84:  February %s, %s


tool: D97: 3

tool: D38: 03

tool: D23:  March %s, %s


tool: D340: 4

tool: D16: 04

tool: D51:  April %s, %s


tool: D218: 5

tool: D193: 05

tool: D106:  May %s, %s


tool: D181: 6

tool: D142: 06

tool: D322:  June %s, %s


tool: D311: 7

tool: D243: 07

tool: D244:  July %s, %s


tool: D238: 8

tool: D30: 08

tool: D10:  August %s, %s


tool: D166: 9

tool: D198: 09

tool: D11:  September %s, %s


tool: D370: 10

tool: D87:  October %s, %s


tool: D58: 11

tool: D21:  November %s, %s


tool: D346: 12

tool: D266:  December %s, %s


tool: D48: No matching value.

tool: D382: MONTH:	%s


tool: D168: DATE:	%s


tool: D313: YEAR:	%s


assistant: ```c
int main() {
  char ST[10], MM[2], DD[2], YY[4];
  printf("Enter date. [E.g. 04 29 1980] : ");
  gets(ST);
  sscanf(ST, "%s %s %s", MM, DD, YY);
  if ((strcmp(MM, "1") == 0) || (strcmp(MM, "01") == 0)) {
    printf(" January %s, %s\n", DD, YY);
  } else if ((strcmp(MM, "2") == 0) || (strcmp(MM, "02") == 0)) {
    printf(" February %s, %s\n", DD, YY);
  } else if ((strcmp(MM, "3") == 0) || (strcmp(MM, "03") == 0)) {
    printf(" March %s, %s\n", DD, YY);
  } else if ((strcmp(MM, "4") == 0) || (strcmp(MM, "04") == 0)) {
    printf(" April %s, %s\n", DD, YY);
  } else if ((strcmp(MM, "5") == 0) || (strcmp(MM, "05") == 0)) {
    printf(" May %s, %s\n", DD, YY);
  } else if ((strcmp(MM, "6") == 0) || (strcmp(MM, "06") == 0)) {
    printf(" June %s, %s\n", DD, YY);
  } else if ((strcmp(MM, "7") == 0) || (strcmp(MM, "07") == 0)) {
    printf(" July %s, %s\n", DD, YY);
  } else if ((strcmp(MM, "8") == 0) || (strcmp(MM, "08") == 0)) {
    printf(" August %s, %s\n", DD, YY);
  } else if ((strcmp(MM, "9") == 0) || (strcmp(MM, "09") == 0)) {
    printf(" September %s, %s\n", DD, YY);
  } else if (strcmp(MM, "10") == 0) {
    printf(" October %s, %s\n", DD, YY);
  } else if (strcmp(MM, "11") == 0) {
    printf(" November %s, %s\n", DD, YY);
  } else if (strcmp(MM, "12") == 0) {
    printf(" December %s, %s\n", DD, YY);
  } else {
    printf("No matching value.\n");
    printf("MONTH:\t%s\n", MM);
    printf("DATE:\t%s\n", DD);
    printf("YEAR:\t%s\n", YY);
  }
  return 0;
}
```