#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 */
typedef struct TYPE_5__ TYPE_1__;

/* Type definitions */
struct TYPE_5__ {
  int flags;
  int /*<<< orphan*/ tag;
};
typedef int /*<<< orphan*/ ASN1_VALUE;
typedef int /*<<< orphan*/ ASN1_TLC;
typedef TYPE_1__ ASN1_TEMPLATE;

/* Variables and functions */
int /*<<< orphan*/ ASN1_R_EXPLICIT_LENGTH_MISMATCH;
int /*<<< orphan*/ ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED;
int /*<<< orphan*/ ASN1_R_MISSING_EOC;
int ASN1_TFLG_EXPTAG;
int ASN1_TFLG_TAG_CLASS;
int /*<<< orphan*/ ASN1_template_free(int /*<<< orphan*/ **, TYPE_1__ const *);
int /*<<< orphan*/ ASN1error(int /*<<< orphan*/);
int /*<<< orphan*/ ERR_R_NESTED_ASN1_ERROR;
int /*<<< orphan*/ asn1_check_eoc(unsigned char const **, long);
int asn1_check_tlen(long *, int /*<<< orphan*/ *, int /*<<< orphan*/ *, char *,
                    char *, unsigned char const **, long, int /*<<< orphan*/,
                    int, char, int /*<<< orphan*/ *);
int asn1_template_noexp_d2i(int /*<<< orphan*/ **, unsigned char const **, long,
                            TYPE_1__ const *, char, int /*<<< orphan*/ *);
int asn1_template_ex_d2i(ASN1_VALUE **val, const unsigned char **in, long inlen,
                         const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx) {
  int flags, aclass;
  int ret;
  long len;
  const unsigned char *p, *q;
  char exp_eoc;
  if (!val)
    return 0;
  flags = tt->flags;
  aclass = flags & ASN1_TFLG_TAG_CLASS;
  p = *in;
  if (flags & ASN1_TFLG_EXPTAG) {
    char cst;
    ret = asn1_check_tlen(&len, NULL, NULL, &exp_eoc, &cst, &p, inlen, tt->tag,
                          aclass, opt, ctx);
    q = p;
    if (!ret) {
      ASN1error(ERR_R_NESTED_ASN1_ERROR);
      return 0;
    } else if (ret == -1)
      return -1;
    if (!cst) {
      ASN1error(ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED);
      return 0;
    }
    ret = asn1_template_noexp_d2i(val, &p, len, tt, 0, ctx);
    if (!ret) {
      ASN1error(ERR_R_NESTED_ASN1_ERROR);
      return 0;
    }
    len -= p - q;
    if (exp_eoc) {
      if (!asn1_check_eoc(&p, len)) {
        ASN1error(ASN1_R_MISSING_EOC);
        goto err;
      }
    } else {
      if (len) {
        ASN1error(ASN1_R_EXPLICIT_LENGTH_MISMATCH);
        goto err;
      }
    }
  } else
    return asn1_template_noexp_d2i(val, in, inlen, tt, opt, ctx);
  *in = p;
  return 1;
err:
  ASN1_template_free(val, tt);
  return 0;
}


