user: 这段汇编代码用C语言表示是什么样的：

```asm
<set_bool>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D38(%rip),%rax
  mov    %rax,-0x40(%rbp)
  lea    D45(%rip),%rax
  mov    %rax,-0x38(%rbp)
  lea    D58(%rip),%rax
  mov    %rax,-0x30(%rbp)
  lea    D24(%rip),%rax
  mov    %rax,-0x28(%rbp)
  lea    D49(%rip),%rax
  mov    %rax,-0x20(%rbp)
  lea    D25(%rip),%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L39
L27:
  addl   $0x1,-0x48(%rbp)
L39:
  cmpl   $0x7,-0x48(%rbp)
  jg     L95
  mov    -0x48(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L27
L95:
  cmpl   $0x1,-0x48(%rbp)
  jne    L32
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  setne  %al
  movzbl %al,%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
  jmp    L86
L32:
  cmpl   $0x1,-0x48(%rbp)
  jle    L12
  cmpl   $0x7,-0x48(%rbp)
  jg     L12
  movl   $0x0,-0x44(%rbp)
  jmp    L66
L51:
  mov    -0x48(%rbp),%eax
  sub    $0x2,%eax
  cltq
  mov    -0x40(%rbp,%rax,8),%rdx
  mov    -0x44(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x44(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x60(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L5
  mov    -0x48(%rbp),%eax
  sub    $0x2,%eax
  cltq
  mov    -0x40(%rbp,%rax,8),%rdx
  mov    -0x44(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x44(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x60(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rdx),%edx
  movsbl %dl,%edx
  add    $0x20,%edx
  cmp    %edx,%eax
  je     L5
  mov    $0xffffffff,%eax
  jmp    L86
L5:
  addl   $0x1,-0x44(%rbp)
L66:
  mov    -0x44(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L51
  mov    -0x48(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  sete   %al
  movzbl %al,%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
  jmp    L86
L12:
  mov    $0xffffffff,%eax
L86:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L70
  call   <__stack_chk_fail@plt>
L70:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D38
type_infered: string
name: unpack_data
arguments: label: D45
type_infered: string
name: unpack_data
arguments: label: D58
type_infered: string
name: unpack_data
arguments: label: D24
type_infered: string
name: unpack_data
arguments: label: D49
type_infered: string
name: unpack_data
arguments: label: D25
type_infered: string

tool: D38: on

tool: D45: off

tool: D58: true

tool: D24: false

tool: D49: enable

tool: D25: disable

assistant: ```c
int set_bool(void *dst, const char *src) {
  const char *const str[] = {
      "on", "off", "true", "false", "enable", "disable",
  };
  int len = 0;
  while (len <= 7 && src[len] != '\0')
    len++;
  if (len == 1) {
    *(int *)dst = src[0] != '0';
    return 0;
  }
  if (len >= 2 && len <= 7) {
    for (int i = 0; i < len; i++)
      if ((str[len - 2][i] != src[i]) && (str[len - 2][i] != src[i] + 'a' - 'A'))
        return -1;
    *(int *)dst = !(len & 1);
    return 0;
  }
  return -1;
}
```