#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 xfrm_lifetime_cfg {
  int /*<<< orphan*/ hard_packet_limit;
  int /*<<< orphan*/ soft_packet_limit;
  int /*<<< orphan*/ hard_byte_limit;
  int /*<<< orphan*/ soft_byte_limit;
  int /*<<< orphan*/ hard_use_expires_seconds;
  int /*<<< orphan*/ soft_use_expires_seconds;
  int /*<<< orphan*/ hard_add_expires_seconds;
  int /*<<< orphan*/ soft_add_expires_seconds;
};

/* Variables and functions */
int /*<<< orphan*/ NEXT_ARG();
int get_u64(int /*<<< orphan*/ *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ invarg(char *, char *);
scalar_t__ strcmp(char *, char *);
int xfrm_lifetime_cfg_parse(struct xfrm_lifetime_cfg *lft, int *argcp,
                            char ***argvp) {
  int argc = *argcp;
  char **argv = *argvp;
  int ret;
  if (strcmp(*argv, "time-soft") == 0) {
    NEXT_ARG();
    ret = get_u64(&lft->soft_add_expires_seconds, *argv, 0);
    if (ret)
      invarg("\"time-soft\" value is invalid", *argv);
  } else if (strcmp(*argv, "time-hard") == 0) {
    NEXT_ARG();
    ret = get_u64(&lft->hard_add_expires_seconds, *argv, 0);
    if (ret)
      invarg("\"time-hard\" value is invalid", *argv);
  } else if (strcmp(*argv, "time-use-soft") == 0) {
    NEXT_ARG();
    ret = get_u64(&lft->soft_use_expires_seconds, *argv, 0);
    if (ret)
      invarg("\"time-use-soft\" value is invalid", *argv);
  } else if (strcmp(*argv, "time-use-hard") == 0) {
    NEXT_ARG();
    ret = get_u64(&lft->hard_use_expires_seconds, *argv, 0);
    if (ret)
      invarg("\"time-use-hard\" value is invalid", *argv);
  } else if (strcmp(*argv, "byte-soft") == 0) {
    NEXT_ARG();
    ret = get_u64(&lft->soft_byte_limit, *argv, 0);
    if (ret)
      invarg("\"byte-soft\" value is invalid", *argv);
  } else if (strcmp(*argv, "byte-hard") == 0) {
    NEXT_ARG();
    ret = get_u64(&lft->hard_byte_limit, *argv, 0);
    if (ret)
      invarg("\"byte-hard\" value is invalid", *argv);
  } else if (strcmp(*argv, "packet-soft") == 0) {
    NEXT_ARG();
    ret = get_u64(&lft->soft_packet_limit, *argv, 0);
    if (ret)
      invarg("\"packet-soft\" value is invalid", *argv);
  } else if (strcmp(*argv, "packet-hard") == 0) {
    NEXT_ARG();
    ret = get_u64(&lft->hard_packet_limit, *argv, 0);
    if (ret)
      invarg("\"packet-hard\" value is invalid", *argv);
  } else
    invarg("\"LIMIT\" is invalid", *argv);
  *argcp = argc;
  *argvp = argv;
  return 0;
}


x86 assembly (clang, -O0):
<xfrm_lifetime_cfg_parse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
lea    0xe8a(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11c7 <xfrm_lifetime_cfg_parse+0x87>
mov    $0x0,%al
call   1050 <NEXT_ARG@plt>
mov    -0x8(%rbp),%rdi
add    $0x1c,%rdi
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
xor    %edx,%edx
call   1030 <get_u64@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     11c2 <xfrm_lifetime_cfg_parse+0x82>
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
lea    0xe4d(%rip),%rdi
call   1060 <invarg@plt>
jmp    1492 <xfrm_lifetime_cfg_parse+0x352>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
lea    0xe52(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1226 <xfrm_lifetime_cfg_parse+0xe6>
mov    $0x0,%al
call   1050 <NEXT_ARG@plt>
mov    -0x8(%rbp),%rdi
add    $0x18,%rdi
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
xor    %edx,%edx
call   1030 <get_u64@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1221 <xfrm_lifetime_cfg_parse+0xe1>
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
lea    0xe15(%rip),%rdi
call   1060 <invarg@plt>
jmp    148d <xfrm_lifetime_cfg_parse+0x34d>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
lea    0xe1a(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1285 <xfrm_lifetime_cfg_parse+0x145>
mov    $0x0,%al
call   1050 <NEXT_ARG@plt>
mov    -0x8(%rbp),%rdi
add    $0x14,%rdi
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
xor    %edx,%edx
call   1030 <get_u64@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1280 <xfrm_lifetime_cfg_parse+0x140>
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
lea    0xde1(%rip),%rdi
call   1060 <invarg@plt>
jmp    1488 <xfrm_lifetime_cfg_parse+0x348>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
lea    0xdea(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12e4 <xfrm_lifetime_cfg_parse+0x1a4>
mov    $0x0,%al
call   1050 <NEXT_ARG@plt>
mov    -0x8(%rbp),%rdi
add    $0x10,%rdi
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
xor    %edx,%edx
call   1030 <get_u64@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     12df <xfrm_lifetime_cfg_parse+0x19f>
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
lea    0xdb1(%rip),%rdi
call   1060 <invarg@plt>
jmp    1483 <xfrm_lifetime_cfg_parse+0x343>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
lea    0xdba(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1343 <xfrm_lifetime_cfg_parse+0x203>
mov    $0x0,%al
call   1050 <NEXT_ARG@plt>
mov    -0x8(%rbp),%rdi
add    $0xc,%rdi
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
xor    %edx,%edx
call   1030 <get_u64@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     133e <xfrm_lifetime_cfg_parse+0x1fe>
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
lea    0xd7d(%rip),%rdi
call   1060 <invarg@plt>
jmp    147e <xfrm_lifetime_cfg_parse+0x33e>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
lea    0xd82(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    13a2 <xfrm_lifetime_cfg_parse+0x262>
mov    $0x0,%al
call   1050 <NEXT_ARG@plt>
mov    -0x8(%rbp),%rdi
add    $0x8,%rdi
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
xor    %edx,%edx
call   1030 <get_u64@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     139d <xfrm_lifetime_cfg_parse+0x25d>
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
lea    0xd45(%rip),%rdi
call   1060 <invarg@plt>
jmp    1479 <xfrm_lifetime_cfg_parse+0x339>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
lea    0xd4a(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1401 <xfrm_lifetime_cfg_parse+0x2c1>
mov    $0x0,%al
call   1050 <NEXT_ARG@plt>
mov    -0x8(%rbp),%rdi
add    $0x4,%rdi
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
xor    %edx,%edx
call   1030 <get_u64@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     13fc <xfrm_lifetime_cfg_parse+0x2bc>
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
lea    0xd0f(%rip),%rdi
call   1060 <invarg@plt>
jmp    1474 <xfrm_lifetime_cfg_parse+0x334>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
lea    0xd16(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    145c <xfrm_lifetime_cfg_parse+0x31c>
mov    $0x0,%al
call   1050 <NEXT_ARG@plt>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
xor    %edx,%edx
call   1030 <get_u64@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1457 <xfrm_lifetime_cfg_parse+0x317>
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
lea    0xcdf(%rip),%rdi
call   1060 <invarg@plt>
jmp    146f <xfrm_lifetime_cfg_parse+0x32f>
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
lea    0xce6(%rip),%rdi
call   1060 <invarg@plt>
jmp    1474 <xfrm_lifetime_cfg_parse+0x334>
jmp    1479 <xfrm_lifetime_cfg_parse+0x339>
jmp    147e <xfrm_lifetime_cfg_parse+0x33e>
jmp    1483 <xfrm_lifetime_cfg_parse+0x343>
jmp    1488 <xfrm_lifetime_cfg_parse+0x348>
jmp    148d <xfrm_lifetime_cfg_parse+0x34d>
jmp    1492 <xfrm_lifetime_cfg_parse+0x352>
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x28(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xfrm_lifetime_cfg_parse>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
mov    (%rsi),%r12d
mov    (%rdx),%rbp
mov    0x0(%rbp),%rdi
lea    0xe9e(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     122b <xfrm_lifetime_cfg_parse+0xeb>
mov    0x0(%rbp),%rdi
lea    0xeac(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1258 <xfrm_lifetime_cfg_parse+0x118>
mov    0x0(%rbp),%rdi
lea    0xeba(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1285 <xfrm_lifetime_cfg_parse+0x145>
mov    0x0(%rbp),%rdi
lea    0xed0(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12b2 <xfrm_lifetime_cfg_parse+0x172>
mov    0x0(%rbp),%rdi
lea    0xee6(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12df <xfrm_lifetime_cfg_parse+0x19f>
mov    0x0(%rbp),%rdi
lea    0xef4(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1305 <xfrm_lifetime_cfg_parse+0x1c5>
mov    0x0(%rbp),%rdi
lea    0xf02(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     132b <xfrm_lifetime_cfg_parse+0x1eb>
mov    0x0(%rbp),%rdi
lea    0xf14(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1351 <xfrm_lifetime_cfg_parse+0x211>
lea    0xf2a(%rip),%rdi
jmp    1371 <xfrm_lifetime_cfg_parse+0x231>
xor    %eax,%eax
call   1050 <NEXT_ARG@plt>
add    $0x1c,%rbx
mov    0x0(%rbp),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <get_u64@plt>
test   %eax,%eax
je     137a <xfrm_lifetime_cfg_parse+0x23a>
lea    0xdb7(%rip),%rdi
jmp    1371 <xfrm_lifetime_cfg_parse+0x231>
xor    %eax,%eax
call   1050 <NEXT_ARG@plt>
add    $0x18,%rbx
mov    0x0(%rbp),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <get_u64@plt>
test   %eax,%eax
je     137a <xfrm_lifetime_cfg_parse+0x23a>
lea    0xdb1(%rip),%rdi
jmp    1371 <xfrm_lifetime_cfg_parse+0x231>
xor    %eax,%eax
call   1050 <NEXT_ARG@plt>
add    $0x14,%rbx
mov    0x0(%rbp),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <get_u64@plt>
test   %eax,%eax
je     137a <xfrm_lifetime_cfg_parse+0x23a>
lea    0xdaf(%rip),%rdi
jmp    1371 <xfrm_lifetime_cfg_parse+0x231>
xor    %eax,%eax
call   1050 <NEXT_ARG@plt>
add    $0x10,%rbx
mov    0x0(%rbp),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <get_u64@plt>
test   %eax,%eax
je     137a <xfrm_lifetime_cfg_parse+0x23a>
lea    0xdb1(%rip),%rdi
jmp    1371 <xfrm_lifetime_cfg_parse+0x231>
xor    %eax,%eax
call   1050 <NEXT_ARG@plt>
add    $0xc,%rbx
mov    0x0(%rbp),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <get_u64@plt>
test   %eax,%eax
je     137a <xfrm_lifetime_cfg_parse+0x23a>
lea    0xdb3(%rip),%rdi
jmp    1371 <xfrm_lifetime_cfg_parse+0x231>
xor    %eax,%eax
call   1050 <NEXT_ARG@plt>
add    $0x8,%rbx
mov    0x0(%rbp),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <get_u64@plt>
test   %eax,%eax
je     137a <xfrm_lifetime_cfg_parse+0x23a>
lea    0xdb4(%rip),%rdi
jmp    1371 <xfrm_lifetime_cfg_parse+0x231>
xor    %eax,%eax
call   1050 <NEXT_ARG@plt>
add    $0x4,%rbx
mov    0x0(%rbp),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <get_u64@plt>
test   %eax,%eax
je     137a <xfrm_lifetime_cfg_parse+0x23a>
lea    0xdb7(%rip),%rdi
jmp    1371 <xfrm_lifetime_cfg_parse+0x231>
xor    %eax,%eax
call   1050 <NEXT_ARG@plt>
mov    0x0(%rbp),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <get_u64@plt>
test   %eax,%eax
je     137a <xfrm_lifetime_cfg_parse+0x23a>
lea    0xdc0(%rip),%rdi
mov    0x0(%rbp),%rsi
call   1060 <invarg@plt>
mov    %r12d,(%r15)
mov    %rbp,(%r14)
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.xfrm_lifetime_cfg = type { i32, i32, i32, i32, i32, i32, i32, i32 }
@.str = [10 x i8] c"time-soft\00"
@.str.1 = [29 x i8] c"\22time-soft\22 value is invalid\00"
@.str.2 = [10 x i8] c"time-hard\00"
@.str.3 = [29 x i8] c"\22time-hard\22 value is invalid\00"
@.str.4 = [14 x i8] c"time-use-soft\00"
@.str.5 = [33 x i8] c"\22time-use-soft\22 value is invalid\00"
@.str.6 = [14 x i8] c"time-use-hard\00"
@.str.7 = [33 x i8] c"\22time-use-hard\22 value is invalid\00"
@.str.8 = [10 x i8] c"byte-soft\00"
@.str.9 = [29 x i8] c"\22byte-soft\22 value is invalid\00"
@.str.10 = [10 x i8] c"byte-hard\00"
@.str.11 = [29 x i8] c"\22byte-hard\22 value is invalid\00"
@.str.12 = [12 x i8] c"packet-soft\00"
@.str.13 = [31 x i8] c"\22packet-soft\22 value is invalid\00"
@.str.14 = [12 x i8] c"packet-hard\00"
@.str.15 = [31 x i8] c"\22packet-hard\22 value is invalid\00"
@.str.16 = [19 x i8] c"\22LIMIT\22 is invalid\00"
define i32 @xfrm_lifetime_cfg_parse(%struct.xfrm_lifetime_cfg* %0, i32* %1, i8*** %2) {
%4 = alloca %struct.xfrm_lifetime_cfg*
%5 = alloca i32*
%6 = alloca i8***
%7 = alloca i32
%8 = alloca i8**
%9 = alloca i32
store %struct.xfrm_lifetime_cfg* %0, %struct.xfrm_lifetime_cfg** %4
store i32* %1, i32** %5
store i8*** %2, i8**** %6
%10 = load i32*, i32** %5
%11 = load i32, i32* %10
store i32 %11, i32* %7
%12 = load i8***, i8**** %6
%13 = load i8**, i8*** %12
store i8** %13, i8*** %8
%14 = load i8**, i8*** %8
%15 = load i8*, i8** %14
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %32
18: ; preds = %3
%19 = call i32 (...) @NEXT_ARG()
%20 = load %struct.xfrm_lifetime_cfg*, %struct.xfrm_lifetime_cfg** %4
%21 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %20, i32 0, i32 7
%22 = load i8**, i8*** %8
%23 = load i8*, i8** %22
%24 = call i32 @get_u64(i32* %21, i8* %23, i32 0)
store i32 %24, i32* %9
%25 = load i32, i32* %9
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %18
%28 = load i8**, i8*** %8
%29 = load i8*, i8** %28
%30 = call i32 @invarg(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i8* %29)
br label %31
31: ; preds = %27, %18
br label %176
32: ; preds = %3
%33 = load i8**, i8*** %8
%34 = load i8*, i8** %33
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %51
37: ; preds = %32
%38 = call i32 (...) @NEXT_ARG()
%39 = load %struct.xfrm_lifetime_cfg*, %struct.xfrm_lifetime_cfg** %4
%40 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %39, i32 0, i32 6
%41 = load i8**, i8*** %8
%42 = load i8*, i8** %41
%43 = call i32 @get_u64(i32* %40, i8* %42, i32 0)
store i32 %43, i32* %9
%44 = load i32, i32* %9
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %37
%47 = load i8**, i8*** %8
%48 = load i8*, i8** %47
%49 = call i32 @invarg(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i8* %48)
br label %50
50: ; preds = %46, %37
br label %175
51: ; preds = %32
%52 = load i8**, i8*** %8
%53 = load i8*, i8** %52
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %70
56: ; preds = %51
%57 = call i32 (...) @NEXT_ARG()
%58 = load %struct.xfrm_lifetime_cfg*, %struct.xfrm_lifetime_cfg** %4
%59 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %58, i32 0, i32 5
%60 = load i8**, i8*** %8
%61 = load i8*, i8** %60
%62 = call i32 @get_u64(i32* %59, i8* %61, i32 0)
store i32 %62, i32* %9
%63 = load i32, i32* %9
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %69
65: ; preds = %56
%66 = load i8**, i8*** %8
%67 = load i8*, i8** %66
%68 = call i32 @invarg(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %67)
br label %69
69: ; preds = %65, %56
br label %174
70: ; preds = %51
%71 = load i8**, i8*** %8
%72 = load i8*, i8** %71
%73 = call i64 @strcmp(i8* %72, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %89
75: ; preds = %70
%76 = call i32 (...) @NEXT_ARG()
%77 = load %struct.xfrm_lifetime_cfg*, %struct.xfrm_lifetime_cfg** %4
%78 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %77, i32 0, i32 4
%79 = load i8**, i8*** %8
%80 = load i8*, i8** %79
%81 = call i32 @get_u64(i32* %78, i8* %80, i32 0)
store i32 %81, i32* %9
%82 = load i32, i32* %9
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %88
84: ; preds = %75
%85 = load i8**, i8*** %8
%86 = load i8*, i8** %85
%87 = call i32 @invarg(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i8* %86)
br label %88
88: ; preds = %84, %75
br label %173
89: ; preds = %70
%90 = load i8**, i8*** %8
%91 = load i8*, i8** %90
%92 = call i64 @strcmp(i8* %91, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%93 = icmp eq i64 %92, 0
br i1 %93, label %94, label %108
94: ; preds = %89
%95 = call i32 (...) @NEXT_ARG()
%96 = load %struct.xfrm_lifetime_cfg*, %struct.xfrm_lifetime_cfg** %4
%97 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %96, i32 0, i32 3
%98 = load i8**, i8*** %8
%99 = load i8*, i8** %98
%100 = call i32 @get_u64(i32* %97, i8* %99, i32 0)
store i32 %100, i32* %9
%101 = load i32, i32* %9
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %107
103: ; preds = %94
%104 = load i8**, i8*** %8
%105 = load i8*, i8** %104
%106 = call i32 @invarg(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i8* %105)
br label %107
107: ; preds = %103, %94
br label %172
108: ; preds = %89
%109 = load i8**, i8*** %8
%110 = load i8*, i8** %109
%111 = call i64 @strcmp(i8* %110, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %127
113: ; preds = %108
%114 = call i32 (...) @NEXT_ARG()
%115 = load %struct.xfrm_lifetime_cfg*, %struct.xfrm_lifetime_cfg** %4
%116 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %115, i32 0, i32 2
%117 = load i8**, i8*** %8
%118 = load i8*, i8** %117
%119 = call i32 @get_u64(i32* %116, i8* %118, i32 0)
store i32 %119, i32* %9
%120 = load i32, i32* %9
%121 = icmp ne i32 %120, 0
br i1 %121, label %122, label %126
122: ; preds = %113
%123 = load i8**, i8*** %8
%124 = load i8*, i8** %123
%125 = call i32 @invarg(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i8* %124)
br label %126
126: ; preds = %122, %113
br label %171
127: ; preds = %108
%128 = load i8**, i8*** %8
%129 = load i8*, i8** %128
%130 = call i64 @strcmp(i8* %129, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%131 = icmp eq i64 %130, 0
br i1 %131, label %132, label %146
132: ; preds = %127
%133 = call i32 (...) @NEXT_ARG()
%134 = load %struct.xfrm_lifetime_cfg*, %struct.xfrm_lifetime_cfg** %4
%135 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %134, i32 0, i32 1
%136 = load i8**, i8*** %8
%137 = load i8*, i8** %136
%138 = call i32 @get_u64(i32* %135, i8* %137, i32 0)
store i32 %138, i32* %9
%139 = load i32, i32* %9
%140 = icmp ne i32 %139, 0
br i1 %140, label %141, label %145
141: ; preds = %132
%142 = load i8**, i8*** %8
%143 = load i8*, i8** %142
%144 = call i32 @invarg(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0), i8* %143)
br label %145
145: ; preds = %141, %132
br label %170
146: ; preds = %127
%147 = load i8**, i8*** %8
%148 = load i8*, i8** %147
%149 = call i64 @strcmp(i8* %148, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
%150 = icmp eq i64 %149, 0
br i1 %150, label %151, label %165
151: ; preds = %146
%152 = call i32 (...) @NEXT_ARG()
%153 = load %struct.xfrm_lifetime_cfg*, %struct.xfrm_lifetime_cfg** %4
%154 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %153, i32 0, i32 0
%155 = load i8**, i8*** %8
%156 = load i8*, i8** %155
%157 = call i32 @get_u64(i32* %154, i8* %156, i32 0)
store i32 %157, i32* %9
%158 = load i32, i32* %9
%159 = icmp ne i32 %158, 0
br i1 %159, label %160, label %164
160: ; preds = %151
%161 = load i8**, i8*** %8
%162 = load i8*, i8** %161
%163 = call i32 @invarg(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), i8* %162)
br label %164
164: ; preds = %160, %151
br label %169
165: ; preds = %146
%166 = load i8**, i8*** %8
%167 = load i8*, i8** %166
%168 = call i32 @invarg(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0), i8* %167)
br label %169
169: ; preds = %165, %164
br label %170
170: ; preds = %169, %145
br label %171
171: ; preds = %170, %126
br label %172
172: ; preds = %171, %107
br label %173
173: ; preds = %172, %88
br label %174
174: ; preds = %173, %69
br label %175
175: ; preds = %174, %50
br label %176
176: ; preds = %175, %31
%177 = load i32, i32* %7
%178 = load i32*, i32** %5
store i32 %177, i32* %178
%179 = load i8**, i8*** %8
%180 = load i8***, i8**** %6
store i8** %179, i8*** %180
ret i32 0
}

LLVM IR (-O2):
%struct.xfrm_lifetime_cfg = type { i32, i32, i32, i32, i32, i32, i32, i32 }
@.str = [10 x i8] c"time-soft\00"
@.str.1 = [29 x i8] c"\22time-soft\22 value is invalid\00"
@.str.2 = [10 x i8] c"time-hard\00"
@.str.3 = [29 x i8] c"\22time-hard\22 value is invalid\00"
@.str.4 = [14 x i8] c"time-use-soft\00"
@.str.5 = [33 x i8] c"\22time-use-soft\22 value is invalid\00"
@.str.6 = [14 x i8] c"time-use-hard\00"
@.str.7 = [33 x i8] c"\22time-use-hard\22 value is invalid\00"
@.str.8 = [10 x i8] c"byte-soft\00"
@.str.9 = [29 x i8] c"\22byte-soft\22 value is invalid\00"
@.str.10 = [10 x i8] c"byte-hard\00"
@.str.11 = [29 x i8] c"\22byte-hard\22 value is invalid\00"
@.str.12 = [12 x i8] c"packet-soft\00"
@.str.13 = [31 x i8] c"\22packet-soft\22 value is invalid\00"
@.str.14 = [12 x i8] c"packet-hard\00"
@.str.15 = [31 x i8] c"\22packet-hard\22 value is invalid\00"
@.str.16 = [19 x i8] c"\22LIMIT\22 is invalid\00"
define i32 @xfrm_lifetime_cfg_parse(%struct.xfrm_lifetime_cfg* %0, i32* nocapture %1, i8*** nocapture %2) {
%4 = load i32, i32* %1
%5 = load i8**, i8*** %2
%6 = load i8*, i8** %5
%7 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %3
%10 = tail call i32 (...) @NEXT_ARG()
%11 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %0, i64 0, i32 7
%12 = load i8*, i8** %5
%13 = tail call i32 @get_u64(i32* %11, i8* %12, i32 0)
%14 = icmp eq i32 %13, 0
br i1 %14, label %89, label %85
15: ; preds = %3
%16 = load i8*, i8** %5
%17 = tail call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %15
%20 = tail call i32 (...) @NEXT_ARG()
%21 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %0, i64 0, i32 6
%22 = load i8*, i8** %5
%23 = tail call i32 @get_u64(i32* %21, i8* %22, i32 0)
%24 = icmp eq i32 %23, 0
br i1 %24, label %89, label %85
25: ; preds = %15
%26 = load i8*, i8** %5
%27 = tail call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %35
29: ; preds = %25
%30 = tail call i32 (...) @NEXT_ARG()
%31 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %0, i64 0, i32 5
%32 = load i8*, i8** %5
%33 = tail call i32 @get_u64(i32* %31, i8* %32, i32 0)
%34 = icmp eq i32 %33, 0
br i1 %34, label %89, label %85
35: ; preds = %25
%36 = load i8*, i8** %5
%37 = tail call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %45
39: ; preds = %35
%40 = tail call i32 (...) @NEXT_ARG()
%41 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %0, i64 0, i32 4
%42 = load i8*, i8** %5
%43 = tail call i32 @get_u64(i32* %41, i8* %42, i32 0)
%44 = icmp eq i32 %43, 0
br i1 %44, label %89, label %85
45: ; preds = %35
%46 = load i8*, i8** %5
%47 = tail call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %55
49: ; preds = %45
%50 = tail call i32 (...) @NEXT_ARG()
%51 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %0, i64 0, i32 3
%52 = load i8*, i8** %5
%53 = tail call i32 @get_u64(i32* %51, i8* %52, i32 0)
%54 = icmp eq i32 %53, 0
br i1 %54, label %89, label %85
55: ; preds = %45
%56 = load i8*, i8** %5
%57 = tail call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %65
59: ; preds = %55
%60 = tail call i32 (...) @NEXT_ARG()
%61 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %0, i64 0, i32 2
%62 = load i8*, i8** %5
%63 = tail call i32 @get_u64(i32* %61, i8* %62, i32 0)
%64 = icmp eq i32 %63, 0
br i1 %64, label %89, label %85
65: ; preds = %55
%66 = load i8*, i8** %5
%67 = tail call i64 @strcmp(i8* %66, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %75
69: ; preds = %65
%70 = tail call i32 (...) @NEXT_ARG()
%71 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %0, i64 0, i32 1
%72 = load i8*, i8** %5
%73 = tail call i32 @get_u64(i32* %71, i8* %72, i32 0)
%74 = icmp eq i32 %73, 0
br i1 %74, label %89, label %85
75: ; preds = %65
%76 = load i8*, i8** %5
%77 = tail call i64 @strcmp(i8* %76, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %85
79: ; preds = %75
%80 = tail call i32 (...) @NEXT_ARG()
%81 = getelementptr inbounds %struct.xfrm_lifetime_cfg, %struct.xfrm_lifetime_cfg* %0, i64 0, i32 0
%82 = load i8*, i8** %5
%83 = tail call i32 @get_u64(i32* %81, i8* %82, i32 0)
%84 = icmp eq i32 %83, 0
br i1 %84, label %89, label %85
85: ; preds = %75, %79, %69, %59, %49, %39, %29, %19, %9
%86 = phi i8* [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), %9 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), %19 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), %29 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), %39 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), %49 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), %59 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0), %69 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), %79 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0), %75 ]
%87 = load i8*, i8** %5
%88 = tail call i32 @invarg(i8* %86, i8* %87)
br label %89
89: ; preds = %85, %19, %39, %59, %79, %69, %49, %29, %9
store i32 %4, i32* %1
store i8** %5, i8*** %2
ret i32 0
}