user: What is the c source code of the assembly code below?

```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    D84(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  lea    D17(%rip),%rdi
  call   <scanf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %r12,%rdi
  call   <pocket_get_token@plt>
  lea    D56(%rip),%rdi
  mov    %rax,%rbp
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdx
  xor    %eax,%eax
  lea    D31(%rip),%rcx
  lea    D11(%rip),%rsi
  lea    D10(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <pocket_auth@plt>
  lea    D19(%rip),%rsi
  lea    D82(%rip),%rdi
  mov    %rax,%r13
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L17
L4:
  mov    %r13,%rcx
  mov    %r12,%rdx
  lea    D39(%rip),%rsi
  mov    %rbp,%rdi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  lea    D53(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <pocket_clean@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L19
  add    $0x40,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L17:
  lea    D37(%rip),%rdi
  call   <die@plt>
  jmp    L4
L19:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D84
datatype: string
name: unpack_data
arguments: data_tag: D17
datatype: string
name: unpack_data
arguments: data_tag: D56
datatype: string
name: unpack_data
arguments: data_tag: D31
datatype: string
name: unpack_data
arguments: data_tag: D11
datatype: string
name: unpack_data
arguments: data_tag: D10
datatype: string
name: unpack_data
arguments: data_tag: D19
datatype: string
name: unpack_data
arguments: data_tag: D82
datatype: string
name: unpack_data
arguments: data_tag: D39
datatype: string
name: unpack_data
arguments: data_tag: D53
datatype: string
name: unpack_data
arguments: data_tag: D37
datatype: string

tool: D84: 
 Open your browser and go to:

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

 paste here the autogenerated consumer-key string: 

tool: D17: %s

tool: D56:  
Received token: %s


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

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

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

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



tool: D19: w

tool: D82: config.h

tool: D39: #pragma once

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



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


tool: D37: 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();
}
```