user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    %rsi,-0x10(%rbp)
  cmpl   $0x1,-0x4(%rbp)
  je     L31
  cmpl   $0x3,-0x4(%rbp)
  je     L31
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rcx
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%eax
  jmp    L1
L31:
  cmpl   $0x3,-0x4(%rbp)
  jne    L64
  mov    -0x10(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    $0x3,%edx
  mov    %rax,%rsi
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L11
  mov    -0x10(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <nactiKlic@plt>
  test   %rax,%rax
  je     L64
  mov    $0x2,%eax
  jmp    L1
L11:
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x2,%eax
  jmp    L1
L64:
  mov    $0x0,%eax
  call   <nactiZpravu@plt>
  test   %rax,%rax
  je     L33
  mov    $0x3,%eax
  jmp    L1
L33:
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <vypisZpravu@plt>
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <vypisKlic@plt>
  mov    $0x0,%eax
  call   <zasifruj@plt>
  lea    D43(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <vypisZpravu@plt>
  mov    $0x0,%eax
L1:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D8
type_infered: string
name: unpack_data
arguments: data_tag: D51
type_infered: string
name: unpack_data
arguments: data_tag: D19
type_infered: string
name: unpack_data
arguments: data_tag: D29
type_infered: string
name: unpack_data
arguments: data_tag: D4
type_infered: string
name: unpack_data
arguments: data_tag: D26
type_infered: string
name: unpack_data
arguments: data_tag: D43
type_infered: string

tool: D8: USAGE: 
   %s [ -k KEY ]

      KEY   80-bit klic v hexa zapisu
            vychozi hodnota je 00 00 00 00 00 00 00 00 00 00
    
      Program cte zpravu ze stdin o velikost 64 bitu (1 blok)    n      v hexa zapisu

EXAMPLE
   echo "FF FF FF FF FF FF FF FF" | %s 
   echo "FF FF FF FF FF FF FF FF" | %s -k "FF FF FF FF FF F    F FF FF FF FF"


tool: D51: -k

tool: D19: Chybny prepinac

tool: D29: hello PRESENT!

tool: D4: Zprava k sifrovani: 

tool: D26: Sifruji klicem:     

tool: D43: Ciphertext:         

assistant: ```c
int main(int argc, char **argv) {
  if (argc != 1 && argc != 3) {
    printf("USAGE: \n"
           "   %s [ -k KEY ]\n"
           "\n"
           "      KEY   80-bit klic v hexa zapisu\n"
           "            vychozi hodnota je 00 00 00 00 00 00 00 00 00 00\n    "
           "\n"
           "      Program cte zpravu ze stdin o velikost 64 bitu (1 blok)    n"
           "      v hexa zapisu\n"
           "\n"
           "EXAMPLE\n"
           "   echo \"FF FF FF FF FF FF FF FF\" | %s \n"
           "   echo \"FF FF FF FF FF FF FF FF\" | %s -k \"FF FF FF FF FF F    F FF FF FF FF\""
           "\n",
           argv[0], argv[0], argv[0]);
    return 1;
  }
  if (argc == 3) {
    if (strncmp("-k", argv[1], sizeof("-k")) == 0) {
      if (nactiKlic(argv[2]) != 0) {
        return 2;
      }
    } else {
      printf("Chybny prepinac\n");
      return 2;
    }
  }
  if (nactiZpravu() != 0) {
    return 3;
  }
  printf("hello PRESENT!\n");
  printf("Zprava k sifrovani: ");
  vypisZpravu();
  printf("Sifruji klicem:     ");
  vypisKlic();
  zasifruj();
  printf("Ciphertext:         ");
  vypisZpravu();
  return 0;
}
```