user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r12
  call   <pocket_init@plt>
  lea    D106(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  lea    D7(%rip),%rdi
  call   <scanf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %r12,%rdi
  call   <pocket_get_token@plt>
  lea    D44(%rip),%rdi
  mov    %rax,%rbp
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdx
  xor    %eax,%eax
  lea    D59(%rip),%rcx
  lea    D4(%rip),%rsi
  lea    D84(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <pocket_auth@plt>
  lea    D29(%rip),%rsi
  lea    D9(%rip),%rdi
  mov    %rax,%r13
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L8
L0:
  mov    %r13,%rcx
  mov    %r12,%rdx
  lea    D85(%rip),%rsi
  mov    %rbp,%rdi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  lea    D33(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <pocket_clean@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L22
  add    $0x40,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L8:
  lea    D36(%rip),%rdi
  call   <die@plt>
  jmp    L0
L22:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D106
type: string
name: extract_symbolic_data
arguments: data_tag: D7
type: string
name: extract_symbolic_data
arguments: data_tag: D44
type: string
name: extract_symbolic_data
arguments: data_tag: D59
type: string
name: extract_symbolic_data
arguments: data_tag: D4
type: string
name: extract_symbolic_data
arguments: data_tag: D84
type: string
name: extract_symbolic_data
arguments: data_tag: D29
type: string
name: extract_symbolic_data
arguments: data_tag: D9
type: string
name: extract_symbolic_data
arguments: data_tag: D85
type: string
name: extract_symbolic_data
arguments: data_tag: D33
type: string
name: extract_symbolic_data
arguments: data_tag: D36
type: string

tool: D106: 
 Open your browser and go to:

 http://getpocket.com/developer/apps/new 

 paste here the autogenerated consumer-key string: 

tool: D7: %s

tool: D44:  
Received token: %s


tool: D59: https://github.com/anavarro/pocket-cli

tool: D4: https://getpocket.com/auth/authorize

tool: D84: 
 Enter the following URL and confirm the app (Enter when done)

%s?request_token=%s&redirect_uri=%s



tool: D29: w

tool: D9: config.h

tool: D85: #pragma once

#define POCKET_KEY   "%s"
#define POCKET_TOKEN "%s"



tool: D33:  config.h file successfully created. Continue with 'make pocket-cli'


tool: D36: Error when creating config.h file!


assistant: ```c
int main(int argc, char **argv) {
  char *auth_token;
  char *access_token;
  char key[50];
  FILE *config;
  pocket_init();
  printf("\n Open your browser and go to:\n\n "
         "http://getpocket.com/developer/apps/new \n\n"
         " paste here the autogenerated consumer-key string: ");
  scanf("%s", key);
  getchar();
  auth_token = pocket_get_token(key);
  printf(" \nReceived token: %s\n", auth_token);
  printf("\n Enter the following URL and confirm the app (Enter when done)\n\n"
         "%s?request_token=%s&redirect_uri=%s\n\n",
         "https://getpocket.com"
         "/auth/authorize",
         auth_token, "https://github.com/anavarro/pocket-cli");
  getchar();
  access_token = pocket_auth(key, auth_token);
  config = fopen("config.h", "w");
  if (NULL == config) {
    die("Error when creating config.h file!\n");
  }
  fprintf(config,
          "#pragma once\n\n"
          "#define POCKET_KEY   \"%s\"\n"
          "#define POCKET_TOKEN \"%s\"\n\n",
          key, access_token);
  fclose(config);
  printf(" config.h file successfully created. Continue with 'make pocket-cli'\n\n");
  pocket_clean();
}
```