user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<parse_app_opts>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D90(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  lea    0x8(%rsp),%rbp
  mov    %rdi,0x8(%rsp)
  mov    %esi,0x4(%rsp)
  mov    %rbp,%rdi
  mov    %r13,%rsi
  call   <strsep@plt>
  test   %rax,%rax
  je     L171
  mov    %rax,%r14
  xor    %r12d,%r12d
  lea    D76(%rip),%r15
  jmp    L125
  nopw   0x0(%rax,%rax,1)
L211:
  mov    0x4(%rsp),%edi
  test   %edi,%edi
  jne    L85
L78:
  or     $0x5,%r12d
L159:
  test   %ebx,%ebx
  jne    L219
L100:
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strsep@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L219
L125:
  cmpb   $0x0,(%r14)
  je     L100
  mov    $0x23,%esi
  mov    %r14,%rdi
  xor    %ebx,%ebx
  call   <index@plt>
  test   %rax,%rax
  jne    L174
L158:
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L211
  lea    D68(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L52
  mov    0x4(%rsp),%esi
  test   %esi,%esi
  jne    L133
L197:
  or     $0xa,%r12d
  test   %ebx,%ebx
  je     L100
L219:
  add    $0x18,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L174:
  movb   $0x0,(%rax)
  cmpb   $0x0,(%r14)
  je     L219
  mov    $0x1,%ebx
  jmp    L158
L52:
  lea    D78(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L30
  mov    0x4(%rsp),%ecx
  test   %ecx,%ecx
  jne    L63
L91:
  and    $0xfffffd,%r12d
  or     $0x8,%r12d
  jmp    L159
  nop
L85:
  lea    D8(%rip),%rdi
  call   <printf@plt>
  jmp    L78
  nopl   0x0(%rax)
L30:
  lea    D56(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L6
  mov    0x4(%rsp),%edx
  test   %edx,%edx
  jne    L163
  and    $0xfffffe,%r12d
  or     $0x4,%r12d
  jmp    L159
  nopl   0x0(%rax,%rax,1)
L133:
  lea    D15(%rip),%rdi
  call   <printf@plt>
  jmp    L197
  nopl   0x0(%rax)
L163:
  lea    D25(%rip),%rdi
  and    $0xfffffe,%r12d
  call   <printf@plt>
  or     $0x4,%r12d
  jmp    L159
  nopl   0x0(%rax)
L6:
  mov    %r14,%rsi
  lea    D99(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L159
  cs nopw 0x0(%rax,%rax,1)
L63:
  lea    D60(%rip),%rdi
  call   <printf@plt>
  jmp    L91
L171:
  xor    %r12d,%r12d
  jmp    L219
```

tool_calls: name: read_data
arguments: data_tag: D90
type: string
name: read_data
arguments: data_tag: D76
type: string
name: read_data
arguments: data_tag: D68
type: string
name: read_data
arguments: data_tag: D78
type: string
name: read_data
arguments: data_tag: D8
type: string
name: read_data
arguments: data_tag: D56
type: string
name: read_data
arguments: data_tag: D15
type: string
name: read_data
arguments: data_tag: D25
type: string
name: read_data
arguments: data_tag: D99
type: string
name: read_data
arguments: data_tag: D60
type: string

tool: D90:  	

tool: D76: PERMIT_APP

tool: D68: PERMIT_SERVER

tool: D78: DENY_SERVER

tool: D8: PERMIT_APP 

tool: D56: DENY_APP

tool: D15: PERMIT_SERVER 

tool: D25: DENY_APP 

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

tool: D60: DENY_SERVER 

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;
}
```