user: What would the C source look like for the assembly code provided here:

```asm
<test_file>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x430,%rsp
  mov    %rdi,-0x428(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x41c(%rbp)
  mov    -0x428(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    -0x410(%rbp),%rax
  mov    $0x2e,%esi
  mov    %rax,%rdi
  call   <strrchr@plt>
  mov    %rax,-0x418(%rbp)
  cmpq   $0x0,-0x418(%rbp)
  je     L70
  mov    -0x418(%rbp),%rax
  lea    D21(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L207
  mov    -0x418(%rbp),%rax
  lea    D28(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L207
  mov    -0x418(%rbp),%rax
  lea    D19(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L207
  mov    -0x418(%rbp),%rax
  lea    D6(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L207
  mov    -0x418(%rbp),%rax
  lea    D43(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L207
  mov    -0x418(%rbp),%rax
  lea    D4(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L70
L207:
  mov    -0x418(%rbp),%rax
  movb   $0x0,(%rax)
  lea    -0x410(%rbp),%rax
  mov    %rax,%rdi
  call   <exist_file@plt>
  test   %rax,%rax
  je     L10
  mov    $0x1,%eax
  jmp    L212
L10:
  movl   $0x1,-0x41c(%rbp)
L70:
  lea    -0x410(%rbp),%rax
  mov    $0x2e,%esi
  mov    %rax,%rdi
  call   <strrchr@plt>
  mov    %rax,-0x418(%rbp)
  cmpq   $0x0,-0x418(%rbp)
  je     L139
  mov    -0x418(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x4,%eax
  jne    L139
  mov    -0x418(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  cmp    $0x64,%al
  je     L161
  mov    -0x418(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  cmp    $0x44,%al
  jne    L139
L161:
  mov    -0x418(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  cmp    $0x64,%al
  jne    L214
  mov    $0x6f,%edx
  jmp    L203
L214:
  mov    $0x4f,%edx
L203:
  mov    -0x418(%rbp),%rax
  add    $0x3,%rax
  mov    %dl,(%rax)
  lea    -0x410(%rbp),%rax
  mov    %rax,%rdi
  call   <exist_file@plt>
  test   %rax,%rax
  je     L16
  mov    $0x1,%eax
  jmp    L212
L16:
  movl   $0x1,-0x41c(%rbp)
L139:
  lea    -0x410(%rbp),%rax
  mov    %rax,%rdi
  call   <exist_file@plt>
  test   %rax,%rax
  jne    L51
  mov    $0x0,%eax
  jmp    L212
L51:
  cmpl   $0x0,-0x41c(%rbp)
  je     L157
  mov    $0x2,%eax
  jmp    L212
L157:
  mov    $0x1,%eax
L212:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L79
  call   <__stack_chk_fail@plt>
L79:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D21
type: string
name: unpack_data
arguments: label: D28
type: string
name: unpack_data
arguments: label: D19
type: string
name: unpack_data
arguments: label: D6
type: string
name: unpack_data
arguments: label: D43
type: string
name: unpack_data
arguments: label: D4
type: string

tool: D21: .z

tool: D28: .gz

tool: D19: .zip

tool: D6: .Z

tool: D43: .GZ

tool: D4: .ZIP

assistant: ```c
int test_file(const char *local) {
  char buff[1024], *p;
  int comp = 0;
  strcpy(buff, local);
  if ((p = strrchr(buff, '.')) && (!strcmp(p, ".z") || !strcmp(p, ".gz") || !strcmp(p, ".zip") || !strcmp(p, ".Z") || !strcmp(p, ".GZ") || !strcmp(p, ".ZIP"))) {
    *p = '\0';
    if (exist_file(buff))
      return 1;
    comp = 1;
  }
  if ((p = strrchr(buff, '.')) && strlen(p) == 4 && (*(p + 3) == 'd' || *(p + 3) == 'D')) {
    *(p + 3) = *(p + 3) == 'd' ? 'o' : 'O';
    if (exist_file(buff))
      return 1;
    comp = 1;
  }
  if (!exist_file(buff))
    return 0;
  return comp ? 2 : 1;
}
```