user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<create_clone_filename_get_clone_application_compressed_filename>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x418,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%r13
  mov    %rdx,%rdi
  mov    %ecx,%r12d
  mov    %r8,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    (%rbx),%rsi
  call   <create_clone_filename_get_directory_name@plt>
  mov    %rax,(%rbx)
  cmp    $0x79,%r12b
  je     L88
  test   %rbp,%rbp
  je     L86
  lea    D3(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L53
  lea    D95(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L89
L86:
  mov    %rsp,%rdi
  mov    %r13,%rcx
  mov    (%rbx),%rdx
  lea    D66(%rip),%rsi
  call   <sprintf@plt>
L54:
  mov    %rsp,%rdi
  call   <strdup@plt>
  mov    0x408(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L29
  add    $0x418,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L88:
  test   %rbp,%rbp
  je     L102
  lea    D3(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L85
  lea    D95(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L5
L102:
  mov    %rsp,%rdi
  mov    %r13,%rcx
  mov    (%rbx),%rdx
  lea    D52(%rip),%rsi
  call   <sprintf@plt>
  jmp    L54
L85:
  mov    %rsp,%rdi
  mov    %r13,%rcx
  mov    (%rbx),%rdx
  lea    D33(%rip),%rsi
  call   <sprintf@plt>
  jmp    L54
L5:
  mov    %rsp,%rdi
  mov    %r13,%rcx
  mov    (%rbx),%rdx
  lea    D27(%rip),%rsi
  call   <sprintf@plt>
  jmp    L54
L53:
  mov    %rsp,%rdi
  mov    %r13,%rcx
  mov    (%rbx),%rdx
  lea    D76(%rip),%rsi
  call   <sprintf@plt>
  jmp    L54
L89:
  mov    %rsp,%rdi
  mov    %r13,%rcx
  mov    (%rbx),%rdx
  lea    D5(%rip),%rsi
  call   <sprintf@plt>
  jmp    L54
L29:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D3
type: string
name: retrieve_data
arguments: data_tag: D95
type: string
name: retrieve_data
arguments: data_tag: D66
type: string
name: retrieve_data
arguments: data_tag: D52
type: string
name: retrieve_data
arguments: data_tag: D33
type: string
name: retrieve_data
arguments: data_tag: D27
type: string
name: retrieve_data
arguments: data_tag: D76
type: string
name: retrieve_data
arguments: data_tag: D5
type: string

tool: D3: shell_script

tool: D95: spreadsheet

tool: D66: %s/insert_%s_application.sql.gz

tool: D52: %s/insert_%s_appaserver.sql.gz

tool: D33: %s/insert_%s_appaserver.sh.gz

tool: D27: %s/%s_appaserver.csv.gz

tool: D76: %s/insert_%s_application.sh.gz

tool: D5: %s/%s.csv.gz

assistant: ```c
char *create_clone_filename_get_clone_application_compressed_filename(char **directory_name, char *application_name, char *appaserver_data_directory, char system_folders_yn, char *export_output) {
  char buffer[1024];
  *directory_name = create_clone_filename_get_directory_name(appaserver_data_directory, *directory_name);
  if (system_folders_yn == 'y') {
    if (export_output && strcmp(export_output, "shell_script") == 0) {
      sprintf(buffer, "%s/insert_%s_appaserver.sh.gz", *directory_name, application_name);
    } else if (export_output && strcmp(export_output, "spreadsheet") == 0) {
      sprintf(buffer, "%s/%s_appaserver.csv.gz", *directory_name, application_name);
    } else {
      sprintf(buffer, "%s/insert_%s_appaserver.sql.gz", *directory_name, application_name);
    }
  } else {
    if (export_output && strcmp(export_output, "shell_script") == 0) {
      sprintf(buffer, "%s/insert_%s_application.sh.gz", *directory_name, application_name);
    } else if (export_output && strcmp(export_output, "spreadsheet") == 0) {
      sprintf(buffer, "%s/%s.csv.gz", *directory_name, application_name);
    } else {
      sprintf(buffer, "%s/insert_%s_application.sql.gz", *directory_name, application_name);
    }
  }
  return strdup(buffer);
}
```