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

```asm
<convert_human_time_format>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbx
  call   <strlen@plt>
  lea    0x1(%rax,%rax,1),%edi
  mov    $0x1,%esi
  call   <xcalloc@plt>
  mov    %rax,%r15
  movzbl (%rbx),%edi
  test   %dil,%dil
  je     L192
  mov    %rax,%rbp
  mov    $0x0,%r13d
  lea    D22(%rip),%r14
  jmp    L59
  mov    $0x1,%edi
  cmp    $0x53,%r13b
  je     L220
  lea    D59(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  add    $0x2,%rbp
  mov    $0x1,%edi
  mov    $0x53,%r13d
  jmp    L220
  mov    $0x1,%edi
  cmp    $0x4d,%r13b
  je     L220
  lea    D78(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  add    $0x2,%rbp
  mov    $0x1,%edi
  mov    $0x4d,%r13d
  jmp    L220
  cmp    $0x48,%r13b
  jne    L147
  movb   $0x49,-0x1(%rbp)
  mov    $0x1,%edi
  jmp    L220
L147:
  lea    D15(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  add    $0x2,%rbp
  mov    $0x1,%edi
  mov    $0x48,%r13d
  jmp    L220
  cmp    $0x48,%r13b
  jne    L130
  movb   $0x48,-0x1(%rbp)
  mov    $0x1,%edi
  jmp    L220
L130:
  lea    D50(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  add    $0x2,%rbp
  mov    %r12d,%r13d
  mov    $0x1,%edi
  jmp    L220
  cmp    $0x58,%r13b
  jne    L110
  movb   $0x50,-0x1(%rbp)
  mov    $0x1,%edi
  jmp    L220
L110:
  lea    D63(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  add    $0x2,%rbp
  mov    $0x1,%edi
  mov    $0x58,%r13d
  jmp    L220
  cmp    $0x58,%r13b
  jne    L124
  movb   $0x70,-0x1(%rbp)
  mov    $0x1,%edi
  jmp    L220
L124:
  lea    D27(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  add    $0x2,%rbp
  mov    %r12d,%r13d
  mov    $0x1,%edi
  jmp    L220
L215:
  movsbl (%rbx),%edi
  call   <ispunct@plt>
  test   %rax,%rax
  je     L11
L67:
  movzbl (%rbx),%eax
  mov    %al,0x0(%rbp)
  lea    0x1(%rbp),%rbp
  mov    $0x1,%edi
  mov    $0x0,%r13d
  jmp    L220
L11:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  mov    $0x0,%edi
  test   %rax,%rax
  je     L220
  jmp    L67
L199:
  mov    $0x0,%edi
L220:
  movsbl (%rbx),%edx
  xor    $0x1,%edi
  lea    D10(%rip),%rsi
  call   <is_fatal@plt>
  add    $0x1,%rbx
  movzbl (%rbx),%edi
  test   %dil,%dil
  je     L192
L59:
  movsbl %dil,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L215
  movzbl (%rbx),%r12d
  lea    -0x48(%r12),%eax
  cmp    $0x30,%al
  ja     L199
  movzbl %al,%eax
  movslq (%r14,%rax,4),%rax
  add    %r14,%rax
  notrack jmp *%rax
L192:
  mov    %r15,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: tag: D59
type_infered: string
name: parse_data
arguments: tag: D78
type_infered: string
name: parse_data
arguments: tag: D15
type_infered: string
name: parse_data
arguments: tag: D50
type_infered: string
name: parse_data
arguments: tag: D63
type_infered: string
name: parse_data
arguments: tag: D27
type_infered: string
name: parse_data
arguments: tag: D10
type_infered: string

tool: D59: %S

tool: D78: %M

tool: D15: %l

tool: D50: %k

tool: D63: %P

tool: D27: %p

tool: D10: Invalid character "%c" in time format!

assistant: ```c
char *convert_human_time_format(const char *human_timef) {
  char *result, *cin, *cout;
  char prev;
  result = (char *)xcalloc((2 * strlen(human_timef)) + 1, 1);
  cout = result;
  prev = '\0';
  for (cin = (char *)human_timef; *cin; cin++) {
    int okay = 1;
    if (isalpha(*cin)) {
      switch (*cin) {
      case 'S':
      case 's':
        if (prev != 'S') {
          strcat(cout, "%S");
          cout += 2;
          prev = 'S';
        }
        break;
      case 'M':
      case 'm':
        if (prev != 'M') {
          strcat(cout, "%M");
          cout += 2;
          prev = 'M';
        }
        break;
      case 'h':
        if (prev != 'H') {
          strcat(cout, "%l");
          cout += 2;
          prev = 'H';
        } else
          *(cout - 1) = 'I';
        break;
      case 'H':
        if (prev != 'H') {
          strcat(cout, "%k");
          cout += 2;
          prev = 'H';
        } else
          *(cout - 1) = 'H';
        break;
      case 'x':
        if (prev != 'X') {
          strcat(cout, "%P");
          cout += 2;
          prev = 'X';
        } else
          *(cout - 1) = 'P';
        break;
      case 'X':
        if (prev != 'X') {
          strcat(cout, "%p");
          cout += 2;
          prev = 'X';
        } else
          *(cout - 1) = 'p';
        break;
      default:
        okay = 0;
      }
    } else if (ispunct(*cin) || isspace(*cin)) {
      *cout++ = *cin;
      prev = '\0';
    } else
      okay = 0;
    is_fatal(okay == 0, "Invalid character \"%c\" in time format!", *cin);
  }
  return result;
}
```