#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 /*<<< orphan*/ BIO;

/* Variables and functions */
scalar_t__ BIO_ctrl(int /*<<< orphan*/ *, int, int /*<<< orphan*/,
                    int /*<<< orphan*/ *);
int /*<<< orphan*/ BIO_f_buffer();
int /*<<< orphan*/ BIO_free(int /*<<< orphan*/ *);
int BIO_gets(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ *BIO_new(int /*<<< orphan*/);
int /*<<< orphan*/ BIO_pop(int /*<<< orphan*/ *);
int /*<<< orphan*/ BIO_printf(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ *BIO_push(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int BIO_read(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ BIO_write(int /*<<< orphan*/ *, char *, int);
int SMIME_ASCIICRLF;
int SMIME_BINARY;
int SMIME_TEXT;
char strip_eol(char *, int *, int);
int SMIME_crlf_copy(BIO *in, BIO *out, int flags) {
  BIO *bf;
  char eol;
  int len;
  char linebuf[1024];
  bf = BIO_new(BIO_f_buffer());
  if (bf == NULL)
    return 0;
  out = BIO_push(bf, out);
  if (flags & SMIME_BINARY) {
    while ((len = BIO_read(in, linebuf, 1024)) > 0)
      BIO_write(out, linebuf, len);
  } else {
    int eolcnt = 0;
    if (flags & SMIME_TEXT)
      BIO_printf(out, "Content-Type: text/plain\r\n\r\n");
    while ((len = BIO_gets(in, linebuf, 1024)) > 0) {
      eol = strip_eol(linebuf, &len, flags);
      if (len) {
        if (flags & SMIME_ASCIICRLF) {
          int i;
          for (i = 0; i < eolcnt; i++)
            BIO_write(out, "\r\n", 2);
          eolcnt = 0;
        }
        BIO_write(out, linebuf, len);
        if (eol)
          BIO_write(out, "\r\n", 2);
      } else if (flags & SMIME_ASCIICRLF)
        eolcnt++;
      else if (eol)
        BIO_write(out, "\r\n", 2);
    }
  }
  (void)(int)BIO_ctrl(out, 11, 0, NULL);
  BIO_pop(out);
  BIO_free(bf);
  return 1;
}


x86 assembly (clang, -O0):
<SMIME_crlf_copy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    $0x0,%al
call   1060 <BIO_f_buffer@plt>
mov    %eax,%edi
call   1090 <BIO_new@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    11ef <SMIME_crlf_copy+0x3f>
movl   $0x0,-0x4(%rbp)
jmp    13f1 <SMIME_crlf_copy+0x241>
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <BIO_push@plt>
mov    %rax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2dc6(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1258 <SMIME_crlf_copy+0xa8>
jmp    121a <SMIME_crlf_copy+0x6a>
mov    -0x10(%rbp),%rdi
lea    -0x430(%rbp),%rsi
mov    $0x400,%edx
call   1040 <BIO_read@plt>
mov    %eax,-0x30(%rbp)
cmp    $0x0,%eax
jle    1253 <SMIME_crlf_copy+0xa3>
mov    -0x18(%rbp),%rdi
lea    -0x430(%rbp),%rsi
mov    -0x30(%rbp),%edx
call   10d0 <BIO_write@plt>
jmp    121a <SMIME_crlf_copy+0x6a>
jmp    13c4 <SMIME_crlf_copy+0x214>
movl   $0x0,-0x434(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2d7c(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1287 <SMIME_crlf_copy+0xd7>
mov    -0x18(%rbp),%rdi
lea    0xd7e(%rip),%rsi
call   1050 <BIO_printf@plt>
jmp    128c <SMIME_crlf_copy+0xdc>
mov    -0x10(%rbp),%rdi
lea    -0x430(%rbp),%rsi
mov    $0x400,%edx
call   10c0 <BIO_gets@plt>
mov    %eax,-0x30(%rbp)
cmp    $0x0,%eax
jle    13bf <SMIME_crlf_copy+0x20f>
lea    -0x430(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    -0x30(%rbp),%rsi
call   1070 <strip_eol@plt>
mov    %al,-0x29(%rbp)
cmpl   $0x0,-0x30(%rbp)
je     1368 <SMIME_crlf_copy+0x1b8>
mov    -0x1c(%rbp),%eax
mov    0x2d01(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1331 <SMIME_crlf_copy+0x181>
movl   $0x0,-0x438(%rbp)
mov    -0x438(%rbp),%eax
cmp    -0x434(%rbp),%eax
jge    1327 <SMIME_crlf_copy+0x177>
mov    -0x18(%rbp),%rdi
lea    0xd11(%rip),%rsi
mov    $0x2,%edx
call   10d0 <BIO_write@plt>
mov    -0x438(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x438(%rbp)
jmp    12ec <SMIME_crlf_copy+0x13c>
movl   $0x0,-0x434(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x430(%rbp),%rsi
mov    -0x30(%rbp),%edx
call   10d0 <BIO_write@plt>
cmpb   $0x0,-0x29(%rbp)
je     1363 <SMIME_crlf_copy+0x1b3>
mov    -0x18(%rbp),%rdi
lea    0xcc1(%rip),%rsi
mov    $0x2,%edx
call   10d0 <BIO_write@plt>
jmp    13ba <SMIME_crlf_copy+0x20a>
mov    -0x1c(%rbp),%eax
mov    0x2c66(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1391 <SMIME_crlf_copy+0x1e1>
mov    -0x434(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x434(%rbp)
jmp    13b5 <SMIME_crlf_copy+0x205>
cmpb   $0x0,-0x29(%rbp)
je     13b0 <SMIME_crlf_copy+0x200>
mov    -0x18(%rbp),%rdi
lea    0xc74(%rip),%rsi
mov    $0x2,%edx
call   10d0 <BIO_write@plt>
jmp    13b5 <SMIME_crlf_copy+0x205>
jmp    13ba <SMIME_crlf_copy+0x20a>
jmp    128c <SMIME_crlf_copy+0xdc>
jmp    13c4 <SMIME_crlf_copy+0x214>
mov    -0x18(%rbp),%rdi
mov    $0xb,%esi
xor    %edx,%edx
xor    %eax,%eax
mov    %eax,%ecx
call   10a0 <BIO_ctrl@plt>
mov    -0x18(%rbp),%rdi
call   1080 <BIO_pop@plt>
mov    -0x28(%rbp),%rdi
call   10b0 <BIO_free@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x440,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SMIME_crlf_copy>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x428,%rsp
mov    %edx,%r12d
mov    %rsi,%r14
mov    %rdi,%r15
xor    %ebx,%ebx
xor    %eax,%eax
call   1060 <BIO_f_buffer@plt>
mov    %eax,%edi
call   1090 <BIO_new@plt>
test   %rax,%rax
je     13b0 <SMIME_crlf_copy+0x200>
mov    %rax,%rbp
mov    %rax,%rdi
mov    %r14,%rsi
call   1030 <BIO_push@plt>
mov    %rax,%r13
mov    0x2dd5(%rip),%rax
test   %r12d,(%rax)
mov    %rbp,0x18(%rsp)
je     125a <SMIME_crlf_copy+0xaa>
lea    0x20(%rsp),%rsi
mov    %r15,%rdi
mov    $0x400,%edx
call   1040 <BIO_read@plt>
mov    %eax,0x4(%rsp)
test   %eax,%eax
jle    1388 <SMIME_crlf_copy+0x1d8>
lea    0x20(%rsp),%rbp
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %eax,%edx
call   10d0 <BIO_write@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
mov    $0x400,%edx
call   1040 <BIO_read@plt>
mov    %eax,0x4(%rsp)
test   %eax,%eax
jg     1230 <SMIME_crlf_copy+0x80>
jmp    1388 <SMIME_crlf_copy+0x1d8>
mov    0x2d87(%rip),%rax
test   %r12d,(%rax)
mov    %r12d,%ebp
je     1278 <SMIME_crlf_copy+0xc8>
lea    0xd90(%rip),%rsi
mov    %r13,%rdi
call   1050 <BIO_printf@plt>
lea    0x20(%rsp),%rsi
mov    %r15,%rdi
mov    $0x400,%edx
call   10c0 <BIO_gets@plt>
mov    %eax,0x4(%rsp)
test   %eax,%eax
jle    1388 <SMIME_crlf_copy+0x1d8>
xor    %r12d,%r12d
lea    0x20(%rsp),%rbx
lea    0xd75(%rip),%r14
mov    %ebp,0x14(%rsp)
mov    %r15,0x8(%rsp)
jmp    12e7 <SMIME_crlf_copy+0x137>
test   %ebp,%eax
je     136b <SMIME_crlf_copy+0x1bb>
add    $0x1,%r12d
mov    %r12d,%ebp
mov    %r15,%rbx
mov    0x8(%rsp),%rdi
mov    %r15,%rsi
mov    $0x400,%edx
call   10c0 <BIO_gets@plt>
mov    %eax,0x4(%rsp)
mov    %ebp,%r12d
test   %eax,%eax
mov    0x14(%rsp),%ebp
jle    1388 <SMIME_crlf_copy+0x1d8>
mov    %rbx,%r15
mov    %rbx,%rdi
lea    0x4(%rsp),%rsi
mov    %ebp,%edx
call   1070 <strip_eol@plt>
mov    %eax,%ebx
mov    0x4(%rsp),%edx
mov    0x2cd2(%rip),%rax
mov    (%rax),%eax
test   %edx,%edx
je     12b0 <SMIME_crlf_copy+0x100>
test   %ebp,%eax
je     1340 <SMIME_crlf_copy+0x190>
xor    %ebp,%ebp
test   %r12d,%r12d
jle    1343 <SMIME_crlf_copy+0x193>
nopw   0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    %r14,%rsi
mov    $0x2,%edx
call   10d0 <BIO_write@plt>
add    $0xffffffff,%r12d
jne    1320 <SMIME_crlf_copy+0x170>
mov    0x4(%rsp),%edx
jmp    1343 <SMIME_crlf_copy+0x193>
nopl   0x0(%rax)
mov    %r12d,%ebp
mov    %r13,%rdi
mov    %r15,%rsi
call   10d0 <BIO_write@plt>
test   %bl,%bl
je     12bf <SMIME_crlf_copy+0x10f>
mov    %r13,%rdi
mov    %r14,%rsi
mov    $0x2,%edx
call   10d0 <BIO_write@plt>
jmp    12bf <SMIME_crlf_copy+0x10f>
test   %bl,%bl
je     12bc <SMIME_crlf_copy+0x10c>
mov    %r13,%rdi
mov    %r14,%rsi
mov    $0x2,%edx
call   10d0 <BIO_write@plt>
jmp    12bc <SMIME_crlf_copy+0x10c>
mov    %r13,%rdi
mov    $0xb,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   10a0 <BIO_ctrl@plt>
mov    %r13,%rdi
call   1080 <BIO_pop@plt>
mov    0x18(%rsp),%rdi
call   10b0 <BIO_free@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x428,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@SMIME_BINARY = global i32 0
@SMIME_TEXT = global i32 0
@.str = [29 x i8] c"Content-Type: text/plain\0D\0A\0D\0A\00"
@SMIME_ASCIICRLF = global i32 0
@.str.1 = [3 x i8] c"\0D\0A\00"
define i32 @SMIME_crlf_copy(i32* %0, i32* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i8
%10 = alloca i32
%11 = alloca [1024 x i8]
%12 = alloca i32
%13 = alloca i32
store i32* %0, i32** %5
store i32* %1, i32** %6
store i32 %2, i32* %7
%14 = call i32 (...) @BIO_f_buffer()
%15 = call i32* @BIO_new(i32 %14)
store i32* %15, i32** %8
%16 = load i32*, i32** %8
%17 = icmp eq i32* %16, null
br i1 %17, label %18, label %19
18: ; preds = %3
store i32 0, i32* %4
br label %113
19: ; preds = %3
%20 = load i32*, i32** %8
%21 = load i32*, i32** %6
%22 = call i32* @BIO_push(i32* %20, i32* %21)
store i32* %22, i32** %6
%23 = load i32, i32* %7
%24 = load i32, i32* @SMIME_BINARY
%25 = and i32 %23, %24
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %39
27: ; preds = %19
br label %28
28: ; preds = %33, %27
%29 = load i32*, i32** %5
%30 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%31 = call i32 @BIO_read(i32* %29, i8* %30, i32 1024)
store i32 %31, i32* %10
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %38
33: ; preds = %28
%34 = load i32*, i32** %6
%35 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%36 = load i32, i32* %10
%37 = call i32 @BIO_write(i32* %34, i8* %35, i32 %36)
br label %28
38: ; preds = %28
br label %105
39: ; preds = %19
store i32 0, i32* %12
%40 = load i32, i32* %7
%41 = load i32, i32* @SMIME_TEXT
%42 = and i32 %40, %41
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %39
%45 = load i32*, i32** %6
%46 = call i32 @BIO_printf(i32* %45, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
br label %47
47: ; preds = %44, %39
br label %48
48: ; preds = %103, %47
%49 = load i32*, i32** %5
%50 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%51 = call i32 @BIO_gets(i32* %49, i8* %50, i32 1024)
store i32 %51, i32* %10
%52 = icmp sgt i32 %51, 0
br i1 %52, label %53, label %104
53: ; preds = %48
%54 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%55 = load i32, i32* %7
%56 = call signext i8 @strip_eol(i8* %54, i32* %10, i32 %55)
store i8 %56, i8* %9
%57 = load i32, i32* %10
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %87
59: ; preds = %53
%60 = load i32, i32* %7
%61 = load i32, i32* @SMIME_ASCIICRLF
%62 = and i32 %60, %61
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %76
64: ; preds = %59
store i32 0, i32* %13
br label %65
65: ; preds = %72, %64
%66 = load i32, i32* %13
%67 = load i32, i32* %12
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %75
69: ; preds = %65
%70 = load i32*, i32** %6
%71 = call i32 @BIO_write(i32* %70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
br label %72
72: ; preds = %69
%73 = load i32, i32* %13
%74 = add nsw i32 %73, 1
store i32 %74, i32* %13
br label %65
75: ; preds = %65
store i32 0, i32* %12
br label %76
76: ; preds = %75, %59
%77 = load i32*, i32** %6
%78 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%79 = load i32, i32* %10
%80 = call i32 @BIO_write(i32* %77, i8* %78, i32 %79)
%81 = load i8, i8* %9
%82 = icmp ne i8 %81, 0
br i1 %82, label %83, label %86
83: ; preds = %76
%84 = load i32*, i32** %6
%85 = call i32 @BIO_write(i32* %84, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
br label %86
86: ; preds = %83, %76
br label %103
87: ; preds = %53
%88 = load i32, i32* %7
%89 = load i32, i32* @SMIME_ASCIICRLF
%90 = and i32 %88, %89
%91 = icmp ne i32 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %87
%93 = load i32, i32* %12
%94 = add nsw i32 %93, 1
store i32 %94, i32* %12
br label %102
95: ; preds = %87
%96 = load i8, i8* %9
%97 = icmp ne i8 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %95
%99 = load i32*, i32** %6
%100 = call i32 @BIO_write(i32* %99, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
br label %101
101: ; preds = %98, %95
br label %102
102: ; preds = %101, %92
br label %103
103: ; preds = %102, %86
br label %48
104: ; preds = %48
br label %105
105: ; preds = %104, %38
%106 = load i32*, i32** %6
%107 = call i64 @BIO_ctrl(i32* %106, i32 11, i32 0, i32* null)
%108 = trunc i64 %107 to i32
%109 = load i32*, i32** %6
%110 = call i32 @BIO_pop(i32* %109)
%111 = load i32*, i32** %8
%112 = call i32 @BIO_free(i32* %111)
store i32 1, i32* %4
br label %113
113: ; preds = %105, %18
%114 = load i32, i32* %4
ret i32 %114
}

LLVM IR (-O2):
@SMIME_BINARY = global i32 0
@SMIME_TEXT = global i32 0
@.str = [29 x i8] c"Content-Type: text/plain\0D\0A\0D\0A\00"
@SMIME_ASCIICRLF = global i32 0
@.str.1 = [3 x i8] c"\0D\0A\00"
define i32 @SMIME_crlf_copy(i32* %0, i32* %1, i32 %2) {
%4 = alloca i32
%5 = alloca [1024 x i8]
%6 = bitcast i32* %4 to i8*
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%8 = tail call i32 (...) @BIO_f_buffer()
%9 = tail call i32* @BIO_new(i32 %8)
%10 = icmp eq i32* %9, null
br i1 %10, label %73, label %11
11: ; preds = %3
%12 = tail call i32* @BIO_push(i32* %9, i32* %1)
%13 = load i32, i32* @SMIME_BINARY
%14 = and i32 %13, %2
%15 = icmp eq i32 %14, 0
br i1 %15, label %24, label %16
16: ; preds = %11
%17 = call i32 @BIO_read(i32* %0, i8* %7, i32 1024)
store i32 %17, i32* %4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %69
19: ; preds = %16, %19
%20 = phi i32 [ %22, %19 ], [ %17, %16 ]
%21 = call i32 @BIO_write(i32* %12, i8* %7, i32 %20)
%22 = call i32 @BIO_read(i32* %0, i8* %7, i32 1024)
store i32 %22, i32* %4
%23 = icmp sgt i32 %22, 0
br i1 %23, label %19, label %69
24: ; preds = %11
%25 = load i32, i32* @SMIME_TEXT
%26 = and i32 %25, %2
%27 = icmp eq i32 %26, 0
br i1 %27, label %30, label %28
28: ; preds = %24
%29 = tail call i32 @BIO_printf(i32* %12, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
br label %30
30: ; preds = %28, %24
%31 = call i32 @BIO_gets(i32* %0, i8* %7, i32 1024)
store i32 %31, i32* %4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %69
33: ; preds = %30, %65
%34 = phi i32 [ %66, %65 ], [ 0, %30 ]
%35 = call signext i8 @strip_eol(i8* %7, i32* %4, i32 %2)
%36 = load i32, i32* %4
%37 = icmp eq i32 %36, 0
%38 = load i32, i32* @SMIME_ASCIICRLF
%39 = and i32 %38, %2
%40 = icmp eq i32 %39, 0
br i1 %37, label %58, label %41
41: ; preds = %33
br i1 %40, label %51, label %42
42: ; preds = %41
%43 = icmp sgt i32 %34, 0
br i1 %43, label %44, label %51
44: ; preds = %42, %44
%45 = phi i32 [ %47, %44 ], [ 0, %42 ]
%46 = call i32 @BIO_write(i32* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
%47 = add nuw nsw i32 %45, 1
%48 = icmp eq i32 %47, %34
br i1 %48, label %49, label %44
49: ; preds = %44
%50 = load i32, i32* %4
br label %51
51: ; preds = %49, %42, %41
%52 = phi i32 [ %36, %41 ], [ %36, %42 ], [ %50, %49 ]
%53 = phi i32 [ %34, %41 ], [ 0, %42 ], [ 0, %49 ]
%54 = call i32 @BIO_write(i32* %12, i8* %7, i32 %52)
%55 = icmp eq i8 %35, 0
br i1 %55, label %65, label %56
56: ; preds = %51
%57 = call i32 @BIO_write(i32* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
br label %65
58: ; preds = %33
br i1 %40, label %61, label %59
59: ; preds = %58
%60 = add nsw i32 %34, 1
br label %65
61: ; preds = %58
%62 = icmp eq i8 %35, 0
br i1 %62, label %65, label %63
63: ; preds = %61
%64 = call i32 @BIO_write(i32* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
br label %65
65: ; preds = %59, %63, %61, %51, %56
%66 = phi i32 [ %53, %56 ], [ %53, %51 ], [ %60, %59 ], [ %34, %63 ], [ %34, %61 ]
%67 = call i32 @BIO_gets(i32* %0, i8* %7, i32 1024)
store i32 %67, i32* %4
%68 = icmp sgt i32 %67, 0
br i1 %68, label %33, label %69
69: ; preds = %19, %65, %16, %30
%70 = call i64 @BIO_ctrl(i32* %12, i32 11, i32 0, i32* null)
%71 = call i32 @BIO_pop(i32* %12)
%72 = call i32 @BIO_free(i32* %9)
br label %73
73: ; preds = %3, %69
%74 = phi i32 [ 1, %69 ], [ 0, %3 ]
ret i32 %74
}