#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 uint8_t;

/* Variables and functions */
scalar_t__ errno;
int /*<<< orphan*/ strlen(char *);
scalar_t__ strncasecmp(char const *, char *, int /*<<< orphan*/);
int strtol(char const *, char **, int);
int parse_dscp_value(const char *value, uint8_t *result) {
  if (strncasecmp(value, "cs0", strlen("cs0")) == 0 ||
      strncasecmp(value, "none", strlen("none")) == 0 ||
      strncasecmp(value, "default", strlen("default")) == 0) {
    *result = 0;
  } else if (strncasecmp(value, "cs1", strlen("cs1")) == 0) {
    *result = 0b001000;
  } else if (strncasecmp(value, "cs2", strlen("cs2")) == 0) {
    *result = 0b010000;
  } else if (strncasecmp(value, "cs3", strlen("cs3")) == 0) {
    *result = 0b011000;
  } else if (strncasecmp(value, "cs4", strlen("cs4")) == 0) {
    *result = 0b100000;
  } else if (strncasecmp(value, "cs5", strlen("cs5")) == 0) {
    *result = 0b101000;
  } else if (strncasecmp(value, "cs6", strlen("cs6")) == 0) {
    *result = 0b110000;
  } else if (strncasecmp(value, "cs7", strlen("cs7")) == 0) {
    *result = 0b111000;
  } else if (strncasecmp(value, "af11", strlen("af11")) == 0) {
    *result = 0b001010;
  } else if (strncasecmp(value, "af12", strlen("af12")) == 0) {
    *result = 0b001100;
  } else if (strncasecmp(value, "af13", strlen("af13")) == 0) {
    *result = 0b001110;
  } else if (strncasecmp(value, "af21", strlen("af21")) == 0) {
    *result = 0b010010;
  } else if (strncasecmp(value, "af22", strlen("af22")) == 0) {
    *result = 0b010100;
  } else if (strncasecmp(value, "af23", strlen("af23")) == 0) {
    *result = 0b010110;
  } else if (strncasecmp(value, "af31", strlen("af31")) == 0) {
    *result = 0b011010;
  } else if (strncasecmp(value, "af32", strlen("af32")) == 0) {
    *result = 0b011100;
  } else if (strncasecmp(value, "af33", strlen("af33")) == 0) {
    *result = 0b011110;
  } else if (strncasecmp(value, "af41", strlen("af41")) == 0) {
    *result = 0b100010;
  } else if (strncasecmp(value, "af42", strlen("af42")) == 0) {
    *result = 0b100100;
  } else if (strncasecmp(value, "af43", strlen("af43")) == 0) {
    *result = 0b100110;
  } else if (strncasecmp(value, "va", strlen("va")) == 0) {
    *result = 0b101100;
  } else if (strncasecmp(value, "ef", strlen("ef")) == 0) {
    *result = 0b101110;
  } else {
    int converted;
    char *endptr;
    errno = 0;
    converted = strtol(value, &endptr, 2);
    if (errno != 0 || *endptr != '\0' || converted >= (1 << 6)) {
      errno = 0;
      converted = strtol(value, &endptr, 0);
      if (errno != 0 || *endptr != '\0' || converted >= (1 << 6)) {
        *result = 0;
        return -1;
      }
    }
    *result = converted;
  }
  return 0;
}


