user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<logger_format>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %edi,%ebx
  xor    %edi,%edi
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r14
  call   <time@plt>
  lea    0xc(%rsp),%rdi
  mov    %eax,0xc(%rsp)
  call   <gmtime@plt>
  mov    $0x13,%esi
  mov    %r14,%rdi
  mov    %rax,%r12
  call   <bzero@plt>
  test   %r12,%r12
  je     L59
  mov    %r12,%rcx
  lea    D17(%rip),%rdx
  mov    $0x13,%esi
  mov    %r14,%rdi
  call   <strftime@plt>
L59:
  cmp    $0x6,%ebx
  ja     L68
  lea    D81(%rip),%rdx
  movslq (%rdx,%rbx,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
  lea    D53(%rip),%r13
  nop
L68:
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %r13,%rdi
  mov    %eax,%r12d
  call   <strlen@plt>
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <strlen@plt>
  lea    0x2(%r12,%rbx,1),%edx
  lea    0x4(%rdx,%rax,1),%ebx
  mov    %ebx,%edi
  call   <malloc@plt>
  movslq %ebx,%rsi
  mov    %rax,%r12
  mov    %rax,%rdi
  call   <bzero@plt>
  mov    %rbp,%r8
  mov    %r13,%rcx
  mov    %r14,%rdx
  lea    D83(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L50
  add    $0x30,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D69(%rip),%r13
  jmp    L68
  nopl   0x0(%rax)
  lea    D44(%rip),%r13
  jmp    L68
  nopl   0x0(%rax)
  lea    D63(%rip),%r13
  jmp    L68
  nopl   0x0(%rax)
  lea    D14(%rip),%r13
  jmp    L68
  nopl   0x0(%rax)
  lea    D13(%rip),%r13
  jmp    L68
L50:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D17
type_infered: string
name: retrieve_data
arguments: data_label: D53
type_infered: string
name: retrieve_data
arguments: data_label: D83
type_infered: string
name: retrieve_data
arguments: data_label: D69
type_infered: string
name: retrieve_data
arguments: data_label: D44
type_infered: string
name: retrieve_data
arguments: data_label: D63
type_infered: string
name: retrieve_data
arguments: data_label: D14
type_infered: string
name: retrieve_data
arguments: data_label: D13
type_infered: string

tool: D17: %F %T

tool: D53: TARCE

tool: D83: %s %s %s


tool: D69: DEBUG

tool: D44: INFO 

tool: D63: WARN 

tool: D14: ERROR

tool: D13: FATAL

assistant: ```c
char *logger_format(int level, const char *format) {
  time_t t = time(NULL);
  struct tm *current_time = gmtime(&t);
  char c_time_string[19];
  bzero(c_time_string, 19);
  if (current_time != NULL) {
    if (strftime(c_time_string, sizeof(c_time_string), "%F %T", current_time)) {
    }
  }
  char *str_level;
  switch (level) {
  case 1:
    str_level = "TARCE";
    break;
  case 2:
    str_level = "DEBUG";
    break;
  case 3:
    str_level = "INFO ";
    break;
  case 4:
    str_level = "WARN ";
    break;
  case 5:
    str_level = "ERROR";
    break;
  case 6:
    str_level = "FATAL";
    break;
  defualt:
    str_level = "WARN ";
    break;
  }
  size_t new_len = strlen(c_time_string) + 1 + strlen(str_level) + 1 + strlen(format) + 1 + 1 + 1 + 1;
  char *new_format = malloc(sizeof(char) * new_len);
  bzero(new_format, new_len);
  sprintf(new_format, "%s %s %s\n", c_time_string, str_level, format);
  return new_format;
}
```