#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_10__ TYPE_4__;
typedef struct TYPE_9__ TYPE_3__;
typedef struct TYPE_8__ TYPE_2__;
typedef struct TYPE_7__ TYPE_1__;

/* Type definitions */
struct TYPE_9__ {
  int /*<<< orphan*/ algorithm;
};
typedef TYPE_3__ X509_ALGOR;
struct TYPE_10__ {
  scalar_t__ trailerField;
  scalar_t__ saltLength;
  TYPE_2__ *maskGenAlgorithm;
  TYPE_1__ *hashAlgorithm;
};
struct TYPE_8__ {
  int /*<<< orphan*/ algorithm;
};
struct TYPE_7__ {
  int /*<<< orphan*/ algorithm;
};
typedef TYPE_4__ RSA_PSS_PARAMS;
typedef int /*<<< orphan*/ BIO;

/* Variables and functions */
int /*<<< orphan*/ BIO_indent(int /*<<< orphan*/ *, int, int);
scalar_t__ BIO_puts(int /*<<< orphan*/ *, char *);
scalar_t__ i2a_ASN1_INTEGER(int /*<<< orphan*/ *, scalar_t__);
scalar_t__ i2a_ASN1_OBJECT(int /*<<< orphan*/ *, int /*<<< orphan*/);
int rsa_pss_param_print(BIO *bp, RSA_PSS_PARAMS *pss, X509_ALGOR *maskHash,
                        int indent) {
  int rv = 0;
  if (!pss) {
    if (BIO_puts(bp, " (INVALID PSS PARAMETERS)\n") <= 0)
      return 0;
    return 1;
  }
  if (BIO_puts(bp, "\n") <= 0)
    goto err;
  if (!BIO_indent(bp, indent, 128))
    goto err;
  if (BIO_puts(bp, "Hash Algorithm: ") <= 0)
    goto err;
  if (pss->hashAlgorithm) {
    if (i2a_ASN1_OBJECT(bp, pss->hashAlgorithm->algorithm) <= 0)
      goto err;
  } else if (BIO_puts(bp, "sha1 (default)") <= 0)
    goto err;
  if (BIO_puts(bp, "\n") <= 0)
    goto err;
  if (!BIO_indent(bp, indent, 128))
    goto err;
  if (BIO_puts(bp, "Mask Algorithm: ") <= 0)
    goto err;
  if (pss->maskGenAlgorithm) {
    if (i2a_ASN1_OBJECT(bp, pss->maskGenAlgorithm->algorithm) <= 0)
      goto err;
    if (BIO_puts(bp, " with ") <= 0)
      goto err;
    if (maskHash) {
      if (i2a_ASN1_OBJECT(bp, maskHash->algorithm) <= 0)
        goto err;
    } else if (BIO_puts(bp, "INVALID") <= 0)
      goto err;
  } else if (BIO_puts(bp, "mgf1 with sha1 (default)") <= 0)
    goto err;
  BIO_puts(bp, "\n");
  if (!BIO_indent(bp, indent, 128))
    goto err;
  if (BIO_puts(bp, "Salt Length: 0x") <= 0)
    goto err;
  if (pss->saltLength) {
    if (i2a_ASN1_INTEGER(bp, pss->saltLength) <= 0)
      goto err;
  } else if (BIO_puts(bp, "0x14 (default)") <= 0)
    goto err;
  BIO_puts(bp, "\n");
  if (!BIO_indent(bp, indent, 128))
    goto err;
  if (BIO_puts(bp, "Trailer Field: 0x") <= 0)
    goto err;
  if (pss->trailerField) {
    if (i2a_ASN1_INTEGER(bp, pss->trailerField) <= 0)
      goto err;
  } else if (BIO_puts(bp, "BC (default)") <= 0)
    goto err;
  BIO_puts(bp, "\n");
  rv = 1;
err:
  return rv;
}


