user: Demonstrate the C code that generates the assembly output below:

```asm
<parsepair>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  jmp    L13
L101:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L55
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L55
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <weprintf@plt>
  mov    $0xffffffff,%eax
  jmp    L4
L55:
  addq   $0x1,-0x18(%rbp)
L13:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L101
  mov    -0x28(%rbp),%rax
  mov    $0x3d,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  je     L116
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L82
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <weprintf@plt>
  mov    $0xffffffff,%eax
  jmp    L4
L82:
  mov    -0x18(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x20(%rbp)
  jmp    L143
L116:
  movq   $0x0,-0x20(%rbp)
L143:
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x20(%rbp),%rax
  test   %rax,%rax
  je     L95
  mov    -0x20(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <setsysctl@plt>
  test   %rax,%rax
  jns    L62
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <weprintf@plt>
  mov    $0xffffffff,%eax
  jmp    L4
L95:
  lea    -0x20(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <getsysctl@plt>
  test   %rax,%rax
  jns    L18
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <weprintf@plt>
  mov    $0xffffffff,%eax
  jmp    L4
L18:
  mov    -0x20(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
L62:
  mov    $0x0,%eax
L4:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L54
  call   <__stack_chk_fail@plt>
L54:
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D8
type_infered: string
name: parse_data
arguments: tag: D11
type_infered: string
name: parse_data
arguments: tag: D9
type_infered: string
name: parse_data
arguments: tag: D21
type_infered: string

tool: D8: malformed input: %s


tool: D11: failed to set sysctl for %s


tool: D9: failed to get sysctl for %s


tool: D21: %s = %s


assistant: ```c
int parsepair(char *pair) {
  char *p;
  char *variable;
  char *value;
  for (p = pair; *p; p++) {
    if (p[0] == '.' && p[1] == '.') {
      weprintf("malformed input: %s\n", pair);
      return -1;
    }
  }
  p = strchr(pair, '=');
  if (p) {
    if (p[1] == '\0') {
      weprintf("malformed input: %s\n", pair);
      return -1;
    }
    *p = '\0';
    value = &p[1];
  } else {
    value = NULL;
  }
  variable = pair;
  if (value) {
    if (setsysctl(variable, value) < 0) {
      weprintf("failed to set sysctl for %s\n", variable);
      return -1;
    }
  } else {
    if (getsysctl(variable, &value) < 0) {
      weprintf("failed to get sysctl for %s\n", variable);
      return -1;
    }
    printf("%s = %s\n", variable, value);
    free(value);
  }
  return 0;
}
```