user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x328,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x318(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x10(%rsp)
  movq   $0x0,0x18(%rsp)
  movq   $0x0,0x20(%rsp)
  movq   $0x0,0x28(%rsp)
  movq   $0x0,0x30(%rsp)
  movq   $0x0,0x38(%rsp)
  movq   $0x0,0x40(%rsp)
  movq   $0x0,0x48(%rsp)
  movq   $0x0,0x50(%rsp)
  movq   $0x0,0x58(%rsp)
  movq   $0x0,0x60(%rsp)
  movq   $0x0,0x68(%rsp)
  movq   $0x0,0x70(%rsp)
  movq   $0x0,0x78(%rsp)
  movq   $0x0,0x80(%rsp)
  movq   $0x0,0x88(%rsp)
  movq   $0x0,0x90(%rsp)
  movq   $0x0,0x98(%rsp)
  movq   $0x0,0xa0(%rsp)
  movq   $0x0,0xa8(%rsp)
  movq   $0x0,0xb0(%rsp)
  movq   $0x0,0xb8(%rsp)
  movq   $0x0,0xc0(%rsp)
  movq   $0x0,0xc8(%rsp)
  movq   $0x0,0xd0(%rsp)
  movq   $0x0,0xd8(%rsp)
  movq   $0x0,0xe0(%rsp)
  movq   $0x0,0xe8(%rsp)
  movq   $0x0,0xf0(%rsp)
  movq   $0x0,0xf8(%rsp)
  movq   $0x0,0x100(%rsp)
  movq   $0x0,0x108(%rsp)
  movq   $0x0,0x110(%rsp)
  movq   $0x0,0x118(%rsp)
  movq   $0x0,0x120(%rsp)
  movq   $0x0,0x128(%rsp)
  movq   $0x0,0x130(%rsp)
  movq   $0x0,0x138(%rsp)
  movq   $0x0,0x140(%rsp)
  movq   $0x0,0x148(%rsp)
  movq   $0x0,0x150(%rsp)
  movq   $0x0,0x158(%rsp)
  movq   $0x0,0x160(%rsp)
  movq   $0x0,0x168(%rsp)
  movq   $0x0,0x170(%rsp)
  movq   $0x0,0x178(%rsp)
  movq   $0x0,0x180(%rsp)
  movq   $0x0,0x188(%rsp)
  movq   $0x0,0x190(%rsp)
  movq   $0x0,0x198(%rsp)
  movq   $0x0,0x1a0(%rsp)
  movq   $0x0,0x1a8(%rsp)
  movq   $0x0,0x1b0(%rsp)
  movq   $0x0,0x1b8(%rsp)
  movq   $0x0,0x1c0(%rsp)
  movq   $0x0,0x1c8(%rsp)
  movq   $0x0,0x1d0(%rsp)
  movq   $0x0,0x1d8(%rsp)
  movq   $0x0,0x1e0(%rsp)
  movq   $0x0,0x1e8(%rsp)
  movq   $0x0,0x1f0(%rsp)
  movq   $0x0,0x1f8(%rsp)
  movq   $0x0,0x200(%rsp)
  movq   $0x0,0x208(%rsp)
  movq   $0x0,0x210(%rsp)
  movq   $0x0,0x218(%rsp)
  movq   $0x0,0x220(%rsp)
  movq   $0x0,0x228(%rsp)
  movq   $0x0,0x230(%rsp)
  movq   $0x0,0x238(%rsp)
  movq   $0x0,0x240(%rsp)
  movq   $0x0,0x248(%rsp)
  movq   $0x0,0x250(%rsp)
  movq   $0x0,0x258(%rsp)
  movq   $0x0,0x260(%rsp)
  movq   $0x0,0x268(%rsp)
  movq   $0x0,0x270(%rsp)
  movq   $0x0,0x278(%rsp)
  movq   $0x0,0x280(%rsp)
  movq   $0x0,0x288(%rsp)
  movq   $0x0,0x290(%rsp)
  movq   $0x0,0x298(%rsp)
  movq   $0x0,0x2a0(%rsp)
  movq   $0x0,0x2a8(%rsp)
  movq   $0x0,0x2b0(%rsp)
  movq   $0x0,0x2b8(%rsp)
  movq   $0x0,0x2c0(%rsp)
  movq   $0x0,0x2c8(%rsp)
  movq   $0x0,0x2d0(%rsp)
  movq   $0x0,0x2d8(%rsp)
  movq   $0x0,0x2e0(%rsp)
  movq   $0x0,0x2e8(%rsp)
  movq   $0x0,0x2f0(%rsp)
  movq   $0x0,0x2f8(%rsp)
  movq   $0x0,0x300(%rsp)
  movq   $0x0,0x308(%rsp)
  cmp    $0x1,%edi
  jle    L33
  mov    %rsi,%rbx
  mov    0x8(%rsi),%rdx
  lea    0x10(%rsp),%r12
  lea    D50(%rip),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    0x8(%rbx),%rdx
  lea    0x110(%rsp),%r13
  mov    $0x0,%ecx
  lea    D28(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    0x8(%rbx),%rdx
  lea    0x210(%rsp),%rbx
  mov    $0x0,%ecx
  lea    D38(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %r12,%rsi
  lea    D60(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r13,%rsi
  lea    D2(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rsi
  lea    D81(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D39(%rip),%rbp
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <fopen@plt>
  mov    %rax,0x8(%rsp)
  lea    D40(%rip),%r15
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <fopen@plt>
  mov    %rax,%r14
  mov    0x8(%rsp),%rsi
  mov    %rax,%rdi
  call   <test_compress@plt>
  mov    %r14,%rdi
  call   <fclose@plt>
  mov    0x8(%rsp),%rdi
  call   <fclose@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <fopen@plt>
  mov    %rax,%r13
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  mov    %rax,%r14
  mov    %r13,%rsi
  mov    %rax,%rdi
  call   <test_decompress@plt>
  mov    %r14,%rdi
  call   <fclose@plt>
  mov    %r13,%rdi
  call   <fclose@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <fopen@plt>
  mov    %rax,%r12
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  mov    %rax,%rsi
  mov    %r12,%rdi
  call   <compare@plt>
  test   %eax,%eax
  jne    L11
  lea    D56(%rip),%rdi
  call   <puts@plt>
L44:
  mov    %rbx,%rdi
  call   <fclose@plt>
  mov    %r12,%rdi
  call   <fclose@plt>
L27:
  mov    0x318(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L24
  mov    $0x0,%eax
  add    $0x328,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L33:
  lea    D37(%rip),%rdi
  call   <puts@plt>
  jmp    L27
L11:
  lea    D34(%rip),%rdi
  call   <puts@plt>
  jmp    L44
L24:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D50
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D28
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D38
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D60
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D2
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D81
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D39
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D40
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D56
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D37
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D34
type_guessed: string

tool: D50: %s

tool: D28: %s.lz4s-%d

tool: D38: %s.lz4s-%d.dec

tool: D60: inp = [%s]


tool: D2: lz4 = [%s]


tool: D81: dec = [%s]


tool: D39: rb

tool: D40: wb

tool: D56: Verify : OK

tool: D37: Please specify input filename

tool: D34: Verify : NG

assistant: ```c
int main(int argc, char **argv) {
  char inpFilename[256] = {0};
  char lz4Filename[256] = {0};
  char decFilename[256] = {0};
  if (argc < 2) {
    printf("Please specify input filename\n");
    return 0;
  }
  sprintf(inpFilename, "%s", argv[1]);
  sprintf(lz4Filename, "%s.lz4s-%d", argv[1], 0);
  sprintf(decFilename, "%s.lz4s-%d.dec", argv[1], 0);
  printf("inp = [%s]\n", inpFilename);
  printf("lz4 = [%s]\n", lz4Filename);
  printf("dec = [%s]\n", decFilename);
  {
    FILE *inpFp = fopen(inpFilename, "rb");
    FILE *outFp = fopen(lz4Filename, "wb");
    test_compress(outFp, inpFp);
    fclose(outFp);
    fclose(inpFp);
  }
  {
    FILE *inpFp = fopen(lz4Filename, "rb");
    FILE *outFp = fopen(decFilename, "wb");
    test_decompress(outFp, inpFp);
    fclose(outFp);
    fclose(inpFp);
  }
  {
    FILE *inpFp = fopen(inpFilename, "rb");
    FILE *decFp = fopen(decFilename, "rb");
    const int cmp = compare(inpFp, decFp);
    if (0 == cmp) {
      printf("Verify : OK\n");
    } else {
      printf("Verify : NG\n");
    }
    fclose(decFp);
    fclose(inpFp);
  }
  return 0;
}
```