#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int u_int32_t;

/* Variables and functions */
scalar_t__ isspace(char);
scalar_t__ strcmp(char *, char *);
int strlen(char *);
char *strtok_r(char *, char *, char **);
u_int32_t set_filter_flags(char *filter) {
  char *item, *saveptr = NULL;
  u_int32_t flags = 0;
  if (!filter || (strlen(filter) <= 1))
    return 0xFFFFFFFF;
  item = strtok_r(filter, ",", &saveptr);
  while (item != NULL) {
    if (saveptr)
      *(item - 1) = ',';
    while (isspace(*item))
      item++;
    if (strcmp(item, "@childCount") == 0) {
      flags |= 0x00000001;
    } else if (strcmp(item, "dc:creator") == 0) {
      flags |= 0x00000002;
    } else if (strcmp(item, "dc:date") == 0) {
      flags |= 0x00000004;
    } else if (strcmp(item, "dc:description") == 0) {
      flags |= 0x00000008;
    } else if (strcmp(item, "dlna") == 0) {
      flags |= 0x00000010;
    } else if (strcmp(item, "@refID") == 0) {
      flags |= 0x00000020;
    } else if (strcmp(item, "upnp:album") == 0) {
      flags |= 0x00002000;
    } else if (strcmp(item, "upnp:albumArtURI") == 0) {
      flags |= 0x00004000;
    } else if (strcmp(item, "upnp:albumArtURI@dlna:profileID") == 0) {
      flags |= 0x00004000;
      flags |= 0x00008000;
    } else if (strcmp(item, "upnp:artist") == 0) {
      flags |= 0x00010000;
    } else if (strcmp(item, "upnp:genre") == 0) {
      flags |= 0x00020000;
    } else if (strcmp(item, "upnp:originalTrackNumber") == 0) {
      flags |= 0x00040000;
    } else if (strcmp(item, "upnp:searchClass") == 0) {
      flags |= 0x00080000;
    } else if (strcmp(item, "res") == 0) {
      flags |= 0x00000040;
    } else if ((strcmp(item, "res@bitrate") == 0) ||
               (strcmp(item, "@bitrate") == 0) ||
               ((strcmp(item, "bitrate") == 0) && (flags & 0x00000040))) {
      flags |= 0x00000040;
      flags |= 0x00000080;
    } else if ((strcmp(item, "res@duration") == 0) ||
               (strcmp(item, "@duration") == 0) ||
               ((strcmp(item, "duration") == 0) && (flags & 0x00000040))) {
      flags |= 0x00000040;
      flags |= 0x00000100;
    } else if ((strcmp(item, "res@nrAudioChannels") == 0) ||
               (strcmp(item, "@nrAudioChannels") == 0) ||
               ((strcmp(item, "nrAudioChannels") == 0) &&
                (flags & 0x00000040))) {
      flags |= 0x00000040;
      flags |= 0x00000200;
    } else if ((strcmp(item, "res@resolution") == 0) ||
               (strcmp(item, "@resolution") == 0) ||
               ((strcmp(item, "resolution") == 0) && (flags & 0x00000040))) {
      flags |= 0x00000040;
      flags |= 0x00000400;
    } else if ((strcmp(item, "res@sampleFrequency") == 0) ||
               (strcmp(item, "@sampleFrequency") == 0) ||
               ((strcmp(item, "sampleFrequency") == 0) &&
                (flags & 0x00000040))) {
      flags |= 0x00000040;
      flags |= 0x00000800;
    } else if ((strcmp(item, "res@size") == 0) ||
               (strcmp(item, "@size") == 0) || (strcmp(item, "size") == 0)) {
      flags |= 0x00000040;
      flags |= 0x00001000;
    }
    item = strtok_r(NULL, ",", &saveptr);
  }
  return flags;
}


