#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 */
struct tc_u32_sel {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ NEXT_ARG();
int parse_ip6_addr(int *, char ***, struct tc_u32_sel *, int);
int parse_u16(int *, char ***, struct tc_u32_sel *, int, int /*<<< orphan*/);
int parse_u32(int *, char ***, struct tc_u32_sel *, int /*<<< orphan*/,
              int /*<<< orphan*/);
int parse_u8(int *, char ***, struct tc_u32_sel *, int, int);
scalar_t__ strcmp(char *, char *);
int parse_ip6(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) {
  int res = -1;
  int argc = *argc_p;
  char **argv = *argv_p;
  if (argc < 2)
    return -1;
  if (strcmp(*argv, "src") == 0) {
    NEXT_ARG();
    res = parse_ip6_addr(&argc, &argv, sel, 8);
    goto done;
  }
  if (strcmp(*argv, "dst") == 0) {
    NEXT_ARG();
    res = parse_ip6_addr(&argc, &argv, sel, 24);
    goto done;
  }
  if (strcmp(*argv, "priority") == 0) {
    NEXT_ARG();
    res = parse_u8(&argc, &argv, sel, 0, 0);
    goto done;
  }
  if (strcmp(*argv, "protocol") == 0) {
    NEXT_ARG();
    res = parse_u8(&argc, &argv, sel, 6, 0);
    goto done;
  }
  if (strcmp(*argv, "flowlabel") == 0) {
    NEXT_ARG();
    res = parse_u32(&argc, &argv, sel, 0, 0);
    goto done;
  }
  if (strcmp(*argv, "dport") == 0) {
    NEXT_ARG();
    res = parse_u16(&argc, &argv, sel, 42, 0);
    goto done;
  }
  if (strcmp(*argv, "sport") == 0) {
    NEXT_ARG();
    res = parse_u16(&argc, &argv, sel, 40, 0);
    goto done;
  }
  if (strcmp(*argv, "icmp_type") == 0) {
    NEXT_ARG();
    res = parse_u8(&argc, &argv, sel, 40, 0);
    goto done;
  }
  if (strcmp(*argv, "icmp_code") == 0) {
    NEXT_ARG();
    res = parse_u8(&argc, &argv, sel, 41, 1);
    goto done;
  }
  return -1;
done:
  *argc_p = argc;
  *argv_p = argv;
  return res;
}


x86 assembly (clang, -O0):
<parse_ip6>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movl   $0xffffffff,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
cmpl   $0x2,-0x28(%rbp)
jge    11a5 <parse_ip6+0x45>
movl   $0xffffffff,-0x4(%rbp)
jmp    1431 <parse_ip6+0x2d1>
mov    -0x30(%rbp),%rax
mov    (%rax),%rdi
lea    0xe4d(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11e7 <parse_ip6+0x87>
mov    $0x0,%al
call   1070 <NEXT_ARG@plt>
mov    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x8,%ecx
call   1060 <parse_ip6_addr@plt>
mov    %eax,-0x24(%rbp)
jmp    1417 <parse_ip6+0x2b7>
mov    -0x30(%rbp),%rax
mov    (%rax),%rdi
lea    0xe0f(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1229 <parse_ip6+0xc9>
mov    $0x0,%al
call   1070 <NEXT_ARG@plt>
mov    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x18,%ecx
call   1060 <parse_ip6_addr@plt>
mov    %eax,-0x24(%rbp)
jmp    1417 <parse_ip6+0x2b7>
mov    -0x30(%rbp),%rax
mov    (%rax),%rdi
lea    0xdd1(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    126c <parse_ip6+0x10c>
mov    $0x0,%al
call   1070 <NEXT_ARG@plt>
mov    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
xor    %r8d,%r8d
mov    %r8d,%ecx
call   1080 <parse_u8@plt>
mov    %eax,-0x24(%rbp)
jmp    1417 <parse_ip6+0x2b7>
mov    -0x30(%rbp),%rax
mov    (%rax),%rdi
lea    0xd97(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12b1 <parse_ip6+0x151>
mov    $0x0,%al
call   1070 <NEXT_ARG@plt>
mov    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x6,%ecx
xor    %r8d,%r8d
call   1080 <parse_u8@plt>
mov    %eax,-0x24(%rbp)
jmp    1417 <parse_ip6+0x2b7>
mov    -0x30(%rbp),%rax
mov    (%rax),%rdi
lea    0xd5b(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12f4 <parse_ip6+0x194>
mov    $0x0,%al
call   1070 <NEXT_ARG@plt>
mov    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
xor    %r8d,%r8d
mov    %r8d,%ecx
call   1040 <parse_u32@plt>
mov    %eax,-0x24(%rbp)
jmp    1417 <parse_ip6+0x2b7>
mov    -0x30(%rbp),%rax
mov    (%rax),%rdi
lea    0xd22(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1339 <parse_ip6+0x1d9>
mov    $0x0,%al
call   1070 <NEXT_ARG@plt>
mov    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x2a,%ecx
xor    %r8d,%r8d
call   1030 <parse_u16@plt>
mov    %eax,-0x24(%rbp)
jmp    1417 <parse_ip6+0x2b7>
mov    -0x30(%rbp),%rax
mov    (%rax),%rdi
lea    0xce3(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    137e <parse_ip6+0x21e>
mov    $0x0,%al
call   1070 <NEXT_ARG@plt>
mov    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x28,%ecx
xor    %r8d,%r8d
call   1030 <parse_u16@plt>
mov    %eax,-0x24(%rbp)
jmp    1417 <parse_ip6+0x2b7>
mov    -0x30(%rbp),%rax
mov    (%rax),%rdi
lea    0xca4(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13c3 <parse_ip6+0x263>
mov    $0x0,%al
call   1070 <NEXT_ARG@plt>
mov    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x28,%ecx
xor    %r8d,%r8d
call   1080 <parse_u8@plt>
mov    %eax,-0x24(%rbp)
jmp    1417 <parse_ip6+0x2b7>
mov    -0x30(%rbp),%rax
mov    (%rax),%rdi
lea    0xc69(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    140b <parse_ip6+0x2ab>
mov    $0x0,%al
call   1070 <NEXT_ARG@plt>
mov    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x29,%ecx
mov    $0x1,%r8d
call   1080 <parse_u8@plt>
mov    %eax,-0x24(%rbp)
jmp    1417 <parse_ip6+0x2b7>
movl   $0xffffffff,-0x4(%rbp)
jmp    1431 <parse_ip6+0x2d1>
mov    -0x28(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x30(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x24(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_ip6>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    (%rdi),%eax
mov    %eax,0x4(%rsp)
mov    (%rsi),%rbx
mov    %rbx,0x8(%rsp)
mov    $0xffffffff,%ebp
cmp    $0x2,%eax
jl     1315 <parse_ip6+0x1b5>
mov    %rdx,%r15
mov    %rsi,%r14
mov    %rdi,%r12
mov    (%rbx),%rdi
lea    0xe65(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     128a <parse_ip6+0x12a>
mov    (%rbx),%rdi
lea    0xe51(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12aa <parse_ip6+0x14a>
mov    (%rbx),%rdi
lea    0xe3d(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12ca <parse_ip6+0x16a>
mov    (%rbx),%rdi
lea    0xe2e(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12e2 <parse_ip6+0x182>
mov    (%rbx),%rdi
lea    0xe1f(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1324 <parse_ip6+0x1c4>
mov    (%rbx),%rdi
lea    0xe11(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1344 <parse_ip6+0x1e4>
mov    (%rbx),%rdi
lea    0xdff(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     135f <parse_ip6+0x1ff>
mov    (%rbx),%rdi
lea    0xded(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1382 <parse_ip6+0x222>
mov    (%rbx),%rdi
lea    0xddf(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    1315 <parse_ip6+0x1b5>
xor    %eax,%eax
call   1070 <NEXT_ARG@plt>
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %r15,%rdx
mov    $0x29,%ecx
mov    $0x1,%r8d
jmp    12fe <parse_ip6+0x19e>
xor    %eax,%eax
call   1070 <NEXT_ARG@plt>
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %r15,%rdx
mov    $0x8,%ecx
call   1060 <parse_ip6_addr@plt>
jmp    1303 <parse_ip6+0x1a3>
xor    %eax,%eax
call   1070 <NEXT_ARG@plt>
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %r15,%rdx
mov    $0x18,%ecx
call   1060 <parse_ip6_addr@plt>
jmp    1303 <parse_ip6+0x1a3>
xor    %eax,%eax
call   1070 <NEXT_ARG@plt>
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %r15,%rdx
xor    %ecx,%ecx
jmp    12fb <parse_ip6+0x19b>
xor    %eax,%eax
call   1070 <NEXT_ARG@plt>
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %r15,%rdx
mov    $0x6,%ecx
xor    %r8d,%r8d
call   1080 <parse_u8@plt>
mov    %eax,%ebp
mov    0x4(%rsp),%eax
mov    %eax,(%r12)
mov    0x8(%rsp),%rax
mov    %rax,(%r14)
mov    %ebp,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1070 <NEXT_ARG@plt>
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %r15,%rdx
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1040 <parse_u32@plt>
jmp    1303 <parse_ip6+0x1a3>
xor    %eax,%eax
call   1070 <NEXT_ARG@plt>
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %r15,%rdx
mov    $0x2a,%ecx
jmp    1378 <parse_ip6+0x218>
xor    %eax,%eax
call   1070 <NEXT_ARG@plt>
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %r15,%rdx
mov    $0x28,%ecx
xor    %r8d,%r8d
call   1030 <parse_u16@plt>
jmp    1303 <parse_ip6+0x1a3>
xor    %eax,%eax
call   1070 <NEXT_ARG@plt>
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %r15,%rdx
mov    $0x28,%ecx
jmp    12fb <parse_ip6+0x19b>

LLVM IR (-O0):
%struct.tc_u32_sel = type { i32 }
@.str = [4 x i8] c"src\00"
@.str.1 = [4 x i8] c"dst\00"
@.str.2 = [9 x i8] c"priority\00"
@.str.3 = [9 x i8] c"protocol\00"
@.str.4 = [10 x i8] c"flowlabel\00"
@.str.5 = [6 x i8] c"dport\00"
@.str.6 = [6 x i8] c"sport\00"
@.str.7 = [10 x i8] c"icmp_type\00"
@.str.8 = [10 x i8] c"icmp_code\00"
define i32 @parse_ip6(i32* %0, i8*** %1, %struct.tc_u32_sel* %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i8***
%7 = alloca %struct.tc_u32_sel*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8**
store i32* %0, i32** %5
store i8*** %1, i8**** %6
store %struct.tc_u32_sel* %2, %struct.tc_u32_sel** %7
store i32 -1, i32* %8
%11 = load i32*, i32** %5
%12 = load i32, i32* %11
store i32 %12, i32* %9
%13 = load i8***, i8**** %6
%14 = load i8**, i8*** %13
store i8** %14, i8*** %10
%15 = load i32, i32* %9
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %18
17: ; preds = %3
store i32 -1, i32* %4
br label %106
18: ; preds = %3
%19 = load i8**, i8*** %10
%20 = load i8*, i8** %19
%21 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %18
%24 = call i32 (...) @NEXT_ARG()
%25 = load %struct.tc_u32_sel*, %struct.tc_u32_sel** %7
%26 = call i32 @parse_ip6_addr(i32* %9, i8*** %10, %struct.tc_u32_sel* %25, i32 8)
store i32 %26, i32* %8
br label %100
27: ; preds = %18
%28 = load i8**, i8*** %10
%29 = load i8*, i8** %28
%30 = call i64 @strcmp(i8* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %27
%33 = call i32 (...) @NEXT_ARG()
%34 = load %struct.tc_u32_sel*, %struct.tc_u32_sel** %7
%35 = call i32 @parse_ip6_addr(i32* %9, i8*** %10, %struct.tc_u32_sel* %34, i32 24)
store i32 %35, i32* %8
br label %100
36: ; preds = %27
%37 = load i8**, i8*** %10
%38 = load i8*, i8** %37
%39 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %45
41: ; preds = %36
%42 = call i32 (...) @NEXT_ARG()
%43 = load %struct.tc_u32_sel*, %struct.tc_u32_sel** %7
%44 = call i32 @parse_u8(i32* %9, i8*** %10, %struct.tc_u32_sel* %43, i32 0, i32 0)
store i32 %44, i32* %8
br label %100
45: ; preds = %36
%46 = load i8**, i8*** %10
%47 = load i8*, i8** %46
%48 = call i64 @strcmp(i8* %47, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %45
%51 = call i32 (...) @NEXT_ARG()
%52 = load %struct.tc_u32_sel*, %struct.tc_u32_sel** %7
%53 = call i32 @parse_u8(i32* %9, i8*** %10, %struct.tc_u32_sel* %52, i32 6, i32 0)
store i32 %53, i32* %8
br label %100
54: ; preds = %45
%55 = load i8**, i8*** %10
%56 = load i8*, i8** %55
%57 = call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %54
%60 = call i32 (...) @NEXT_ARG()
%61 = load %struct.tc_u32_sel*, %struct.tc_u32_sel** %7
%62 = call i32 @parse_u32(i32* %9, i8*** %10, %struct.tc_u32_sel* %61, i32 0, i32 0)
store i32 %62, i32* %8
br label %100
63: ; preds = %54
%64 = load i8**, i8*** %10
%65 = load i8*, i8** %64
%66 = call i64 @strcmp(i8* %65, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %63
%69 = call i32 (...) @NEXT_ARG()
%70 = load %struct.tc_u32_sel*, %struct.tc_u32_sel** %7
%71 = call i32 @parse_u16(i32* %9, i8*** %10, %struct.tc_u32_sel* %70, i32 42, i32 0)
store i32 %71, i32* %8
br label %100
72: ; preds = %63
%73 = load i8**, i8*** %10
%74 = load i8*, i8** %73
%75 = call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %81
77: ; preds = %72
%78 = call i32 (...) @NEXT_ARG()
%79 = load %struct.tc_u32_sel*, %struct.tc_u32_sel** %7
%80 = call i32 @parse_u16(i32* %9, i8*** %10, %struct.tc_u32_sel* %79, i32 40, i32 0)
store i32 %80, i32* %8
br label %100
81: ; preds = %72
%82 = load i8**, i8*** %10
%83 = load i8*, i8** %82
%84 = call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %90
86: ; preds = %81
%87 = call i32 (...) @NEXT_ARG()
%88 = load %struct.tc_u32_sel*, %struct.tc_u32_sel** %7
%89 = call i32 @parse_u8(i32* %9, i8*** %10, %struct.tc_u32_sel* %88, i32 40, i32 0)
store i32 %89, i32* %8
br label %100
90: ; preds = %81
%91 = load i8**, i8*** %10
%92 = load i8*, i8** %91
%93 = call i64 @strcmp(i8* %92, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %99
95: ; preds = %90
%96 = call i32 (...) @NEXT_ARG()
%97 = load %struct.tc_u32_sel*, %struct.tc_u32_sel** %7
%98 = call i32 @parse_u8(i32* %9, i8*** %10, %struct.tc_u32_sel* %97, i32 41, i32 1)
store i32 %98, i32* %8
br label %100
99: ; preds = %90
store i32 -1, i32* %4
br label %106
100: ; preds = %95, %86, %77, %68, %59, %50, %41, %32, %23
%101 = load i32, i32* %9
%102 = load i32*, i32** %5
store i32 %101, i32* %102
%103 = load i8**, i8*** %10
%104 = load i8***, i8**** %6
store i8** %103, i8*** %104
%105 = load i32, i32* %8
store i32 %105, i32* %4
br label %106
106: ; preds = %100, %99, %17
%107 = load i32, i32* %4
ret i32 %107
}

LLVM IR (-O2):
%struct.tc_u32_sel = type { i32 }
@.str = [4 x i8] c"src\00"
@.str.1 = [4 x i8] c"dst\00"
@.str.2 = [9 x i8] c"priority\00"
@.str.3 = [9 x i8] c"protocol\00"
@.str.4 = [10 x i8] c"flowlabel\00"
@.str.5 = [6 x i8] c"dport\00"
@.str.6 = [6 x i8] c"sport\00"
@.str.7 = [10 x i8] c"icmp_type\00"
@.str.8 = [10 x i8] c"icmp_code\00"
define i32 @parse_ip6(i32* nocapture %0, i8*** nocapture %1, %struct.tc_u32_sel* %2) {
%4 = alloca i32
%5 = alloca i8**
%6 = bitcast i32* %4 to i8*
%7 = load i32, i32* %0
store i32 %7, i32* %4
%8 = bitcast i8*** %5 to i8*
%9 = load i8**, i8*** %1
store i8** %9, i8*** %5
%10 = icmp slt i32 %7, 2
br i1 %10, label %78, label %11
11: ; preds = %3
%12 = load i8*, i8** %9
%13 = tail call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = tail call i32 (...) @NEXT_ARG()
%17 = call i32 @parse_ip6_addr(i32* %4, i8*** %5, %struct.tc_u32_sel* %2, i32 8)
br label %74
18: ; preds = %11
%19 = load i8*, i8** %9
%20 = tail call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = tail call i32 (...) @NEXT_ARG()
%24 = call i32 @parse_ip6_addr(i32* %4, i8*** %5, %struct.tc_u32_sel* %2, i32 24)
br label %74
25: ; preds = %18
%26 = load i8*, i8** %9
%27 = tail call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = tail call i32 (...) @NEXT_ARG()
%31 = call i32 @parse_u8(i32* %4, i8*** %5, %struct.tc_u32_sel* %2, i32 0, i32 0)
br label %74
32: ; preds = %25
%33 = load i8*, i8** %9
%34 = tail call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %32
%37 = tail call i32 (...) @NEXT_ARG()
%38 = call i32 @parse_u8(i32* %4, i8*** %5, %struct.tc_u32_sel* %2, i32 6, i32 0)
br label %74
39: ; preds = %32
%40 = load i8*, i8** %9
%41 = tail call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %39
%44 = tail call i32 (...) @NEXT_ARG()
%45 = call i32 @parse_u32(i32* %4, i8*** %5, %struct.tc_u32_sel* %2, i32 0, i32 0)
br label %74
46: ; preds = %39
%47 = load i8*, i8** %9
%48 = tail call i64 @strcmp(i8* %47, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %53
50: ; preds = %46
%51 = tail call i32 (...) @NEXT_ARG()
%52 = call i32 @parse_u16(i32* %4, i8*** %5, %struct.tc_u32_sel* %2, i32 42, i32 0)
br label %74
53: ; preds = %46
%54 = load i8*, i8** %9
%55 = tail call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %60
57: ; preds = %53
%58 = tail call i32 (...) @NEXT_ARG()
%59 = call i32 @parse_u16(i32* %4, i8*** %5, %struct.tc_u32_sel* %2, i32 40, i32 0)
br label %74
60: ; preds = %53
%61 = load i8*, i8** %9
%62 = tail call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %67
64: ; preds = %60
%65 = tail call i32 (...) @NEXT_ARG()
%66 = call i32 @parse_u8(i32* %4, i8*** %5, %struct.tc_u32_sel* %2, i32 40, i32 0)
br label %74
67: ; preds = %60
%68 = load i8*, i8** %9
%69 = tail call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %78
71: ; preds = %67
%72 = tail call i32 (...) @NEXT_ARG()
%73 = call i32 @parse_u8(i32* %4, i8*** %5, %struct.tc_u32_sel* %2, i32 41, i32 1)
br label %74
74: ; preds = %71, %64, %57, %50, %43, %36, %29, %22, %15
%75 = phi i32 [ %17, %15 ], [ %24, %22 ], [ %31, %29 ], [ %38, %36 ], [ %45, %43 ], [ %52, %50 ], [ %59, %57 ], [ %66, %64 ], [ %73, %71 ]
%76 = load i32, i32* %4
store i32 %76, i32* %0
%77 = load i8**, i8*** %5
store i8** %77, i8*** %1
br label %78
78: ; preds = %67, %3, %74
%79 = phi i32 [ %75, %74 ], [ -1, %3 ], [ -1, %67 ]
ret i32 %79
}