x86 assembly (clang, -O0):
<rsa_pss_param_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    119b <rsa_pss_param_print+0x5b>
mov    -0x10(%rbp),%rdi
lea    0xe8c(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     118f <rsa_pss_param_print+0x4f>
movl   $0x0,-0x4(%rbp)
jmp    14e1 <rsa_pss_param_print+0x3a1>
movl   $0x1,-0x4(%rbp)
jmp    14e1 <rsa_pss_param_print+0x3a1>
mov    -0x10(%rbp),%rdi
lea    0xe73(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     11ba <rsa_pss_param_print+0x7a>
jmp    14db <rsa_pss_param_print+0x39b>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    $0x80,%edx
call   1040 <BIO_indent@plt>
cmp    $0x0,%eax
jne    11d9 <rsa_pss_param_print+0x99>
jmp    14db <rsa_pss_param_print+0x39b>
mov    -0x10(%rbp),%rdi
lea    0xe37(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     11f8 <rsa_pss_param_print+0xb8>
jmp    14db <rsa_pss_param_print+0x39b>
mov    -0x18(%rbp),%rax
cmpq   $0x0,0x18(%rax)
je     122e <rsa_pss_param_print+0xee>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rax
mov    (%rax),%esi
call   1030 <i2a_ASN1_OBJECT@plt>
cmp    $0x0,%rax
jg     1229 <rsa_pss_param_print+0xe9>
jmp    14db <rsa_pss_param_print+0x39b>
jmp    1252 <rsa_pss_param_print+0x112>
mov    -0x10(%rbp),%rdi
lea    0xe1d(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     124d <rsa_pss_param_print+0x10d>
jmp    14db <rsa_pss_param_print+0x39b>
jmp    1252 <rsa_pss_param_print+0x112>
mov    -0x10(%rbp),%rdi
lea    0xdbc(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     1271 <rsa_pss_param_print+0x131>
jmp    14db <rsa_pss_param_print+0x39b>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    $0x80,%edx
call   1040 <BIO_indent@plt>
cmp    $0x0,%eax
jne    1290 <rsa_pss_param_print+0x150>
jmp    14db <rsa_pss_param_print+0x39b>
mov    -0x10(%rbp),%rdi
lea    0xd91(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     12af <rsa_pss_param_print+0x16f>
jmp    14db <rsa_pss_param_print+0x39b>
mov    -0x18(%rbp),%rax
cmpq   $0x0,0x10(%rax)
je     1356 <rsa_pss_param_print+0x216>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rax
mov    (%rax),%esi
call   1030 <i2a_ASN1_OBJECT@plt>
cmp    $0x0,%rax
jg     12e0 <rsa_pss_param_print+0x1a0>
jmp    14db <rsa_pss_param_print+0x39b>
mov    -0x10(%rbp),%rdi
lea    0xd52(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     12ff <rsa_pss_param_print+0x1bf>
jmp    14db <rsa_pss_param_print+0x39b>
cmpq   $0x0,-0x20(%rbp)
je     132d <rsa_pss_param_print+0x1ed>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    (%rax),%esi
call   1030 <i2a_ASN1_OBJECT@plt>
cmp    $0x0,%rax
jg     1328 <rsa_pss_param_print+0x1e8>
jmp    14db <rsa_pss_param_print+0x39b>
jmp    1351 <rsa_pss_param_print+0x211>
mov    -0x10(%rbp),%rdi
lea    0xd0c(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     134c <rsa_pss_param_print+0x20c>
jmp    14db <rsa_pss_param_print+0x39b>
jmp    1351 <rsa_pss_param_print+0x211>
jmp    137a <rsa_pss_param_print+0x23a>
mov    -0x10(%rbp),%rdi
lea    0xceb(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     1375 <rsa_pss_param_print+0x235>
jmp    14db <rsa_pss_param_print+0x39b>
jmp    137a <rsa_pss_param_print+0x23a>
mov    -0x10(%rbp),%rdi
lea    0xc94(%rip),%rsi
call   1050 <BIO_puts@plt>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    $0x80,%edx
call   1040 <BIO_indent@plt>
cmp    $0x0,%eax
jne    13a9 <rsa_pss_param_print+0x269>
jmp    14db <rsa_pss_param_print+0x39b>
mov    -0x10(%rbp),%rdi
lea    0xcb1(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     13c8 <rsa_pss_param_print+0x288>
jmp    14db <rsa_pss_param_print+0x39b>
mov    -0x18(%rbp),%rax
cmpq   $0x0,0x8(%rax)
je     13fc <rsa_pss_param_print+0x2bc>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rsi
call   1060 <i2a_ASN1_INTEGER@plt>
cmp    $0x0,%rax
jg     13f7 <rsa_pss_param_print+0x2b7>
jmp    14db <rsa_pss_param_print+0x39b>
jmp    1420 <rsa_pss_param_print+0x2e0>
mov    -0x10(%rbp),%rdi
lea    0xc6e(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     141b <rsa_pss_param_print+0x2db>
jmp    14db <rsa_pss_param_print+0x39b>
jmp    1420 <rsa_pss_param_print+0x2e0>
mov    -0x10(%rbp),%rdi
lea    0xbee(%rip),%rsi
call   1050 <BIO_puts@plt>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    $0x80,%edx
call   1040 <BIO_indent@plt>
cmp    $0x0,%eax
jne    144f <rsa_pss_param_print+0x30f>
jmp    14db <rsa_pss_param_print+0x39b>
mov    -0x10(%rbp),%rdi
lea    0xc2a(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     146e <rsa_pss_param_print+0x32e>
jmp    14db <rsa_pss_param_print+0x39b>
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
je     14a0 <rsa_pss_param_print+0x360>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    (%rax),%rsi
call   1060 <i2a_ASN1_INTEGER@plt>
cmp    $0x0,%rax
jg     149b <rsa_pss_param_print+0x35b>
jmp    14db <rsa_pss_param_print+0x39b>
jmp    14c4 <rsa_pss_param_print+0x384>
mov    -0x10(%rbp),%rdi
lea    0xbeb(%rip),%rsi
call   1050 <BIO_puts@plt>
cmp    $0x0,%rax
jg     14bf <rsa_pss_param_print+0x37f>
jmp    14db <rsa_pss_param_print+0x39b>
jmp    14c4 <rsa_pss_param_print+0x384>
mov    -0x10(%rbp),%rdi
lea    0xb4a(%rip),%rsi
call   1050 <BIO_puts@plt>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rsa_pss_param_print>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rdi,%rbx
test   %rsi,%rsi
je     11b2 <rsa_pss_param_print+0x72>
mov    %ecx,%r15d
mov    %rdx,%r12
mov    %rsi,%rbp
lea    0xeb9(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
xor    %r14d,%r14d
test   %rax,%rax
jle    11cb <rsa_pss_param_print+0x8b>
mov    %rbx,%rdi
mov    %r15d,%esi
mov    $0x80,%edx
call   1040 <BIO_indent@plt>
test   %eax,%eax
je     11cb <rsa_pss_param_print+0x8b>
lea    0xe90(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
test   %rax,%rax
jle    11cb <rsa_pss_param_print+0x8b>
mov    0x18(%rbp),%rax
test   %rax,%rax
je     11d7 <rsa_pss_param_print+0x97>
mov    (%rax),%esi
mov    %rbx,%rdi
call   1030 <i2a_ASN1_OBJECT@plt>
test   %rax,%rax
jg     11eb <rsa_pss_param_print+0xab>
jmp    11cb <rsa_pss_param_print+0x8b>
lea    0xe47(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
xor    %r14d,%r14d
test   %rax,%rax
setg   %r14b
mov    %r14d,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe78(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
test   %rax,%rax
jle    11cb <rsa_pss_param_print+0x8b>
lea    0xe27(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
test   %rax,%rax
jle    11cb <rsa_pss_param_print+0x8b>
mov    %rbx,%rdi
mov    %r15d,%esi
mov    $0x80,%edx
call   1040 <BIO_indent@plt>
test   %eax,%eax
je     11cb <rsa_pss_param_print+0x8b>
lea    0xe12(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
test   %rax,%rax
jle    11cb <rsa_pss_param_print+0x8b>
mov    0x10(%rbp),%rax
test   %rax,%rax
je     126a <rsa_pss_param_print+0x12a>
mov    (%rax),%esi
mov    %rbx,%rdi
call   1030 <i2a_ASN1_OBJECT@plt>
test   %rax,%rax
jle    11cb <rsa_pss_param_print+0x8b>
lea    0xdf7(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
test   %rax,%rax
jle    11cb <rsa_pss_param_print+0x8b>
test   %r12,%r12
je     12d4 <rsa_pss_param_print+0x194>
mov    (%r12),%esi
mov    %rbx,%rdi
call   1030 <i2a_ASN1_OBJECT@plt>
jmp    1279 <rsa_pss_param_print+0x139>
lea    0xddb(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
test   %rax,%rax
jle    11cb <rsa_pss_param_print+0x8b>
lea    0xd90(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
mov    %rbx,%rdi
mov    %r15d,%esi
mov    $0x80,%edx
call   1040 <BIO_indent@plt>
test   %eax,%eax
je     11cb <rsa_pss_param_print+0x8b>
lea    0xdb5(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
test   %rax,%rax
jle    11cb <rsa_pss_param_print+0x8b>
mov    0x8(%rbp),%rsi
test   %rsi,%rsi
je     12dd <rsa_pss_param_print+0x19d>
mov    %rbx,%rdi
call   1060 <i2a_ASN1_INTEGER@plt>
jmp    12ec <rsa_pss_param_print+0x1ac>
lea    0xd69(%rip),%rsi
jmp    1271 <rsa_pss_param_print+0x131>
lea    0xd91(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
test   %rax,%rax
jle    11cb <rsa_pss_param_print+0x8b>
lea    0xd1d(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
mov    %rbx,%rdi
mov    %r15d,%esi
mov    $0x80,%edx
call   1040 <BIO_indent@plt>
test   %eax,%eax
je     11cb <rsa_pss_param_print+0x8b>
lea    0xd61(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
test   %rax,%rax
jle    11cb <rsa_pss_param_print+0x8b>
mov    0x0(%rbp),%rsi
test   %rsi,%rsi
je     1347 <rsa_pss_param_print+0x207>
mov    %rbx,%rdi
call   1060 <i2a_ASN1_INTEGER@plt>
jmp    1356 <rsa_pss_param_print+0x216>
lea    0xd48(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
test   %rax,%rax
jle    11cb <rsa_pss_param_print+0x8b>
lea    0xcb3(%rip),%rsi
mov    %rbx,%rdi
call   1050 <BIO_puts@plt>
mov    $0x1,%r14d
jmp    11cb <rsa_pss_param_print+0x8b>

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

LLVM IR (-O2):
%struct.TYPE_10__ = type { i64, i64, %struct.TYPE_8__*, %struct.TYPE_7__* }
%struct.TYPE_8__ = type { i32 }
%struct.TYPE_7__ = type { i32 }
%struct.TYPE_9__ = type { i32 }
@.str = [27 x i8] c" (INVALID PSS PARAMETERS)\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [17 x i8] c"Hash Algorithm: \00"
@.str.3 = [15 x i8] c"sha1 (default)\00"
@.str.4 = [17 x i8] c"Mask Algorithm: \00"
@.str.5 = [7 x i8] c" with \00"
@.str.6 = [8 x i8] c"INVALID\00"
@.str.7 = [25 x i8] c"mgf1 with sha1 (default)\00"
@.str.8 = [16 x i8] c"Salt Length: 0x\00"
@.str.9 = [15 x i8] c"0x14 (default)\00"
@.str.10 = [18 x i8] c"Trailer Field: 0x\00"
@.str.11 = [13 x i8] c"BC (default)\00"
define i32 @rsa_pss_param_print(i32* %0, %struct.TYPE_10__* %1, %struct.TYPE_9__* %2, i32 %3) {
%5 = icmp eq %struct.TYPE_10__* %1, null
br i1 %5, label %6, label %10
6: ; preds = %4
%7 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%8 = icmp sgt i64 %7, 0
%9 = zext i1 %8 to i32
br label %101
10: ; preds = %4
%11 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp slt i64 %11, 1
br i1 %12, label %101, label %13
13: ; preds = %10
%14 = tail call i32 @BIO_indent(i32* %0, i32 %3, i32 128)
%15 = icmp eq i32 %14, 0
br i1 %15, label %101, label %16
16: ; preds = %13
%17 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%18 = icmp slt i64 %17, 1
br i1 %18, label %101, label %19
19: ; preds = %16
%20 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %1, i64 0, i32 3
%21 = load %struct.TYPE_7__*, %struct.TYPE_7__** %20
%22 = icmp eq %struct.TYPE_7__* %21, null
br i1 %22, label %28, label %23
23: ; preds = %19
%24 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %21, i64 0, i32 0
%25 = load i32, i32* %24
%26 = tail call i64 @i2a_ASN1_OBJECT(i32* %0, i32 %25)
%27 = icmp slt i64 %26, 1
br i1 %27, label %101, label %31
28: ; preds = %19
%29 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%30 = icmp slt i64 %29, 1
br i1 %30, label %101, label %31
31: ; preds = %28, %23
%32 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%33 = icmp slt i64 %32, 1
br i1 %33, label %101, label %34
34: ; preds = %31
%35 = tail call i32 @BIO_indent(i32* %0, i32 %3, i32 128)
%36 = icmp eq i32 %35, 0
br i1 %36, label %101, label %37
37: ; preds = %34
%38 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%39 = icmp slt i64 %38, 1
br i1 %39, label %101, label %40
40: ; preds = %37
%41 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %1, i64 0, i32 2
%42 = load %struct.TYPE_8__*, %struct.TYPE_8__** %41
%43 = icmp eq %struct.TYPE_8__* %42, null
br i1 %43, label %62, label %44
44: ; preds = %40
%45 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %42, i64 0, i32 0
%46 = load i32, i32* %45
%47 = tail call i64 @i2a_ASN1_OBJECT(i32* %0, i32 %46)
%48 = icmp slt i64 %47, 1
br i1 %48, label %101, label %49
49: ; preds = %44
%50 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%51 = icmp slt i64 %50, 1
br i1 %51, label %101, label %52
52: ; preds = %49
%53 = icmp eq %struct.TYPE_9__* %2, null
br i1 %53, label %59, label %54
54: ; preds = %52
%55 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %2, i64 0, i32 0
%56 = load i32, i32* %55
%57 = tail call i64 @i2a_ASN1_OBJECT(i32* %0, i32 %56)
%58 = icmp slt i64 %57, 1
br i1 %58, label %101, label %65
59: ; preds = %52
%60 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%61 = icmp slt i64 %60, 1
br i1 %61, label %101, label %65
62: ; preds = %40
%63 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%64 = icmp slt i64 %63, 1
br i1 %64, label %101, label %65
65: ; preds = %62, %54, %59
%66 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%67 = tail call i32 @BIO_indent(i32* %0, i32 %3, i32 128)
%68 = icmp eq i32 %67, 0
br i1 %68, label %101, label %69
69: ; preds = %65
%70 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
%71 = icmp slt i64 %70, 1
br i1 %71, label %101, label %72
72: ; preds = %69
%73 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %1, i64 0, i32 1
%74 = load i64, i64* %73
%75 = icmp eq i64 %74, 0
br i1 %75, label %79, label %76
76: ; preds = %72
%77 = tail call i64 @i2a_ASN1_INTEGER(i32* %0, i64 %74)
%78 = icmp slt i64 %77, 1
br i1 %78, label %101, label %82
79: ; preds = %72
%80 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%81 = icmp slt i64 %80, 1
br i1 %81, label %101, label %82
82: ; preds = %79, %76
%83 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%84 = tail call i32 @BIO_indent(i32* %0, i32 %3, i32 128)
%85 = icmp eq i32 %84, 0
br i1 %85, label %101, label %86
86: ; preds = %82
%87 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
%88 = icmp slt i64 %87, 1
br i1 %88, label %101, label %89
89: ; preds = %86
%90 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %1, i64 0, i32 0
%91 = load i64, i64* %90
%92 = icmp eq i64 %91, 0
br i1 %92, label %96, label %93
93: ; preds = %89
%94 = tail call i64 @i2a_ASN1_INTEGER(i32* %0, i64 %91)
%95 = icmp slt i64 %94, 1
br i1 %95, label %101, label %99
96: ; preds = %89
%97 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
%98 = icmp slt i64 %97, 1
br i1 %98, label %101, label %99
99: ; preds = %96, %93
%100 = tail call i64 @BIO_puts(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %101
101: ; preds = %99, %10, %13, %16, %23, %28, %31, %34, %37, %44, %49, %54, %59, %62, %65, %69, %76, %79, %82, %86, %93, %96, %6
%102 = phi i32 [ %9, %6 ], [ 0, %10 ], [ 0, %16 ], [ 0, %23 ], [ 0, %31 ], [ 0, %37 ], [ 0, %44 ], [ 0, %49 ], [ 0, %54 ], [ 0, %69 ], [ 0, %76 ], [ 0, %86 ], [ 0, %93 ], [ 1, %99 ], [ 0, %96 ], [ 0, %82 ], [ 0, %79 ], [ 0, %65 ], [ 0, %59 ], [ 0, %62 ], [ 0, %34 ], [ 0, %28 ], [ 0, %13 ]
ret i32 %102
}