user: 请将以下的汇编代码转换成C语言代码：

```asm
<logger_format>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %edi,%ebx
  mov    %rsi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,0xc(%rsp)
  lea    0xc(%rsp),%rdi
  call   <gmtime@plt>
  mov    %rax,%r13
  lea    0x10(%rsp),%rdi
  mov    $0x13,%esi
  call   <bzero@plt>
  test   %r13,%r13
  je     L29
  lea    0x10(%rsp),%rdi
  mov    %r13,%rcx
  lea    D41(%rip),%rdx
  mov    $0x13,%esi
  call   <strftime@plt>
L29:
  cmp    $0x6,%ebx
  ja     L27
  mov    %ebx,%ebx
  lea    D80(%rip),%rdx
  movslq (%rdx,%rbx,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  lea    D85(%rip),%r12
L27:
  lea    0x10(%rsp),%r14
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %eax,%r13d
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    0x2(%r13,%rbx,1),%edx
  lea    0x4(%rdx,%rax,1),%ebx
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  movslq %ebx,%rsi
  mov    %rax,%rdi
  call   <bzero@plt>
  mov    %rbp,%r8
  mov    %r12,%rcx
  mov    %r14,%rdx
  lea    D84(%rip),%rsi
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L31
  mov    %r13,%rax
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  lea    D66(%rip),%r12
  jmp    L27
  lea    D55(%rip),%r12
  jmp    L27
  lea    D44(%rip),%r12
  jmp    L27
  lea    D40(%rip),%r12
  jmp    L27
  lea    D73(%rip),%r12
  jmp    L27
L31:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D41
data_type: string
name: parse_data
arguments: data_tag: D85
data_type: string
name: parse_data
arguments: data_tag: D84
data_type: string
name: parse_data
arguments: data_tag: D66
data_type: string
name: parse_data
arguments: data_tag: D55
data_type: string
name: parse_data
arguments: data_tag: D44
data_type: string
name: parse_data
arguments: data_tag: D40
data_type: string
name: parse_data
arguments: data_tag: D73
data_type: string

tool: D41: %F %T

tool: D85: TARCE

tool: D84: %s %s %s


tool: D66: DEBUG

tool: D55: INFO 

tool: D44: WARN 

tool: D40: ERROR

tool: D73: 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;
}
```