x86 assembly (clang, -O0):
<parse_dscp_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    0xeae(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x30(%rbp),%rdi
mov    %eax,%edx
lea    0xe9c(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
je     11d3 <parse_dscp_value+0xa3>
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    0xe82(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x38(%rbp),%rdi
mov    %eax,%edx
lea    0xe70(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
je     11d3 <parse_dscp_value+0xa3>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    0xe57(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%edx
lea    0xe45(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    11e2 <parse_dscp_value+0xb2>
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
jmp    1881 <parse_dscp_value+0x751>
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    0xe20(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x48(%rbp),%rdi
mov    %eax,%edx
lea    0xe0e(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    1221 <parse_dscp_value+0xf1>
mov    -0x18(%rbp),%rax
movl   $0x8,(%rax)
jmp    187c <parse_dscp_value+0x74c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
lea    0xde5(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x50(%rbp),%rdi
mov    %eax,%edx
lea    0xdd3(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    1260 <parse_dscp_value+0x130>
mov    -0x18(%rbp),%rax
movl   $0x10,(%rax)
jmp    1877 <parse_dscp_value+0x747>
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
lea    0xdaa(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x58(%rbp),%rdi
mov    %eax,%edx
lea    0xd98(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    129f <parse_dscp_value+0x16f>
mov    -0x18(%rbp),%rax
movl   $0x18,(%rax)
jmp    1872 <parse_dscp_value+0x742>
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
lea    0xd6f(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x60(%rbp),%rdi
mov    %eax,%edx
lea    0xd5d(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    12de <parse_dscp_value+0x1ae>
mov    -0x18(%rbp),%rax
movl   $0x20,(%rax)
jmp    186d <parse_dscp_value+0x73d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    0xd34(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x68(%rbp),%rdi
mov    %eax,%edx
lea    0xd22(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    131d <parse_dscp_value+0x1ed>
mov    -0x18(%rbp),%rax
movl   $0x28,(%rax)
jmp    1868 <parse_dscp_value+0x738>
mov    -0x10(%rbp),%rax
mov    %rax,-0x70(%rbp)
lea    0xcf9(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x70(%rbp),%rdi
mov    %eax,%edx
lea    0xce7(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    135c <parse_dscp_value+0x22c>
mov    -0x18(%rbp),%rax
movl   $0x30,(%rax)
jmp    1863 <parse_dscp_value+0x733>
mov    -0x10(%rbp),%rax
mov    %rax,-0x78(%rbp)
lea    0xcbe(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x78(%rbp),%rdi
mov    %eax,%edx
lea    0xcac(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    139b <parse_dscp_value+0x26b>
mov    -0x18(%rbp),%rax
movl   $0x38,(%rax)
jmp    185e <parse_dscp_value+0x72e>
mov    -0x10(%rbp),%rax
mov    %rax,-0x80(%rbp)
lea    0xc83(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x80(%rbp),%rdi
mov    %eax,%edx
lea    0xc71(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    13da <parse_dscp_value+0x2aa>
mov    -0x18(%rbp),%rax
movl   $0xa,(%rax)
jmp    1859 <parse_dscp_value+0x729>
mov    -0x10(%rbp),%rax
mov    %rax,-0x88(%rbp)
lea    0xc46(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x88(%rbp),%rdi
mov    %eax,%edx
lea    0xc31(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    141f <parse_dscp_value+0x2ef>
mov    -0x18(%rbp),%rax
movl   $0xc,(%rax)
jmp    1854 <parse_dscp_value+0x724>
mov    -0x10(%rbp),%rax
mov    %rax,-0x90(%rbp)
lea    0xc06(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x90(%rbp),%rdi
mov    %eax,%edx
lea    0xbf1(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    1464 <parse_dscp_value+0x334>
mov    -0x18(%rbp),%rax
movl   $0xe,(%rax)
jmp    184f <parse_dscp_value+0x71f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x98(%rbp)
lea    0xbc6(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x98(%rbp),%rdi
mov    %eax,%edx
lea    0xbb1(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    14a9 <parse_dscp_value+0x379>
mov    -0x18(%rbp),%rax
movl   $0x12,(%rax)
jmp    184a <parse_dscp_value+0x71a>
mov    -0x10(%rbp),%rax
mov    %rax,-0xa0(%rbp)
lea    0xb86(%rip),%rdi
call   1030 <strlen@plt>
mov    -0xa0(%rbp),%rdi
mov    %eax,%edx
lea    0xb71(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    14ee <parse_dscp_value+0x3be>
mov    -0x18(%rbp),%rax
movl   $0x14,(%rax)
jmp    1845 <parse_dscp_value+0x715>
mov    -0x10(%rbp),%rax
mov    %rax,-0xa8(%rbp)
lea    0xb46(%rip),%rdi
call   1030 <strlen@plt>
mov    -0xa8(%rbp),%rdi
mov    %eax,%edx
lea    0xb31(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    1533 <parse_dscp_value+0x403>
mov    -0x18(%rbp),%rax
movl   $0x16,(%rax)
jmp    1840 <parse_dscp_value+0x710>
mov    -0x10(%rbp),%rax
mov    %rax,-0xb0(%rbp)
lea    0xb06(%rip),%rdi
call   1030 <strlen@plt>
mov    -0xb0(%rbp),%rdi
mov    %eax,%edx
lea    0xaf1(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    1578 <parse_dscp_value+0x448>
mov    -0x18(%rbp),%rax
movl   $0x1a,(%rax)
jmp    183b <parse_dscp_value+0x70b>
mov    -0x10(%rbp),%rax
mov    %rax,-0xb8(%rbp)
lea    0xac6(%rip),%rdi
call   1030 <strlen@plt>
mov    -0xb8(%rbp),%rdi
mov    %eax,%edx
lea    0xab1(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    15bd <parse_dscp_value+0x48d>
mov    -0x18(%rbp),%rax
movl   $0x1c,(%rax)
jmp    1836 <parse_dscp_value+0x706>
mov    -0x10(%rbp),%rax
mov    %rax,-0xc0(%rbp)
lea    0xa86(%rip),%rdi
call   1030 <strlen@plt>
mov    -0xc0(%rbp),%rdi
mov    %eax,%edx
lea    0xa71(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    1602 <parse_dscp_value+0x4d2>
mov    -0x18(%rbp),%rax
movl   $0x1e,(%rax)
jmp    1831 <parse_dscp_value+0x701>
mov    -0x10(%rbp),%rax
mov    %rax,-0xc8(%rbp)
lea    0xa46(%rip),%rdi
call   1030 <strlen@plt>
mov    -0xc8(%rbp),%rdi
mov    %eax,%edx
lea    0xa31(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    1647 <parse_dscp_value+0x517>
mov    -0x18(%rbp),%rax
movl   $0x22,(%rax)
jmp    182c <parse_dscp_value+0x6fc>
mov    -0x10(%rbp),%rax
mov    %rax,-0xd0(%rbp)
lea    0xa06(%rip),%rdi
call   1030 <strlen@plt>
mov    -0xd0(%rbp),%rdi
mov    %eax,%edx
lea    0x9f1(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    168c <parse_dscp_value+0x55c>
mov    -0x18(%rbp),%rax
movl   $0x24,(%rax)
jmp    1827 <parse_dscp_value+0x6f7>
mov    -0x10(%rbp),%rax
mov    %rax,-0xd8(%rbp)
lea    0x9c6(%rip),%rdi
call   1030 <strlen@plt>
mov    -0xd8(%rbp),%rdi
mov    %eax,%edx
lea    0x9b1(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    16d1 <parse_dscp_value+0x5a1>
mov    -0x18(%rbp),%rax
movl   $0x26,(%rax)
jmp    1822 <parse_dscp_value+0x6f2>
mov    -0x10(%rbp),%rax
mov    %rax,-0xe0(%rbp)
lea    0x986(%rip),%rdi
call   1030 <strlen@plt>
mov    -0xe0(%rbp),%rdi
mov    %eax,%edx
lea    0x971(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    1716 <parse_dscp_value+0x5e6>
mov    -0x18(%rbp),%rax
movl   $0x2c,(%rax)
jmp    181d <parse_dscp_value+0x6ed>
mov    -0x10(%rbp),%rax
mov    %rax,-0xe8(%rbp)
lea    0x944(%rip),%rdi
call   1030 <strlen@plt>
mov    -0xe8(%rbp),%rdi
mov    %eax,%edx
lea    0x92f(%rip),%rsi
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
jne    175b <parse_dscp_value+0x62b>
mov    -0x18(%rbp),%rax
movl   $0x2e,(%rax)
jmp    1818 <parse_dscp_value+0x6e8>
mov    0x287e(%rip),%rax
movq   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
lea    -0x28(%rbp),%rsi
mov    $0x2,%edx
call   1040 <strtol@plt>
mov    %eax,-0x1c(%rbp)
mov    0x285b(%rip),%rax
cmpq   $0x0,(%rax)
jne    17a9 <parse_dscp_value+0x679>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    17a9 <parse_dscp_value+0x679>
cmpl   $0x40,-0x1c(%rbp)
jl     180f <parse_dscp_value+0x6df>
mov    0x2830(%rip),%rax
movq   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
lea    -0x28(%rbp),%rsi
xor    %edx,%edx
call   1040 <strtol@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2810(%rip),%rax
cmpq   $0x0,(%rax)
jne    17f4 <parse_dscp_value+0x6c4>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    17f4 <parse_dscp_value+0x6c4>
cmpl   $0x40,-0x1c(%rbp)
jl     180a <parse_dscp_value+0x6da>
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
movl   $0xffffffff,-0x4(%rbp)
jmp    1888 <parse_dscp_value+0x758>
jmp    180f <parse_dscp_value+0x6df>
mov    -0x1c(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
jmp    181d <parse_dscp_value+0x6ed>
jmp    1822 <parse_dscp_value+0x6f2>
jmp    1827 <parse_dscp_value+0x6f7>
jmp    182c <parse_dscp_value+0x6fc>
jmp    1831 <parse_dscp_value+0x701>
jmp    1836 <parse_dscp_value+0x706>
jmp    183b <parse_dscp_value+0x70b>
jmp    1840 <parse_dscp_value+0x710>
jmp    1845 <parse_dscp_value+0x715>
jmp    184a <parse_dscp_value+0x71a>
jmp    184f <parse_dscp_value+0x71f>
jmp    1854 <parse_dscp_value+0x724>
jmp    1859 <parse_dscp_value+0x729>
jmp    185e <parse_dscp_value+0x72e>
jmp    1863 <parse_dscp_value+0x733>
jmp    1868 <parse_dscp_value+0x738>
jmp    186d <parse_dscp_value+0x73d>
jmp    1872 <parse_dscp_value+0x742>
jmp    1877 <parse_dscp_value+0x747>
jmp    187c <parse_dscp_value+0x74c>
jmp    1881 <parse_dscp_value+0x751>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_dscp_value>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r14
mov    %rdi,%r15
lea    0xeba(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     150f <parse_dscp_value+0x3df>
lea    0xe99(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     150f <parse_dscp_value+0x3df>
lea    0xe79(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     150f <parse_dscp_value+0x3df>
lea    0xe5c(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     1522 <parse_dscp_value+0x3f2>
lea    0xe3b(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     152b <parse_dscp_value+0x3fb>
lea    0xe1a(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     1534 <parse_dscp_value+0x404>
lea    0xdf9(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     153d <parse_dscp_value+0x40d>
lea    0xdd8(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     1546 <parse_dscp_value+0x416>
lea    0xdb7(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     154f <parse_dscp_value+0x41f>
lea    0xd96(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     1558 <parse_dscp_value+0x428>
lea    0xd75(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     1561 <parse_dscp_value+0x431>
lea    0xd55(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     156a <parse_dscp_value+0x43a>
lea    0xd35(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     1573 <parse_dscp_value+0x443>
lea    0xd15(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     157c <parse_dscp_value+0x44c>
lea    0xcf5(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     1585 <parse_dscp_value+0x455>
lea    0xcd5(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     158e <parse_dscp_value+0x45e>
lea    0xcb5(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     159a <parse_dscp_value+0x46a>
lea    0xc95(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     15a6 <parse_dscp_value+0x476>
lea    0xc75(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     15b2 <parse_dscp_value+0x482>
lea    0xc55(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     15be <parse_dscp_value+0x48e>
lea    0xc35(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     15ca <parse_dscp_value+0x49a>
lea    0xc15(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     15d6 <parse_dscp_value+0x4a6>
lea    0xbf5(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     15e2 <parse_dscp_value+0x4b2>
lea    0xbd3(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     15ee <parse_dscp_value+0x4be>
mov    0x2b22(%rip),%rbx
movq   $0x0,(%rbx)
lea    0x8(%rsp),%rsi
mov    %r15,%rdi
mov    $0x2,%edx
call   1040 <strtol@plt>
cmpq   $0x0,(%rbx)
je     15fa <parse_dscp_value+0x4ca>
movq   $0x0,(%rbx)
lea    0x8(%rsp),%rsi
mov    %r15,%rdi
xor    %edx,%edx
call   1040 <strtol@plt>
cmpq   $0x0,(%rbx)
je     1612 <parse_dscp_value+0x4e2>
movl   $0x0,(%r14)
mov    $0xffffffff,%eax
jmp    1518 <parse_dscp_value+0x3e8>
movl   $0x0,(%r14)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
movl   $0x8,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x10,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x18,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x20,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x28,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x30,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x38,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0xa,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0xc,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0xe,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x12,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x14,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x16,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x1a,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x1c,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x1e,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x22,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x24,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x26,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x2c,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
movl   $0x2e,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>
mov    0x8(%rsp),%rcx
cmpb   $0x0,(%rcx)
jne    14e1 <parse_dscp_value+0x3b1>
cmp    $0x40,%eax
jl     1629 <parse_dscp_value+0x4f9>
jmp    14e1 <parse_dscp_value+0x3b1>
mov    0x8(%rsp),%rcx
cmpb   $0x0,(%rcx)
jne    1501 <parse_dscp_value+0x3d1>
cmp    $0x40,%eax
jge    1501 <parse_dscp_value+0x3d1>
mov    %eax,(%r14)
jmp    1516 <parse_dscp_value+0x3e6>

LLVM IR (-O0):
@.str = [4 x i8] c"cs0\00"
@.str.1 = [5 x i8] c"none\00"
@.str.2 = [8 x i8] c"default\00"
@.str.3 = [4 x i8] c"cs1\00"
@.str.4 = [4 x i8] c"cs2\00"
@.str.5 = [4 x i8] c"cs3\00"
@.str.6 = [4 x i8] c"cs4\00"
@.str.7 = [4 x i8] c"cs5\00"
@.str.8 = [4 x i8] c"cs6\00"
@.str.9 = [4 x i8] c"cs7\00"
@.str.10 = [5 x i8] c"af11\00"
@.str.11 = [5 x i8] c"af12\00"
@.str.12 = [5 x i8] c"af13\00"
@.str.13 = [5 x i8] c"af21\00"
@.str.14 = [5 x i8] c"af22\00"
@.str.15 = [5 x i8] c"af23\00"
@.str.16 = [5 x i8] c"af31\00"
@.str.17 = [5 x i8] c"af32\00"
@.str.18 = [5 x i8] c"af33\00"
@.str.19 = [5 x i8] c"af41\00"
@.str.20 = [5 x i8] c"af42\00"
@.str.21 = [5 x i8] c"af43\00"
@.str.22 = [3 x i8] c"va\00"
@.str.23 = [3 x i8] c"ef\00"
@errno = global i64 0
define i32 @parse_dscp_value(i8* %0, i32* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i8*
store i8* %0, i8** %4
store i32* %1, i32** %5
%8 = load i8*, i8** %4
%9 = call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%10 = call i64 @strncasecmp(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %22, label %12
12: ; preds = %2
%13 = load i8*, i8** %4
%14 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%15 = call i64 @strncasecmp(i8* %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = icmp eq i64 %15, 0
br i1 %16, label %22, label %17
17: ; preds = %12
%18 = load i8*, i8** %4
%19 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%20 = call i64 @strncasecmp(i8* %18, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %17, %12, %2
%23 = load i32*, i32** %5
store i32 0, i32* %23
br label %224
24: ; preds = %17
%25 = load i8*, i8** %4
%26 = call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%27 = call i64 @strncasecmp(i8* %25, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %26)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = load i32*, i32** %5
store i32 8, i32* %30
br label %223
31: ; preds = %24
%32 = load i8*, i8** %4
%33 = call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%34 = call i64 @strncasecmp(i8* %32, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %33)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %31
%37 = load i32*, i32** %5
store i32 16, i32* %37
br label %222
38: ; preds = %31
%39 = load i8*, i8** %4
%40 = call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%41 = call i64 @strncasecmp(i8* %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %40)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %38
%44 = load i32*, i32** %5
store i32 24, i32* %44
br label %221
45: ; preds = %38
%46 = load i8*, i8** %4
%47 = call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%48 = call i64 @strncasecmp(i8* %46, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %47)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %45
%51 = load i32*, i32** %5
store i32 32, i32* %51
br label %220
52: ; preds = %45
%53 = load i8*, i8** %4
%54 = call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%55 = call i64 @strncasecmp(i8* %53, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %54)
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %52
%58 = load i32*, i32** %5
store i32 40, i32* %58
br label %219
59: ; preds = %52
%60 = load i8*, i8** %4
%61 = call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%62 = call i64 @strncasecmp(i8* %60, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %61)
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %59
%65 = load i32*, i32** %5
store i32 48, i32* %65
br label %218
66: ; preds = %59
%67 = load i8*, i8** %4
%68 = call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%69 = call i64 @strncasecmp(i8* %67, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %68)
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %66
%72 = load i32*, i32** %5
store i32 56, i32* %72
br label %217
73: ; preds = %66
%74 = load i8*, i8** %4
%75 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%76 = call i64 @strncasecmp(i8* %74, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 %75)
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %73
%79 = load i32*, i32** %5
store i32 10, i32* %79
br label %216
80: ; preds = %73
%81 = load i8*, i8** %4
%82 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%83 = call i64 @strncasecmp(i8* %81, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 %82)
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %87
85: ; preds = %80
%86 = load i32*, i32** %5
store i32 12, i32* %86
br label %215
87: ; preds = %80
%88 = load i8*, i8** %4
%89 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%90 = call i64 @strncasecmp(i8* %88, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 %89)
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %87
%93 = load i32*, i32** %5
store i32 14, i32* %93
br label %214
94: ; preds = %87
%95 = load i8*, i8** %4
%96 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%97 = call i64 @strncasecmp(i8* %95, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i32 %96)
%98 = icmp eq i64 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %94
%100 = load i32*, i32** %5
store i32 18, i32* %100
br label %213
101: ; preds = %94
%102 = load i8*, i8** %4
%103 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%104 = call i64 @strncasecmp(i8* %102, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i32 %103)
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %108
106: ; preds = %101
%107 = load i32*, i32** %5
store i32 20, i32* %107
br label %212
108: ; preds = %101
%109 = load i8*, i8** %4
%110 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%111 = call i64 @strncasecmp(i8* %109, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 %110)
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %115
113: ; preds = %108
%114 = load i32*, i32** %5
store i32 22, i32* %114
br label %211
115: ; preds = %108
%116 = load i8*, i8** %4
%117 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%118 = call i64 @strncasecmp(i8* %116, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 %117)
%119 = icmp eq i64 %118, 0
br i1 %119, label %120, label %122
120: ; preds = %115
%121 = load i32*, i32** %5
store i32 26, i32* %121
br label %210
122: ; preds = %115
%123 = load i8*, i8** %4
%124 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%125 = call i64 @strncasecmp(i8* %123, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i32 %124)
%126 = icmp eq i64 %125, 0
br i1 %126, label %127, label %129
127: ; preds = %122
%128 = load i32*, i32** %5
store i32 28, i32* %128
br label %209
129: ; preds = %122
%130 = load i8*, i8** %4
%131 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%132 = call i64 @strncasecmp(i8* %130, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i32 %131)
%133 = icmp eq i64 %132, 0
br i1 %133, label %134, label %136
134: ; preds = %129
%135 = load i32*, i32** %5
store i32 30, i32* %135
br label %208
136: ; preds = %129
%137 = load i8*, i8** %4
%138 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%139 = call i64 @strncasecmp(i8* %137, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %138)
%140 = icmp eq i64 %139, 0
br i1 %140, label %141, label %143
141: ; preds = %136
%142 = load i32*, i32** %5
store i32 34, i32* %142
br label %207
143: ; preds = %136
%144 = load i8*, i8** %4
%145 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%146 = call i64 @strncasecmp(i8* %144, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 %145)
%147 = icmp eq i64 %146, 0
br i1 %147, label %148, label %150
148: ; preds = %143
%149 = load i32*, i32** %5
store i32 36, i32* %149
br label %206
150: ; preds = %143
%151 = load i8*, i8** %4
%152 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%153 = call i64 @strncasecmp(i8* %151, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i32 %152)
%154 = icmp eq i64 %153, 0
br i1 %154, label %155, label %157
155: ; preds = %150
%156 = load i32*, i32** %5
store i32 38, i32* %156
br label %205
157: ; preds = %150
%158 = load i8*, i8** %4
%159 = call i32 @strlen(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
%160 = call i64 @strncasecmp(i8* %158, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0), i32 %159)
%161 = icmp eq i64 %160, 0
br i1 %161, label %162, label %164
162: ; preds = %157
%163 = load i32*, i32** %5
store i32 44, i32* %163
br label %204
164: ; preds = %157
%165 = load i8*, i8** %4
%166 = call i32 @strlen(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0))
%167 = call i64 @strncasecmp(i8* %165, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0), i32 %166)
%168 = icmp eq i64 %167, 0
br i1 %168, label %169, label %171
169: ; preds = %164
%170 = load i32*, i32** %5
store i32 46, i32* %170
br label %203
171: ; preds = %164
store i64 0, i64* @errno
%172 = load i8*, i8** %4
%173 = call i32 @strtol(i8* %172, i8** %7, i32 2)
store i32 %173, i32* %6
%174 = load i64, i64* @errno
%175 = icmp ne i64 %174, 0
br i1 %175, label %184, label %176
176: ; preds = %171
%177 = load i8*, i8** %7
%178 = load i8, i8* %177
%179 = sext i8 %178 to i32
%180 = icmp ne i32 %179, 0
br i1 %180, label %184, label %181
181: ; preds = %176
%182 = load i32, i32* %6
%183 = icmp sge i32 %182, 64
br i1 %183, label %184, label %200
184: ; preds = %181, %176, %171
store i64 0, i64* @errno
%185 = load i8*, i8** %4
%186 = call i32 @strtol(i8* %185, i8** %7, i32 0)
store i32 %186, i32* %6
%187 = load i64, i64* @errno
%188 = icmp ne i64 %187, 0
br i1 %188, label %197, label %189
189: ; preds = %184
%190 = load i8*, i8** %7
%191 = load i8, i8* %190
%192 = sext i8 %191 to i32
%193 = icmp ne i32 %192, 0
br i1 %193, label %197, label %194
194: ; preds = %189
%195 = load i32, i32* %6
%196 = icmp sge i32 %195, 64
br i1 %196, label %197, label %199
197: ; preds = %194, %189, %184
%198 = load i32*, i32** %5
store i32 0, i32* %198
store i32 -1, i32* %3
br label %225
199: ; preds = %194
br label %200
200: ; preds = %199, %181
%201 = load i32, i32* %6
%202 = load i32*, i32** %5
store i32 %201, i32* %202
br label %203
203: ; preds = %200, %169
br label %204
204: ; preds = %203, %162
br label %205
205: ; preds = %204, %155
br label %206
206: ; preds = %205, %148
br label %207
207: ; preds = %206, %141
br label %208
208: ; preds = %207, %134
br label %209
209: ; preds = %208, %127
br label %210
210: ; preds = %209, %120
br label %211
211: ; preds = %210, %113
br label %212
212: ; preds = %211, %106
br label %213
213: ; preds = %212, %99
br label %214
214: ; preds = %213, %92
br label %215
215: ; preds = %214, %85
br label %216
216: ; preds = %215, %78
br label %217
217: ; preds = %216, %71
br label %218
218: ; preds = %217, %64
br label %219
219: ; preds = %218, %57
br label %220
220: ; preds = %219, %50
br label %221
221: ; preds = %220, %43
br label %222
222: ; preds = %221, %36
br label %223
223: ; preds = %222, %29
br label %224
224: ; preds = %223, %22
store i32 0, i32* %3
br label %225
225: ; preds = %224, %197
%226 = load i32, i32* %3
ret i32 %226
}

LLVM IR (-O2):
@.str = [4 x i8] c"cs0\00"
@.str.1 = [5 x i8] c"none\00"
@.str.2 = [8 x i8] c"default\00"
@.str.3 = [4 x i8] c"cs1\00"
@.str.4 = [4 x i8] c"cs2\00"
@.str.5 = [4 x i8] c"cs3\00"
@.str.6 = [4 x i8] c"cs4\00"
@.str.7 = [4 x i8] c"cs5\00"
@.str.8 = [4 x i8] c"cs6\00"
@.str.9 = [4 x i8] c"cs7\00"
@.str.10 = [5 x i8] c"af11\00"
@.str.11 = [5 x i8] c"af12\00"
@.str.12 = [5 x i8] c"af13\00"
@.str.13 = [5 x i8] c"af21\00"
@.str.14 = [5 x i8] c"af22\00"
@.str.15 = [5 x i8] c"af23\00"
@.str.16 = [5 x i8] c"af31\00"
@.str.17 = [5 x i8] c"af32\00"
@.str.18 = [5 x i8] c"af33\00"
@.str.19 = [5 x i8] c"af41\00"
@.str.20 = [5 x i8] c"af42\00"
@.str.21 = [5 x i8] c"af43\00"
@.str.22 = [3 x i8] c"va\00"
@.str.23 = [3 x i8] c"ef\00"
@errno = global i64 0
define i32 @parse_dscp_value(i8* %0, i32* writeonly %1) {
%3 = alloca i8*
%4 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%5 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %15, label %7
7: ; preds = %2
%8 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %7
%12 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %11, %7, %2
store i32 0, i32* %1
br label %145
16: ; preds = %11
%17 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%18 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %17)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %16
store i32 8, i32* %1
br label %145
21: ; preds = %16
%22 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%23 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %21
store i32 16, i32* %1
br label %145
26: ; preds = %21
%27 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%28 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %27)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %26
store i32 24, i32* %1
br label %145
31: ; preds = %26
%32 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%33 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %32)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %31
store i32 32, i32* %1
br label %145
36: ; preds = %31
%37 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%38 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %37)
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %36
store i32 40, i32* %1
br label %145
41: ; preds = %36
%42 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%43 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %42)
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %41
store i32 48, i32* %1
br label %145
46: ; preds = %41
%47 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%48 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %47)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %46
store i32 56, i32* %1
br label %145
51: ; preds = %46
%52 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%53 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 %52)
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %56
55: ; preds = %51
store i32 10, i32* %1
br label %145
56: ; preds = %51
%57 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%58 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 %57)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %56
store i32 12, i32* %1
br label %145
61: ; preds = %56
%62 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%63 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 %62)
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %61
store i32 14, i32* %1
br label %145
66: ; preds = %61
%67 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%68 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i32 %67)
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %71
70: ; preds = %66
store i32 18, i32* %1
br label %145
71: ; preds = %66
%72 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%73 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i32 %72)
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %71
store i32 20, i32* %1
br label %145
76: ; preds = %71
%77 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%78 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 %77)
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %76
store i32 22, i32* %1
br label %145
81: ; preds = %76
%82 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%83 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 %82)
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %86
85: ; preds = %81
store i32 26, i32* %1
br label %145
86: ; preds = %81
%87 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%88 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i32 %87)
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %91
90: ; preds = %86
store i32 28, i32* %1
br label %145
91: ; preds = %86
%92 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%93 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i32 %92)
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %96
95: ; preds = %91
store i32 30, i32* %1
br label %145
96: ; preds = %91
%97 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%98 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %97)
%99 = icmp eq i64 %98, 0
br i1 %99, label %100, label %101
100: ; preds = %96
store i32 34, i32* %1
br label %145
101: ; preds = %96
%102 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%103 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 %102)
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %106
105: ; preds = %101
store i32 36, i32* %1
br label %145
106: ; preds = %101
%107 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%108 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i32 %107)
%109 = icmp eq i64 %108, 0
br i1 %109, label %110, label %111
110: ; preds = %106
store i32 38, i32* %1
br label %145
111: ; preds = %106
%112 = tail call i32 @strlen(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
%113 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0), i32 %112)
%114 = icmp eq i64 %113, 0
br i1 %114, label %115, label %116
115: ; preds = %111
store i32 44, i32* %1
br label %145
116: ; preds = %111
%117 = tail call i32 @strlen(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0))
%118 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0), i32 %117)
%119 = icmp eq i64 %118, 0
br i1 %119, label %120, label %121
120: ; preds = %116
store i32 46, i32* %1
br label %145
121: ; preds = %116
%122 = bitcast i8** %3 to i8*
store i64 0, i64* @errno
%123 = call i32 @strtol(i8* %0, i8** %3, i32 2)
%124 = load i64, i64* @errno
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %132
126: ; preds = %121
%127 = load i8*, i8** %3
%128 = load i8, i8* %127
%129 = icmp ne i8 %128, 0
%130 = icmp sgt i32 %123, 63
%131 = select i1 %129, i1 true, i1 %130
br i1 %131, label %132, label %143
132: ; preds = %126, %121
store i64 0, i64* @errno
%133 = call i32 @strtol(i8* %0, i8** %3, i32 0)
%134 = load i64, i64* @errno
%135 = icmp eq i64 %134, 0
br i1 %135, label %136, label %142
136: ; preds = %132
%137 = load i8*, i8** %3
%138 = load i8, i8* %137
%139 = icmp ne i8 %138, 0
%140 = icmp sgt i32 %133, 63
%141 = select i1 %139, i1 true, i1 %140
br i1 %141, label %142, label %143
142: ; preds = %136, %132
store i32 0, i32* %1
br label %145
143: ; preds = %126, %136
%144 = phi i32 [ %133, %136 ], [ %123, %126 ]
store i32 %144, i32* %1
br label %145
145: ; preds = %15, %25, %35, %45, %55, %65, %75, %85, %95, %105, %115, %120, %110, %100, %90, %80, %70, %60, %50, %40, %30, %20, %143, %142
%146 = phi i32 [ -1, %142 ], [ 0, %143 ], [ 0, %20 ], [ 0, %30 ], [ 0, %40 ], [ 0, %50 ], [ 0, %60 ], [ 0, %70 ], [ 0, %80 ], [ 0, %90 ], [ 0, %100 ], [ 0, %110 ], [ 0, %120 ], [ 0, %115 ], [ 0, %105 ], [ 0, %95 ], [ 0, %85 ], [ 0, %75 ], [ 0, %65 ], [ 0, %55 ], [ 0, %45 ], [ 0, %35 ], [ 0, %25 ], [ 0, %15 ]
ret i32 %146
}