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

```asm
<convert_human_date_format>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  call   <strlen@plt>
  mov    $0x1,%esi
  lea    0x1(%rax,%rax,1),%edi
  call   <xcalloc@plt>
  movsbl (%rbx),%edi
  mov    %rax,(%rsp)
  test   %dil,%dil
  je     L102
  mov    %rax,%r12
  xor    %ebp,%ebp
  lea    D0(%rip),%r13
  xor    %r14d,%r14d
  movabs $0x100000001,%r15
  jmp    L90
  nopl   0x0(%rax,%rax,1)
L100:
  movsbl (%rbx),%edx
  lea    -0x44(%rdx),%ecx
  cmp    $0x35,%cl
  ja     L0
  mov    $0x1,%eax
  shl    %cl,%rax
  test   %r15,%rax
  jne    L95
  movabs $0x20000000200,%rsi
  test   %rsi,%rax
  jne    L174
  movabs $0x20000000200000,%rcx
  mov    $0x1,%r8d
  test   %rcx,%rax
  jne    L173
L72:
  mov    %r8d,%edi
  mov    %r13,%rsi
  add    $0x1,%rbx
  call   <is_fatal@plt>
  movsbl (%rbx),%edi
  test   %dil,%dil
  je     L102
L90:
  call   <toupper@plt>
  movsbl (%rbx),%edi
  cmp    $0x59,%al
  mov    $0x0,%eax
  cmovne %eax,%ebp
  call   <isalpha@plt>
  test   %rax,%rax
  jne    L100
  movsbl (%rbx),%edi
  call   <ispunct@plt>
  movsbl (%rbx),%edx
  test   %rax,%rax
  je     L0
  mov    %dl,(%r12)
  xor    %r8d,%r8d
  add    $0x1,%r12
  xor    %r14d,%r14d
  jmp    L72
  nop
L0:
  mov    $0x1,%r8d
  jmp    L72
  nopl   0x0(%rax,%rax,1)
L95:
  xor    %r8d,%r8d
  cmp    $0x44,%r14b
  je     L72
  mov    %r12,%rdi
  mov    %r8d,0xc(%rsp)
  add    $0x2,%r12
  lea    D1(%rip),%rsi
  call   <strcat@plt>
  mov    $0x44,%r14d
  movsbl (%rbx),%edx
  mov    0xc(%rsp),%r8d
  jmp    L72
  nopl   0x0(%rax)
L173:
  cmp    $0x59,%r14b
  je     L21
  mov    %r12,%rdi
  lea    D18(%rip),%rsi
  add    $0x2,%r12
  call   <strcat@plt>
L21:
  add    $0x1,%ebp
  cmp    $0x2,%ebp
  jle    L28
  movb   $0x59,-0x1(%r12)
L28:
  movsbl (%rbx),%edx
  xor    %r8d,%r8d
  mov    $0x59,%r14d
  jmp    L72
L174:
  xor    %r8d,%r8d
  cmp    $0x4d,%r14b
  je     L72
  mov    %r12,%rdi
  mov    %r8d,0xc(%rsp)
  add    $0x2,%r12
  lea    D11(%rip),%rsi
  call   <strcat@plt>
  mov    $0x4d,%r14d
  movsbl (%rbx),%edx
  mov    0xc(%rsp),%r8d
  jmp    L72
  nopl   0x0(%rax,%rax,1)
L102:
  mov    (%rsp),%rax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D0
type_guessed: string
name: retrieve_data
arguments: tag: D1
type_guessed: string
name: retrieve_data
arguments: tag: D18
type_guessed: string
name: retrieve_data
arguments: tag: D11
type_guessed: string

tool: D0: Invalid character "%c" in date format!

tool: D1: %d

tool: D18: %y

tool: D11: %m

assistant: ```c
char *convert_human_date_format(const char *human_datef) {
  char *result, *cin, *cout;
  char prev;
  int ylen;
  result = (char *)xcalloc((2 * strlen(human_datef)) + 1, 1);
  cout = result;
  prev = '\0';
  ylen = 0;
  for (cin = (char *)human_datef; *cin; cin++) {
    char okay = 1;
    if (toupper(*cin) != 'Y')
      ylen = 0;
    if (isalpha(*cin)) {
      switch (*cin) {
      case 'y':
      case 'Y':
        if (prev != 'Y') {
          strcat(cout, "%y");
          cout += 2;
          prev = 'Y';
        }
        ylen++;
        if (ylen > 2)
          *(cout - 1) = 'Y';
        break;
      case 'm':
      case 'M':
        if (prev != 'M') {
          strcat(cout, "%m");
          cout += 2;
          prev = 'M';
        }
        break;
      case 'd':
      case 'D':
        if (prev != 'D') {
          strcat(cout, "%d");
          cout += 2;
          prev = 'D';
        }
        break;
      default:
        okay = 0;
      }
    } else if (ispunct(*cin)) {
      *cout++ = *cin;
      prev = '\0';
    } else
      okay = 0;
    is_fatal(okay == 0, "Invalid character \"%c\" in date format!", *cin);
  }
  return result;
}
```