#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_14__ TYPE_5__;
typedef struct TYPE_13__ TYPE_4__;
typedef struct TYPE_12__ TYPE_3__;
typedef struct TYPE_11__ TYPE_2__;
typedef struct TYPE_10__ TYPE_1__;

/* Type definitions */
struct TYPE_14__ {
  scalar_t__ itype;
  int utype;
  int /*<<< orphan*/ size;
  TYPE_4__ *funcs;
};
struct TYPE_13__ {
  int (*prim_new)(int /*<<< orphan*/ **, TYPE_5__ const *);
};
struct TYPE_12__ {
  int /*<<< orphan*/ flags;
};
struct TYPE_10__ {
  int /*<<< orphan*/ *ptr;
};
struct TYPE_11__ {
  void *type;
  TYPE_1__ value;
};
typedef int /*<<< orphan*/ ASN1_VALUE;
typedef TYPE_2__ ASN1_TYPE;
typedef TYPE_3__ ASN1_STRING;
typedef TYPE_4__ ASN1_PRIMITIVE_FUNCS;
typedef TYPE_5__ ASN1_ITEM;
typedef int /*<<< orphan*/ ASN1_BOOLEAN;

/* Variables and functions */
scalar_t__ ASN1_ITYPE_MSTRING;
int /*<<< orphan*/ ASN1_STRING_FLAG_MSTRING;
TYPE_3__ *ASN1_STRING_type_new(int);
int /*<<< orphan*/ NID_undef;
scalar_t__ OBJ_nid2obj(int /*<<< orphan*/);
#define V_ASN1_ANY 131
#define V_ASN1_BOOLEAN 130
#define V_ASN1_NULL 129
#define V_ASN1_OBJECT 128
void *V_ASN1_UNDEF;
TYPE_2__ *malloc(int);
int stub1(int /*<<< orphan*/ **, TYPE_5__ const *);
int ASN1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it) {
  ASN1_TYPE *typ;
  ASN1_STRING *str;
  int utype;
  if (it != NULL && it->funcs != NULL) {
    const ASN1_PRIMITIVE_FUNCS *pf = it->funcs;
    if (pf->prim_new == NULL)
      return 0;
    return pf->prim_new(pval, it);
  }
  if (!it || (it->itype == ASN1_ITYPE_MSTRING))
    utype = V_ASN1_UNDEF;
  else
    utype = it->utype;
  switch (utype) {
  case V_ASN1_OBJECT:
    *pval = (ASN1_VALUE *)OBJ_nid2obj(NID_undef);
    return 1;
  case V_ASN1_BOOLEAN:
    *(ASN1_BOOLEAN *)pval = it->size;
    return 1;
  case V_ASN1_NULL:
    *pval = (ASN1_VALUE *)1;
    return 1;
  case V_ASN1_ANY:
    typ = malloc(sizeof(ASN1_TYPE));
    if (typ != NULL) {
      typ->value.ptr = NULL;
      typ->type = V_ASN1_UNDEF;
    }
    *pval = (ASN1_VALUE *)typ;
    break;
  default:
    str = ASN1_STRING_type_new(utype);
    if (it != NULL && it->itype == ASN1_ITYPE_MSTRING && str != NULL)
      str->flags |= ASN1_STRING_FLAG_MSTRING;
    *pval = (ASN1_VALUE *)str;
    break;
  }
  if (*pval)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<ASN1_primitive_new>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1199 <ASN1_primitive_new+0x69>
mov    -0x18(%rbp),%rax
cmpq   $0x0,0x10(%rax)
je     1199 <ASN1_primitive_new+0x69>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmpq   $0x0,(%rax)
jne    1180 <ASN1_primitive_new+0x50>
movl   $0x0,-0x4(%rbp)
jmp    1311 <ASN1_primitive_new+0x1e1>
mov    -0x38(%rbp),%rax
mov    (%rax),%rax
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   *%rax
mov    %eax,-0x4(%rbp)
jmp    1311 <ASN1_primitive_new+0x1e1>
cmpq   $0x0,-0x18(%rbp)
je     11bb <ASN1_primitive_new+0x8b>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    0x2e1e(%rip),%rcx
cmp    (%rcx),%rax
jne    11cd <ASN1_primitive_new+0x9d>
mov    0x2e26(%rip),%rax
mov    (%rax),%rax
mov    %eax,-0x2c(%rbp)
jmp    11d7 <ASN1_primitive_new+0xa7>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x3,%eax
ja     129b <ASN1_primitive_new+0x16b>
mov    -0x40(%rbp),%rax
lea    0xe09(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2dc1(%rip),%rax
mov    (%rax),%edi
call   1030 <OBJ_nid2obj@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    1311 <ASN1_primitive_new+0x1e1>
mov    -0x18(%rbp),%rax
mov    0xc(%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    1311 <ASN1_primitive_new+0x1e1>
mov    -0x10(%rbp),%rax
mov    $0x1,%ecx
mov    %rcx,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    1311 <ASN1_primitive_new+0x1e1>
mov    $0x10,%edi
call   1040 <malloc@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     128b <ASN1_primitive_new+0x15b>
mov    -0x20(%rbp),%rax
movq   $0x0,0x8(%rax)
mov    0x2d67(%rip),%rax
mov    (%rax),%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
jmp    12f0 <ASN1_primitive_new+0x1c0>
mov    -0x2c(%rbp),%edi
call   1050 <ASN1_STRING_type_new@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     12e5 <ASN1_primitive_new+0x1b5>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    0x2d10(%rip),%rcx
cmp    (%rcx),%rax
jne    12e5 <ASN1_primitive_new+0x1b5>
cmpq   $0x0,-0x28(%rbp)
je     12e5 <ASN1_primitive_new+0x1b5>
mov    0x2d05(%rip),%rax
mov    (%rax),%ecx
mov    -0x28(%rbp),%rax
or     (%rax),%ecx
mov    %ecx,(%rax)
mov    -0x28(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     130a <ASN1_primitive_new+0x1da>
movl   $0x1,-0x4(%rbp)
jmp    1311 <ASN1_primitive_new+0x1e1>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ASN1_primitive_new>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
test   %rsi,%rsi
je     1172 <ASN1_primitive_new+0x42>
mov    0x10(%rbx),%rax
test   %rax,%rax
je     115f <ASN1_primitive_new+0x2f>
mov    (%rax),%rax
test   %rax,%rax
je     11ab <ASN1_primitive_new+0x7b>
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    *%rax
mov    (%rbx),%rax
mov    0x2e67(%rip),%rcx
cmp    (%rcx),%rax
jne    122e <ASN1_primitive_new+0xfe>
mov    0x2e6f(%rip),%rax
mov    (%rax),%edi
lea    -0x80(%rdi),%eax
cmp    $0x3,%eax
ja     11af <ASN1_primitive_new+0x7f>
lea    0xe76(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2e2e(%rip),%rax
mov    (%rax),%edi
call   1030 <OBJ_nid2obj@plt>
mov    %rax,(%r14)
mov    $0x1,%ecx
jmp    1224 <ASN1_primitive_new+0xf4>
xor    %ecx,%ecx
jmp    1224 <ASN1_primitive_new+0xf4>
call   1050 <ASN1_STRING_type_new@plt>
test   %rbx,%rbx
je     1219 <ASN1_primitive_new+0xe9>
mov    (%rbx),%rcx
mov    0x2e0d(%rip),%rdx
cmp    (%rdx),%rcx
jne    1219 <ASN1_primitive_new+0xe9>
test   %rax,%rax
je     1219 <ASN1_primitive_new+0xe9>
mov    0x2e0c(%rip),%rcx
mov    (%rcx),%ecx
or     %ecx,(%rax)
jmp    1219 <ASN1_primitive_new+0xe9>
movq   $0x1,(%r14)
mov    $0x1,%ecx
jmp    1224 <ASN1_primitive_new+0xf4>
mov    0xc(%rbx),%eax
mov    %eax,(%r14)
mov    $0x1,%ecx
jmp    1224 <ASN1_primitive_new+0xf4>
mov    $0x10,%edi
call   1040 <malloc@plt>
test   %rax,%rax
je     1219 <ASN1_primitive_new+0xe9>
movq   $0x0,0x8(%rax)
mov    0x2dd5(%rip),%rcx
mov    (%rcx),%rcx
mov    %rcx,(%rax)
mov    %rax,(%r14)
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    0x8(%rbx),%edi
jmp    117b <ASN1_primitive_new+0x4b>

LLVM IR (-O0):
%struct.TYPE_14__ = type { i64, i32, i32, %struct.TYPE_13__* }
%struct.TYPE_13__ = type { {}* }
%struct.TYPE_11__ = type { i8*, %struct.TYPE_10__ }
%struct.TYPE_10__ = type { i32* }
%struct.TYPE_12__ = type { i32 }
@ASN1_ITYPE_MSTRING = global i64 0
@V_ASN1_UNDEF = global i8* null
@NID_undef = global i32 0
@ASN1_STRING_FLAG_MSTRING = global i32 0
define i32 @ASN1_primitive_new(i32** %0, %struct.TYPE_14__* %1) {
%3 = alloca i32
%4 = alloca i32**
%5 = alloca %struct.TYPE_14__*
%6 = alloca %struct.TYPE_11__*
%7 = alloca %struct.TYPE_12__*
%8 = alloca i32
%9 = alloca %struct.TYPE_13__*
store i32** %0, i32*** %4
store %struct.TYPE_14__* %1, %struct.TYPE_14__** %5
%10 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%11 = icmp ne %struct.TYPE_14__* %10, null
br i1 %11, label %12, label %35
12: ; preds = %2
%13 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%14 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %13, i32 0, i32 3
%15 = load %struct.TYPE_13__*, %struct.TYPE_13__** %14
%16 = icmp ne %struct.TYPE_13__* %15, null
br i1 %16, label %17, label %35
17: ; preds = %12
%18 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%19 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %18, i32 0, i32 3
%20 = load %struct.TYPE_13__*, %struct.TYPE_13__** %19
store %struct.TYPE_13__* %20, %struct.TYPE_13__** %9
%21 = load %struct.TYPE_13__*, %struct.TYPE_13__** %9
%22 = getelementptr inbounds %struct.TYPE_13__, %struct.TYPE_13__* %21, i32 0, i32 0
%23 = bitcast {}** %22 to i32 (i32**, %struct.TYPE_14__*)**
%24 = load i32 (i32**, %struct.TYPE_14__*)*, i32 (i32**, %struct.TYPE_14__*)** %23
%25 = icmp eq i32 (i32**, %struct.TYPE_14__*)* %24, null
br i1 %25, label %26, label %27
26: ; preds = %17
store i32 0, i32* %3
br label %111
27: ; preds = %17
%28 = load %struct.TYPE_13__*, %struct.TYPE_13__** %9
%29 = getelementptr inbounds %struct.TYPE_13__, %struct.TYPE_13__* %28, i32 0, i32 0
%30 = bitcast {}** %29 to i32 (i32**, %struct.TYPE_14__*)**
%31 = load i32 (i32**, %struct.TYPE_14__*)*, i32 (i32**, %struct.TYPE_14__*)** %30
%32 = load i32**, i32*** %4
%33 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%34 = call i32 %31(i32** %32, %struct.TYPE_14__* %33)
store i32 %34, i32* %3
br label %111
35: ; preds = %12, %2
%36 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%37 = icmp ne %struct.TYPE_14__* %36, null
br i1 %37, label %38, label %44
38: ; preds = %35
%39 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%40 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %39, i32 0, i32 0
%41 = load i64, i64* %40
%42 = load i64, i64* @ASN1_ITYPE_MSTRING
%43 = icmp eq i64 %41, %42
br i1 %43, label %44, label %47
44: ; preds = %38, %35
%45 = load i8*, i8** @V_ASN1_UNDEF
%46 = ptrtoint i8* %45 to i32
store i32 %46, i32* %8
br label %51
47: ; preds = %38
%48 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%49 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %48, i32 0, i32 1
%50 = load i32, i32* %49
store i32 %50, i32* %8
br label %51
51: ; preds = %47, %44
%52 = load i32, i32* %8
switch i32 %52, label %81 [
i32 128, label %53
i32 130, label %58
i32 129, label %64
i32 131, label %66
]
53: ; preds = %51
%54 = load i32, i32* @NID_undef
%55 = call i64 @OBJ_nid2obj(i32 %54)
%56 = inttoptr i64 %55 to i32*
%57 = load i32**, i32*** %4
store i32* %56, i32** %57
store i32 1, i32* %3
br label %111
58: ; preds = %51
%59 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%60 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %59, i32 0, i32 2
%61 = load i32, i32* %60
%62 = load i32**, i32*** %4
%63 = bitcast i32** %62 to i32*
store i32 %61, i32* %63
store i32 1, i32* %3
br label %111
64: ; preds = %51
%65 = load i32**, i32*** %4
store i32* inttoptr (i64 1 to i32*), i32** %65
store i32 1, i32* %3
br label %111
66: ; preds = %51
%67 = call %struct.TYPE_11__* @malloc(i32 16)
store %struct.TYPE_11__* %67, %struct.TYPE_11__** %6
%68 = load %struct.TYPE_11__*, %struct.TYPE_11__** %6
%69 = icmp ne %struct.TYPE_11__* %68, null
br i1 %69, label %70, label %77
70: ; preds = %66
%71 = load %struct.TYPE_11__*, %struct.TYPE_11__** %6
%72 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %71, i32 0, i32 1
%73 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %72, i32 0, i32 0
store i32* null, i32** %73
%74 = load i8*, i8** @V_ASN1_UNDEF
%75 = load %struct.TYPE_11__*, %struct.TYPE_11__** %6
%76 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %75, i32 0, i32 0
store i8* %74, i8** %76
br label %77
77: ; preds = %70, %66
%78 = load %struct.TYPE_11__*, %struct.TYPE_11__** %6
%79 = bitcast %struct.TYPE_11__* %78 to i32*
%80 = load i32**, i32*** %4
store i32* %79, i32** %80
br label %105
81: ; preds = %51
%82 = load i32, i32* %8
%83 = call %struct.TYPE_12__* @ASN1_STRING_type_new(i32 %82)
store %struct.TYPE_12__* %83, %struct.TYPE_12__** %7
%84 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%85 = icmp ne %struct.TYPE_14__* %84, null
br i1 %85, label %86, label %101
86: ; preds = %81
%87 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%88 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %87, i32 0, i32 0
%89 = load i64, i64* %88
%90 = load i64, i64* @ASN1_ITYPE_MSTRING
%91 = icmp eq i64 %89, %90
br i1 %91, label %92, label %101
92: ; preds = %86
%93 = load %struct.TYPE_12__*, %struct.TYPE_12__** %7
%94 = icmp ne %struct.TYPE_12__* %93, null
br i1 %94, label %95, label %101
95: ; preds = %92
%96 = load i32, i32* @ASN1_STRING_FLAG_MSTRING
%97 = load %struct.TYPE_12__*, %struct.TYPE_12__** %7
%98 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %97, i32 0, i32 0
%99 = load i32, i32* %98
%100 = or i32 %99, %96
store i32 %100, i32* %98
br label %101
101: ; preds = %95, %92, %86, %81
%102 = load %struct.TYPE_12__*, %struct.TYPE_12__** %7
%103 = bitcast %struct.TYPE_12__* %102 to i32*
%104 = load i32**, i32*** %4
store i32* %103, i32** %104
br label %105
105: ; preds = %101, %77
%106 = load i32**, i32*** %4
%107 = load i32*, i32** %106
%108 = icmp ne i32* %107, null
br i1 %108, label %109, label %110
109: ; preds = %105
store i32 1, i32* %3
br label %111
110: ; preds = %105
store i32 0, i32* %3
br label %111
111: ; preds = %110, %109, %64, %58, %53, %27, %26
%112 = load i32, i32* %3
ret i32 %112
}

LLVM IR (-O2):
%struct.TYPE_14__ = type { i64, i32, i32, %struct.TYPE_13__* }
%struct.TYPE_13__ = type { {}* }
%struct.TYPE_11__ = type { i8*, %struct.TYPE_10__ }
%struct.TYPE_10__ = type { i32* }
%struct.TYPE_12__ = type { i32 }
@ASN1_ITYPE_MSTRING = global i64 0
@V_ASN1_UNDEF = global i8* null
@NID_undef = global i32 0
@ASN1_STRING_FLAG_MSTRING = global i32 0
define i32 @ASN1_primitive_new(i32** %0, %struct.TYPE_14__* %1) {
%3 = icmp eq %struct.TYPE_14__* %1, null
br i1 %3, label %19, label %4
4: ; preds = %2
%5 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %1, i64 0, i32 3
%6 = load %struct.TYPE_13__*, %struct.TYPE_13__** %5
%7 = icmp eq %struct.TYPE_13__* %6, null
br i1 %7, label %14, label %8
8: ; preds = %4
%9 = bitcast %struct.TYPE_13__* %6 to i32 (i32**, %struct.TYPE_14__*)**
%10 = load i32 (i32**, %struct.TYPE_14__*)*, i32 (i32**, %struct.TYPE_14__*)** %9
%11 = icmp eq i32 (i32**, %struct.TYPE_14__*)* %10, null
br i1 %11, label %67, label %12
12: ; preds = %8
%13 = tail call i32 %10(i32** %0, %struct.TYPE_14__* %1)
br label %67
14: ; preds = %4
%15 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %1, i64 0, i32 0
%16 = load i64, i64* %15
%17 = load i64, i64* @ASN1_ITYPE_MSTRING
%18 = icmp eq i64 %16, %17
br i1 %18, label %19, label %23
19: ; preds = %2, %14
%20 = load i8*, i8** @V_ASN1_UNDEF
%21 = ptrtoint i8* %20 to i64
%22 = trunc i64 %21 to i32
br label %26
23: ; preds = %14
%24 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %1, i64 0, i32 1
%25 = load i32, i32* %24
br label %26
26: ; preds = %23, %19
%27 = phi i32 [ %22, %19 ], [ %25, %23 ]
switch i32 %27, label %47 [
i32 128, label %28
i32 130, label %32
i32 129, label %36
i32 131, label %37
]
28: ; preds = %26
%29 = load i32, i32* @NID_undef
%30 = tail call i64 @OBJ_nid2obj(i32 %29)
%31 = inttoptr i64 %30 to i32*
store i32* %31, i32** %0
br label %67
32: ; preds = %26
%33 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %1, i64 0, i32 2
%34 = load i32, i32* %33
%35 = bitcast i32** %0 to i32*
store i32 %34, i32* %35
br label %67
36: ; preds = %26
store i32* inttoptr (i64 1 to i32*), i32** %0
br label %67
37: ; preds = %26
%38 = tail call %struct.TYPE_11__* @malloc(i32 16)
%39 = icmp eq %struct.TYPE_11__* %38, null
br i1 %39, label %44, label %40
40: ; preds = %37
%41 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %38, i64 0, i32 1, i32 0
store i32* null, i32** %41
%42 = load i8*, i8** @V_ASN1_UNDEF
%43 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %38, i64 0, i32 0
store i8* %42, i8** %43
br label %44
44: ; preds = %40, %37
%45 = bitcast i32** %0 to %struct.TYPE_11__**
store %struct.TYPE_11__* %38, %struct.TYPE_11__** %45
%46 = bitcast %struct.TYPE_11__* %38 to i32*
br label %63
47: ; preds = %26
%48 = tail call %struct.TYPE_12__* @ASN1_STRING_type_new(i32 %27)
br i1 %3, label %61, label %49
49: ; preds = %47
%50 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %1, i64 0, i32 0
%51 = load i64, i64* %50
%52 = load i64, i64* @ASN1_ITYPE_MSTRING
%53 = icmp eq i64 %51, %52
%54 = icmp ne %struct.TYPE_12__* %48, null
%55 = select i1 %53, i1 %54, i1 false
br i1 %55, label %56, label %61
56: ; preds = %49
%57 = load i32, i32* @ASN1_STRING_FLAG_MSTRING
%58 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %48, i64 0, i32 0
%59 = load i32, i32* %58
%60 = or i32 %59, %57
store i32 %60, i32* %58
br label %61
61: ; preds = %56, %49, %47
%62 = getelementptr %struct.TYPE_12__, %struct.TYPE_12__* %48, i64 0, i32 0
store i32* %62, i32** %0
br label %63
63: ; preds = %61, %44
%64 = phi i32* [ %62, %61 ], [ %46, %44 ]
%65 = icmp ne i32* %64, null
%66 = zext i1 %65 to i32
br label %67
67: ; preds = %63, %12, %8, %36, %32, %28
%68 = phi i32 [ 1, %36 ], [ 1, %32 ], [ 1, %28 ], [ %13, %12 ], [ 0, %8 ], [ %66, %63 ]
ret i32 %68
}