user: Please show me the C implementation that matches the assembly code listed below:

```asm
<resolv_conf_parse_line>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %esi,%ebp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x10(%rsp)
  lea    0x10(%rsp),%rdx
  lea    D19(%rip),%rsi
  call   <evdns_strtok_r@plt>
  test   %rax,%rax
  je     L154
  mov    %rax,%rbx
  lea    D90(%rip),%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L178
  test   $0x2,%bpl
  jne    L10
L178:
  lea    D75(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L131
  test   $0x1,%bpl
  jne    L47
L108:
  lea    D76(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  lea    0x10(%rsp),%r13
  lea    D19(%rip),%r12
  lea    D73(%rip),%r14
  test   %eax,%eax
  je     L175
  jmp    L154
L10:
  lea    0x10(%rsp),%rdx
  lea    D19(%rip),%rsi
  mov    $0x0,%edi
  call   <evdns_strtok_r@plt>
  mov    %rax,%rdi
  lea    0xc(%rsp),%rsi
  call   <inet_aton@plt>
  test   %rax,%rax
  je     L154
  mov    0xc(%rsp),%edi
  call   <evdns_nameserver_add@plt>
  jmp    L154
L47:
  lea    0x10(%rsp),%rdx
  lea    D19(%rip),%rsi
  mov    $0x0,%edi
  call   <evdns_strtok_r@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L154
  mov    $0x0,%eax
  call   <search_postfix_clear@plt>
  mov    %rbx,%rdi
  call   <search_postfix_add@plt>
  jmp    L154
L131:
  lea    D96(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L108
  test   $0x1,%bpl
  je     L108
  call   <search_postfix_clear@plt>
  lea    D19(%rip),%rbx
  jmp    L116
L136:
  call   <search_postfix_add@plt>
L116:
  lea    0x10(%rsp),%rdx
  mov    %rbx,%rsi
  mov    $0x0,%edi
  call   <evdns_strtok_r@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L136
  mov    $0x0,%eax
  call   <search_reverse@plt>
  jmp    L154
L62:
  mov    $0x3a,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  lea    0x1(%rax),%rsi
  test   %rax,%rax
  cmove  %r14,%rsi
  mov    %ebp,%edx
  mov    %rbx,%rdi
  call   <evdns_set_option@plt>
L175:
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    $0x0,%edi
  call   <evdns_strtok_r@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  jne    L62
L154:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L135
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L135:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D19
data_type: string
name: retrieve_data
arguments: label: D90
data_type: string
name: retrieve_data
arguments: label: D75
data_type: string
name: retrieve_data
arguments: label: D76
data_type: string
name: retrieve_data
arguments: label: D73
data_type: string
name: retrieve_data
arguments: label: D96
data_type: string

tool: D19:  	

tool: D90: nameserver

tool: D75: domain

tool: D76: options

tool: 

tool: D96: search

assistant: ```c
void resolv_conf_parse_line(char *const start, int flags) {
  char *strtok_state = NULL;
  static const char *const delims = " \t";
  char *const first_token = evdns_strtok_r(start, delims, &strtok_state);
  if (!first_token)
    return;
  if (!strcmp(first_token, "nameserver") && (flags & 2)) {
    const char *const nameserver = evdns_strtok_r(NULL, delims, &strtok_state);
    struct in_addr ina;
    if (inet_aton(nameserver, &ina)) {
      evdns_nameserver_add(ina.s_addr);
    }
  } else if (!strcmp(first_token, "domain") && (flags & 1)) {
    const char *const domain = evdns_strtok_r(NULL, delims, &strtok_state);
    if (domain) {
      search_postfix_clear();
      search_postfix_add(domain);
    }
  } else if (!strcmp(first_token, "search") && (flags & 1)) {
    const char *domain;
    search_postfix_clear();
    while ((domain = evdns_strtok_r(NULL, delims, &strtok_state))) {
      search_postfix_add(domain);
    }
    search_reverse();
  } else if (!strcmp(first_token, "options")) {
    const char *option;
    while ((option = evdns_strtok_r(NULL, delims, &strtok_state))) {
      const char *val = strchr(option, ':');
      evdns_set_option(option, val ? val + 1 : "", flags);
    }
  }
}
```