user: Translate the below assembly code into C programming language:

```asm
<option_value>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L195
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <skip_options@plt>
  cmp    %rax,-0x8(%rbp)
  jb     L195
  mov    $0x0,%eax
  jmp    L138
L195:
  cmpq   $0x0,-0x8(%rbp)
  je     L128
  mov    -0x8(%rbp),%rax
  cmp    -0x18(%rbp),%rax
  je     L19
  mov    -0x8(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L19
  mov    -0x8(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  je     L19
  mov    -0x8(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0xd,%al
  je     L19
  mov    -0x8(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L128
L19:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L128
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L97
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  je     L97
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xd,%al
  je     L97
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  je     L97
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  jne    L128
L97:
  mov    -0xc(%rbp),%eax
  cltq
  add    $0x1,%rax
  add    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  lea    D8(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strspn@plt>
  cltq
  add    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L128
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L128
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  je     L128
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xd,%al
  je     L128
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  je     L128
  mov    -0x8(%rbp),%rax
  jmp    L138
L128:
  mov    $0x0,%eax
L138:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D8
datatype: string

tool: D8:  

assistant: ```c
char *option_value(const char *line, const char *name) {
  char *s;
  int n = strlen(name);
  s = strstr(line, name);
  if (s && s >= skip_options(line))
    return NULL;
  if (s && (s == line || (*(s - 1) == ' ' || *(s - 1) == '\t' || *(s - 1) == '\r' || *(s - 1) == '\n')) && s[n] && ((*(s + n) == ' ' || *(s + n) == '\t' || *(s + n) == '\r' || *(s + n) == '\n') || s[n] == '=')) {
    s += n + 1;
    s += strspn(s, " ");
    if (*s && !(*(s) == ' ' || *(s) == '\t' || *(s) == '\r' || *(s) == '\n'))
      return s;
  }
  return NULL;
}
```