#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__ 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) = ',';
    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     1168 <set_filter_flags+0x38>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x1,%eax
jg     1174 <set_filter_flags+0x44>
movl   $0xffffffff,-0x4(%rbp)
jmp    1725 <set_filter_flags+0x5f5>
mov    -0x10(%rbp),%rdi
lea    0xe81(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1040 <strtok_r@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     171f <set_filter_flags+0x5ef>
cmpq   $0x0,-0x20(%rbp)
je     11aa <set_filter_flags+0x7a>
mov    -0x18(%rbp),%rax
movb   $0x2c,-0x1(%rax)
mov    -0x18(%rbp),%rdi
lea    0xe4d(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11d2 <set_filter_flags+0xa2>
mov    -0x24(%rbp),%eax
or     $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1702 <set_filter_flags+0x5d2>
mov    -0x18(%rbp),%rdi
lea    0xe31(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11fa <set_filter_flags+0xca>
mov    -0x24(%rbp),%eax
or     $0x2,%eax
mov    %eax,-0x24(%rbp)
jmp    16fd <set_filter_flags+0x5cd>
mov    -0x18(%rbp),%rdi
lea    0xe14(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1222 <set_filter_flags+0xf2>
mov    -0x24(%rbp),%eax
or     $0x4,%eax
mov    %eax,-0x24(%rbp)
jmp    16f8 <set_filter_flags+0x5c8>
mov    -0x18(%rbp),%rdi
lea    0xdf4(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    124a <set_filter_flags+0x11a>
mov    -0x24(%rbp),%eax
or     $0x8,%eax
mov    %eax,-0x24(%rbp)
jmp    16f3 <set_filter_flags+0x5c3>
mov    -0x18(%rbp),%rdi
lea    0xddb(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1272 <set_filter_flags+0x142>
mov    -0x24(%rbp),%eax
or     $0x10,%eax
mov    %eax,-0x24(%rbp)
jmp    16ee <set_filter_flags+0x5be>
mov    -0x18(%rbp),%rdi
lea    0xdb8(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    129a <set_filter_flags+0x16a>
mov    -0x24(%rbp),%eax
or     $0x20,%eax
mov    %eax,-0x24(%rbp)
jmp    16e9 <set_filter_flags+0x5b9>
mov    -0x18(%rbp),%rdi
lea    0xd97(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12c4 <set_filter_flags+0x194>
mov    -0x24(%rbp),%eax
or     $0x2000,%eax
mov    %eax,-0x24(%rbp)
jmp    16e4 <set_filter_flags+0x5b4>
mov    -0x18(%rbp),%rdi
lea    0xd78(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12ee <set_filter_flags+0x1be>
mov    -0x24(%rbp),%eax
or     $0x4000,%eax
mov    %eax,-0x24(%rbp)
jmp    16df <set_filter_flags+0x5af>
mov    -0x18(%rbp),%rdi
lea    0xd5f(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1323 <set_filter_flags+0x1f3>
mov    -0x24(%rbp),%eax
or     $0x4000,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x8000,%eax
mov    %eax,-0x24(%rbp)
jmp    16da <set_filter_flags+0x5aa>
mov    -0x18(%rbp),%rdi
lea    0xd4a(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    134d <set_filter_flags+0x21d>
mov    -0x24(%rbp),%eax
or     $0x10000,%eax
mov    %eax,-0x24(%rbp)
jmp    16d5 <set_filter_flags+0x5a5>
mov    -0x18(%rbp),%rdi
lea    0xd2c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1377 <set_filter_flags+0x247>
mov    -0x24(%rbp),%eax
or     $0x20000,%eax
mov    %eax,-0x24(%rbp)
jmp    16d0 <set_filter_flags+0x5a0>
mov    -0x18(%rbp),%rdi
lea    0xd0d(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13a1 <set_filter_flags+0x271>
mov    -0x24(%rbp),%eax
or     $0x40000,%eax
mov    %eax,-0x24(%rbp)
jmp    16cb <set_filter_flags+0x59b>
mov    -0x18(%rbp),%rdi
lea    0xcfc(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13cb <set_filter_flags+0x29b>
mov    -0x24(%rbp),%eax
or     $0x80000,%eax
mov    %eax,-0x24(%rbp)
jmp    16c6 <set_filter_flags+0x596>
mov    -0x18(%rbp),%rdi
lea    0xce3(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13f3 <set_filter_flags+0x2c3>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
jmp    16c1 <set_filter_flags+0x591>
mov    -0x18(%rbp),%rdi
lea    0xcbf(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     1450 <set_filter_flags+0x320>
mov    -0x18(%rbp),%rdi
lea    0xca8(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     1450 <set_filter_flags+0x320>
mov    -0x18(%rbp),%rdi
lea    0xc8f(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1469 <set_filter_flags+0x339>
mov    -0x24(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     1469 <set_filter_flags+0x339>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x80,%eax
mov    %eax,-0x24(%rbp)
jmp    16bc <set_filter_flags+0x58c>
mov    -0x18(%rbp),%rdi
lea    0xc55(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     14c6 <set_filter_flags+0x396>
mov    -0x18(%rbp),%rdi
lea    0xc3e(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     14c6 <set_filter_flags+0x396>
mov    -0x18(%rbp),%rdi
lea    0xc25(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    14df <set_filter_flags+0x3af>
mov    -0x24(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     14df <set_filter_flags+0x3af>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x100,%eax
mov    %eax,-0x24(%rbp)
jmp    16b7 <set_filter_flags+0x587>
mov    -0x18(%rbp),%rdi
lea    0xbec(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     153c <set_filter_flags+0x40c>
mov    -0x18(%rbp),%rdi
lea    0xbd5(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     153c <set_filter_flags+0x40c>
mov    -0x18(%rbp),%rdi
lea    0xbbc(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1555 <set_filter_flags+0x425>
mov    -0x24(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     1555 <set_filter_flags+0x425>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x200,%eax
mov    %eax,-0x24(%rbp)
jmp    16b2 <set_filter_flags+0x582>
mov    -0x18(%rbp),%rdi
lea    0xb8a(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     15b2 <set_filter_flags+0x482>
mov    -0x18(%rbp),%rdi
lea    0xb73(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     15b2 <set_filter_flags+0x482>
mov    -0x18(%rbp),%rdi
lea    0xb5a(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    15cb <set_filter_flags+0x49b>
mov    -0x24(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     15cb <set_filter_flags+0x49b>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x400,%eax
mov    %eax,-0x24(%rbp)
jmp    16ad <set_filter_flags+0x57d>
mov    -0x18(%rbp),%rdi
lea    0xb23(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     1628 <set_filter_flags+0x4f8>
mov    -0x18(%rbp),%rdi
lea    0xb0c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     1628 <set_filter_flags+0x4f8>
mov    -0x18(%rbp),%rdi
lea    0xaf3(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1641 <set_filter_flags+0x511>
mov    -0x24(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     1641 <set_filter_flags+0x511>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x800,%eax
mov    %eax,-0x24(%rbp)
jmp    16a8 <set_filter_flags+0x578>
mov    -0x18(%rbp),%rdi
lea    0xac1(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     168f <set_filter_flags+0x55f>
mov    -0x18(%rbp),%rdi
lea    0xaaa(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     168f <set_filter_flags+0x55f>
mov    -0x18(%rbp),%rdi
lea    0xa91(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    16a3 <set_filter_flags+0x573>
mov    -0x24(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     $0x1000,%eax
mov    %eax,-0x24(%rbp)
jmp    16a8 <set_filter_flags+0x578>
jmp    16ad <set_filter_flags+0x57d>
jmp    16b2 <set_filter_flags+0x582>
jmp    16b7 <set_filter_flags+0x587>
jmp    16bc <set_filter_flags+0x58c>
jmp    16c1 <set_filter_flags+0x591>
jmp    16c6 <set_filter_flags+0x596>
jmp    16cb <set_filter_flags+0x59b>
jmp    16d0 <set_filter_flags+0x5a0>
jmp    16d5 <set_filter_flags+0x5a5>
jmp    16da <set_filter_flags+0x5aa>
jmp    16df <set_filter_flags+0x5af>
jmp    16e4 <set_filter_flags+0x5b4>
jmp    16e9 <set_filter_flags+0x5b9>
jmp    16ee <set_filter_flags+0x5be>
jmp    16f3 <set_filter_flags+0x5c3>
jmp    16f8 <set_filter_flags+0x5c8>
jmp    16fd <set_filter_flags+0x5cd>
jmp    1702 <set_filter_flags+0x5d2>
xor    %eax,%eax
mov    %eax,%edi
lea    0x8f3(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1040 <strtok_r@plt>
mov    %rax,-0x18(%rbp)
jmp    118c <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     1586 <set_filter_flags+0x456>
mov    %rdi,%rbp
call   1030 <strlen@plt>
cmp    $0x2,%eax
jl     1586 <set_filter_flags+0x456>
lea    0xe93(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %rbp,%rdi
call   1040 <strtok_r@plt>
test   %rax,%rax
je     1584 <set_filter_flags+0x454>
mov    %rax,%rbp
xor    %ebx,%ebx
lea    0xe73(%rip),%r14
lea    0xe6a(%rip),%r15
lea    0x10(%rsp),%r12
lea    0xe6c(%rip),%r13
jmp    11cc <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   1040 <strtok_r@plt>
mov    %rax,%rbp
test   %rax,%rax
je     1586 <set_filter_flags+0x456>
cmpq   $0x0,0x10(%rsp)
je     11d8 <set_filter_flags+0xa8>
movb   $0x2c,-0x1(%rbp)
mov    %rbp,%rdi
mov    %r14,%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     11b0 <set_filter_flags+0x80>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1380 <set_filter_flags+0x250>
mov    %rbp,%rdi
lea    0xe13(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1388 <set_filter_flags+0x258>
mov    %rbp,%rdi
lea    0xe03(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1390 <set_filter_flags+0x260>
mov    %rbp,%rdi
lea    0xdfa(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1398 <set_filter_flags+0x268>
mov    %rbp,%rdi
lea    0xde7(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13a0 <set_filter_flags+0x270>
mov    %rbp,%rdi
lea    0xdd6(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13a8 <set_filter_flags+0x278>
mov    %rbp,%rdi
lea    0xdc9(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13b3 <set_filter_flags+0x283>
mov    %rbp,%rdi
lea    0xdc2(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13be <set_filter_flags+0x28e>
mov    %rbp,%rdi
lea    0xdca(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13c9 <set_filter_flags+0x299>
mov    %rbp,%rdi
lea    0xdbe(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13d4 <set_filter_flags+0x2a4>
mov    %rbp,%rdi
lea    0xdb1(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13df <set_filter_flags+0x2af>
mov    %rbp,%rdi
lea    0xdb2(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13ea <set_filter_flags+0x2ba>
mov    %rbp,%rdi
lea    0xdab(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13f5 <set_filter_flags+0x2c5>
mov    %rbp,%rdi
lea    0xd97(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1369 <set_filter_flags+0x239>
mov    %rbp,%rdi
lea    0xd86(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1369 <set_filter_flags+0x239>
mov    %rbp,%rdi
lea    0xd73(%rip),%rsi
call   1050 <strcmp@plt>
mov    %ebx,%ecx
and    $0x40,%ecx
test   %rax,%rax
jne    13fd <set_filter_flags+0x2cd>
test   %ecx,%ecx
je     13fd <set_filter_flags+0x2cd>
or     $0xc0,%ebx
jmp    11b3 <set_filter_flags+0x83>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
or     $0x2,%ebx
jmp    11b3 <set_filter_flags+0x83>
or     $0x4,%ebx
jmp    11b3 <set_filter_flags+0x83>
or     $0x8,%ebx
jmp    11b3 <set_filter_flags+0x83>
or     $0x10,%ebx
jmp    11b3 <set_filter_flags+0x83>
or     $0x20,%ebx
jmp    11b3 <set_filter_flags+0x83>
or     $0x2000,%ebx
jmp    11b3 <set_filter_flags+0x83>
or     $0x4000,%ebx
jmp    11b3 <set_filter_flags+0x83>
or     $0xc000,%ebx
jmp    11b3 <set_filter_flags+0x83>
or     $0x10000,%ebx
jmp    11b3 <set_filter_flags+0x83>
or     $0x20000,%ebx
jmp    11b3 <set_filter_flags+0x83>
or     $0x40000,%ebx
jmp    11b3 <set_filter_flags+0x83>
or     $0x80000,%ebx
jmp    11b3 <set_filter_flags+0x83>
or     $0x40,%ebx
jmp    11b3 <set_filter_flags+0x83>
mov    %ecx,0xc(%rsp)
mov    %rbp,%rdi
lea    0xcbe(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1444 <set_filter_flags+0x314>
mov    %rbp,%rdi
lea    0xcad(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1444 <set_filter_flags+0x314>
mov    %rbp,%rdi
lea    0xc9a(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    144f <set_filter_flags+0x31f>
cmpl   $0x0,0xc(%rsp)
je     144f <set_filter_flags+0x31f>
or     $0x140,%ebx
jmp    11b3 <set_filter_flags+0x83>
mov    %rbp,%rdi
lea    0xc7d(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1492 <set_filter_flags+0x362>
mov    %rbp,%rdi
lea    0xc6c(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1492 <set_filter_flags+0x362>
mov    %rbp,%rdi
lea    0xc59(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    149d <set_filter_flags+0x36d>
cmpl   $0x0,0xc(%rsp)
je     149d <set_filter_flags+0x36d>
or     $0x240,%ebx
jmp    11b3 <set_filter_flags+0x83>
mov    %rbp,%rdi
lea    0xc43(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     14e0 <set_filter_flags+0x3b0>
mov    %rbp,%rdi
lea    0xc32(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     14e0 <set_filter_flags+0x3b0>
mov    %rbp,%rdi
lea    0xc1f(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    14eb <set_filter_flags+0x3bb>
cmpl   $0x0,0xc(%rsp)
je     14eb <set_filter_flags+0x3bb>
or     $0x440,%ebx
jmp    11b3 <set_filter_flags+0x83>
mov    %rbp,%rdi
lea    0xc04(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     152e <set_filter_flags+0x3fe>
mov    %rbp,%rdi
lea    0xbf3(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     152e <set_filter_flags+0x3fe>
mov    %rbp,%rdi
lea    0xbe0(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    1539 <set_filter_flags+0x409>
cmpl   $0x0,0xc(%rsp)
je     1539 <set_filter_flags+0x409>
or     $0x840,%ebx
jmp    11b3 <set_filter_flags+0x83>
mov    %rbp,%rdi
lea    0xbca(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1579 <set_filter_flags+0x449>
mov    %rbp,%rdi
lea    0xbb9(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1579 <set_filter_flags+0x449>
mov    %rbp,%rdi
lea    0xba6(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    11b3 <set_filter_flags+0x83>
or     $0x1040,%ebx
jmp    11b3 <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 %271
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 = %267, %14
%18 = load i8*, i8** %4
%19 = icmp ne i8* %18, null
br i1 %19, label %20, label %269
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
%27 = load i8*, i8** %4
%28 = call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %26
%31 = load i32, i32* %6
%32 = or i32 %31, 1
store i32 %32, i32* %6
br label %267
33: ; preds = %26
%34 = load i8*, i8** %4
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %33
%38 = load i32, i32* %6
%39 = or i32 %38, 2
store i32 %39, i32* %6
br label %266
40: ; preds = %33
%41 = load i8*, i8** %4
%42 = call i64 @strcmp(i8* %41, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %40
%45 = load i32, i32* %6
%46 = or i32 %45, 4
store i32 %46, i32* %6
br label %265
47: ; preds = %40
%48 = load i8*, i8** %4
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %47
%52 = load i32, i32* %6
%53 = or i32 %52, 8
store i32 %53, i32* %6
br label %264
54: ; preds = %47
%55 = load i8*, i8** %4
%56 = call i64 @strcmp(i8* %55, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load i32, i32* %6
%60 = or i32 %59, 16
store i32 %60, i32* %6
br label %263
61: ; preds = %54
%62 = load i8*, i8** %4
%63 = call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %61
%66 = load i32, i32* %6
%67 = or i32 %66, 32
store i32 %67, i32* %6
br label %262
68: ; preds = %61
%69 = load i8*, i8** %4
%70 = call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %75
72: ; preds = %68
%73 = load i32, i32* %6
%74 = or i32 %73, 8192
store i32 %74, i32* %6
br label %261
75: ; preds = %68
%76 = load i8*, i8** %4
%77 = call i64 @strcmp(i8* %76, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %82
79: ; preds = %75
%80 = load i32, i32* %6
%81 = or i32 %80, 16384
store i32 %81, i32* %6
br label %260
82: ; preds = %75
%83 = load i8*, i8** %4
%84 = call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %91
86: ; preds = %82
%87 = load i32, i32* %6
%88 = or i32 %87, 16384
store i32 %88, i32* %6
%89 = load i32, i32* %6
%90 = or i32 %89, 32768
store i32 %90, i32* %6
br label %259
91: ; preds = %82
%92 = load i8*, i8** %4
%93 = call i64 @strcmp(i8* %92, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %91
%96 = load i32, i32* %6
%97 = or i32 %96, 65536
store i32 %97, i32* %6
br label %258
98: ; preds = %91
%99 = load i8*, i8** %4
%100 = call i64 @strcmp(i8* %99, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %105
102: ; preds = %98
%103 = load i32, i32* %6
%104 = or i32 %103, 131072
store i32 %104, i32* %6
br label %257
105: ; preds = %98
%106 = load i8*, i8** %4
%107 = call i64 @strcmp(i8* %106, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
%108 = icmp eq i64 %107, 0
br i1 %108, label %109, label %112
109: ; preds = %105
%110 = load i32, i32* %6
%111 = or i32 %110, 262144
store i32 %111, i32* %6
br label %256
112: ; preds = %105
%113 = load i8*, i8** %4
%114 = call i64 @strcmp(i8* %113, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %119
116: ; preds = %112
%117 = load i32, i32* %6
%118 = or i32 %117, 524288
store i32 %118, i32* %6
br label %255
119: ; preds = %112
%120 = load i8*, i8** %4
%121 = call i64 @strcmp(i8* %120, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%122 = icmp eq i64 %121, 0
br i1 %122, label %123, label %126
123: ; preds = %119
%124 = load i32, i32* %6
%125 = or i32 %124, 64
store i32 %125, i32* %6
br label %254
126: ; preds = %119
%127 = load i8*, i8** %4
%128 = call i64 @strcmp(i8* %127, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%129 = icmp eq i64 %128, 0
br i1 %129, label %142, label %130
130: ; preds = %126
%131 = load i8*, i8** %4
%132 = call i64 @strcmp(i8* %131, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0))
%133 = icmp eq i64 %132, 0
br i1 %133, label %142, label %134
134: ; preds = %130
%135 = load i8*, i8** %4
%136 = call i64 @strcmp(i8* %135, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%137 = icmp eq i64 %136, 0
br i1 %137, label %138, label %147
138: ; preds = %134
%139 = load i32, i32* %6
%140 = and i32 %139, 64
%141 = icmp ne i32 %140, 0
br i1 %141, label %142, label %147
142: ; preds = %138, %130, %126
%143 = load i32, i32* %6
%144 = or i32 %143, 64
store i32 %144, i32* %6
%145 = load i32, i32* %6
%146 = or i32 %145, 128
store i32 %146, i32* %6
br label %253
147: ; preds = %138, %134
%148 = load i8*, i8** %4
%149 = call i64 @strcmp(i8* %148, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0))
%150 = icmp eq i64 %149, 0
br i1 %150, label %163, label %151
151: ; preds = %147
%152 = load i8*, i8** %4
%153 = call i64 @strcmp(i8* %152, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
%154 = icmp eq i64 %153, 0
br i1 %154, label %163, label %155
155: ; preds = %151
%156 = load i8*, i8** %4
%157 = call i64 @strcmp(i8* %156, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0))
%158 = icmp eq i64 %157, 0
br i1 %158, label %159, label %168
159: ; preds = %155
%160 = load i32, i32* %6
%161 = and i32 %160, 64
%162 = icmp ne i32 %161, 0
br i1 %162, label %163, label %168
163: ; preds = %159, %151, %147
%164 = load i32, i32* %6
%165 = or i32 %164, 64
store i32 %165, i32* %6
%166 = load i32, i32* %6
%167 = or i32 %166, 256
store i32 %167, i32* %6
br label %252
168: ; preds = %159, %155
%169 = load i8*, i8** %4
%170 = call i64 @strcmp(i8* %169, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0))
%171 = icmp eq i64 %170, 0
br i1 %171, label %184, label %172
172: ; preds = %168
%173 = load i8*, i8** %4
%174 = call i64 @strcmp(i8* %173, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.22, i64 0, i64 0))
%175 = icmp eq i64 %174, 0
br i1 %175, label %184, label %176
176: ; preds = %172
%177 = load i8*, i8** %4
%178 = call i64 @strcmp(i8* %177, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0))
%179 = icmp eq i64 %178, 0
br i1 %179, label %180, label %189
180: ; preds = %176
%181 = load i32, i32* %6
%182 = and i32 %181, 64
%183 = icmp ne i32 %182, 0
br i1 %183, label %184, label %189
184: ; preds = %180, %172, %168
%185 = load i32, i32* %6
%186 = or i32 %185, 64
store i32 %186, i32* %6
%187 = load i32, i32* %6
%188 = or i32 %187, 512
store i32 %188, i32* %6
br label %251
189: ; preds = %180, %176
%190 = load i8*, i8** %4
%191 = call i64 @strcmp(i8* %190, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0))
%192 = icmp eq i64 %191, 0
br i1 %192, label %205, label %193
193: ; preds = %189
%194 = load i8*, i8** %4
%195 = call i64 @strcmp(i8* %194, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.25, i64 0, i64 0))
%196 = icmp eq i64 %195, 0
br i1 %196, label %205, label %197
197: ; preds = %193
%198 = load i8*, i8** %4
%199 = call i64 @strcmp(i8* %198, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0))
%200 = icmp eq i64 %199, 0
br i1 %200, label %201, label %210
201: ; preds = %197
%202 = load i32, i32* %6
%203 = and i32 %202, 64
%204 = icmp ne i32 %203, 0
br i1 %204, label %205, label %210
205: ; preds = %201, %193, %189
%206 = load i32, i32* %6
%207 = or i32 %206, 64
store i32 %207, i32* %6
%208 = load i32, i32* %6
%209 = or i32 %208, 1024
store i32 %209, i32* %6
br label %250
210: ; preds = %201, %197
%211 = load i8*, i8** %4
%212 = call i64 @strcmp(i8* %211, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.27, i64 0, i64 0))
%213 = icmp eq i64 %212, 0
br i1 %213, label %226, label %214
214: ; preds = %210
%215 = load i8*, i8** %4
%216 = call i64 @strcmp(i8* %215, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.28, i64 0, i64 0))
%217 = icmp eq i64 %216, 0
br i1 %217, label %226, label %218
218: ; preds = %214
%219 = load i8*, i8** %4
%220 = call i64 @strcmp(i8* %219, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.29, i64 0, i64 0))
%221 = icmp eq i64 %220, 0
br i1 %221, label %222, label %231
222: ; preds = %218
%223 = load i32, i32* %6
%224 = and i32 %223, 64
%225 = icmp ne i32 %224, 0
br i1 %225, label %226, label %231
226: ; preds = %222, %214, %210
%227 = load i32, i32* %6
%228 = or i32 %227, 64
store i32 %228, i32* %6
%229 = load i32, i32* %6
%230 = or i32 %229, 2048
store i32 %230, i32* %6
br label %249
231: ; preds = %222, %218
%232 = load i8*, i8** %4
%233 = call i64 @strcmp(i8* %232, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.30, i64 0, i64 0))
%234 = icmp eq i64 %233, 0
br i1 %234, label %243, label %235
235: ; preds = %231
%236 = load i8*, i8** %4
%237 = call i64 @strcmp(i8* %236, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0))
%238 = icmp eq i64 %237, 0
br i1 %238, label %243, label %239
239: ; preds = %235
%240 = load i8*, i8** %4
%241 = call i64 @strcmp(i8* %240, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i64 0, i64 0))
%242 = icmp eq i64 %241, 0
br i1 %242, label %243, label %248
243: ; preds = %239, %235, %231
%244 = load i32, i32* %6
%245 = or i32 %244, 64
store i32 %245, i32* %6
%246 = load i32, i32* %6
%247 = or i32 %246, 4096
store i32 %247, i32* %6
br label %248
248: ; preds = %243, %239
br label %249
249: ; preds = %248, %226
br label %250
250: ; preds = %249, %205
br label %251
251: ; preds = %250, %184
br label %252
252: ; preds = %251, %163
br label %253
253: ; preds = %252, %142
br label %254
254: ; preds = %253, %123
br label %255
255: ; preds = %254, %116
br label %256
256: ; preds = %255, %109
br label %257
257: ; preds = %256, %102
br label %258
258: ; preds = %257, %95
br label %259
259: ; preds = %258, %86
br label %260
260: ; preds = %259, %79
br label %261
261: ; preds = %260, %72
br label %262
262: ; preds = %261, %65
br label %263
263: ; preds = %262, %58
br label %264
264: ; preds = %263, %51
br label %265
265: ; preds = %264, %44
br label %266
266: ; preds = %265, %37
br label %267
267: ; preds = %266, %30
%268 = call i8* @strtok_r(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %5)
store i8* %268, i8** %4
br label %17
269: ; preds = %17
%270 = load i32, i32* %6
store i32 %270, i32* %2
br label %271
271: ; preds = %269, %13
%272 = load i32, i32* %2
ret i32 %272
}

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