x86 assembly (clang, -O0):
<asn1_template_ex_d2i>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x90,%rsp
mov    %r8b,%al
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %al,-0x39(%rbp)
mov    %r9,-0x48(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    118f <asn1_template_ex_d2i+0x3f>
movl   $0x0,-0x14(%rbp)
jmp    138f <asn1_template_ex_d2i+0x23f>
mov    -0x38(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    0x2e36(%rip),%rcx
and    (%rcx),%eax
mov    %eax,-0x50(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x68(%rbp)
mov    -0x4c(%rbp),%eax
mov    0x2dfc(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     133c <asn1_template_ex_d2i+0x1ec>
mov    -0x30(%rbp),%r14
mov    -0x38(%rbp),%rax
mov    0x4(%rax),%ebx
mov    -0x50(%rbp),%r11d
mov    -0x39(%rbp),%r10b
mov    -0x48(%rbp),%rax
lea    -0x60(%rbp),%rdi
xor    %ecx,%ecx
mov    %ecx,%edx
lea    -0x71(%rbp),%rcx
lea    -0x72(%rbp),%r8
lea    -0x68(%rbp),%r9
mov    %rdx,%rsi
mov    %r14,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
movsbl %r10b,%r10d
mov    %r10d,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1030 <asn1_check_tlen@plt>
mov    %eax,-0x54(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0x70(%rbp)
cmpl   $0x0,-0x54(%rbp)
jne    1244 <asn1_template_ex_d2i+0xf4>
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
call   1070 <ASN1error@plt>
movl   $0x0,-0x14(%rbp)
jmp    138f <asn1_template_ex_d2i+0x23f>
cmpl   $0xffffffff,-0x54(%rbp)
jne    125a <asn1_template_ex_d2i+0x10a>
movl   $0xffffffff,-0x14(%rbp)
jmp    138f <asn1_template_ex_d2i+0x23f>
jmp    125f <asn1_template_ex_d2i+0x10f>
cmpb   $0x0,-0x72(%rbp)
jne    1283 <asn1_template_ex_d2i+0x133>
mov    0x2d50(%rip),%rax
mov    (%rax),%edi
call   1070 <ASN1error@plt>
movl   $0x0,-0x14(%rbp)
jmp    138f <asn1_template_ex_d2i+0x23f>
mov    -0x20(%rbp),%rdi
mov    -0x60(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x48(%rbp),%r9
lea    -0x68(%rbp),%rsi
xor    %r8d,%r8d
call   1060 <asn1_template_noexp_d2i@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
jne    12c6 <asn1_template_ex_d2i+0x176>
mov    0x2d1d(%rip),%rax
mov    (%rax),%edi
call   1070 <ASN1error@plt>
movl   $0x0,-0x14(%rbp)
jmp    138f <asn1_template_ex_d2i+0x23f>
mov    -0x68(%rbp),%rcx
mov    -0x70(%rbp),%rax
sub    %rax,%rcx
mov    -0x60(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x60(%rbp)
cmpb   $0x0,-0x71(%rbp)
je     1314 <asn1_template_ex_d2i+0x1c4>
mov    -0x60(%rbp),%rsi
lea    -0x68(%rbp),%rdi
call   1050 <asn1_check_eoc@plt>
cmp    $0x0,%eax
jne    130f <asn1_template_ex_d2i+0x1bf>
mov    0x2cdd(%rip),%rax
mov    (%rax),%edi
call   1070 <ASN1error@plt>
jmp    137b <asn1_template_ex_d2i+0x22b>
jmp    1337 <asn1_template_ex_d2i+0x1e7>
cmpq   $0x0,-0x60(%rbp)
je     1332 <asn1_template_ex_d2i+0x1e2>
mov    0x2cc2(%rip),%rax
mov    (%rax),%edi
call   1070 <ASN1error@plt>
jmp    137b <asn1_template_ex_d2i+0x22b>
jmp    1337 <asn1_template_ex_d2i+0x1e7>
jmp    1364 <asn1_template_ex_d2i+0x214>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x39(%rbp),%al
mov    -0x48(%rbp),%r9
movsbl %al,%r8d
call   1060 <asn1_template_noexp_d2i@plt>
mov    %eax,-0x14(%rbp)
jmp    138f <asn1_template_ex_d2i+0x23f>
mov    -0x68(%rbp),%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x1,-0x14(%rbp)
jmp    138f <asn1_template_ex_d2i+0x23f>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1040 <ASN1_template_free@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x90,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<asn1_template_ex_d2i>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
test   %rdi,%rdi
je     1277 <asn1_template_ex_d2i+0x127>
mov    %r9,%r12
mov    %rcx,%r14
mov    %rdx,%rax
mov    %rsi,%r15
mov    %rdi,%r13
mov    (%rcx),%ecx
mov    0x2e59(%rip),%rdx
mov    (%rdx),%ebp
mov    (%rsi),%rdx
mov    %rdx,0x8(%rsp)
mov    0x2e28(%rip),%rdx
test   %ecx,(%rdx)
je     1242 <asn1_template_ex_d2i+0xf2>
and    %ecx,%ebp
mov    0x4(%r14),%r10d
sub    $0x8,%rsp
movsbl %r8b,%ebx
lea    0x18(%rsp),%rdi
lea    0xf(%rsp),%rcx
lea    0xe(%rsp),%r8
lea    0x10(%rsp),%r9
xor    %esi,%esi
xor    %edx,%edx
push   %r12
push   %rbx
push   %rbp
push   %r10
push   %rax
call   1030 <asn1_check_tlen@plt>
add    $0x30,%rsp
cmp    $0xffffffff,%eax
je     1279 <asn1_template_ex_d2i+0x129>
mov    0x2df2(%rip),%rbp
test   %eax,%eax
je     126f <asn1_template_ex_d2i+0x11f>
cmpb   $0x0,0x6(%rsp)
je     1268 <asn1_template_ex_d2i+0x118>
mov    0x8(%rsp),%rbx
mov    0x10(%rsp),%rdx
lea    0x8(%rsp),%rsi
mov    %r13,%rdi
mov    %r14,%rcx
xor    %r8d,%r8d
mov    %r12,%r9
call   1060 <asn1_template_noexp_d2i@plt>
test   %eax,%eax
je     126f <asn1_template_ex_d2i+0x11f>
mov    0x8(%rsp),%rax
sub    %rax,%rbx
add    0x10(%rsp),%rbx
mov    %rbx,0x10(%rsp)
cmpb   $0x0,0x7(%rsp)
je     1288 <asn1_template_ex_d2i+0x138>
lea    0x8(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <asn1_check_eoc@plt>
test   %eax,%eax
je     12a0 <asn1_template_ex_d2i+0x150>
mov    0x8(%rsp),%rax
jmp    1296 <asn1_template_ex_d2i+0x146>
movsbl %r8b,%r8d
mov    %r13,%rdi
mov    %r15,%rsi
mov    %rax,%rdx
mov    %r14,%rcx
mov    %r12,%r9
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <asn1_template_noexp_d2i@plt>
mov    0x2d51(%rip),%rbp
mov    0x0(%rbp),%edi
call   1070 <ASN1error@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
test   %rbx,%rbx
je     1296 <asn1_template_ex_d2i+0x146>
mov    0x2d54(%rip),%rax
jmp    12a7 <asn1_template_ex_d2i+0x157>
mov    %rax,(%r15)
mov    $0x1,%eax
jmp    1279 <asn1_template_ex_d2i+0x129>
mov    0x2d39(%rip),%rax
mov    (%rax),%edi
call   1070 <ASN1error@plt>
mov    %r13,%rdi
mov    %r14,%rsi
call   1040 <ASN1_template_free@plt>
jmp    1277 <asn1_template_ex_d2i+0x127>

LLVM IR (-O0):
%struct.TYPE_5__ = type { i32, i32 }
@ASN1_TFLG_TAG_CLASS = global i32 0
@ASN1_TFLG_EXPTAG = global i32 0
@ERR_R_NESTED_ASN1_ERROR = global i32 0
@ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED = global i32 0
@ASN1_R_MISSING_EOC = global i32 0
@ASN1_R_EXPLICIT_LENGTH_MISMATCH = global i32 0
define i32 @asn1_template_ex_d2i(i32** %0, i8** %1, i64 %2, %struct.TYPE_5__* %3, i8 signext %4, i32* %5) {
%7 = alloca i32
%8 = alloca i32**
%9 = alloca i8**
%10 = alloca i64
%11 = alloca %struct.TYPE_5__*
%12 = alloca i8
%13 = alloca i32*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i64
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8
%21 = alloca i8
store i32** %0, i32*** %8
store i8** %1, i8*** %9
store i64 %2, i64* %10
store %struct.TYPE_5__* %3, %struct.TYPE_5__** %11
store i8 %4, i8* %12
store i32* %5, i32** %13
%22 = load i32**, i32*** %8
%23 = icmp ne i32** %22, null
br i1 %23, label %25, label %24
24: ; preds = %6
store i32 0, i32* %7
br label %116
25: ; preds = %6
%26 = load %struct.TYPE_5__*, %struct.TYPE_5__** %11
%27 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %26, i32 0, i32 0
%28 = load i32, i32* %27
store i32 %28, i32* %14
%29 = load i32, i32* %14
%30 = load i32, i32* @ASN1_TFLG_TAG_CLASS
%31 = and i32 %29, %30
store i32 %31, i32* %15
%32 = load i8**, i8*** %9
%33 = load i8*, i8** %32
store i8* %33, i8** %18
%34 = load i32, i32* %14
%35 = load i32, i32* @ASN1_TFLG_EXPTAG
%36 = and i32 %34, %35
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %101
38: ; preds = %25
%39 = load i64, i64* %10
%40 = load %struct.TYPE_5__*, %struct.TYPE_5__** %11
%41 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %40, i32 0, i32 1
%42 = load i32, i32* %41
%43 = load i32, i32* %15
%44 = load i8, i8* %12
%45 = load i32*, i32** %13
%46 = call i32 @asn1_check_tlen(i64* %17, i32* null, i32* null, i8* %20, i8* %21, i8** %18, i64 %39, i32 %42, i32 %43, i8 signext %44, i32* %45)
store i32 %46, i32* %16
%47 = load i8*, i8** %18
store i8* %47, i8** %19
%48 = load i32, i32* %16
%49 = icmp ne i32 %48, 0
br i1 %49, label %53, label %50
50: ; preds = %38
%51 = load i32, i32* @ERR_R_NESTED_ASN1_ERROR
%52 = call i32 @ASN1error(i32 %51)
store i32 0, i32* %7
br label %116
53: ; preds = %38
%54 = load i32, i32* %16
%55 = icmp eq i32 %54, -1
br i1 %55, label %56, label %57
56: ; preds = %53
store i32 -1, i32* %7
br label %116
57: ; preds = %53
br label %58
58: ; preds = %57
%59 = load i8, i8* %21
%60 = icmp ne i8 %59, 0
br i1 %60, label %64, label %61
61: ; preds = %58
%62 = load i32, i32* @ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED
%63 = call i32 @ASN1error(i32 %62)
store i32 0, i32* %7
br label %116
64: ; preds = %58
%65 = load i32**, i32*** %8
%66 = load i64, i64* %17
%67 = load %struct.TYPE_5__*, %struct.TYPE_5__** %11
%68 = load i32*, i32** %13
%69 = call i32 @asn1_template_noexp_d2i(i32** %65, i8** %18, i64 %66, %struct.TYPE_5__* %67, i8 signext 0, i32* %68)
store i32 %69, i32* %16
%70 = load i32, i32* %16
%71 = icmp ne i32 %70, 0
br i1 %71, label %75, label %72
72: ; preds = %64
%73 = load i32, i32* @ERR_R_NESTED_ASN1_ERROR
%74 = call i32 @ASN1error(i32 %73)
store i32 0, i32* %7
br label %116
75: ; preds = %64
%76 = load i8*, i8** %18
%77 = load i8*, i8** %19
%78 = ptrtoint i8* %76 to i64
%79 = ptrtoint i8* %77 to i64
%80 = sub i64 %78, %79
%81 = load i64, i64* %17
%82 = sub nsw i64 %81, %80
store i64 %82, i64* %17
%83 = load i8, i8* %20
%84 = icmp ne i8 %83, 0
br i1 %84, label %85, label %93
85: ; preds = %75
%86 = load i64, i64* %17
%87 = call i32 @asn1_check_eoc(i8** %18, i64 %86)
%88 = icmp ne i32 %87, 0
br i1 %88, label %92, label %89
89: ; preds = %85
%90 = load i32, i32* @ASN1_R_MISSING_EOC
%91 = call i32 @ASN1error(i32 %90)
br label %112
92: ; preds = %85
br label %100
93: ; preds = %75
%94 = load i64, i64* %17
%95 = icmp ne i64 %94, 0
br i1 %95, label %96, label %99
96: ; preds = %93
%97 = load i32, i32* @ASN1_R_EXPLICIT_LENGTH_MISMATCH
%98 = call i32 @ASN1error(i32 %97)
br label %112
99: ; preds = %93
br label %100
100: ; preds = %99, %92
br label %109
101: ; preds = %25
%102 = load i32**, i32*** %8
%103 = load i8**, i8*** %9
%104 = load i64, i64* %10
%105 = load %struct.TYPE_5__*, %struct.TYPE_5__** %11
%106 = load i8, i8* %12
%107 = load i32*, i32** %13
%108 = call i32 @asn1_template_noexp_d2i(i32** %102, i8** %103, i64 %104, %struct.TYPE_5__* %105, i8 signext %106, i32* %107)
store i32 %108, i32* %7
br label %116
109: ; preds = %100
%110 = load i8*, i8** %18
%111 = load i8**, i8*** %9
store i8* %110, i8** %111
store i32 1, i32* %7
br label %116
112: ; preds = %96, %89
%113 = load i32**, i32*** %8
%114 = load %struct.TYPE_5__*, %struct.TYPE_5__** %11
%115 = call i32 @ASN1_template_free(i32** %113, %struct.TYPE_5__* %114)
store i32 0, i32* %7
br label %116
116: ; preds = %112, %109, %101, %72, %61, %56, %50, %24
%117 = load i32, i32* %7
ret i32 %117
}

LLVM IR (-O2):
%struct.TYPE_5__ = type { i32, i32 }
@ASN1_TFLG_TAG_CLASS = global i32 0
@ASN1_TFLG_EXPTAG = global i32 0
@ERR_R_NESTED_ASN1_ERROR = global i32 0
@ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED = global i32 0
@ASN1_R_MISSING_EOC = global i32 0
@ASN1_R_EXPLICIT_LENGTH_MISMATCH = global i32 0
define i32 @asn1_template_ex_d2i(i32** %0, i8** %1, i64 %2, %struct.TYPE_5__* %3, i8 signext %4, i32* %5) {
%7 = alloca i64
%8 = alloca i8*
%9 = alloca i8
%10 = alloca i8
%11 = bitcast i64* %7 to i8*
%12 = bitcast i8** %8 to i8*
%13 = icmp eq i32** %0, null
br i1 %13, label %66, label %14
14: ; preds = %6
%15 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %3, i64 0, i32 0
%16 = load i32, i32* %15
%17 = load i32, i32* @ASN1_TFLG_TAG_CLASS
%18 = load i8*, i8** %1
store i8* %18, i8** %8
%19 = load i32, i32* @ASN1_TFLG_EXPTAG
%20 = and i32 %19, %16
%21 = icmp eq i32 %20, 0
br i1 %21, label %57, label %22
22: ; preds = %14
%23 = and i32 %17, %16
%24 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %3, i64 0, i32 1
%25 = load i32, i32* %24
%26 = call i32 @asn1_check_tlen(i64* %7, i32* null, i32* null, i8* %9, i8* %10, i8** %8, i64 %2, i32 %25, i32 %23, i8 signext %4, i32* %5)
%27 = load i8*, i8** %8
switch i32 %26, label %28 [
i32 0, label %51
i32 -1, label %55
]
28: ; preds = %22
%29 = load i8, i8* %10
%30 = icmp eq i8 %29, 0
br i1 %30, label %51, label %31
31: ; preds = %28
%32 = load i64, i64* %7
%33 = call i32 @asn1_template_noexp_d2i(i32** %0, i8** %8, i64 %32, %struct.TYPE_5__* %3, i8 signext 0, i32* %5)
%34 = icmp eq i32 %33, 0
br i1 %34, label %51, label %35
35: ; preds = %31
%36 = load i8*, i8** %8
%37 = ptrtoint i8* %36 to i64
%38 = ptrtoint i8* %27 to i64
%39 = sub i64 %38, %37
%40 = load i64, i64* %7
%41 = add i64 %39, %40
store i64 %41, i64* %7
%42 = load i8, i8* %9
%43 = icmp eq i8 %42, 0
br i1 %43, label %49, label %44
44: ; preds = %35
%45 = call i32 @asn1_check_eoc(i8** %8, i64 %41)
%46 = icmp eq i32 %45, 0
br i1 %46, label %61, label %47
47: ; preds = %44
%48 = load i8*, i8** %8
br label %59
49: ; preds = %35
%50 = icmp eq i64 %41, 0
br i1 %50, label %59, label %61
51: ; preds = %31, %28, %22
%52 = phi i32* [ @ERR_R_NESTED_ASN1_ERROR, %22 ], [ @ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED, %28 ], [ @ERR_R_NESTED_ASN1_ERROR, %31 ]
%53 = load i32, i32* %52
%54 = call i32 @ASN1error(i32 %53)
br label %55
55: ; preds = %51, %22
%56 = phi i32 [ %26, %22 ], [ 0, %51 ]
br label %66
57: ; preds = %14
%58 = tail call i32 @asn1_template_noexp_d2i(i32** %0, i8** %1, i64 %2, %struct.TYPE_5__* %3, i8 signext %4, i32* %5)
br label %66
59: ; preds = %47, %49
%60 = phi i8* [ %48, %47 ], [ %36, %49 ]
store i8* %60, i8** %1
br label %66
61: ; preds = %49, %44
%62 = phi i32* [ @ASN1_R_MISSING_EOC, %44 ], [ @ASN1_R_EXPLICIT_LENGTH_MISMATCH, %49 ]
%63 = load i32, i32* %62
%64 = call i32 @ASN1error(i32 %63)
%65 = call i32 @ASN1_template_free(i32** %0, %struct.TYPE_5__* %3)
br label %66
66: ; preds = %55, %6, %61, %59, %57
%67 = phi i32 [ 0, %61 ], [ 1, %59 ], [ %58, %57 ], [ 0, %6 ], [ %56, %55 ]
ret i32 %67
}