user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  mov    %edi,%eax
  push   %rbx
  mov    %rsi,%rbx
  and    $0xfffffffd,%eax
  cmp    $0x1,%eax
  jne    L41
  cmp    $0x3,%edi
  je     L36
L48:
  xor    %eax,%eax
  call   <nactiZpravu@plt>
  mov    %rax,%r8
  mov    $0x3,%eax
  test   %r8,%r8
  jne    L46
  lea    D11(%rip),%rdi
  call   <puts@plt>
  lea    D36(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <vypisZpravu@plt>
  lea    D67(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <vypisKlic@plt>
  xor    %eax,%eax
  call   <zasifruj@plt>
  lea    D56(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <vypisZpravu@plt>
  xor    %eax,%eax
L46:
  pop    %rbx
  ret
L36:
  mov    0x8(%rsi),%rsi
  mov    $0x3,%edx
  lea    D28(%rip),%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L8
  mov    0x10(%rbx),%rdi
  call   <nactiKlic@plt>
  test   %rax,%rax
  je     L48
  mov    $0x2,%eax
  pop    %rbx
  ret
L41:
  mov    (%rsi),%rsi
  lea    D63(%rip),%rdi
  xor    %eax,%eax
  mov    %rsi,%rcx
  mov    %rsi,%rdx
  call   <printf@plt>
  mov    $0x1,%eax
  pop    %rbx
  ret
L8:
  lea    D29(%rip),%rdi
  call   <puts@plt>
  mov    $0x2,%eax
  pop    %rbx
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D11
data_type: string
name: unpack_data
arguments: data_label: D36
data_type: string
name: unpack_data
arguments: data_label: D67
data_type: string
name: unpack_data
arguments: data_label: D56
data_type: string
name: unpack_data
arguments: data_label: D28
data_type: string
name: unpack_data
arguments: data_label: D63
data_type: string
name: unpack_data
arguments: data_label: D29
data_type: string

tool: D11: hello PRESENT!

tool: D36: Zprava k sifrovani: 

tool: D67: Sifruji klicem:     

tool: D56: Ciphertext:         

tool: D28: -k

tool: D63: 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: D29: Chybny prepinac

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;
}
```