user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x218,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%r15
  mov    $0x0,%r14d
  lea    0x1c(%rsp),%rax
  mov    %rax,0x8(%rsp)
  lea    0x1bd(%rsp),%r12
  jmp    L76
L118:
  lea    D22(%rip),%rdi
  call   <puts@plt>
  lea    D25(%rip),%rdi
  call   <puts@plt>
  jmp    L61
L121:
  cmp    %r14d,%ebx
  jge    L106
  lea    -0x8(%r15),%rcx
  mov    0x4(%rsp),%eax
  sub    %ebx,%eax
  shl    $0x3,%rax
  sub    %rax,%rcx
  mov    %r15,%rax
L48:
  mov    -0x8(%rax),%rdx
  mov    %rdx,(%rax)
  sub    $0x8,%rax
  cmp    %rcx,%rax
  jne    L48
L106:
  lea    0x1c0(%rsp),%rdi
  call   <strlen@plt>
  lea    0x3(%rax),%rdi
  call   <malloc@plt>
  mov    %rax,%rbx
  movslq %ebp,%rbp
  mov    %rax,0x20(%rsp,%rbp,8)
  test   %rax,%rax
  je     L109
  mov    %r12,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    0x1c0(%rsp),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  add    $0x1,%r14d
  add    $0x8,%r15
  cmp    $0x32,%r14d
  je     L118
L76:
  lea    D75(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  lea    D44(%rip),%rdi
  call   <scanf@plt>
  mov    0x1c(%rsp),%edx
  test   %edx,%edx
  je     L103
  lea    D44(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  lea    0x1c0(%rsp),%rdi
  mov    $0x3c,%esi
  call   <read_line@plt>
  test   %r14d,%r14d
  jle    L147
  lea    -0x1(%r14),%eax
  mov    %eax,0x4(%rsp)
  mov    %r14d,%r13d
  mov    $0x0,%ebx
L60:
  mov    %ebx,%ebp
  mov    0x20(%rsp,%rbx,8),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  js     L121
  lea    0x1(%rbx),%ebp
  add    $0x1,%rbx
  cmp    %r13,%rbx
  jne    L60
  jmp    L106
L109:
  lea    D74(%rip),%rdi
  call   <puts@plt>
L103:
  lea    D25(%rip),%rdi
  call   <puts@plt>
  test   %r14d,%r14d
  jle    L72
L61:
  mov    $0x0,%ebx
  lea    D65(%rip),%rbp
L63:
  mov    0x20(%rsp,%rbx,8),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,%r14d
  jg     L63
L72:
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L33
  mov    $0x0,%eax
  add    $0x218,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L147:
  mov    $0x0,%ebp
  jmp    L106
L33:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D22
type_guessed: string
name: parse_data
arguments: label: D25
type_guessed: string
name: parse_data
arguments: label: D75
type_guessed: string
name: parse_data
arguments: label: D44
type_guessed: string
name: parse_data
arguments: label: D74
type_guessed: string
name: parse_data
arguments: label: D65
type_guessed: string

tool: D22: -- No space left -- 

tool: D25: 
Day Reminder

tool: D75: Enter day and reminder: 

tool: D44: %2d

tool: D74: -- No space left --

tool: D65:  %s


assistant: ```c
int main(void) {
  char *reminders[50];
  char day_str[3], msg_str[60 + 1];
  int day, i, j, num_remind = 0;
  for (;;) {
    if (num_remind == 50) {
      printf("-- No space left -- \n");
      break;
    }
    printf("Enter day and reminder: ");
    scanf("%2d", &day);
    if (day == 0)
      break;
    sprintf(day_str, "%2d", day);
    read_line(msg_str, 60);
    for (i = 0; i < num_remind; i++)
      if (strcmp(day_str, reminders[i]) < 0)
        break;
    for (j = num_remind; j > i; j--)
      reminders[j] = reminders[j - 1];
    reminders[i] = malloc(2 + strlen(msg_str) + 1);
    if (reminders[i] == NULL) {
      printf("-- No space left --\n");
      break;
    }
    strcpy(reminders[i], day_str);
    strcat(reminders[i], msg_str);
    num_remind++;
  }
  printf("\nDay Reminder\n");
  for (i = 0; i < num_remind; i++)
    printf(" %s\n", reminders[i]);
  return 0;
}
```