x86 assembly (clang, -O0):
<set_filter_flags>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
movq   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1178 <set_filter_flags+0x38>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x1,%eax
jg     1184 <set_filter_flags+0x44>
movl   $0xffffffff,-0x4(%rbp)
jmp    1761 <set_filter_flags+0x621>
mov    -0x10(%rbp),%rdi
lea    0xe71(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1050 <strtok_r@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     175b <set_filter_flags+0x61b>
cmpq   $0x0,-0x20(%rbp)
je     11ba <set_filter_flags+0x7a>
mov    -0x18(%rbp),%rax
movb   $0x2c,-0x1(%rax)
jmp    11bf <set_filter_flags+0x7f>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1040 <isspace@plt>
cmp    $0x0,%rax
je     11e6 <set_filter_flags+0xa6>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    11bf <set_filter_flags+0x7f>
mov    -0x18(%rbp),%rdi
lea    0xe11(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    120e <set_filter_flags+0xce>
mov    -0x24(%rbp),%eax
or     $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    173e <set_filter_flags+0x5fe>
mov    -0x18(%rbp),%rdi
lea    0xdf5(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1236 <set_filter_flags+0xf6>
mov    -0x24(%rbp),%eax
or     $0x2,%eax
mov    %eax,-0x24(%rbp)
jmp    1739 <set_filter_flags+0x5f9>
mov    -0x18(%rbp),%rdi
lea    0xdd8(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    125e <set_filter_flags+0x11e>
mov    -0x24(%rbp),%eax
or     $0x4,%eax
mov    %eax,-0x24(%rbp)
jmp    1734 <set_filter_flags+0x5f4>
mov    -0x18(%rbp),%rdi
lea    0xdb8(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1286 <set_filter_flags+0x146>
mov    -0x24(%rbp),%eax
or     $0x8,%eax
mov    %eax,-0x24(%rbp)
jmp    172f <set_filter_flags+0x5ef>
mov    -0x18(%rbp),%rdi
lea    0xd9f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12ae <set_filter_flags+0x16e>
mov    -0x24(%rbp),%eax
or     $0x10,%eax
mov    %eax,-0x24(%rbp)
jmp    172a <set_filter_flags+0x5ea>
mov    -0x18(%rbp),%rdi
lea    0xd7c(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12d6 <set_filter_flags+0x196>
mov    -0x24(%rbp),%eax
or     $0x20,%eax
mov    %eax,-0x24(%rbp)
jmp    1725 <set_filter_flags+0x5e5>
mov    -0x18(%rbp),%rdi
lea    0xd5b(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1300 <set_filter_flags+0x1c0>
mov    -0x24(%rbp),%eax
or     $0x2000,%eax
mov    %eax,-0x24(%rbp)
jmp    1720 <set_filter_flags+0x5e0>
mov    -0x18(%rbp),%rdi
lea    0xd3c(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    132a <set_filter_flags+0x1ea>
mov    -0x24(%rbp),%eax
or     $0x4000,%eax
mov    %eax,-0x24(%rbp)
jmp    171b <set_filter_flags+0x5db>
mov    -0x18(%rbp),%rdi
lea    0xd23(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    135f <set_filter_flags+0x21f>
mov    -0x24(%rbp),%eax
or     $0x4000,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x8000,%eax
mov    %eax,-0x24(%rbp)
jmp    1716 <set_filter_flags+0x5d6>
mov    -0x18(%rbp),%rdi
lea    0xd0e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1389 <set_filter_flags+0x249>
mov    -0x24(%rbp),%eax
or     $0x10000,%eax
mov    %eax,-0x24(%rbp)
jmp    1711 <set_filter_flags+0x5d1>
mov    -0x18(%rbp),%rdi
lea    0xcf0(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13b3 <set_filter_flags+0x273>
mov    -0x24(%rbp),%eax
or     $0x20000,%eax
mov    %eax,-0x24(%rbp)
jmp    170c <set_filter_flags+0x5cc>
mov    -0x18(%rbp),%rdi
lea    0xcd1(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13dd <set_filter_flags+0x29d>
mov    -0x24(%rbp),%eax
or     $0x40000,%eax
mov    %eax,-0x24(%rbp)
jmp    1707 <set_filter_flags+0x5c7>
mov    -0x18(%rbp),%rdi
lea    0xcc0(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1407 <set_filter_flags+0x2c7>
mov    -0x24(%rbp),%eax
or     $0x80000,%eax
mov    %eax,-0x24(%rbp)
jmp    1702 <set_filter_flags+0x5c2>
mov    -0x18(%rbp),%rdi
lea    0xca7(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    142f <set_filter_flags+0x2ef>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
jmp    16fd <set_filter_flags+0x5bd>
mov    -0x18(%rbp),%rdi
lea    0xc83(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     148c <set_filter_flags+0x34c>
mov    -0x18(%rbp),%rdi
lea    0xc6c(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     148c <set_filter_flags+0x34c>
mov    -0x18(%rbp),%rdi
lea    0xc53(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    14a5 <set_filter_flags+0x365>
mov    -0x24(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     14a5 <set_filter_flags+0x365>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x80,%eax
mov    %eax,-0x24(%rbp)
jmp    16f8 <set_filter_flags+0x5b8>
mov    -0x18(%rbp),%rdi
lea    0xc19(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1502 <set_filter_flags+0x3c2>
mov    -0x18(%rbp),%rdi
lea    0xc02(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1502 <set_filter_flags+0x3c2>
mov    -0x18(%rbp),%rdi
lea    0xbe9(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    151b <set_filter_flags+0x3db>
mov    -0x24(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     151b <set_filter_flags+0x3db>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x100,%eax
mov    %eax,-0x24(%rbp)
jmp    16f3 <set_filter_flags+0x5b3>
mov    -0x18(%rbp),%rdi
lea    0xbb0(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1578 <set_filter_flags+0x438>
mov    -0x18(%rbp),%rdi
lea    0xb99(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1578 <set_filter_flags+0x438>
mov    -0x18(%rbp),%rdi
lea    0xb80(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1591 <set_filter_flags+0x451>
mov    -0x24(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     1591 <set_filter_flags+0x451>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x200,%eax
mov    %eax,-0x24(%rbp)
jmp    16ee <set_filter_flags+0x5ae>
mov    -0x18(%rbp),%rdi
lea    0xb4e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     15ee <set_filter_flags+0x4ae>
mov    -0x18(%rbp),%rdi
lea    0xb37(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     15ee <set_filter_flags+0x4ae>
mov    -0x18(%rbp),%rdi
lea    0xb1e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1607 <set_filter_flags+0x4c7>
mov    -0x24(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     1607 <set_filter_flags+0x4c7>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x400,%eax
mov    %eax,-0x24(%rbp)
jmp    16e9 <set_filter_flags+0x5a9>
mov    -0x18(%rbp),%rdi
lea    0xae7(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1664 <set_filter_flags+0x524>
mov    -0x18(%rbp),%rdi
lea    0xad0(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1664 <set_filter_flags+0x524>
mov    -0x18(%rbp),%rdi
lea    0xab7(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    167d <set_filter_flags+0x53d>
mov    -0x24(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     167d <set_filter_flags+0x53d>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x800,%eax
mov    %eax,-0x24(%rbp)
jmp    16e4 <set_filter_flags+0x5a4>
mov    -0x18(%rbp),%rdi
lea    0xa85(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     16cb <set_filter_flags+0x58b>
mov    -0x18(%rbp),%rdi
lea    0xa6e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     16cb <set_filter_flags+0x58b>
mov    -0x18(%rbp),%rdi
lea    0xa55(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    16df <set_filter_flags+0x59f>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x1000,%eax
mov    %eax,-0x24(%rbp)
jmp    16e4 <set_filter_flags+0x5a4>
jmp    16e9 <set_filter_flags+0x5a9>
jmp    16ee <set_filter_flags+0x5ae>
jmp    16f3 <set_filter_flags+0x5b3>
jmp    16f8 <set_filter_flags+0x5b8>
jmp    16fd <set_filter_flags+0x5bd>
jmp    1702 <set_filter_flags+0x5c2>
jmp    1707 <set_filter_flags+0x5c7>
jmp    170c <set_filter_flags+0x5cc>
jmp    1711 <set_filter_flags+0x5d1>
jmp    1716 <set_filter_flags+0x5d6>
jmp    171b <set_filter_flags+0x5db>
jmp    1720 <set_filter_flags+0x5e0>
jmp    1725 <set_filter_flags+0x5e5>
jmp    172a <set_filter_flags+0x5ea>
jmp    172f <set_filter_flags+0x5ef>
jmp    1734 <set_filter_flags+0x5f4>
jmp    1739 <set_filter_flags+0x5f9>
jmp    173e <set_filter_flags+0x5fe>
xor    %eax,%eax
mov    %eax,%edi
lea    0x8b7(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1050 <strtok_r@plt>
mov    %rax,-0x18(%rbp)
jmp    119c <set_filter_flags+0x5c>
mov    -0x24(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_filter_flags>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movq   $0x0,0x10(%rsp)
mov    $0xffffffff,%ebx
test   %rdi,%rdi
je     15a6 <set_filter_flags+0x466>
mov    %rdi,%rbp
call   1030 <strlen@plt>
cmp    $0x2,%eax
jl     15a6 <set_filter_flags+0x466>
lea    0xe83(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %rbp,%rdi
call   1050 <strtok_r@plt>
test   %rax,%rax
je     15a4 <set_filter_flags+0x464>
mov    %rax,%rbp
xor    %ebx,%ebx
lea    0xe63(%rip),%r14
lea    0xe5a(%rip),%r15
lea    0x10(%rsp),%r12
lea    0xe5c(%rip),%r13
jmp    11dc <set_filter_flags+0x9c>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
or     $0x1,%ebx
xor    %edi,%edi
mov    %r15,%rsi
mov    %r12,%rdx
call   1050 <strtok_r@plt>
mov    %rax,%rbp
test   %rax,%rax
je     15a6 <set_filter_flags+0x466>
cmpq   $0x0,0x10(%rsp)
je     11e8 <set_filter_flags+0xa8>
movb   $0x2c,-0x1(%rbp)
add    $0xffffffffffffffff,%rbp
nopl   0x0(%rax)
movsbl 0x1(%rbp),%edi
add    $0x1,%rbp
call   1040 <isspace@plt>
test   %rax,%rax
jne    11f0 <set_filter_flags+0xb0>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11c0 <set_filter_flags+0x80>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13a0 <set_filter_flags+0x260>
mov    %rbp,%rdi
lea    0xde9(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13a8 <set_filter_flags+0x268>
mov    %rbp,%rdi
lea    0xdd9(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13b0 <set_filter_flags+0x270>
mov    %rbp,%rdi
lea    0xdd0(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13b8 <set_filter_flags+0x278>
mov    %rbp,%rdi
lea    0xdbd(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13c0 <set_filter_flags+0x280>
mov    %rbp,%rdi
lea    0xdac(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13c8 <set_filter_flags+0x288>
mov    %rbp,%rdi
lea    0xd9f(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13d3 <set_filter_flags+0x293>
mov    %rbp,%rdi
lea    0xd98(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13de <set_filter_flags+0x29e>
mov    %rbp,%rdi
lea    0xda0(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13e9 <set_filter_flags+0x2a9>
mov    %rbp,%rdi
lea    0xd94(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13f4 <set_filter_flags+0x2b4>
mov    %rbp,%rdi
lea    0xd87(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13ff <set_filter_flags+0x2bf>
mov    %rbp,%rdi
lea    0xd88(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     140a <set_filter_flags+0x2ca>
mov    %rbp,%rdi
lea    0xd81(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1415 <set_filter_flags+0x2d5>
mov    %rbp,%rdi
lea    0xd6d(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1393 <set_filter_flags+0x253>
mov    %rbp,%rdi
lea    0xd5c(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1393 <set_filter_flags+0x253>
mov    %rbp,%rdi
lea    0xd49(%rip),%rsi
call   1060 <strcmp@plt>
mov    %ebx,%ecx
and    $0x40,%ecx
test   %rax,%rax
jne    141d <set_filter_flags+0x2dd>
test   %ecx,%ecx
je     141d <set_filter_flags+0x2dd>
or     $0xc0,%ebx
jmp    11c3 <set_filter_flags+0x83>
xchg   %ax,%ax
or     $0x2,%ebx
jmp    11c3 <set_filter_flags+0x83>
or     $0x4,%ebx
jmp    11c3 <set_filter_flags+0x83>
or     $0x8,%ebx
jmp    11c3 <set_filter_flags+0x83>
or     $0x10,%ebx
jmp    11c3 <set_filter_flags+0x83>
or     $0x20,%ebx
jmp    11c3 <set_filter_flags+0x83>
or     $0x2000,%ebx
jmp    11c3 <set_filter_flags+0x83>
or     $0x4000,%ebx
jmp    11c3 <set_filter_flags+0x83>
or     $0xc000,%ebx
jmp    11c3 <set_filter_flags+0x83>
or     $0x10000,%ebx
jmp    11c3 <set_filter_flags+0x83>
or     $0x20000,%ebx
jmp    11c3 <set_filter_flags+0x83>
or     $0x40000,%ebx
jmp    11c3 <set_filter_flags+0x83>
or     $0x80000,%ebx
jmp    11c3 <set_filter_flags+0x83>
or     $0x40,%ebx
jmp    11c3 <set_filter_flags+0x83>
mov    %ecx,0xc(%rsp)
mov    %rbp,%rdi
lea    0xc9e(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1464 <set_filter_flags+0x324>
mov    %rbp,%rdi
lea    0xc8d(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1464 <set_filter_flags+0x324>
mov    %rbp,%rdi
lea    0xc7a(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    146f <set_filter_flags+0x32f>
cmpl   $0x0,0xc(%rsp)
je     146f <set_filter_flags+0x32f>
or     $0x140,%ebx
jmp    11c3 <set_filter_flags+0x83>
mov    %rbp,%rdi
lea    0xc5d(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14b2 <set_filter_flags+0x372>
mov    %rbp,%rdi
lea    0xc4c(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14b2 <set_filter_flags+0x372>
mov    %rbp,%rdi
lea    0xc39(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    14bd <set_filter_flags+0x37d>
cmpl   $0x0,0xc(%rsp)
je     14bd <set_filter_flags+0x37d>
or     $0x240,%ebx
jmp    11c3 <set_filter_flags+0x83>
mov    %rbp,%rdi
lea    0xc23(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1500 <set_filter_flags+0x3c0>
mov    %rbp,%rdi
lea    0xc12(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1500 <set_filter_flags+0x3c0>
mov    %rbp,%rdi
lea    0xbff(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    150b <set_filter_flags+0x3cb>
cmpl   $0x0,0xc(%rsp)
je     150b <set_filter_flags+0x3cb>
or     $0x440,%ebx
jmp    11c3 <set_filter_flags+0x83>
mov    %rbp,%rdi
lea    0xbe4(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     154e <set_filter_flags+0x40e>
mov    %rbp,%rdi
lea    0xbd3(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     154e <set_filter_flags+0x40e>
mov    %rbp,%rdi
lea    0xbc0(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1559 <set_filter_flags+0x419>
cmpl   $0x0,0xc(%rsp)
je     1559 <set_filter_flags+0x419>
or     $0x840,%ebx
jmp    11c3 <set_filter_flags+0x83>
mov    %rbp,%rdi
lea    0xbaa(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1599 <set_filter_flags+0x459>
mov    %rbp,%rdi
lea    0xb99(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1599 <set_filter_flags+0x459>
mov    %rbp,%rdi
lea    0xb86(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    11c3 <set_filter_flags+0x83>
or     $0x1040,%ebx
jmp    11c3 <set_filter_flags+0x83>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c",\00"
@.str.1 = [12 x i8] c"@childCount\00"
@.str.2 = [11 x i8] c"dc:creator\00"
@.str.3 = [8 x i8] c"dc:date\00"
@.str.4 = [15 x i8] c"dc:description\00"
@.str.5 = [5 x i8] c"dlna\00"
@.str.6 = [7 x i8] c"@refID\00"
@.str.7 = [11 x i8] c"upnp:album\00"
@.str.8 = [17 x i8] c"upnp:albumArtURI\00"
@.str.9 = [32 x i8] c"upnp:albumArtURI@dlna:profileID\00"
@.str.10 = [12 x i8] c"upnp:artist\00"
@.str.11 = [11 x i8] c"upnp:genre\00"
@.str.12 = [25 x i8] c"upnp:originalTrackNumber\00"
@.str.13 = [17 x i8] c"upnp:searchClass\00"
@.str.14 = [4 x i8] c"res\00"
@.str.15 = [12 x i8] c"res@bitrate\00"
@.str.16 = [9 x i8] c"@bitrate\00"
@.str.17 = [8 x i8] c"bitrate\00"
@.str.18 = [13 x i8] c"res@duration\00"
@.str.19 = [10 x i8] c"@duration\00"
@.str.20 = [9 x i8] c"duration\00"
@.str.21 = [20 x i8] c"res@nrAudioChannels\00"
@.str.22 = [17 x i8] c"@nrAudioChannels\00"
@.str.23 = [16 x i8] c"nrAudioChannels\00"
@.str.24 = [15 x i8] c"res@resolution\00"
@.str.25 = [12 x i8] c"@resolution\00"
@.str.26 = [11 x i8] c"resolution\00"
@.str.27 = [20 x i8] c"res@sampleFrequency\00"
@.str.28 = [17 x i8] c"@sampleFrequency\00"
@.str.29 = [16 x i8] c"sampleFrequency\00"
@.str.30 = [9 x i8] c"res@size\00"
@.str.31 = [6 x i8] c"@size\00"
@.str.32 = [5 x i8] c"size\00"
define i32 @set_filter_flags(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %3
store i8* null, i8** %5
store i32 0, i32* %6
%7 = load i8*, i8** %3
%8 = icmp ne i8* %7, null
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = call i32 @strlen(i8* %10)
%12 = icmp sle i32 %11, 1
br i1 %12, label %13, label %14
13: ; preds = %9, %1
store i32 -1, i32* %2
br label %280
14: ; preds = %9
%15 = load i8*, i8** %3
%16 = call i8* @strtok_r(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %5)
store i8* %16, i8** %4
br label %17
17: ; preds = %276, %14
%18 = load i8*, i8** %4
%19 = icmp ne i8* %18, null
br i1 %19, label %20, label %278
20: ; preds = %17
%21 = load i8*, i8** %5
%22 = icmp ne i8* %21, null
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i8*, i8** %4
%25 = getelementptr inbounds i8, i8* %24, i64 -1
store i8 44, i8* %25
br label %26
26: ; preds = %23, %20
br label %27
27: ; preds = %32, %26
%28 = load i8*, i8** %4
%29 = load i8, i8* %28
%30 = call i64 @isspace(i8 signext %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %27
%33 = load i8*, i8** %4
%34 = getelementptr inbounds i8, i8* %33, i32 1
store i8* %34, i8** %4
br label %27
35: ; preds = %27
%36 = load i8*, i8** %4
%37 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %35
%40 = load i32, i32* %6
%41 = or i32 %40, 1
store i32 %41, i32* %6
br label %276
42: ; preds = %35
%43 = load i8*, i8** %4
%44 = call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = load i32, i32* %6
%48 = or i32 %47, 2
store i32 %48, i32* %6
br label %275
49: ; preds = %42
%50 = load i8*, i8** %4
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = load i32, i32* %6
%55 = or i32 %54, 4
store i32 %55, i32* %6
br label %274
56: ; preds = %49
%57 = load i8*, i8** %4
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %56
%61 = load i32, i32* %6
%62 = or i32 %61, 8
store i32 %62, i32* %6
br label %273
63: ; preds = %56
%64 = load i8*, i8** %4
%65 = call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %63
%68 = load i32, i32* %6
%69 = or i32 %68, 16
store i32 %69, i32* %6
br label %272
70: ; preds = %63
%71 = load i8*, i8** %4
%72 = call i64 @strcmp(i8* %71, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %77
74: ; preds = %70
%75 = load i32, i32* %6
%76 = or i32 %75, 32
store i32 %76, i32* %6
br label %271
77: ; preds = %70
%78 = load i8*, i8** %4
%79 = call i64 @strcmp(i8* %78, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %84
81: ; preds = %77
%82 = load i32, i32* %6
%83 = or i32 %82, 8192
store i32 %83, i32* %6
br label %270
84: ; preds = %77
%85 = load i8*, i8** %4
%86 = call i64 @strcmp(i8* %85, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %91
88: ; preds = %84
%89 = load i32, i32* %6
%90 = or i32 %89, 16384
store i32 %90, i32* %6
br label %269
91: ; preds = %84
%92 = load i8*, i8** %4
%93 = call i64 @strcmp(i8* %92, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %100
95: ; preds = %91
%96 = load i32, i32* %6
%97 = or i32 %96, 16384
store i32 %97, i32* %6
%98 = load i32, i32* %6
%99 = or i32 %98, 32768
store i32 %99, i32* %6
br label %268
100: ; preds = %91
%101 = load i8*, i8** %4
%102 = call i64 @strcmp(i8* %101, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %107
104: ; preds = %100
%105 = load i32, i32* %6
%106 = or i32 %105, 65536
store i32 %106, i32* %6
br label %267
107: ; preds = %100
%108 = load i8*, i8** %4
%109 = call i64 @strcmp(i8* %108, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %114
111: ; preds = %107
%112 = load i32, i32* %6
%113 = or i32 %112, 131072
store i32 %113, i32* %6
br label %266
114: ; preds = %107
%115 = load i8*, i8** %4
%116 = call i64 @strcmp(i8* %115, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
%117 = icmp eq i64 %116, 0
br i1 %117, label %118, label %121
118: ; preds = %114
%119 = load i32, i32* %6
%120 = or i32 %119, 262144
store i32 %120, i32* %6
br label %265
121: ; preds = %114
%122 = load i8*, i8** %4
%123 = call i64 @strcmp(i8* %122, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%124 = icmp eq i64 %123, 0
br i1 %124, label %125, label %128
125: ; preds = %121
%126 = load i32, i32* %6
%127 = or i32 %126, 524288
store i32 %127, i32* %6
br label %264
128: ; preds = %121
%129 = load i8*, i8** %4
%130 = call i64 @strcmp(i8* %129, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%131 = icmp eq i64 %130, 0
br i1 %131, label %132, label %135
132: ; preds = %128
%133 = load i32, i32* %6
%134 = or i32 %133, 64
store i32 %134, i32* %6
br label %263
135: ; preds = %128
%136 = load i8*, i8** %4
%137 = call i64 @strcmp(i8* %136, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%138 = icmp eq i64 %137, 0
br i1 %138, label %151, label %139
139: ; preds = %135
%140 = load i8*, i8** %4
%141 = call i64 @strcmp(i8* %140, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0))
%142 = icmp eq i64 %141, 0
br i1 %142, label %151, label %143
143: ; preds = %139
%144 = load i8*, i8** %4
%145 = call i64 @strcmp(i8* %144, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%146 = icmp eq i64 %145, 0
br i1 %146, label %147, label %156
147: ; preds = %143
%148 = load i32, i32* %6
%149 = and i32 %148, 64
%150 = icmp ne i32 %149, 0
br i1 %150, label %151, label %156
151: ; preds = %147, %139, %135
%152 = load i32, i32* %6
%153 = or i32 %152, 64
store i32 %153, i32* %6
%154 = load i32, i32* %6
%155 = or i32 %154, 128
store i32 %155, i32* %6
br label %262
156: ; preds = %147, %143
%157 = load i8*, i8** %4
%158 = call i64 @strcmp(i8* %157, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0))
%159 = icmp eq i64 %158, 0
br i1 %159, label %172, label %160
160: ; preds = %156
%161 = load i8*, i8** %4
%162 = call i64 @strcmp(i8* %161, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
%163 = icmp eq i64 %162, 0
br i1 %163, label %172, label %164
164: ; preds = %160
%165 = load i8*, i8** %4
%166 = call i64 @strcmp(i8* %165, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0))
%167 = icmp eq i64 %166, 0
br i1 %167, label %168, label %177
168: ; preds = %164
%169 = load i32, i32* %6
%170 = and i32 %169, 64
%171 = icmp ne i32 %170, 0
br i1 %171, label %172, label %177
172: ; preds = %168, %160, %156
%173 = load i32, i32* %6
%174 = or i32 %173, 64
store i32 %174, i32* %6
%175 = load i32, i32* %6
%176 = or i32 %175, 256
store i32 %176, i32* %6
br label %261
177: ; preds = %168, %164
%178 = load i8*, i8** %4
%179 = call i64 @strcmp(i8* %178, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0))
%180 = icmp eq i64 %179, 0
br i1 %180, label %193, label %181
181: ; preds = %177
%182 = load i8*, i8** %4
%183 = call i64 @strcmp(i8* %182, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.22, i64 0, i64 0))
%184 = icmp eq i64 %183, 0
br i1 %184, label %193, label %185
185: ; preds = %181
%186 = load i8*, i8** %4
%187 = call i64 @strcmp(i8* %186, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0))
%188 = icmp eq i64 %187, 0
br i1 %188, label %189, label %198
189: ; preds = %185
%190 = load i32, i32* %6
%191 = and i32 %190, 64
%192 = icmp ne i32 %191, 0
br i1 %192, label %193, label %198
193: ; preds = %189, %181, %177
%194 = load i32, i32* %6
%195 = or i32 %194, 64
store i32 %195, i32* %6
%196 = load i32, i32* %6
%197 = or i32 %196, 512
store i32 %197, i32* %6
br label %260
198: ; preds = %189, %185
%199 = load i8*, i8** %4
%200 = call i64 @strcmp(i8* %199, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0))
%201 = icmp eq i64 %200, 0
br i1 %201, label %214, label %202
202: ; preds = %198
%203 = load i8*, i8** %4
%204 = call i64 @strcmp(i8* %203, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.25, i64 0, i64 0))
%205 = icmp eq i64 %204, 0
br i1 %205, label %214, label %206
206: ; preds = %202
%207 = load i8*, i8** %4
%208 = call i64 @strcmp(i8* %207, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0))
%209 = icmp eq i64 %208, 0
br i1 %209, label %210, label %219
210: ; preds = %206
%211 = load i32, i32* %6
%212 = and i32 %211, 64
%213 = icmp ne i32 %212, 0
br i1 %213, label %214, label %219
214: ; preds = %210, %202, %198
%215 = load i32, i32* %6
%216 = or i32 %215, 64
store i32 %216, i32* %6
%217 = load i32, i32* %6
%218 = or i32 %217, 1024
store i32 %218, i32* %6
br label %259
219: ; preds = %210, %206
%220 = load i8*, i8** %4
%221 = call i64 @strcmp(i8* %220, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.27, i64 0, i64 0))
%222 = icmp eq i64 %221, 0
br i1 %222, label %235, label %223
223: ; preds = %219
%224 = load i8*, i8** %4
%225 = call i64 @strcmp(i8* %224, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.28, i64 0, i64 0))
%226 = icmp eq i64 %225, 0
br i1 %226, label %235, label %227
227: ; preds = %223
%228 = load i8*, i8** %4
%229 = call i64 @strcmp(i8* %228, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.29, i64 0, i64 0))
%230 = icmp eq i64 %229, 0
br i1 %230, label %231, label %240
231: ; preds = %227
%232 = load i32, i32* %6
%233 = and i32 %232, 64
%234 = icmp ne i32 %233, 0
br i1 %234, label %235, label %240
235: ; preds = %231, %223, %219
%236 = load i32, i32* %6
%237 = or i32 %236, 64
store i32 %237, i32* %6
%238 = load i32, i32* %6
%239 = or i32 %238, 2048
store i32 %239, i32* %6
br label %258
240: ; preds = %231, %227
%241 = load i8*, i8** %4
%242 = call i64 @strcmp(i8* %241, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.30, i64 0, i64 0))
%243 = icmp eq i64 %242, 0
br i1 %243, label %252, label %244
244: ; preds = %240
%245 = load i8*, i8** %4
%246 = call i64 @strcmp(i8* %245, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0))
%247 = icmp eq i64 %246, 0
br i1 %247, label %252, label %248
248: ; preds = %244
%249 = load i8*, i8** %4
%250 = call i64 @strcmp(i8* %249, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i64 0, i64 0))
%251 = icmp eq i64 %250, 0
br i1 %251, label %252, label %257
252: ; preds = %248, %244, %240
%253 = load i32, i32* %6
%254 = or i32 %253, 64
store i32 %254, i32* %6
%255 = load i32, i32* %6
%256 = or i32 %255, 4096
store i32 %256, i32* %6
br label %257
257: ; preds = %252, %248
br label %258
258: ; preds = %257, %235
br label %259
259: ; preds = %258, %214
br label %260
260: ; preds = %259, %193
br label %261
261: ; preds = %260, %172
br label %262
262: ; preds = %261, %151
br label %263
263: ; preds = %262, %132
br label %264
264: ; preds = %263, %125
br label %265
265: ; preds = %264, %118
br label %266
266: ; preds = %265, %111
br label %267
267: ; preds = %266, %104
br label %268
268: ; preds = %267, %95
br label %269
269: ; preds = %268, %88
br label %270
270: ; preds = %269, %81
br label %271
271: ; preds = %270, %74
br label %272
272: ; preds = %271, %67
br label %273
273: ; preds = %272, %60
br label %274
274: ; preds = %273, %53
br label %275
275: ; preds = %274, %46
br label %276
276: ; preds = %275, %39
%277 = call i8* @strtok_r(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %5)
store i8* %277, i8** %4
br label %17
278: ; preds = %17
%279 = load i32, i32* %6
store i32 %279, i32* %2
br label %280
280: ; preds = %278, %13
%281 = load i32, i32* %2
ret i32 %281
}

LLVM IR (-O2):
@.str = [2 x i8] c",\00"
@.str.1 = [12 x i8] c"@childCount\00"
@.str.2 = [11 x i8] c"dc:creator\00"
@.str.3 = [8 x i8] c"dc:date\00"
@.str.4 = [15 x i8] c"dc:description\00"
@.str.5 = [5 x i8] c"dlna\00"
@.str.6 = [7 x i8] c"@refID\00"
@.str.7 = [11 x i8] c"upnp:album\00"
@.str.8 = [17 x i8] c"upnp:albumArtURI\00"
@.str.9 = [32 x i8] c"upnp:albumArtURI@dlna:profileID\00"
@.str.10 = [12 x i8] c"upnp:artist\00"
@.str.11 = [11 x i8] c"upnp:genre\00"
@.str.12 = [25 x i8] c"upnp:originalTrackNumber\00"
@.str.13 = [17 x i8] c"upnp:searchClass\00"
@.str.14 = [4 x i8] c"res\00"
@.str.15 = [12 x i8] c"res@bitrate\00"
@.str.16 = [9 x i8] c"@bitrate\00"
@.str.17 = [8 x i8] c"bitrate\00"
@.str.18 = [13 x i8] c"res@duration\00"
@.str.19 = [10 x i8] c"@duration\00"
@.str.20 = [9 x i8] c"duration\00"
@.str.21 = [20 x i8] c"res@nrAudioChannels\00"
@.str.22 = [17 x i8] c"@nrAudioChannels\00"
@.str.23 = [16 x i8] c"nrAudioChannels\00"
@.str.24 = [15 x i8] c"res@resolution\00"
@.str.25 = [12 x i8] c"@resolution\00"
@.str.26 = [11 x i8] c"resolution\00"
@.str.27 = [20 x i8] c"res@sampleFrequency\00"
@.str.28 = [17 x i8] c"@sampleFrequency\00"
@.str.29 = [16 x i8] c"sampleFrequency\00"
@.str.30 = [9 x i8] c"res@size\00"
@.str.31 = [6 x i8] c"@size\00"
@.str.32 = [5 x i8] c"size\00"
define i32 @set_filter_flags(i8* %0) {
%2 = alloca i8*
%3 = bitcast i8** %2 to i8*
store i8* null, i8** %2
%4 = icmp eq i8* %0, null
br i1 %4, label %172, label %5
5: ; preds = %1
%6 = tail call i32 @strlen(i8* %0)
%7 = icmp slt i32 %6, 2
br i1 %7, label %172, label %8
8: ; preds = %5
%9 = call i8* @strtok_r(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %2)
%10 = icmp eq i8* %9, null
br i1 %10, label %172, label %11
11: ; preds = %8, %168
%12 = phi i32 [ %169, %168 ], [ 0, %8 ]
%13 = phi i8* [ %170, %168 ], [ %9, %8 ]
%14 = load i8*, i8** %2
%15 = icmp eq i8* %14, null
br i1 %15, label %18, label %16
16: ; preds = %11
%17 = getelementptr inbounds i8, i8* %13, i64 -1
store i8 44, i8* %17
br label %18
18: ; preds = %16, %11
br label %19
19: ; preds = %18, %19
%20 = phi i8* [ %24, %19 ], [ %13, %18 ]
%21 = load i8, i8* %20
%22 = call i64 @isspace(i8 signext %21)
%23 = icmp eq i64 %22, 0
%24 = getelementptr inbounds i8, i8* %20, i64 1
br i1 %23, label %25, label %19
25: ; preds = %19
%26 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = or i32 %12, 1
br label %168
30: ; preds = %25
%31 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = or i32 %12, 2
br label %168
35: ; preds = %30
%36 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = or i32 %12, 4
br label %168
40: ; preds = %35
%41 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = or i32 %12, 8
br label %168
45: ; preds = %40
%46 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = or i32 %12, 16
br label %168
50: ; preds = %45
%51 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = or i32 %12, 32
br label %168
55: ; preds = %50
%56 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = or i32 %12, 8192
br label %168
60: ; preds = %55
%61 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = or i32 %12, 16384
br label %168
65: ; preds = %60
%66 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = or i32 %12, 49152
br label %168
70: ; preds = %65
%71 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = or i32 %12, 65536
br label %168
75: ; preds = %70
%76 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %75
%79 = or i32 %12, 131072
br label %168
80: ; preds = %75
%81 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = or i32 %12, 262144
br label %168
85: ; preds = %80
%86 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %85
%89 = or i32 %12, 524288
br label %168
90: ; preds = %85
%91 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %95
93: ; preds = %90
%94 = or i32 %12, 64
br label %168
95: ; preds = %90
%96 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %107, label %98
98: ; preds = %95
%99 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0))
%100 = icmp eq i64 %99, 0
br i1 %100, label %107, label %101
101: ; preds = %98
%102 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%103 = icmp ne i64 %102, 0
%104 = and i32 %12, 64
%105 = icmp eq i32 %104, 0
%106 = select i1 %103, i1 true, i1 %105
br i1 %106, label %109, label %107
107: ; preds = %101, %98, %95
%108 = or i32 %12, 192
br label %168
109: ; preds = %101
%110 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0))
%111 = icmp eq i64 %110, 0
br i1 %111, label %119, label %112
112: ; preds = %109
%113 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
%114 = icmp eq i64 %113, 0
br i1 %114, label %119, label %115
115: ; preds = %112
%116 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0))
%117 = icmp ne i64 %116, 0
%118 = select i1 %117, i1 true, i1 %105
br i1 %118, label %121, label %119
119: ; preds = %115, %112, %109
%120 = or i32 %12, 320
br label %168
121: ; preds = %115
%122 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0))
%123 = icmp eq i64 %122, 0
br i1 %123, label %131, label %124
124: ; preds = %121
%125 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.22, i64 0, i64 0))
%126 = icmp eq i64 %125, 0
br i1 %126, label %131, label %127
127: ; preds = %124
%128 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0))
%129 = icmp ne i64 %128, 0
%130 = select i1 %129, i1 true, i1 %105
br i1 %130, label %133, label %131
131: ; preds = %127, %124, %121
%132 = or i32 %12, 576
br label %168
133: ; preds = %127
%134 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0))
%135 = icmp eq i64 %134, 0
br i1 %135, label %143, label %136
136: ; preds = %133
%137 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.25, i64 0, i64 0))
%138 = icmp eq i64 %137, 0
br i1 %138, label %143, label %139
139: ; preds = %136
%140 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0))
%141 = icmp ne i64 %140, 0
%142 = select i1 %141, i1 true, i1 %105
br i1 %142, label %145, label %143
143: ; preds = %139, %136, %133
%144 = or i32 %12, 1088
br label %168
145: ; preds = %139
%146 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.27, i64 0, i64 0))
%147 = icmp eq i64 %146, 0
br i1 %147, label %155, label %148
148: ; preds = %145
%149 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.28, i64 0, i64 0))
%150 = icmp eq i64 %149, 0
br i1 %150, label %155, label %151
151: ; preds = %148
%152 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.29, i64 0, i64 0))
%153 = icmp ne i64 %152, 0
%154 = select i1 %153, i1 true, i1 %105
br i1 %154, label %157, label %155
155: ; preds = %151, %148, %145
%156 = or i32 %12, 2112
br label %168
157: ; preds = %151
%158 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.30, i64 0, i64 0))
%159 = icmp eq i64 %158, 0
br i1 %159, label %166, label %160
160: ; preds = %157
%161 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0))
%162 = icmp eq i64 %161, 0
br i1 %162, label %166, label %163
163: ; preds = %160
%164 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i64 0, i64 0))
%165 = icmp eq i64 %164, 0
br i1 %165, label %166, label %168
166: ; preds = %163, %160, %157
%167 = or i32 %12, 4160
br label %168
168: ; preds = %33, %43, %53, %63, %73, %83, %93, %119, %143, %163, %166, %155, %131, %107, %88, %78, %68, %58, %48, %38, %28
%169 = phi i32 [ %29, %28 ], [ %34, %33 ], [ %39, %38 ], [ %44, %43 ], [ %49, %48 ], [ %54, %53 ], [ %59, %58 ], [ %64, %63 ], [ %69, %68 ], [ %74, %73 ], [ %79, %78 ], [ %84, %83 ], [ %89, %88 ], [ %94, %93 ], [ %108, %107 ], [ %120, %119 ], [ %132, %131 ], [ %144, %143 ], [ %156, %155 ], [ %167, %166 ], [ %12, %163 ]
%170 = call i8* @strtok_r(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %2)
%171 = icmp eq i8* %170, null
br i1 %171, label %172, label %11
172: ; preds = %168, %8, %1, %5
%173 = phi i32 [ -1, %5 ], [ -1, %1 ], [ 0, %8 ], [ %169, %168 ]
ret i32 %173
}