user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <pocket_init@plt>
  lea    D67(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rsp,%rbp
  mov    %rbp,%rsi
  lea    D43(%rip),%rdi
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %rbp,%rdi
  call   <pocket_get_token@plt>
  mov    %rax,%rbx
  mov    %rax,%rsi
  lea    D55(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D54(%rip),%rcx
  mov    %rbx,%rdx
  lea    D68(%rip),%rsi
  lea    D99(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <pocket_auth@plt>
  mov    %rax,%rbp
  lea    D65(%rip),%rsi
  lea    D41(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L13
L4:
  mov    %rsp,%rdx
  mov    %rbp,%rcx
  lea    D103(%rip),%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  mov    %rbx,%rdi
  call   <fclose@plt>
  lea    D40(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <pocket_clean@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L27
  mov    $0x0,%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  ret
L13:
  lea    D13(%rip),%rdi
  call   <die@plt>
  jmp    L4
L27:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D67
type_guessed: string
name: read_data
arguments: data_tag: D43
type_guessed: string
name: read_data
arguments: data_tag: D55
type_guessed: string
name: read_data
arguments: data_tag: D54
type_guessed: string
name: read_data
arguments: data_tag: D68
type_guessed: string
name: read_data
arguments: data_tag: D99
type_guessed: string
name: read_data
arguments: data_tag: D65
type_guessed: string
name: read_data
arguments: data_tag: D41
type_guessed: string
name: read_data
arguments: data_tag: D103
type_guessed: string
name: read_data
arguments: data_tag: D40
type_guessed: string
name: read_data
arguments: data_tag: D13
type_guessed: string

tool: D67: 
 Open your browser and go to:

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

 paste here the autogenerated consumer-key string: 

tool: D43: %s

tool: D55:  
Received token: %s


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

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

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

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



tool: D65: w

tool: D41: config.h

tool: D103: #pragma once

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



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


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