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

```asm
<extract_tlsmajor>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  lea    D60(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x5,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L80
  lea    D40(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x7,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L80
  lea    D43(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x7,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L80
  lea    D35(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x7,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L80
  lea    D42(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x6,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L80
  lea    D12(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x6,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L80
  lea    D69(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x6,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L80
  lea    D59(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x5,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L80
  lea    D67(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x4,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L85
L80:
  mov    -0x8(%rbp),%rax
  jmp    L94
L85:
  mov    $0x0,%eax
L94:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D60
data_type: string
name: retrieve_data
arguments: tag: D40
data_type: string
name: retrieve_data
arguments: tag: D43
data_type: string
name: retrieve_data
arguments: tag: D35
data_type: string
name: retrieve_data
arguments: tag: D42
data_type: string
name: retrieve_data
arguments: tag: D12
data_type: string
name: retrieve_data
arguments: tag: D69
data_type: string
name: retrieve_data
arguments: tag: D59
data_type: string
name: retrieve_data
arguments: tag: D67
data_type: string

tool: D60: SSLv3

tool: D40: TLSv1.1

tool: D43: TLSv1.2

tool: D35: TLSv1.3

tool: D42: TLS1.1

tool: D12: TLS1.2

tool: D69: TLS1.3

tool: D59: TLSv1

tool: D67: TLS1

assistant: ```c
const char *extract_tlsmajor(const char *token) {
  const char *lookfor;
  if ((lookfor = "SSLv3", !strncmp(token, lookfor, 5)) || (lookfor = "TLSv1.1", !strncmp(token, lookfor, 7)) || (lookfor = "TLSv1.2", !strncmp(token, lookfor, 7)) || (lookfor = "TLSv1.3", !strncmp(token, lookfor, 7)) || (lookfor = "TLS1.1", !strncmp(token, lookfor, 6)) || (lookfor = "TLS1.2", !strncmp(token, lookfor, 6)) || (lookfor = "TLS1.3", !strncmp(token, lookfor, 6)) || (lookfor = "TLSv1", !strncmp(token, lookfor, 5)) || (lookfor = "TLS1", !strncmp(token, lookfor, 4)))
    return lookfor;
  return NULL;
}
```