user: Converte this assembly snippet into its equivalent C code:

```asm
<app_netconf_item_get>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x68(%rbp)
  movl   $0x0,-0x6c(%rbp)
  lea    D23(%rip),%rax
  mov    %rax,%rsi
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x68(%rbp)
  cmpq   $0x0,-0x68(%rbp)
  jne    L113
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <perror@plt>
  mov    $0x0,%eax
  jmp    L73
L42:
  mov    -0x80(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L113
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x6c(%rbp)
  jmp    L24
L113:
  mov    -0x68(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    $0x51,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  jne    L42
L24:
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  cmpl   $0x0,-0x6c(%rbp)
  jne    L91
  mov    $0x0,%eax
  jmp    L73
L91:
  mov    -0x6c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movzbl -0x60(%rbp,%rax,1),%eax
  cmp    $0xa,%al
  jne    L35
  mov    -0x6c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movb   $0x0,-0x60(%rbp,%rax,1)
L35:
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L45
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <free@plt>
L45:
  lea    -0x60(%rbp),%rax
  mov    $0x3d,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L62
  lea    -0x60(%rbp),%rax
  mov    $0x3d,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  add    $0x1,%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  mov    %rdx,(%rax)
  jmp    L77
L62:
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,%rdx
  mov    -0x78(%rbp),%rax
  mov    %rdx,(%rax)
L77:
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
L73:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D23
datatype: string
name: extract_symbolic_data
arguments: tag: D11
datatype: string

tool: D23: r

tool: D11: /local/etc/sysconfig/net.conf

assistant: ```c
char *app_netconf_item_get(char **item_pointer, const char *item_name) {
  char line[81];
  FILE *cf = NULL;
  int len = 0;
  cf = fopen("/local/etc/sysconfig/"
             "net.conf",
             "r");
  if (cf == NULL) {
    perror("/local/etc/sysconfig/"
           "net.conf");
    return NULL;
  }
  while ((fgets(line, 81, cf)) != NULL) {
    if (strstr(line, item_name) != NULL) {
      len = strlen(line);
      break;
    }
  }
  fclose(cf);
  if (len == 0)
    return NULL;
  if (line[len - 1] == '\n')
    line[len - 1] = '\0';
  if (*item_pointer != NULL)
    free(*item_pointer);
  if (strchr(line, '=') != NULL) {
    *item_pointer = strdup(strchr(line, '=') + 1);
  } else {
    *item_pointer = strdup(line);
  }
  assert(*item_pointer != NULL);
  return *item_pointer;
}
```