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

```asm
<parse_app_opts>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %esi,%r13d
  lea    0x8(%rsp),%rdi
  lea    D1(%rip),%rsi
  call   <strsep@plt>
  test   %rax,%rax
  je     L192
  mov    %rax,%rbx
  mov    $0x0,%ebp
  lea    D75(%rip),%r14
  lea    D34(%rip),%r15
  jmp    L163
L120:
  movb   $0x0,(%rax)
  cmpb   $0x0,(%rbx)
  je     L40
  mov    $0x1,%r12d
  jmp    L87
L71:
  lea    D61(%rip),%rdi
  call   <printf@plt>
L0:
  or     $0x5,%ebp
L108:
  test   %r12d,%r12d
  jne    L40
L38:
  lea    0x8(%rsp),%rdi
  lea    D1(%rip),%rsi
  call   <strsep@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L40
L163:
  cmpb   $0x0,(%rbx)
  je     L38
  mov    $0x23,%esi
  mov    %rbx,%rdi
  call   <index@plt>
  mov    $0x0,%r12d
  test   %rax,%rax
  jne    L120
L87:
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L213
  test   %r13d,%r13d
  je     L0
  jmp    L71
L213:
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L77
  test   %r13d,%r13d
  jne    L109
L195:
  or     $0xa,%ebp
  jmp    L108
L109:
  lea    D49(%rip),%rdi
  call   <printf@plt>
  jmp    L195
L77:
  lea    D99(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L123
  test   %r13d,%r13d
  jne    L125
L95:
  and    $0xfffffd,%ebp
  or     $0x8,%ebp
  jmp    L108
L125:
  lea    D94(%rip),%rdi
  call   <printf@plt>
  jmp    L95
L123:
  lea    D101(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L73
  test   %r13d,%r13d
  jne    L112
L137:
  and    $0xfffffe,%ebp
  or     $0x4,%ebp
  jmp    L108
L112:
  lea    D107(%rip),%rdi
  call   <printf@plt>
  jmp    L137
L73:
  mov    %rbx,%rsi
  lea    D83(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L108
L192:
  mov    $0x0,%ebp
L40:
  mov    %ebp,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: label: D1
type: string
name: parse_data
arguments: label: D75
type: string
name: parse_data
arguments: label: D34
type: string
name: parse_data
arguments: label: D61
type: string
name: parse_data
arguments: label: D49
type: string
name: parse_data
arguments: label: D99
type: string
name: parse_data
arguments: label: D94
type: string
name: parse_data
arguments: label: D101
type: string
name: parse_data
arguments: label: D107
type: string
name: parse_data
arguments: label: D83
type: string

tool: D1:  	

tool: D75: PERMIT_APP

tool: D34: PERMIT_SERVER

tool: D61: PERMIT_APP 

tool: D49: PERMIT_SERVER 

tool: D99: DENY_SERVER

tool: D94: DENY_SERVER 

tool: D101: DENY_APP

tool: D107: DENY_APP 

tool: D83: (err parsing file: %s) 

assistant: ```c
int parse_app_opts(char *app_opts, int verbose_mode) {
  char *tok, *comment;
  const char *delim = " \t";
  int found_comment = 0;
  int opts = 0;
  opts = opts & 0xfffffb;
  opts = opts & 0xfffff7;
  tok = strsep(&app_opts, delim);
  while (tok) {
    if (tok[0] != '\0') {
      if (comment = index(tok, '#')) {
        comment[0] = '\0';
        if (tok[0] != '\0')
          found_comment = 1;
        else
          break;
      }
      if (!(strcmp(tok, "PERMIT_APP"))) {
        if (verbose_mode)
          printf("PERMIT_APP ");
        opts = opts | 1;
        opts = opts | 4;
      } else if (!(strcmp(tok, "PERMIT_SERVER"))) {
        if (verbose_mode)
          printf("PERMIT_SERVER ");
        opts = opts | 2;
        opts = opts | 8;
      } else if (!(strcmp(tok, "DENY_SERVER"))) {
        if (verbose_mode)
          printf("DENY_SERVER ");
        opts = opts & 0xfffffd;
        opts = opts | 8;
      } else if (!(strcmp(tok, "DENY_APP"))) {
        if (verbose_mode)
          printf("DENY_APP ");
        opts = opts & 0xfffffe;
        opts = opts | 4;
      } else
        printf("(err parsing file: %s) ", tok);
      if (found_comment)
        break;
    }
    tok = strsep(&app_opts, delim);
  }
  return opts;
}
```