#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_12__ TYPE_3__;
typedef struct TYPE_11__ TYPE_2__;
typedef struct TYPE_10__ TYPE_1__;

/* Type definitions */
struct TYPE_12__ {
  scalar_t__ type;
  int length;
  unsigned char const *data;
};
struct TYPE_11__ {
  scalar_t__ type;
  int length;
  unsigned char const *data;
};
struct TYPE_10__ {
  int length;
  unsigned char *data;
};
typedef int /*<<< orphan*/ BIO;
typedef TYPE_1__ ASN1_OCTET_STRING;
typedef int /*<<< orphan*/ ASN1_OBJECT;
typedef TYPE_2__ ASN1_INTEGER;
typedef TYPE_3__ ASN1_ENUMERATED;

/* Variables and functions */
int /*<<< orphan*/ ASN1_OBJECT_free(int /*<<< orphan*/ *);
int ASN1_get_object(unsigned char const **, long *, int *, int *, long);
scalar_t__ BIO_dump_indent(int /*<<< orphan*/ *, char const *, long, int);
scalar_t__ BIO_printf(int /*<<< orphan*/ *, char *, unsigned char const, ...);
int /*<<< orphan*/ BIO_puts(int /*<<< orphan*/ *, char *);
int BIO_write(int /*<<< orphan*/ *, char const *, int);
int /*<<< orphan*/ M_ASN1_ENUMERATED_free(TYPE_3__ *);
int /*<<< orphan*/ M_ASN1_INTEGER_free(TYPE_2__ *);
int /*<<< orphan*/ M_ASN1_OCTET_STRING_free(TYPE_1__ *);
int V_ASN1_BMPSTRING;
int V_ASN1_BOOLEAN;
int V_ASN1_CONSTRUCTED;
int V_ASN1_ENUMERATED;
int V_ASN1_EOC;
int V_ASN1_GENERALIZEDTIME;
int V_ASN1_IA5STRING;
int V_ASN1_INTEGER;
scalar_t__ V_ASN1_NEG_ENUMERATED;
scalar_t__ V_ASN1_NEG_INTEGER;
int V_ASN1_NUMERICSTRING;
int V_ASN1_OBJECT;
int V_ASN1_OCTET_STRING;
int V_ASN1_PRINTABLESTRING;
int V_ASN1_T61STRING;
int V_ASN1_UTCTIME;
int V_ASN1_UTF8STRING;
int V_ASN1_VISIBLESTRING;
int /*<<< orphan*/ asn1_print_info(int /*<<< orphan*/ *, int, int, int, int);
int d2i_ASN1_BOOLEAN(int /*<<< orphan*/ *, unsigned char const **, long);
TYPE_3__ *d2i_ASN1_ENUMERATED(int /*<<< orphan*/ *, unsigned char const **,
                              long);
TYPE_2__ *d2i_ASN1_INTEGER(int /*<<< orphan*/ *, unsigned char const **, long);
int /*<<< orphan*/ *d2i_ASN1_OBJECT(int /*<<< orphan*/ **,
                                    unsigned char const **, long);
TYPE_1__ *d2i_ASN1_OCTET_STRING(int /*<<< orphan*/ *, unsigned char const **,
                                long);
int /*<<< orphan*/ i2a_ASN1_OBJECT(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int asn1_parse2(BIO *bp, const unsigned char **pp, long length, int offset,
                int depth, int indent, int dump) {
  const unsigned char *p, *ep, *tot, *op, *opp;
  long len;
  int tag, xclass, ret = 0;
  int nl, hl, j, r;
  ASN1_OBJECT *o = NULL;
  ASN1_OCTET_STRING *os = NULL;
  int dump_indent;
  dump_indent = 6;
  if (depth > 128) {
    BIO_puts(bp, "BAD RECURSION DEPTH\n");
    return 0;
  }
  p = *pp;
  tot = p + length;
  op = p - 1;
  while ((p < tot) && (op < p)) {
    op = p;
    j = ASN1_get_object(&p, &len, &tag, &xclass, length);
    if (j & 0x80) {
      if (BIO_write(bp, "Error in encoding\n", 18) <= 0)
        goto end;
      ret = 0;
      goto end;
    }
    hl = (p - op);
    length -= hl;
    if (BIO_printf(bp, "%5ld:", (long)offset + (long)(op - *pp)) <= 0)
      goto end;
    if (j != (V_ASN1_CONSTRUCTED | 1)) {
      if (BIO_printf(bp, "d=%-2d hl=%ld l=%4ld ", depth, (long)hl, len) <= 0)
        goto end;
    } else {
      if (BIO_printf(bp, "d=%-2d hl=%ld l=inf  ", depth, (long)hl) <= 0)
        goto end;
    }
    if (!asn1_print_info(bp, tag, xclass, j, (indent) ? depth : 0))
      goto end;
    if (j & V_ASN1_CONSTRUCTED) {
      ep = p + len;
      if (BIO_write(bp, "\n", 1) <= 0)
        goto end;
      if (len > length) {
        BIO_printf(bp, "length is greater than %ld\n", length);
        ret = 0;
        goto end;
      }
      if ((j == 0x21) && (len == 0)) {
        for (;;) {
          r = asn1_parse2(bp, &p, (long)(tot - p), offset + (p - *pp),
                          depth + 1, indent, dump);
          if (r == 0) {
            ret = 0;
            goto end;
          }
          if ((r == 2) || (p >= tot))
            break;
        }
      } else
        while (p < ep) {
          r = asn1_parse2(bp, &p, (long)len, offset + (p - *pp), depth + 1,
                          indent, dump);
          if (r == 0) {
            ret = 0;
            goto end;
          }
        }
    } else if (xclass != 0) {
      p += len;
      if (BIO_write(bp, "\n", 1) <= 0)
        goto end;
    } else {
      nl = 0;
      if ((tag == V_ASN1_PRINTABLESTRING) || (tag == V_ASN1_T61STRING) ||
          (tag == V_ASN1_IA5STRING) || (tag == V_ASN1_VISIBLESTRING) ||
          (tag == V_ASN1_NUMERICSTRING) || (tag == V_ASN1_UTF8STRING) ||
          (tag == V_ASN1_UTCTIME) || (tag == V_ASN1_GENERALIZEDTIME)) {
        if (BIO_write(bp, ":", 1) <= 0)
          goto end;
        if ((len > 0) && BIO_write(bp, (const char *)p, (int)len) != (int)len)
          goto end;
      } else if (tag == V_ASN1_OBJECT) {
        opp = op;
        if (d2i_ASN1_OBJECT(&o, &opp, len + hl) != NULL) {
          if (BIO_write(bp, ":", 1) <= 0)
            goto end;
          i2a_ASN1_OBJECT(bp, o);
        } else {
          if (BIO_write(bp, ":BAD OBJECT", 11) <= 0)
            goto end;
        }
      } else if (tag == V_ASN1_BOOLEAN) {
        int ii;
        opp = op;
        ii = d2i_ASN1_BOOLEAN(NULL, &opp, len + hl);
        if (ii < 0) {
          if (BIO_write(bp, "Bad boolean\n", 12) <= 0)
            goto end;
        }
        BIO_printf(bp, ":%d", ii);
      } else if (tag == V_ASN1_BMPSTRING) {
      } else if (tag == V_ASN1_OCTET_STRING) {
        int i, printable = 1;
        opp = op;
        os = d2i_ASN1_OCTET_STRING(NULL, &opp, len + hl);
        if (os != NULL && os->length > 0) {
          opp = os->data;
          for (i = 0; i < os->length; i++) {
            if (((opp[i] < ' ') && (opp[i] != '\n') && (opp[i] != '\r') &&
                 (opp[i] != '\t')) ||
                (opp[i] > '~')) {
              printable = 0;
              break;
            }
          }
          if (printable) {
            if (BIO_write(bp, ":", 1) <= 0)
              goto end;
            if (BIO_write(bp, (const char *)opp, os->length) <= 0)
              goto end;
          } else if (!dump) {
            if (BIO_write(bp, "[HEX DUMP]:", 11) <= 0)
              goto end;
            for (i = 0; i < os->length; i++) {
              if (BIO_printf(bp, "%02X", opp[i]) <= 0)
                goto end;
            }
          } else {
            if (!nl) {
              if (BIO_write(bp, "\n", 1) <= 0)
                goto end;
            }
            if (BIO_dump_indent(
                    bp, (const char *)opp,
                    ((dump == -1 || dump > os->length) ? os->length : dump),
                    dump_indent) <= 0)
              goto end;
            nl = 1;
          }
        }
        if (os != NULL) {
          M_ASN1_OCTET_STRING_free(os);
          os = NULL;
        }
      } else if (tag == V_ASN1_INTEGER) {
        ASN1_INTEGER *bs;
        int i;
        opp = op;
        bs = d2i_ASN1_INTEGER(NULL, &opp, len + hl);
        if (bs != NULL) {
          if (BIO_write(bp, ":", 1) <= 0)
            goto end;
          if (bs->type == V_ASN1_NEG_INTEGER)
            if (BIO_write(bp, "-", 1) <= 0)
              goto end;
          for (i = 0; i < bs->length; i++) {
            if (BIO_printf(bp, "%02X", bs->data[i]) <= 0)
              goto end;
          }
          if (bs->length == 0) {
            if (BIO_write(bp, "00", 2) <= 0)
              goto end;
          }
        } else {
          if (BIO_write(bp, "BAD INTEGER", 11) <= 0)
            goto end;
        }
        M_ASN1_INTEGER_free(bs);
      } else if (tag == V_ASN1_ENUMERATED) {
        ASN1_ENUMERATED *bs;
        int i;
        opp = op;
        bs = d2i_ASN1_ENUMERATED(NULL, &opp, len + hl);
        if (bs != NULL) {
          if (BIO_write(bp, ":", 1) <= 0)
            goto end;
          if (bs->type == V_ASN1_NEG_ENUMERATED)
            if (BIO_write(bp, "-", 1) <= 0)
              goto end;
          for (i = 0; i < bs->length; i++) {
            if (BIO_printf(bp, "%02X", bs->data[i]) <= 0)
              goto end;
          }
          if (bs->length == 0) {
            if (BIO_write(bp, "00", 2) <= 0)
              goto end;
          }
        } else {
          if (BIO_write(bp, "BAD ENUMERATED", 11) <= 0)
            goto end;
        }
        M_ASN1_ENUMERATED_free(bs);
      } else if (len > 0 && dump) {
        if (!nl) {
          if (BIO_write(bp, "\n", 1) <= 0)
            goto end;
        }
        if (BIO_dump_indent(bp, (const char *)p,
                            ((dump == -1 || dump > len) ? len : dump),
                            dump_indent) <= 0)
          goto end;
        nl = 1;
      }
      if (!nl) {
        if (BIO_write(bp, "\n", 1) <= 0)
          goto end;
      }
      p += len;
      if ((tag == V_ASN1_EOC) && (xclass == 0)) {
        ret = 2;
        goto end;
      }
    }
    length -= len;
  }
  ret = 1;
end:
  if (o != NULL)
    ASN1_OBJECT_free(o);
  if (os != NULL)
    M_ASN1_OCTET_STRING_free(os);
  *pp = p;
  return (ret);
}


x86 assembly (clang, -O0):
<asn1_parse2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    %r8d,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
movl   $0x0,-0x6c(%rbp)
movq   $0x0,-0x88(%rbp)
movq   $0x0,-0x90(%rbp)
movl   $0x6,-0x94(%rbp)
cmpl   $0x80,-0x28(%rbp)
jle    1285 <asn1_parse2+0x75>
mov    -0x10(%rbp),%rdi
lea    0x1d8c(%rip),%rsi
call   1120 <BIO_puts@plt>
movl   $0x0,-0x4(%rbp)
jmp    207e <asn1_parse2+0xe6e>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
add    -0x20(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x50(%rbp)
mov    -0x38(%rbp),%rcx
xor    %eax,%eax
cmp    -0x48(%rbp),%rcx
mov    %al,-0xbd(%rbp)
jae    12cf <asn1_parse2+0xbf>
mov    -0x50(%rbp),%rax
cmp    -0x38(%rbp),%rax
setb   %al
mov    %al,-0xbd(%rbp)
mov    -0xbd(%rbp),%al
test   $0x1,%al
jne    12e2 <asn1_parse2+0xd2>
jmp    2032 <asn1_parse2+0xe22>
mov    -0x38(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x20(%rbp),%r8
lea    -0x38(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    -0x68(%rbp),%rcx
call   10b0 <ASN1_get_object@plt>
mov    %eax,-0x78(%rbp)
mov    -0x78(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1346 <asn1_parse2+0x136>
mov    -0x10(%rbp),%rdi
lea    0x1cf3(%rip),%rsi
mov    $0x12,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     133a <asn1_parse2+0x12a>
jmp    2039 <asn1_parse2+0xe29>
movl   $0x0,-0x6c(%rbp)
jmp    2039 <asn1_parse2+0xe29>
mov    -0x38(%rbp),%rax
mov    -0x50(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,-0x74(%rbp)
movslq -0x74(%rbp),%rcx
mov    -0x20(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
movslq -0x24(%rbp),%rax
mov    -0x50(%rbp),%rcx
mov    -0x18(%rbp),%rdx
mov    (%rdx),%rdx
sub    %rdx,%rcx
add    %rcx,%rax
lea    0x1ca5(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
cmp    $0x0,%rax
jg     139c <asn1_parse2+0x18c>
jmp    2039 <asn1_parse2+0xe29>
mov    -0x78(%rbp),%eax
mov    0x3bca(%rip),%rcx
mov    (%rcx),%ecx
or     $0x1,%ecx
cmp    %ecx,%eax
je     13e7 <asn1_parse2+0x1d7>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%eax
movslq -0x74(%rbp),%rcx
mov    -0x60(%rbp),%r8
lea    0x1c65(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
cmp    $0x0,%rax
jg     13e2 <asn1_parse2+0x1d2>
jmp    2039 <asn1_parse2+0xe29>
jmp    1417 <asn1_parse2+0x207>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%eax
movslq -0x74(%rbp),%rcx
lea    0x1c4b(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
cmp    $0x0,%rax
jg     1412 <asn1_parse2+0x202>
jmp    2039 <asn1_parse2+0xe29>
jmp    1417 <asn1_parse2+0x207>
mov    -0x10(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0xcc(%rbp)
mov    -0x68(%rbp),%eax
mov    %eax,-0xc8(%rbp)
mov    -0x78(%rbp),%eax
mov    %eax,-0xc4(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1455 <asn1_parse2+0x245>
mov    -0x28(%rbp),%eax
mov    %eax,-0xdc(%rbp)
jmp    1462 <asn1_parse2+0x252>
xor    %eax,%eax
mov    %eax,-0xdc(%rbp)
jmp    1462 <asn1_parse2+0x252>
mov    -0xc4(%rbp),%ecx
mov    -0xc8(%rbp),%edx
mov    -0xcc(%rbp),%esi
mov    -0xd8(%rbp),%rdi
mov    -0xdc(%rbp),%r8d
call   1110 <asn1_print_info@plt>
cmp    $0x0,%eax
jne    1495 <asn1_parse2+0x285>
jmp    2039 <asn1_parse2+0xe29>
mov    -0x78(%rbp),%eax
mov    0x3ad1(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     161c <asn1_parse2+0x40c>
mov    -0x38(%rbp),%rax
add    -0x60(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
lea    0x1b52(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     14d9 <asn1_parse2+0x2c9>
jmp    2039 <asn1_parse2+0xe29>
mov    -0x60(%rbp),%rax
cmp    -0x20(%rbp),%rax
jle    150c <asn1_parse2+0x2fc>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
lea    0x1b64(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
movl   $0x0,-0x6c(%rbp)
jmp    2039 <asn1_parse2+0xe29>
cmpl   $0x21,-0x78(%rbp)
jne    15a7 <asn1_parse2+0x397>
cmpq   $0x0,-0x60(%rbp)
jne    15a7 <asn1_parse2+0x397>
jmp    1526 <asn1_parse2+0x316>
mov    -0x10(%rbp),%rdi
mov    -0x48(%rbp),%rdx
mov    -0x38(%rbp),%rax
sub    %rax,%rdx
movslq -0x24(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    -0x18(%rbp),%rsi
mov    (%rsi),%rsi
sub    %rsi,%rcx
add    %rcx,%rax
mov    %eax,%ecx
mov    -0x28(%rbp),%r8d
add    $0x1,%r8d
mov    -0x2c(%rbp),%r9d
mov    0x10(%rbp),%eax
lea    -0x38(%rbp),%rsi
mov    %eax,(%rsp)
call   1070 <asn1_parse2@plt>
mov    %eax,-0x7c(%rbp)
cmpl   $0x0,-0x7c(%rbp)
jne    1580 <asn1_parse2+0x370>
movl   $0x0,-0x6c(%rbp)
jmp    2039 <asn1_parse2+0xe29>
cmpl   $0x2,-0x7c(%rbp)
je     1598 <asn1_parse2+0x388>
mov    -0x38(%rbp),%rax
cmp    -0x48(%rbp),%rax
jb     159d <asn1_parse2+0x38d>
jmp    15a2 <asn1_parse2+0x392>
jmp    1526 <asn1_parse2+0x316>
jmp    1617 <asn1_parse2+0x407>
jmp    15ac <asn1_parse2+0x39c>
mov    -0x38(%rbp),%rax
cmp    -0x40(%rbp),%rax
jae    1612 <asn1_parse2+0x402>
mov    -0x10(%rbp),%rdi
mov    -0x60(%rbp),%rdx
movslq -0x24(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    -0x18(%rbp),%rsi
mov    (%rsi),%rsi
sub    %rsi,%rcx
add    %rcx,%rax
mov    %eax,%ecx
mov    -0x28(%rbp),%r8d
add    $0x1,%r8d
mov    -0x2c(%rbp),%r9d
mov    0x10(%rbp),%eax
lea    -0x38(%rbp),%rsi
mov    %eax,(%rsp)
call   1070 <asn1_parse2@plt>
mov    %eax,-0x7c(%rbp)
cmpl   $0x0,-0x7c(%rbp)
jne    160d <asn1_parse2+0x3fd>
movl   $0x0,-0x6c(%rbp)
jmp    2039 <asn1_parse2+0xe29>
jmp    15ac <asn1_parse2+0x39c>
jmp    1617 <asn1_parse2+0x407>
jmp    201e <asn1_parse2+0xe0e>
cmpl   $0x0,-0x68(%rbp)
je     165a <asn1_parse2+0x44a>
mov    -0x60(%rbp),%rax
add    -0x38(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
lea    0x19d6(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1655 <asn1_parse2+0x445>
jmp    2039 <asn1_parse2+0xe29>
jmp    2019 <asn1_parse2+0xe09>
movl   $0x0,-0x70(%rbp)
mov    -0x64(%rbp),%eax
mov    0x3915(%rip),%rcx
cmp    (%rcx),%eax
je     16f1 <asn1_parse2+0x4e1>
mov    -0x64(%rbp),%eax
mov    0x391b(%rip),%rcx
cmp    (%rcx),%eax
je     16f1 <asn1_parse2+0x4e1>
mov    -0x64(%rbp),%eax
mov    0x38f9(%rip),%rcx
cmp    (%rcx),%eax
je     16f1 <asn1_parse2+0x4e1>
mov    -0x64(%rbp),%eax
mov    0x392f(%rip),%rcx
cmp    (%rcx),%eax
je     16f1 <asn1_parse2+0x4e1>
mov    -0x64(%rbp),%eax
mov    0x3935(%rip),%rcx
cmp    (%rcx),%eax
je     16f1 <asn1_parse2+0x4e1>
mov    -0x64(%rbp),%eax
mov    0x38fb(%rip),%rcx
cmp    (%rcx),%eax
je     16f1 <asn1_parse2+0x4e1>
mov    -0x64(%rbp),%eax
mov    0x3889(%rip),%rcx
cmp    (%rcx),%eax
je     16f1 <asn1_parse2+0x4e1>
mov    -0x64(%rbp),%eax
mov    0x38cf(%rip),%rcx
cmp    (%rcx),%eax
jne    1748 <asn1_parse2+0x538>
mov    -0x10(%rbp),%rdi
lea    0x19a1(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1714 <asn1_parse2+0x504>
jmp    2039 <asn1_parse2+0xe29>
cmpq   $0x0,-0x60(%rbp)
jle    1743 <asn1_parse2+0x533>
mov    -0x10(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x60(%rbp),%rax
mov    %eax,%edx
call   1130 <BIO_write@plt>
mov    -0x60(%rbp),%rcx
cmp    %ecx,%eax
je     1743 <asn1_parse2+0x533>
jmp    2039 <asn1_parse2+0xe29>
jmp    1fae <asn1_parse2+0xd9e>
mov    -0x64(%rbp),%eax
mov    0x3876(%rip),%rcx
cmp    (%rcx),%eax
jne    17ec <asn1_parse2+0x5dc>
mov    -0x50(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x60(%rbp),%rdx
movslq -0x74(%rbp),%rax
add    %rax,%rdx
lea    -0x88(%rbp),%rdi
lea    -0x58(%rbp),%rsi
call   1080 <d2i_ASN1_OBJECT@plt>
cmp    $0x0,%rax
je     17bf <asn1_parse2+0x5af>
mov    -0x10(%rbp),%rdi
lea    0x190b(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     17aa <asn1_parse2+0x59a>
jmp    2039 <asn1_parse2+0xe29>
mov    -0x10(%rbp),%rdi
mov    -0x88(%rbp),%rsi
call   1030 <i2a_ASN1_OBJECT@plt>
jmp    17e7 <asn1_parse2+0x5d7>
mov    -0x10(%rbp),%rdi
lea    0x18ac(%rip),%rsi
mov    $0xb,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     17e2 <asn1_parse2+0x5d2>
jmp    2039 <asn1_parse2+0xe29>
jmp    17e7 <asn1_parse2+0x5d7>
jmp    1fa9 <asn1_parse2+0xd99>
mov    -0x64(%rbp),%eax
mov    0x379a(%rip),%rcx
cmp    (%rcx),%eax
jne    1879 <asn1_parse2+0x669>
mov    -0x50(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x60(%rbp),%rdx
movslq -0x74(%rbp),%rax
add    %rax,%rdx
xor    %eax,%eax
mov    %eax,%edi
lea    -0x58(%rbp),%rsi
call   1100 <d2i_ASN1_BOOLEAN@plt>
mov    %eax,-0x98(%rbp)
cmpl   $0x0,-0x98(%rbp)
jge    1859 <asn1_parse2+0x649>
mov    -0x10(%rbp),%rdi
lea    0x1846(%rip),%rsi
mov    $0xc,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1854 <asn1_parse2+0x644>
jmp    2039 <asn1_parse2+0xe29>
jmp    1859 <asn1_parse2+0x649>
mov    -0x10(%rbp),%rdi
mov    -0x98(%rbp),%eax
lea    0x1825(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
jmp    1fa4 <asn1_parse2+0xd94>
mov    -0x64(%rbp),%eax
mov    0x36d5(%rip),%rcx
cmp    (%rcx),%eax
jne    1890 <asn1_parse2+0x680>
jmp    1f9f <asn1_parse2+0xd8f>
mov    -0x64(%rbp),%eax
mov    0x36ce(%rip),%rcx
cmp    (%rcx),%eax
jne    1b9f <asn1_parse2+0x98f>
movl   $0x1,-0xa0(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x60(%rbp),%rdx
movslq -0x74(%rbp),%rax
add    %rax,%rdx
xor    %eax,%eax
mov    %eax,%edi
lea    -0x58(%rbp),%rsi
call   1050 <d2i_ASN1_OCTET_STRING@plt>
mov    %rax,-0x90(%rbp)
cmpq   $0x0,-0x90(%rbp)
je     1b75 <asn1_parse2+0x965>
mov    -0x90(%rbp),%rax
cmpl   $0x0,(%rax)
jle    1b75 <asn1_parse2+0x965>
mov    -0x90(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
mov    -0x90(%rbp),%rcx
cmp    (%rcx),%eax
jge    19bf <asn1_parse2+0x7af>
mov    -0x58(%rbp),%rax
movslq -0x9c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
jge    197f <asn1_parse2+0x76f>
mov    -0x58(%rbp),%rax
movslq -0x9c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
je     197f <asn1_parse2+0x76f>
mov    -0x58(%rbp),%rax
movslq -0x9c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0xd,%eax
je     197f <asn1_parse2+0x76f>
mov    -0x58(%rbp),%rax
movslq -0x9c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x9,%eax
jne    1997 <asn1_parse2+0x787>
mov    -0x58(%rbp),%rax
movslq -0x9c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x7e,%eax
jle    19a6 <asn1_parse2+0x796>
movl   $0x0,-0xa0(%rbp)
jmp    19bf <asn1_parse2+0x7af>
jmp    19ab <asn1_parse2+0x79b>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    190a <asn1_parse2+0x6fa>
cmpl   $0x0,-0xa0(%rbp)
je     1a18 <asn1_parse2+0x808>
mov    -0x10(%rbp),%rdi
lea    0x16c6(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     19ef <asn1_parse2+0x7df>
jmp    2039 <asn1_parse2+0xe29>
mov    -0x10(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0x90(%rbp),%rax
mov    (%rax),%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1a13 <asn1_parse2+0x803>
jmp    2039 <asn1_parse2+0xe29>
jmp    1b70 <asn1_parse2+0x960>
cmpl   $0x0,0x10(%rbp)
jne    1ab2 <asn1_parse2+0x8a2>
mov    -0x10(%rbp),%rdi
lea    0x1666(%rip),%rsi
mov    $0xb,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1a45 <asn1_parse2+0x835>
jmp    2039 <asn1_parse2+0xe29>
movl   $0x0,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
mov    -0x90(%rbp),%rcx
cmp    (%rcx),%eax
jge    1aad <asn1_parse2+0x89d>
mov    -0x10(%rbp),%rdi
mov    -0x58(%rbp),%rax
movslq -0x9c(%rbp),%rcx
lea    0x1625(%rip),%rsi
movzbl (%rax,%rcx,1),%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
cmp    $0x0,%rax
jg     1a94 <asn1_parse2+0x884>
jmp    2039 <asn1_parse2+0xe29>
jmp    1a99 <asn1_parse2+0x889>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    1a4f <asn1_parse2+0x83f>
jmp    1b6b <asn1_parse2+0x95b>
cmpl   $0x0,-0x70(%rbp)
jne    1ae4 <asn1_parse2+0x8d4>
mov    -0x10(%rbp),%rdi
lea    0x154c(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1adf <asn1_parse2+0x8cf>
jmp    2039 <asn1_parse2+0xe29>
jmp    1ae4 <asn1_parse2+0x8d4>
mov    -0x10(%rbp),%rax
mov    %rax,-0xf0(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0xe8(%rbp)
cmpl   $0xffffffff,0x10(%rbp)
je     1b16 <asn1_parse2+0x906>
mov    0x10(%rbp),%eax
mov    -0x90(%rbp),%rcx
cmp    (%rcx),%eax
jle    1b2a <asn1_parse2+0x91a>
mov    -0x90(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0xf4(%rbp)
jmp    1b33 <asn1_parse2+0x923>
mov    0x10(%rbp),%eax
mov    %eax,-0xf4(%rbp)
mov    -0xe8(%rbp),%rsi
mov    -0xf0(%rbp),%rdi
mov    -0xf4(%rbp),%eax
movslq %eax,%rdx
mov    -0x94(%rbp),%ecx
call   10d0 <BIO_dump_indent@plt>
cmp    $0x0,%rax
jg     1b64 <asn1_parse2+0x954>
jmp    2039 <asn1_parse2+0xe29>
movl   $0x1,-0x70(%rbp)
jmp    1b70 <asn1_parse2+0x960>
jmp    1b75 <asn1_parse2+0x965>
cmpq   $0x0,-0x90(%rbp)
je     1b9a <asn1_parse2+0x98a>
mov    -0x90(%rbp),%rdi
call   1040 <M_ASN1_OCTET_STRING_free@plt>
movq   $0x0,-0x90(%rbp)
jmp    1f9a <asn1_parse2+0xd8a>
mov    -0x64(%rbp),%eax
mov    0x3407(%rip),%rcx
cmp    (%rcx),%eax
jne    1d32 <asn1_parse2+0xb22>
mov    -0x50(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x60(%rbp),%rdx
movslq -0x74(%rbp),%rax
add    %rax,%rdx
xor    %eax,%eax
mov    %eax,%edi
lea    -0x58(%rbp),%rsi
call   10a0 <d2i_ASN1_INTEGER@plt>
mov    %rax,-0xa8(%rbp)
cmpq   $0x0,-0xa8(%rbp)
je     1cf9 <asn1_parse2+0xae9>
mov    -0x10(%rbp),%rdi
lea    0x14ac(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1c09 <asn1_parse2+0x9f9>
jmp    2039 <asn1_parse2+0xe29>
mov    -0xa8(%rbp),%rax
mov    (%rax),%rax
mov    0x335e(%rip),%rcx
cmp    (%rcx),%rax
jne    1c4b <asn1_parse2+0xa3b>
mov    -0x10(%rbp),%rdi
lea    0x1476(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1c46 <asn1_parse2+0xa36>
jmp    2039 <asn1_parse2+0xe29>
jmp    1c4b <asn1_parse2+0xa3b>
movl   $0x0,-0xac(%rbp)
mov    -0xac(%rbp),%eax
mov    -0xa8(%rbp),%rcx
cmp    0x8(%rcx),%eax
jge    1cbb <asn1_parse2+0xaab>
mov    -0x10(%rbp),%rdi
mov    -0xa8(%rbp),%rax
mov    0x10(%rax),%rax
movslq -0xac(%rbp),%rcx
lea    0x1417(%rip),%rsi
movzbl (%rax,%rcx,1),%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
cmp    $0x0,%rax
jg     1ca2 <asn1_parse2+0xa92>
jmp    2039 <asn1_parse2+0xe29>
jmp    1ca7 <asn1_parse2+0xa97>
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
jmp    1c55 <asn1_parse2+0xa45>
mov    -0xa8(%rbp),%rax
cmpl   $0x0,0x8(%rax)
jne    1cf4 <asn1_parse2+0xae4>
mov    -0x10(%rbp),%rdi
lea    0x13cf(%rip),%rsi
mov    $0x2,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1cef <asn1_parse2+0xadf>
jmp    2039 <asn1_parse2+0xe29>
jmp    1cf4 <asn1_parse2+0xae4>
jmp    1d21 <asn1_parse2+0xb11>
mov    -0x10(%rbp),%rdi
lea    0x13a5(%rip),%rsi
mov    $0xb,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1d1c <asn1_parse2+0xb0c>
jmp    2039 <asn1_parse2+0xe29>
jmp    1d21 <asn1_parse2+0xb11>
mov    -0xa8(%rbp),%rdi
call   10c0 <M_ASN1_INTEGER_free@plt>
jmp    1f95 <asn1_parse2+0xd85>
mov    -0x64(%rbp),%eax
mov    0x3264(%rip),%rcx
cmp    (%rcx),%eax
jne    1ec5 <asn1_parse2+0xcb5>
mov    -0x50(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x60(%rbp),%rdx
movslq -0x74(%rbp),%rax
add    %rax,%rdx
xor    %eax,%eax
mov    %eax,%edi
lea    -0x58(%rbp),%rsi
call   1090 <d2i_ASN1_ENUMERATED@plt>
mov    %rax,-0xb8(%rbp)
cmpq   $0x0,-0xb8(%rbp)
je     1e8c <asn1_parse2+0xc7c>
mov    -0x10(%rbp),%rdi
lea    0x1319(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1d9c <asn1_parse2+0xb8c>
jmp    2039 <asn1_parse2+0xe29>
mov    -0xb8(%rbp),%rax
mov    (%rax),%rax
mov    0x322b(%rip),%rcx
cmp    (%rcx),%rax
jne    1dde <asn1_parse2+0xbce>
mov    -0x10(%rbp),%rdi
lea    0x12e3(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1dd9 <asn1_parse2+0xbc9>
jmp    2039 <asn1_parse2+0xe29>
jmp    1dde <asn1_parse2+0xbce>
movl   $0x0,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
mov    -0xb8(%rbp),%rcx
cmp    0x8(%rcx),%eax
jge    1e4e <asn1_parse2+0xc3e>
mov    -0x10(%rbp),%rdi
mov    -0xb8(%rbp),%rax
mov    0x10(%rax),%rax
movslq -0xbc(%rbp),%rcx
lea    0x1284(%rip),%rsi
movzbl (%rax,%rcx,1),%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
cmp    $0x0,%rax
jg     1e35 <asn1_parse2+0xc25>
jmp    2039 <asn1_parse2+0xe29>
jmp    1e3a <asn1_parse2+0xc2a>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
jmp    1de8 <asn1_parse2+0xbd8>
mov    -0xb8(%rbp),%rax
cmpl   $0x0,0x8(%rax)
jne    1e87 <asn1_parse2+0xc77>
mov    -0x10(%rbp),%rdi
lea    0x123c(%rip),%rsi
mov    $0x2,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1e82 <asn1_parse2+0xc72>
jmp    2039 <asn1_parse2+0xe29>
jmp    1e87 <asn1_parse2+0xc77>
jmp    1eb4 <asn1_parse2+0xca4>
mov    -0x10(%rbp),%rdi
lea    0x121e(%rip),%rsi
mov    $0xb,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1eaf <asn1_parse2+0xc9f>
jmp    2039 <asn1_parse2+0xe29>
jmp    1eb4 <asn1_parse2+0xca4>
mov    -0xb8(%rbp),%rdi
call   10e0 <M_ASN1_ENUMERATED_free@plt>
jmp    1f90 <asn1_parse2+0xd80>
cmpq   $0x0,-0x60(%rbp)
jle    1f8b <asn1_parse2+0xd7b>
cmpl   $0x0,0x10(%rbp)
je     1f8b <asn1_parse2+0xd7b>
cmpl   $0x0,-0x70(%rbp)
jne    1f0c <asn1_parse2+0xcfc>
mov    -0x10(%rbp),%rdi
lea    0x1124(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1f07 <asn1_parse2+0xcf7>
jmp    2039 <asn1_parse2+0xe29>
jmp    1f0c <asn1_parse2+0xcfc>
mov    -0x10(%rbp),%rax
mov    %rax,-0x108(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x100(%rbp)
cmpl   $0xffffffff,0x10(%rbp)
je     1f3a <asn1_parse2+0xd2a>
movslq 0x10(%rbp),%rax
cmp    -0x60(%rbp),%rax
jle    1f4a <asn1_parse2+0xd3a>
mov    -0x60(%rbp),%rax
mov    %rax,-0x110(%rbp)
jmp    1f55 <asn1_parse2+0xd45>
movslq 0x10(%rbp),%rax
mov    %rax,-0x110(%rbp)
mov    -0x100(%rbp),%rsi
mov    -0x108(%rbp),%rdi
mov    -0x110(%rbp),%rdx
mov    -0x94(%rbp),%ecx
call   10d0 <BIO_dump_indent@plt>
cmp    $0x0,%rax
jg     1f84 <asn1_parse2+0xd74>
jmp    2039 <asn1_parse2+0xe29>
movl   $0x1,-0x70(%rbp)
jmp    1f90 <asn1_parse2+0xd80>
jmp    1f95 <asn1_parse2+0xd85>
jmp    1f9a <asn1_parse2+0xd8a>
jmp    1f9f <asn1_parse2+0xd8f>
jmp    1fa4 <asn1_parse2+0xd94>
jmp    1fa9 <asn1_parse2+0xd99>
jmp    1fae <asn1_parse2+0xd9e>
cmpl   $0x0,-0x70(%rbp)
jne    1fe0 <asn1_parse2+0xdd0>
mov    -0x10(%rbp),%rdi
lea    0x1050(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
cmp    $0x0,%eax
jg     1fdb <asn1_parse2+0xdcb>
jmp    2039 <asn1_parse2+0xe29>
jmp    1fe0 <asn1_parse2+0xdd0>
mov    -0x60(%rbp),%rax
add    -0x38(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x64(%rbp),%eax
mov    0x3002(%rip),%rcx
cmp    (%rcx),%eax
jne    2014 <asn1_parse2+0xe04>
cmpl   $0x0,-0x68(%rbp)
jne    2014 <asn1_parse2+0xe04>
movl   $0x2,-0x6c(%rbp)
jmp    2039 <asn1_parse2+0xe29>
jmp    2019 <asn1_parse2+0xe09>
jmp    201e <asn1_parse2+0xe0e>
mov    -0x60(%rbp),%rcx
mov    -0x20(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x20(%rbp)
jmp    12a8 <asn1_parse2+0x98>
movl   $0x1,-0x6c(%rbp)
cmpq   $0x0,-0x88(%rbp)
je     2053 <asn1_parse2+0xe43>
mov    -0x88(%rbp),%rdi
call   10f0 <ASN1_OBJECT_free@plt>
cmpq   $0x0,-0x90(%rbp)
je     206d <asn1_parse2+0xe5d>
mov    -0x90(%rbp),%rdi
call   1040 <M_ASN1_OCTET_STRING_free@plt>
mov    -0x38(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<asn1_parse2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
movq   $0x0,0x58(%rsp)
cmp    $0x81,%r8d
jl     1247 <asn1_parse2+0x37>
lea    0xdc6(%rip),%rsi
call   1120 <BIO_puts@plt>
xor    %r12d,%r12d
jmp    1bfa <asn1_parse2+0x9ea>
mov    %rdx,%rbp
mov    %rsi,%r13
mov    (%rsi),%rax
mov    %rax,0x20(%rsp)
test   %rdx,%rdx
jle    1b9c <asn1_parse2+0x98c>
mov    %ecx,%ebx
mov    %rdi,%r10
lea    (%rax,%rbp,1),%rcx
mov    %rcx,0x50(%rsp)
mov    %ebx,%ecx
mov    %rcx,0x80(%rsp)
test   %r9d,%r9d
mov    %r8d,%ecx
mov    %r9d,0x64(%rsp)
cmove  %r9d,%ecx
mov    %ecx,0x68(%rsp)
mov    %r8d,0x6c(%rsp)
add    $0x1,%r8d
mov    %r8d,0x4c(%rsp)
movslq 0xc0(%rsp),%rcx
mov    %rcx,0x70(%rsp)
lea    0x20(%rsp),%rdi
lea    0x18(%rsp),%rsi
lea    0x3c(%rsp),%rdx
lea    0x38(%rsp),%rcx
mov    %r13,0x10(%rsp)
mov    %ebx,0x60(%rsp)
mov    %r10,0x30(%rsp)
mov    %rax,0x40(%rsp)
mov    %rbp,%r15
mov    %rbp,%r8
call   10b0 <ASN1_get_object@plt>
mov    %eax,%r14d
test   $0x80,%r14b
jne    1bb9 <asn1_parse2+0x9a9>
mov    0x20(%rsp),%ebp
mov    0x40(%rsp),%rbx
mov    0x80(%rsp),%rax
add    %ebx,%eax
sub    0x0(%r13),%eax
movzbl %al,%edx
xor    %r12d,%r12d
mov    0x30(%rsp),%rdi
lea    0xd1c(%rip),%rsi
xor    %eax,%eax
call   1060 <BIO_printf@plt>
test   %rax,%rax
jle    1c3b <asn1_parse2+0xa2b>
sub    %ebx,%ebp
movslq %ebp,%r13
mov    0x2c48(%rip),%rax
mov    (%rax),%eax
or     $0x1,%eax
movzbl 0x6c(%rsp),%edx
cmp    %eax,%r14d
jne    1360 <asn1_parse2+0x150>
xor    %r12d,%r12d
mov    0x30(%rsp),%rbp
mov    %rbp,%rdi
lea    0xcfb(%rip),%rsi
mov    %r13,%rcx
xor    %eax,%eax
call   1060 <BIO_printf@plt>
jmp    1381 <asn1_parse2+0x171>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x18(%rsp),%r8
xor    %r12d,%r12d
mov    0x30(%rsp),%rbp
mov    %rbp,%rdi
lea    0xcb7(%rip),%rsi
mov    %r13,%rcx
xor    %eax,%eax
call   1060 <BIO_printf@plt>
test   %rax,%rax
jle    1baf <asn1_parse2+0x99f>
mov    0x3c(%rsp),%esi
mov    0x38(%rsp),%edx
mov    %rbp,%rdi
mov    %r14d,%ecx
mov    0x68(%rsp),%r8d
call   1110 <asn1_print_info@plt>
xor    %r12d,%r12d
test   %eax,%eax
je     1baf <asn1_parse2+0x99f>
sub    %r13,%r15
mov    0x2bb9(%rip),%rax
test   %r14d,(%rax)
mov    %r15,0x78(%rsp)
je     14e0 <asn1_parse2+0x2d0>
mov    0x20(%rsp),%r15
add    0x18(%rsp),%r15
mov    0x30(%rsp),%r12
mov    %r12,%rdi
lea    0xc35(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c0f <asn1_parse2+0x9ff>
mov    0x18(%rsp),%rax
mov    0x78(%rsp),%rcx
cmp    %rcx,%rax
mov    0x10(%rsp),%r13
jg     1c1c <asn1_parse2+0xa0c>
cmp    $0x21,%r14d
mov    0x64(%rsp),%r14d
mov    0x60(%rsp),%ebp
lea    0x20(%rsp),%rbx
jne    14d0 <asn1_parse2+0x2c0>
test   %rax,%rax
jne    14d0 <asn1_parse2+0x2c0>
mov    0x20(%rsp),%rcx
xchg   %ax,%ax
mov    0x50(%rsp),%rdx
sub    %rcx,%rdx
mov    %r13,%r15
sub    0x0(%r13),%ecx
mov    %ebp,%r13d
add    %ebp,%ecx
mov    0xc0(%rsp),%eax
mov    %eax,(%rsp)
mov    %r12,%rbp
mov    %r12,%rdi
mov    %rbx,%rsi
mov    0x4c(%rsp),%r8d
mov    %r14d,%r9d
call   1070 <asn1_parse2@plt>
mov    %eax,%r12d
test   %eax,%eax
je     1ba7 <asn1_parse2+0x997>
cmp    $0x2,%r12d
lea    0x20(%rsp),%rbx
mov    %rbp,%r12
mov    %r13d,%ebp
mov    %r15,%r13
je     1820 <asn1_parse2+0x610>
mov    0x20(%rsp),%rcx
cmp    0x50(%rsp),%rcx
jb     1430 <asn1_parse2+0x220>
jmp    1820 <asn1_parse2+0x610>
nopl   0x0(%rax,%rax,1)
mov    0x18(%rsp),%rdx
sub    0x0(%r13),%ecx
add    %ebp,%ecx
mov    0xc0(%rsp),%eax
mov    %eax,(%rsp)
mov    %r12,%rdi
mov    %rbx,%rsi
mov    0x4c(%rsp),%r8d
mov    %r14d,%r9d
call   1070 <asn1_parse2@plt>
test   %eax,%eax
je     1bcf <asn1_parse2+0x9bf>
mov    0x20(%rsp),%rcx
cmp    %r15,%rcx
jb     14a0 <asn1_parse2+0x290>
jmp    1820 <asn1_parse2+0x610>
nop
cmpl   $0x0,0x38(%rsp)
je     1519 <asn1_parse2+0x309>
mov    0x18(%rsp),%rax
add    %rax,0x20(%rsp)
mov    0x30(%rsp),%rdi
lea    0xb16(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
mov    0x10(%rsp),%r13
jg     1820 <asn1_parse2+0x610>
jmp    1bcf <asn1_parse2+0x9bf>
mov    0x3c(%rsp),%eax
mov    0x2a5c(%rip),%rcx
cmp    (%rcx),%eax
je     15f9 <asn1_parse2+0x3e9>
mov    0x2a65(%rip),%rcx
cmp    (%rcx),%eax
je     15f9 <asn1_parse2+0x3e9>
mov    0x2a46(%rip),%rcx
cmp    (%rcx),%eax
je     15f9 <asn1_parse2+0x3e9>
mov    0x2a7f(%rip),%rcx
cmp    (%rcx),%eax
je     15f9 <asn1_parse2+0x3e9>
mov    0x2a88(%rip),%rcx
cmp    (%rcx),%eax
je     15f9 <asn1_parse2+0x3e9>
mov    0x2a51(%rip),%rcx
cmp    (%rcx),%eax
je     15f9 <asn1_parse2+0x3e9>
mov    0x29e2(%rip),%rcx
cmp    (%rcx),%eax
je     15f9 <asn1_parse2+0x3e9>
mov    0x2a2f(%rip),%rcx
cmp    (%rcx),%eax
je     15f9 <asn1_parse2+0x3e9>
mov    0x2a34(%rip),%rcx
cmp    (%rcx),%eax
jne    1644 <asn1_parse2+0x434>
mov    0x40(%rsp),%rax
mov    %rax,0x28(%rsp)
add    0x18(%rsp),%r13
lea    0x58(%rsp),%rdi
lea    0x28(%rsp),%rsi
mov    %r13,%rdx
call   1080 <d2i_ASN1_OBJECT@plt>
test   %rax,%rax
je     17b7 <asn1_parse2+0x5a7>
mov    0x30(%rsp),%rbp
mov    %rbp,%rdi
lea    0xac8(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c0f <asn1_parse2+0x9ff>
mov    0x58(%rsp),%rsi
mov    %rbp,%rdi
call   1030 <i2a_ASN1_OBJECT@plt>
jmp    17d8 <asn1_parse2+0x5c8>
mov    0x30(%rsp),%rbp
mov    %rbp,%rdi
lea    0xa95(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c0f <asn1_parse2+0x9ff>
mov    0x18(%rsp),%rdx
test   %rdx,%rdx
jle    17d8 <asn1_parse2+0x5c8>
mov    0x20(%rsp),%rsi
mov    %rbp,%rdi
call   1130 <BIO_write@plt>
cmp    0x18(%rsp),%eax
je     17d8 <asn1_parse2+0x5c8>
jmp    1c0f <asn1_parse2+0x9ff>
mov    0x2945(%rip),%rcx
cmp    (%rcx),%eax
jne    16af <asn1_parse2+0x49f>
mov    0x40(%rsp),%rax
mov    %rax,0x28(%rsp)
add    0x18(%rsp),%r13
xor    %edi,%edi
lea    0x28(%rsp),%rsi
mov    %r13,%rdx
call   1100 <d2i_ASN1_BOOLEAN@plt>
mov    %eax,%r14d
test   %eax,%eax
mov    0x30(%rsp),%rbp
jns    1695 <asn1_parse2+0x485>
mov    %rbp,%rdi
lea    0x9ff(%rip),%rsi
mov    $0xc,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c0f <asn1_parse2+0x9ff>
movzbl %r14b,%edx
mov    %rbp,%rdi
lea    0x9ec(%rip),%rsi
xor    %eax,%eax
call   1060 <BIO_printf@plt>
jmp    17d8 <asn1_parse2+0x5c8>
mov    0x28a2(%rip),%rcx
cmp    (%rcx),%eax
mov    0x30(%rsp),%rbp
je     17d8 <asn1_parse2+0x5c8>
mov    %rbp,%r15
mov    0x289b(%rip),%rcx
cmp    (%rcx),%eax
jne    186a <asn1_parse2+0x65a>
mov    0x40(%rsp),%rax
mov    %rax,0x28(%rsp)
add    0x18(%rsp),%r13
xor    %edi,%edi
lea    0x28(%rsp),%rsi
mov    %r13,%rdx
call   1050 <d2i_ASN1_OCTET_STRING@plt>
test   %rax,%rax
mov    %r15,%rbp
je     17d8 <asn1_parse2+0x5c8>
mov    %rax,%r14
mov    (%rax),%esi
test   %esi,%esi
jle    1ae5 <asn1_parse2+0x8d5>
mov    0x8(%r14),%rcx
mov    %rcx,0x28(%rsp)
xor    %edx,%edx
mov    $0x2600,%edi
jmp    172f <asn1_parse2+0x51f>
cmp    $0x7e,%al
ja     1744 <asn1_parse2+0x534>
add    $0x1,%rdx
cmp    %rdx,%rsi
je     1aae <asn1_parse2+0x89e>
movzbl (%rcx,%rdx,1),%eax
cmp    $0x1f,%al
ja     171e <asn1_parse2+0x50e>
cmp    $0xd,%al
ja     1744 <asn1_parse2+0x534>
movzbl %al,%eax
bt     %rax,%rdi
jb     1722 <asn1_parse2+0x512>
cmpl   $0x0,0xc0(%rsp)
je     1b41 <asn1_parse2+0x931>
mov    %r15,%rbp
mov    %r15,%rdi
lea    0x8b4(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c40 <asn1_parse2+0xa30>
movslq (%r14),%rax
mov    0xc0(%rsp),%ecx
cmp    %ecx,%eax
mov    0x70(%rsp),%rdx
cmovl  %rax,%rdx
cmp    $0xffffffff,%ecx
mov    0x28(%rsp),%rsi
cmove  %rax,%rdx
mov    %rbp,%rdi
mov    $0x6,%ecx
call   10d0 <BIO_dump_indent@plt>
test   %rax,%rax
jle    1c40 <asn1_parse2+0xa30>
mov    %r14,%rdi
call   1040 <M_ASN1_OCTET_STRING_free@plt>
mov    0x10(%rsp),%r13
jmp    17f9 <asn1_parse2+0x5e9>
mov    0x30(%rsp),%rbp
mov    %rbp,%rdi
lea    0x8b0(%rip),%rsi
mov    $0xb,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c0f <asn1_parse2+0x9ff>
mov    %rbp,%rdi
lea    0x831(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
mov    0x10(%rsp),%r13
jle    1bcf <asn1_parse2+0x9bf>
mov    0x18(%rsp),%rax
add    %rax,0x20(%rsp)
mov    0x3c(%rsp),%eax
mov    0x27ea(%rip),%rcx
cmp    (%rcx),%eax
jne    1820 <asn1_parse2+0x610>
cmpl   $0x0,0x38(%rsp)
je     1c35 <asn1_parse2+0xa25>
nopl   (%rax)
mov    0x20(%rsp),%rax
mov    $0x1,%r12d
cmp    0x50(%rsp),%rax
jae    1c3b <asn1_parse2+0xa2b>
mov    0x78(%rsp),%rbp
sub    0x18(%rsp),%rbp
cmp    %rax,0x40(%rsp)
mov    $0x0,%r14d
lea    0x20(%rsp),%rdi
lea    0x18(%rsp),%rsi
lea    0x3c(%rsp),%rdx
lea    0x38(%rsp),%rcx
jb     12c6 <asn1_parse2+0xb6>
jmp    1bd5 <asn1_parse2+0x9c5>
mov    0x273f(%rip),%rcx
cmp    (%rcx),%eax
jne    194d <asn1_parse2+0x73d>
mov    0x40(%rsp),%rax
mov    %rax,0x28(%rsp)
add    0x18(%rsp),%r13
xor    %edi,%edi
lea    0x28(%rsp),%rsi
mov    %r13,%rdx
call   10a0 <d2i_ASN1_INTEGER@plt>
mov    %rax,%r14
test   %rax,%rax
mov    %r15,%rbp
mov    %r15,%rdi
je     1af5 <asn1_parse2+0x8e5>
lea    0x7ed(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c0f <asn1_parse2+0x9ff>
mov    (%r14),%rax
mov    0x26ac(%rip),%rcx
cmp    (%rcx),%rax
mov    0x10(%rsp),%r13
jne    18f2 <asn1_parse2+0x6e2>
mov    %rbp,%rdi
lea    0x7c4(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1bcf <asn1_parse2+0x9bf>
mov    0x8(%r14),%eax
test   %eax,%eax
jle    1931 <asn1_parse2+0x721>
xor    %ebp,%ebp
mov    0x10(%r14),%rax
movzbl (%rax,%rbp,1),%edx
xor    %r12d,%r12d
mov    %r15,%rdi
lea    0x78e(%rip),%rsi
xor    %eax,%eax
call   1060 <BIO_printf@plt>
test   %rax,%rax
jle    1c3b <asn1_parse2+0xa2b>
add    $0x1,%rbp
movslq 0x8(%r14),%rax
cmp    %rax,%rbp
jl     18fc <asn1_parse2+0x6ec>
mov    %r15,%rbp
test   %eax,%eax
jne    1b0e <asn1_parse2+0x8fe>
mov    %rbp,%rdi
lea    0x763(%rip),%rsi
mov    $0x2,%edx
jmp    1b01 <asn1_parse2+0x8f1>
mov    0x264c(%rip),%rcx
cmp    (%rcx),%eax
jne    1a30 <asn1_parse2+0x820>
mov    0x40(%rsp),%rax
mov    %rax,0x28(%rsp)
add    0x18(%rsp),%r13
xor    %edi,%edi
lea    0x28(%rsp),%rsi
mov    %r13,%rdx
call   1090 <d2i_ASN1_ENUMERATED@plt>
mov    %rax,%r14
test   %rax,%rax
mov    %r15,%rbp
mov    %r15,%rdi
je     1b1b <asn1_parse2+0x90b>
lea    0x70a(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c0f <asn1_parse2+0x9ff>
mov    (%r14),%rax
mov    0x2629(%rip),%rcx
cmp    (%rcx),%rax
jne    19d0 <asn1_parse2+0x7c0>
mov    %rbp,%rdi
lea    0x6e6(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c0f <asn1_parse2+0x9ff>
mov    0x8(%r14),%eax
test   %eax,%eax
jle    1a14 <asn1_parse2+0x804>
xor    %ebp,%ebp
mov    0x10(%rsp),%r13
mov    0x10(%r14),%rax
movzbl (%rax,%rbp,1),%edx
xor    %r12d,%r12d
mov    %r15,%rdi
lea    0x6ab(%rip),%rsi
xor    %eax,%eax
call   1060 <BIO_printf@plt>
test   %rax,%rax
jle    1c3b <asn1_parse2+0xa2b>
add    $0x1,%rbp
movslq 0x8(%r14),%rax
cmp    %rax,%rbp
jl     19df <asn1_parse2+0x7cf>
mov    %r15,%rbp
test   %eax,%eax
jne    1b34 <asn1_parse2+0x924>
mov    %rbp,%rdi
lea    0x680(%rip),%rsi
mov    $0x2,%edx
jmp    1b27 <asn1_parse2+0x917>
cmpl   $0x0,0xc0(%rsp)
mov    %r15,%rbp
je     17d8 <asn1_parse2+0x5c8>
cmpq   $0x0,0x18(%rsp)
jle    17d8 <asn1_parse2+0x5c8>
mov    %rbp,%rdi
lea    0x5bc(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c0f <asn1_parse2+0x9ff>
mov    %rbp,%r12
mov    0x18(%rsp),%rax
mov    0x70(%rsp),%rdx
cmp    %rdx,%rax
cmovl  %rax,%rdx
cmpl   $0xffffffff,0xc0(%rsp)
ff
mov    0x20(%rsp),%rsi
cmove  %rax,%rdx
mov    %rbp,%rdi
mov    $0x6,%ecx
call   10d0 <BIO_dump_indent@plt>
test   %rax,%rax
mov    0x10(%rsp),%r13
jg     17f9 <asn1_parse2+0x5e9>
jmp    1bcf <asn1_parse2+0x9bf>
mov    %r15,%rbp
mov    %r15,%rdi
lea    0x5e2(%rip),%rsi
mov    $0x1,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c40 <asn1_parse2+0xa30>
mov    0x28(%rsp),%rsi
mov    (%r14),%edx
mov    %rbp,%rdi
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c40 <asn1_parse2+0xa30>
mov    %r14,%rdi
call   1040 <M_ASN1_OCTET_STRING_free@plt>
mov    %r15,%rbp
jmp    17d8 <asn1_parse2+0x5c8>
lea    0x5ad(%rip),%rsi
mov    $0xb,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c0f <asn1_parse2+0x9ff>
mov    %r14,%rdi
call   10c0 <M_ASN1_INTEGER_free@plt>
jmp    17d8 <asn1_parse2+0x5c8>
lea    0x593(%rip),%rsi
mov    $0xb,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c0f <asn1_parse2+0x9ff>
mov    %r14,%rdi
call   10e0 <M_ASN1_ENUMERATED_free@plt>
jmp    17d8 <asn1_parse2+0x5c8>
mov    %r15,%rdi
lea    0x548(%rip),%rsi
mov    $0xb,%edx
call   1130 <BIO_write@plt>
test   %eax,%eax
jle    1c40 <asn1_parse2+0xa30>
cmpl   $0x0,(%r14)
jle    1ae5 <asn1_parse2+0x8d5>
xor    %ebp,%ebp
mov    0x28(%rsp),%rax
movzbl (%rax,%rbp,1),%edx
xor    %r12d,%r12d
mov    %r15,%rdi
lea    0x524(%rip),%rsi
xor    %eax,%eax
call   1060 <BIO_printf@plt>
test   %rax,%rax
jle    1c40 <asn1_parse2+0xa30>
add    $0x1,%rbp
movslq (%r14),%rax
cmp    %rax,%rbp
jl     1b65 <asn1_parse2+0x955>
jmp    1ae5 <asn1_parse2+0x8d5>
mov    $0x1,%r12d
xor    %r14d,%r14d
jmp    1bd5 <asn1_parse2+0x9c5>
xor    %r14d,%r14d
mov    %r15,%r13
jmp    1bd5 <asn1_parse2+0x9c5>
xor    %r14d,%r14d
mov    0x10(%rsp),%r13
jmp    1bd5 <asn1_parse2+0x9c5>
lea    0x455(%rip),%rsi
mov    0x30(%rsp),%rdi
mov    $0x12,%edx
call   1130 <BIO_write@plt>
xor    %r14d,%r14d
xor    %r12d,%r12d
mov    0x58(%rsp),%rdi
test   %rdi,%rdi
je     1be4 <asn1_parse2+0x9d4>
call   10f0 <ASN1_OBJECT_free@plt>
test   %r14,%r14
je     1bf1 <asn1_parse2+0x9e1>
mov    %r14,%rdi
call   1040 <M_ASN1_OCTET_STRING_free@plt>
mov    0x20(%rsp),%rax
mov    %rax,0x0(%r13)
mov    %r12d,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %r14d,%r14d
xor    %r12d,%r12d
mov    0x10(%rsp),%r13
jmp    1bd5 <asn1_parse2+0x9c5>
movzbl %cl,%edx
lea    0x434(%rip),%rsi
xor    %r14d,%r14d
mov    %r12,%rdi
xor    %eax,%eax
call   1060 <BIO_printf@plt>
jmp    1bd2 <asn1_parse2+0x9c2>
mov    $0x2,%r12d
xor    %r14d,%r14d
jmp    1bd5 <asn1_parse2+0x9c5>
mov    0x10(%rsp),%r13
jmp    1bd5 <asn1_parse2+0x9c5>

LLVM IR (-O0):
%struct.TYPE_10__ = type { i32, i8* }
%struct.TYPE_11__ = type { i64, i32, i8* }
%struct.TYPE_12__ = type { i64, i32, i8* }
@.str = [21 x i8] c"BAD RECURSION DEPTH\0A\00"
@.str.1 = [19 x i8] c"Error in encoding\0A\00"
@.str.2 = [6 x i8] c"%5ld:\00"
@V_ASN1_CONSTRUCTED = global i32 0
@.str.3 = [22 x i8] c"d=%-2d hl=%ld l=%4ld \00"
@.str.4 = [22 x i8] c"d=%-2d hl=%ld l=inf \00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [28 x i8] c"length is greater than %ld\0A\00"
@V_ASN1_PRINTABLESTRING = global i32 0
@V_ASN1_T61STRING = global i32 0
@V_ASN1_IA5STRING = global i32 0
@V_ASN1_VISIBLESTRING = global i32 0
@V_ASN1_NUMERICSTRING = global i32 0
@V_ASN1_UTF8STRING = global i32 0
@V_ASN1_UTCTIME = global i32 0
@V_ASN1_GENERALIZEDTIME = global i32 0
@.str.7 = [2 x i8] c":\00"
@V_ASN1_OBJECT = global i32 0
@.str.8 = [12 x i8] c":BAD OBJECT\00"
@V_ASN1_BOOLEAN = global i32 0
@.str.9 = [13 x i8] c"Bad boolean\0A\00"
@.str.10 = [4 x i8] c":%d\00"
@V_ASN1_BMPSTRING = global i32 0
@V_ASN1_OCTET_STRING = global i32 0
@.str.11 = [12 x i8] c"[HEX DUMP]:\00"
@.str.12 = [5 x i8] c"%02X\00"
@V_ASN1_INTEGER = global i32 0
@V_ASN1_NEG_INTEGER = global i64 0
@.str.13 = [2 x i8] c"-\00"
@.str.14 = [3 x i8] c"00\00"
@.str.15 = [12 x i8] c"BAD INTEGER\00"
@V_ASN1_ENUMERATED = global i32 0
@V_ASN1_NEG_ENUMERATED = global i64 0
@.str.16 = [15 x i8] c"BAD ENUMERATED\00"
@V_ASN1_EOC = global i32 0
define i32 @asn1_parse2(i32* %0, i8** %1, i64 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i8**
%11 = alloca i64
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca i64
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32*
%30 = alloca %struct.TYPE_10__*
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32
%35 = alloca %struct.TYPE_11__*
%36 = alloca i32
%37 = alloca %struct.TYPE_12__*
%38 = alloca i32
store i32* %0, i32** %9
store i8** %1, i8*** %10
store i64 %2, i64* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 0, i32* %24
store i32* null, i32** %29
store %struct.TYPE_10__* null, %struct.TYPE_10__** %30
store i32 6, i32* %31
%39 = load i32, i32* %13
%40 = icmp sgt i32 %39, 128
br i1 %40, label %41, label %44
41: ; preds = %7
%42 = load i32*, i32** %9
%43 = call i32 @BIO_puts(i32* %42, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %8
br label %753
44: ; preds = %7
%45 = load i8**, i8*** %10
%46 = load i8*, i8** %45
store i8* %46, i8** %16
%47 = load i8*, i8** %16
%48 = load i64, i64* %11
%49 = getelementptr inbounds i8, i8* %47, i64 %48
store i8* %49, i8** %18
%50 = load i8*, i8** %16
%51 = getelementptr inbounds i8, i8* %50, i64 -1
store i8* %51, i8** %19
br label %52
52: ; preds = %732, %44
%53 = load i8*, i8** %16
%54 = load i8*, i8** %18
%55 = icmp ult i8* %53, %54
br i1 %55, label %56, label %60
56: ; preds = %52
%57 = load i8*, i8** %19
%58 = load i8*, i8** %16
%59 = icmp ult i8* %57, %58
br label %60
60: ; preds = %56, %52
%61 = phi i1 [ false, %52 ], [ %59, %56 ]
br i1 %61, label %62, label %736
62: ; preds = %60
%63 = load i8*, i8** %16
store i8* %63, i8** %19
%64 = load i64, i64* %11
%65 = call i32 @ASN1_get_object(i8** %16, i64* %21, i32* %22, i32* %23, i64 %64)
store i32 %65, i32* %27
%66 = load i32, i32* %27
%67 = and i32 %66, 128
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %75
69: ; preds = %62
%70 = load i32*, i32** %9
%71 = call i32 @BIO_write(i32* %70, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 18)
%72 = icmp sle i32 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %69
br label %737
74: ; preds = %69
store i32 0, i32* %24
br label %737
75: ; preds = %62
%76 = load i8*, i8** %16
%77 = load i8*, i8** %19
%78 = ptrtoint i8* %76 to i64
%79 = ptrtoint i8* %77 to i64
%80 = sub i64 %78, %79
%81 = trunc i64 %80 to i32
store i32 %81, i32* %26
%82 = load i32, i32* %26
%83 = sext i32 %82 to i64
%84 = load i64, i64* %11
%85 = sub nsw i64 %84, %83
store i64 %85, i64* %11
%86 = load i32*, i32** %9
%87 = load i32, i32* %12
%88 = sext i32 %87 to i64
%89 = load i8*, i8** %19
%90 = load i8**, i8*** %10
%91 = load i8*, i8** %90
%92 = ptrtoint i8* %89 to i64
%93 = ptrtoint i8* %91 to i64
%94 = sub i64 %92, %93
%95 = add nsw i64 %88, %94
%96 = trunc i64 %95 to i8
%97 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %86, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %96)
%98 = icmp sle i64 %97, 0
br i1 %98, label %99, label %100
99: ; preds = %75
br label %737
100: ; preds = %75
%101 = load i32, i32* %27
%102 = load i32, i32* @V_ASN1_CONSTRUCTED
%103 = or i32 %102, 1
%104 = icmp ne i32 %101, %103
br i1 %104, label %105, label %116
105: ; preds = %100
%106 = load i32*, i32** %9
%107 = load i32, i32* %13
%108 = trunc i32 %107 to i8
%109 = load i32, i32* %26
%110 = sext i32 %109 to i64
%111 = load i64, i64* %21
%112 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %106, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8 zeroext %108, i64 %110, i64 %111)
%113 = icmp sle i64 %112, 0
br i1 %113, label %114, label %115
114: ; preds = %105
br label %737
115: ; preds = %105
br label %126
116: ; preds = %100
%117 = load i32*, i32** %9
%118 = load i32, i32* %13
%119 = trunc i32 %118 to i8
%120 = load i32, i32* %26
%121 = sext i32 %120 to i64
%122 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %117, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8 zeroext %119, i64 %121)
%123 = icmp sle i64 %122, 0
br i1 %123, label %124, label %125
124: ; preds = %116
br label %737
125: ; preds = %116
br label %126
126: ; preds = %125, %115
%127 = load i32*, i32** %9
%128 = load i32, i32* %22
%129 = load i32, i32* %23
%130 = load i32, i32* %27
%131 = load i32, i32* %14
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %135
133: ; preds = %126
%134 = load i32, i32* %13
br label %136
135: ; preds = %126
br label %136
136: ; preds = %135, %133
%137 = phi i32 [ %134, %133 ], [ 0, %135 ]
%138 = call i32 @asn1_print_info(i32* %127, i32 %128, i32 %129, i32 %130, i32 %137)
%139 = icmp ne i32 %138, 0
br i1 %139, label %141, label %140
140: ; preds = %136
br label %737
141: ; preds = %136
%142 = load i32, i32* %27
%143 = load i32, i32* @V_ASN1_CONSTRUCTED
%144 = and i32 %142, %143
%145 = icmp ne i32 %144, 0
br i1 %145, label %146, label %234
146: ; preds = %141
%147 = load i8*, i8** %16
%148 = load i64, i64* %21
%149 = getelementptr inbounds i8, i8* %147, i64 %148
store i8* %149, i8** %17
%150 = load i32*, i32** %9
%151 = call i32 @BIO_write(i32* %150, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%152 = icmp sle i32 %151, 0
br i1 %152, label %153, label %154
153: ; preds = %146
br label %737
154: ; preds = %146
%155 = load i64, i64* %21
%156 = load i64, i64* %11
%157 = icmp sgt i64 %155, %156
br i1 %157, label %158, label %163
158: ; preds = %154
%159 = load i32*, i32** %9
%160 = load i64, i64* %11
%161 = trunc i64 %160 to i8
%162 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %159, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8 zeroext %161)
store i32 0, i32* %24
br label %737
163: ; preds = %154
%164 = load i32, i32* %27
%165 = icmp eq i32 %164, 33
br i1 %165, label %166, label %205
166: ; preds = %163
%167 = load i64, i64* %21
%168 = icmp eq i64 %167, 0
br i1 %168, label %169, label %205
169: ; preds = %166
br label %170
170: ; preds = %203, %169
%171 = load i32*, i32** %9
%172 = load i8*, i8** %18
%173 = load i8*, i8** %16
%174 = ptrtoint i8* %172 to i64
%175 = ptrtoint i8* %173 to i64
%176 = sub i64 %174, %175
%177 = load i32, i32* %12
%178 = sext i32 %177 to i64
%179 = load i8*, i8** %16
%180 = load i8**, i8*** %10
%181 = load i8*, i8** %180
%182 = ptrtoint i8* %179 to i64
%183 = ptrtoint i8* %181 to i64
%184 = sub i64 %182, %183
%185 = add nsw i64 %178, %184
%186 = trunc i64 %185 to i32
%187 = load i32, i32* %13
%188 = add nsw i32 %187, 1
%189 = load i32, i32* %14
%190 = load i32, i32* %15
%191 = call i32 @asn1_parse2(i32* %171, i8** %16, i64 %176, i32 %186, i32 %188, i32 %189, i32 %190)
store i32 %191, i32* %28
%192 = load i32, i32* %28
%193 = icmp eq i32 %192, 0
br i1 %193, label %194, label %195
194: ; preds = %170
store i32 0, i32* %24
br label %737
195: ; preds = %170
%196 = load i32, i32* %28
%197 = icmp eq i32 %196, 2
br i1 %197, label %202, label %198
198: ; preds = %195
%199 = load i8*, i8** %16
%200 = load i8*, i8** %18
%201 = icmp uge i8* %199, %200
br i1 %201, label %202, label %203
202: ; preds = %198, %195
br label %204
203: ; preds = %198
br label %170
204: ; preds = %202
br label %233
205: ; preds = %166, %163
br label %206
206: ; preds = %231, %205
%207 = load i8*, i8** %16
%208 = load i8*, i8** %17
%209 = icmp ult i8* %207, %208
br i1 %209, label %210, label %232
210: ; preds = %206
%211 = load i32*, i32** %9
%212 = load i64, i64* %21
%213 = load i32, i32* %12
%214 = sext i32 %213 to i64
%215 = load i8*, i8** %16
%216 = load i8**, i8*** %10
%217 = load i8*, i8** %216
%218 = ptrtoint i8* %215 to i64
%219 = ptrtoint i8* %217 to i64
%220 = sub i64 %218, %219
%221 = add nsw i64 %214, %220
%222 = trunc i64 %221 to i32
%223 = load i32, i32* %13
%224 = add nsw i32 %223, 1
%225 = load i32, i32* %14
%226 = load i32, i32* %15
%227 = call i32 @asn1_parse2(i32* %211, i8** %16, i64 %212, i32 %222, i32 %224, i32 %225, i32 %226)
store i32 %227, i32* %28
%228 = load i32, i32* %28
%229 = icmp eq i32 %228, 0
br i1 %229, label %230, label %231
230: ; preds = %210
store i32 0, i32* %24
br label %737
231: ; preds = %210
br label %206
232: ; preds = %206
br label %233
233: ; preds = %232, %204
br label %732
234: ; preds = %141
%235 = load i32, i32* %23
%236 = icmp ne i32 %235, 0
br i1 %236, label %237, label %246
237: ; preds = %234
%238 = load i64, i64* %21
%239 = load i8*, i8** %16
%240 = getelementptr inbounds i8, i8* %239, i64 %238
store i8* %240, i8** %16
%241 = load i32*, i32** %9
%242 = call i32 @BIO_write(i32* %241, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%243 = icmp sle i32 %242, 0
br i1 %243, label %244, label %245
244: ; preds = %237
br label %737
245: ; preds = %237
br label %731
246: ; preds = %234
store i32 0, i32* %25
%247 = load i32, i32* %22
%248 = load i32, i32* @V_ASN1_PRINTABLESTRING
%249 = icmp eq i32 %247, %248
br i1 %249, label %278, label %250
250: ; preds = %246
%251 = load i32, i32* %22
%252 = load i32, i32* @V_ASN1_T61STRING
%253 = icmp eq i32 %251, %252
br i1 %253, label %278, label %254
254: ; preds = %250
%255 = load i32, i32* %22
%256 = load i32, i32* @V_ASN1_IA5STRING
%257 = icmp eq i32 %255, %256
br i1 %257, label %278, label %258
258: ; preds = %254
%259 = load i32, i32* %22
%260 = load i32, i32* @V_ASN1_VISIBLESTRING
%261 = icmp eq i32 %259, %260
br i1 %261, label %278, label %262
262: ; preds = %258
%263 = load i32, i32* %22
%264 = load i32, i32* @V_ASN1_NUMERICSTRING
%265 = icmp eq i32 %263, %264
br i1 %265, label %278, label %266
266: ; preds = %262
%267 = load i32, i32* %22
%268 = load i32, i32* @V_ASN1_UTF8STRING
%269 = icmp eq i32 %267, %268
br i1 %269, label %278, label %270
270: ; preds = %266
%271 = load i32, i32* %22
%272 = load i32, i32* @V_ASN1_UTCTIME
%273 = icmp eq i32 %271, %272
br i1 %273, label %278, label %274
274: ; preds = %270
%275 = load i32, i32* %22
%276 = load i32, i32* @V_ASN1_GENERALIZEDTIME
%277 = icmp eq i32 %275, %276
br i1 %277, label %278, label %297
278: ; preds = %274, %270, %266, %262, %258, %254, %250, %246
%279 = load i32*, i32** %9
%280 = call i32 @BIO_write(i32* %279, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 1)
%281 = icmp sle i32 %280, 0
br i1 %281, label %282, label %283
282: ; preds = %278
br label %737
283: ; preds = %278
%284 = load i64, i64* %21
%285 = icmp sgt i64 %284, 0
br i1 %285, label %286, label %296
286: ; preds = %283
%287 = load i32*, i32** %9
%288 = load i8*, i8** %16
%289 = load i64, i64* %21
%290 = trunc i64 %289 to i32
%291 = call i32 @BIO_write(i32* %287, i8* %288, i32 %290)
%292 = load i64, i64* %21
%293 = trunc i64 %292 to i32
%294 = icmp ne i32 %291, %293
br i1 %294, label %295, label %296
295: ; preds = %286
br label %737
296: ; preds = %286, %283
br label %710
297: ; preds = %274
%298 = load i32, i32* %22
%299 = load i32, i32* @V_ASN1_OBJECT
%300 = icmp eq i32 %298, %299
br i1 %300, label %301, label %325
301: ; preds = %297
%302 = load i8*, i8** %19
store i8* %302, i8** %20
%303 = load i64, i64* %21
%304 = load i32, i32* %26
%305 = sext i32 %304 to i64
%306 = add nsw i64 %303, %305
%307 = call i32* @d2i_ASN1_OBJECT(i32** %29, i8** %20, i64 %306)
%308 = icmp ne i32* %307, null
br i1 %308, label %309, label %318
309: ; preds = %301
%310 = load i32*, i32** %9
%311 = call i32 @BIO_write(i32* %310, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 1)
%312 = icmp sle i32 %311, 0
br i1 %312, label %313, label %314
313: ; preds = %309
br label %737
314: ; preds = %309
%315 = load i32*, i32** %9
%316 = load i32*, i32** %29
%317 = call i32 @i2a_ASN1_OBJECT(i32* %315, i32* %316)
br label %324
318: ; preds = %301
%319 = load i32*, i32** %9
%320 = call i32 @BIO_write(i32* %319, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 11)
%321 = icmp sle i32 %320, 0
br i1 %321, label %322, label %323
322: ; preds = %318
br label %737
323: ; preds = %318
br label %324
324: ; preds = %323, %314
br label %709
325: ; preds = %297
%326 = load i32, i32* %22
%327 = load i32, i32* @V_ASN1_BOOLEAN
%328 = icmp eq i32 %326, %327
br i1 %328, label %329, label %349
329: ; preds = %325
%330 = load i8*, i8** %19
store i8* %330, i8** %20
%331 = load i64, i64* %21
%332 = load i32, i32* %26
%333 = sext i32 %332 to i64
%334 = add nsw i64 %331, %333
%335 = call i32 @d2i_ASN1_BOOLEAN(i32* null, i8** %20, i64 %334)
store i32 %335, i32* %32
%336 = load i32, i32* %32
%337 = icmp slt i32 %336, 0
br i1 %337, label %338, label %344
338: ; preds = %329
%339 = load i32*, i32** %9
%340 = call i32 @BIO_write(i32* %339, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 12)
%341 = icmp sle i32 %340, 0
br i1 %341, label %342, label %343
342: ; preds = %338
br label %737
343: ; preds = %338
br label %344
344: ; preds = %343, %329
%345 = load i32*, i32** %9
%346 = load i32, i32* %32
%347 = trunc i32 %346 to i8
%348 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %345, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8 zeroext %347)
br label %708
349: ; preds = %325
%350 = load i32, i32* %22
%351 = load i32, i32* @V_ASN1_BMPSTRING
%352 = icmp eq i32 %350, %351
br i1 %352, label %353, label %354
353: ; preds = %349
br label %707
354: ; preds = %349
%355 = load i32, i32* %22
%356 = load i32, i32* @V_ASN1_OCTET_STRING
%357 = icmp eq i32 %355, %356
br i1 %357, label %358, label %518
358: ; preds = %354
store i32 1, i32* %34
%359 = load i8*, i8** %19
store i8* %359, i8** %20
%360 = load i64, i64* %21
%361 = load i32, i32* %26
%362 = sext i32 %361 to i64
%363 = add nsw i64 %360, %362
%364 = call %struct.TYPE_10__* @d2i_ASN1_OCTET_STRING(i32* null, i8** %20, i64 %363)
store %struct.TYPE_10__* %364, %struct.TYPE_10__** %30
%365 = load %struct.TYPE_10__*, %struct.TYPE_10__** %30
%366 = icmp ne %struct.TYPE_10__* %365, null
br i1 %366, label %367, label %511
367: ; preds = %358
%368 = load %struct.TYPE_10__*, %struct.TYPE_10__** %30
%369 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %368, i32 0, i32 0
%370 = load i32, i32* %369
%371 = icmp sgt i32 %370, 0
br i1 %371, label %372, label %511
372: ; preds = %367
%373 = load %struct.TYPE_10__*, %struct.TYPE_10__** %30
%374 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %373, i32 0, i32 1
%375 = load i8*, i8** %374
store i8* %375, i8** %20
store i32 0, i32* %33
br label %376
376: ; preds = %424, %372
%377 = load i32, i32* %33
%378 = load %struct.TYPE_10__*, %struct.TYPE_10__** %30
%379 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %378, i32 0, i32 0
%380 = load i32, i32* %379
%381 = icmp slt i32 %377, %380
br i1 %381, label %382, label %427
382: ; preds = %376
%383 = load i8*, i8** %20
%384 = load i32, i32* %33
%385 = sext i32 %384 to i64
%386 = getelementptr inbounds i8, i8* %383, i64 %385
%387 = load i8, i8* %386
%388 = zext i8 %387 to i32
%389 = icmp slt i32 %388, 32
br i1 %389, label %390, label %414
390: ; preds = %382
%391 = load i8*, i8** %20
%392 = load i32, i32* %33
%393 = sext i32 %392 to i64
%394 = getelementptr inbounds i8, i8* %391, i64 %393
%395 = load i8, i8* %394
%396 = zext i8 %395 to i32
%397 = icmp ne i32 %396, 10
br i1 %397, label %398, label %414
398: ; preds = %390
%399 = load i8*, i8** %20
%400 = load i32, i32* %33
%401 = sext i32 %400 to i64
%402 = getelementptr inbounds i8, i8* %399, i64 %401
%403 = load i8, i8* %402
%404 = zext i8 %403 to i32
%405 = icmp ne i32 %404, 13
br i1 %405, label %406, label %414
406: ; preds = %398
%407 = load i8*, i8** %20
%408 = load i32, i32* %33
%409 = sext i32 %408 to i64
%410 = getelementptr inbounds i8, i8* %407, i64 %409
%411 = load i8, i8* %410
%412 = zext i8 %411 to i32
%413 = icmp ne i32 %412, 9
br i1 %413, label %422, label %414
414: ; preds = %406, %398, %390, %382
%415 = load i8*, i8** %20
%416 = load i32, i32* %33
%417 = sext i32 %416 to i64
%418 = getelementptr inbounds i8, i8* %415, i64 %417
%419 = load i8, i8* %418
%420 = zext i8 %419 to i32
%421 = icmp sgt i32 %420, 126
br i1 %421, label %422, label %423
422: ; preds = %414, %406
store i32 0, i32* %34
br label %427
423: ; preds = %414
br label %424
424: ; preds = %423
%425 = load i32, i32* %33
%426 = add nsw i32 %425, 1
store i32 %426, i32* %33
br label %376
427: ; preds = %422, %376
%428 = load i32, i32* %34
%429 = icmp ne i32 %428, 0
br i1 %429, label %430, label %445
430: ; preds = %427
%431 = load i32*, i32** %9
%432 = call i32 @BIO_write(i32* %431, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 1)
%433 = icmp sle i32 %432, 0
br i1 %433, label %434, label %435
434: ; preds = %430
br label %737
435: ; preds = %430
%436 = load i32*, i32** %9
%437 = load i8*, i8** %20
%438 = load %struct.TYPE_10__*, %struct.TYPE_10__** %30
%439 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %438, i32 0, i32 0
%440 = load i32, i32* %439
%441 = call i32 @BIO_write(i32* %436, i8* %437, i32 %440)
%442 = icmp sle i32 %441, 0
br i1 %442, label %443, label %444
443: ; preds = %435
br label %737
444: ; preds = %435
br label %510
445: ; preds = %427
%446 = load i32, i32* %15
%447 = icmp ne i32 %446, 0
br i1 %447, label %475, label %448
448: ; preds = %445
%449 = load i32*, i32** %9
%450 = call i32 @BIO_write(i32* %449, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32 11)
%451 = icmp sle i32 %450, 0
br i1 %451, label %452, label %453
452: ; preds = %448
br label %737
453: ; preds = %448
store i32 0, i32* %33
br label %454
454: ; preds = %471, %453
%455 = load i32, i32* %33
%456 = load %struct.TYPE_10__*, %struct.TYPE_10__** %30
%457 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %456, i32 0, i32 0
%458 = load i32, i32* %457
%459 = icmp slt i32 %455, %458
br i1 %459, label %460, label %474
460: ; preds = %454
%461 = load i32*, i32** %9
%462 = load i8*, i8** %20
%463 = load i32, i32* %33
%464 = sext i32 %463 to i64
%465 = getelementptr inbounds i8, i8* %462, i64 %464
%466 = load i8, i8* %465
%467 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %461, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8 zeroext %466)
%468 = icmp sle i64 %467, 0
br i1 %468, label %469, label %470
469: ; preds = %460
br label %737
470: ; preds = %460
br label %471
471: ; preds = %470
%472 = load i32, i32* %33
%473 = add nsw i32 %472, 1
store i32 %473, i32* %33
br label %454
474: ; preds = %454
br label %509
475: ; preds = %445
%476 = load i32, i32* %25
%477 = icmp ne i32 %476, 0
br i1 %477, label %484, label %478
478: ; preds = %475
%479 = load i32*, i32** %9
%480 = call i32 @BIO_write(i32* %479, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%481 = icmp sle i32 %480, 0
br i1 %481, label %482, label %483
482: ; preds = %478
br label %737
483: ; preds = %478
br label %484
484: ; preds = %483, %475
%485 = load i32*, i32** %9
%486 = load i8*, i8** %20
%487 = load i32, i32* %15
%488 = icmp eq i32 %487, -1
br i1 %488, label %495, label %489
489: ; preds = %484
%490 = load i32, i32* %15
%491 = load %struct.TYPE_10__*, %struct.TYPE_10__** %30
%492 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %491, i32 0, i32 0
%493 = load i32, i32* %492
%494 = icmp sgt i32 %490, %493
br i1 %494, label %495, label %499
495: ; preds = %489, %484
%496 = load %struct.TYPE_10__*, %struct.TYPE_10__** %30
%497 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %496, i32 0, i32 0
%498 = load i32, i32* %497
br label %501
499: ; preds = %489
%500 = load i32, i32* %15
br label %501
501: ; preds = %499, %495
%502 = phi i32 [ %498, %495 ], [ %500, %499 ]
%503 = sext i32 %502 to i64
%504 = load i32, i32* %31
%505 = call i64 @BIO_dump_indent(i32* %485, i8* %486, i64 %503, i32 %504)
%506 = icmp sle i64 %505, 0
br i1 %506, label %507, label %508
507: ; preds = %501
br label %737
508: ; preds = %501
store i32 1, i32* %25
br label %509
509: ; preds = %508, %474
br label %510
510: ; preds = %509, %444
br label %511
511: ; preds = %510, %367, %358
%512 = load %struct.TYPE_10__*, %struct.TYPE_10__** %30
%513 = icmp ne %struct.TYPE_10__* %512, null
br i1 %513, label %514, label %517
514: ; preds = %511
%515 = load %struct.TYPE_10__*, %struct.TYPE_10__** %30
%516 = call i32 @M_ASN1_OCTET_STRING_free(%struct.TYPE_10__* %515)
store %struct.TYPE_10__* null, %struct.TYPE_10__** %30
br label %517
517: ; preds = %514, %511
br label %706
518: ; preds = %354
%519 = load i32, i32* %22
%520 = load i32, i32* @V_ASN1_INTEGER
%521 = icmp eq i32 %519, %520
br i1 %521, label %522, label %592
522: ; preds = %518
%523 = load i8*, i8** %19
store i8* %523, i8** %20
%524 = load i64, i64* %21
%525 = load i32, i32* %26
%526 = sext i32 %525 to i64
%527 = add nsw i64 %524, %526
%528 = call %struct.TYPE_11__* @d2i_ASN1_INTEGER(i32* null, i8** %20, i64 %527)
store %struct.TYPE_11__* %528, %struct.TYPE_11__** %35
%529 = load %struct.TYPE_11__*, %struct.TYPE_11__** %35
%530 = icmp ne %struct.TYPE_11__* %529, null
br i1 %530, label %531, label %583
531: ; preds = %522
%532 = load i32*, i32** %9
%533 = call i32 @BIO_write(i32* %532, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 1)
%534 = icmp sle i32 %533, 0
br i1 %534, label %535, label %536
535: ; preds = %531
br label %737
536: ; preds = %531
%537 = load %struct.TYPE_11__*, %struct.TYPE_11__** %35
%538 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %537, i32 0, i32 0
%539 = load i64, i64* %538
%540 = load i64, i64* @V_ASN1_NEG_INTEGER
%541 = icmp eq i64 %539, %540
br i1 %541, label %542, label %548
542: ; preds = %536
%543 = load i32*, i32** %9
%544 = call i32 @BIO_write(i32* %543, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i32 1)
%545 = icmp sle i32 %544, 0
br i1 %545, label %546, label %547
546: ; preds = %542
br label %737
547: ; preds = %542
br label %548
548: ; preds = %547, %536
store i32 0, i32* %36
br label %549
549: ; preds = %568, %548
%550 = load i32, i32* %36
%551 = load %struct.TYPE_11__*, %struct.TYPE_11__** %35
%552 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %551, i32 0, i32 1
%553 = load i32, i32* %552
%554 = icmp slt i32 %550, %553
br i1 %554, label %555, label %571
555: ; preds = %549
%556 = load i32*, i32** %9
%557 = load %struct.TYPE_11__*, %struct.TYPE_11__** %35
%558 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %557, i32 0, i32 2
%559 = load i8*, i8** %558
%560 = load i32, i32* %36
%561 = sext i32 %560 to i64
%562 = getelementptr inbounds i8, i8* %559, i64 %561
%563 = load i8, i8* %562
%564 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %556, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8 zeroext %563)
%565 = icmp sle i64 %564, 0
br i1 %565, label %566, label %567
566: ; preds = %555
br label %737
567: ; preds = %555
br label %568
568: ; preds = %567
%569 = load i32, i32* %36
%570 = add nsw i32 %569, 1
store i32 %570, i32* %36
br label %549
571: ; preds = %549
%572 = load %struct.TYPE_11__*, %struct.TYPE_11__** %35
%573 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %572, i32 0, i32 1
%574 = load i32, i32* %573
%575 = icmp eq i32 %574, 0
br i1 %575, label %576, label %582
576: ; preds = %571
%577 = load i32*, i32** %9
%578 = call i32 @BIO_write(i32* %577, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32 2)
%579 = icmp sle i32 %578, 0
br i1 %579, label %580, label %581
580: ; preds = %576
br label %737
581: ; preds = %576
br label %582
582: ; preds = %581, %571
br label %589
583: ; preds = %522
%584 = load i32*, i32** %9
%585 = call i32 @BIO_write(i32* %584, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 11)
%586 = icmp sle i32 %585, 0
br i1 %586, label %587, label %588
587: ; preds = %583
br label %737
588: ; preds = %583
br label %589
589: ; preds = %588, %582
%590 = load %struct.TYPE_11__*, %struct.TYPE_11__** %35
%591 = call i32 @M_ASN1_INTEGER_free(%struct.TYPE_11__* %590)
br label %705
592: ; preds = %518
%593 = load i32, i32* %22
%594 = load i32, i32* @V_ASN1_ENUMERATED
%595 = icmp eq i32 %593, %594
br i1 %595, label %596, label %666
596: ; preds = %592
%597 = load i8*, i8** %19
store i8* %597, i8** %20
%598 = load i64, i64* %21
%599 = load i32, i32* %26
%600 = sext i32 %599 to i64
%601 = add nsw i64 %598, %600
%602 = call %struct.TYPE_12__* @d2i_ASN1_ENUMERATED(i32* null, i8** %20, i64 %601)
store %struct.TYPE_12__* %602, %struct.TYPE_12__** %37
%603 = load %struct.TYPE_12__*, %struct.TYPE_12__** %37
%604 = icmp ne %struct.TYPE_12__* %603, null
br i1 %604, label %605, label %657
605: ; preds = %596
%606 = load i32*, i32** %9
%607 = call i32 @BIO_write(i32* %606, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 1)
%608 = icmp sle i32 %607, 0
br i1 %608, label %609, label %610
609: ; preds = %605
br label %737
610: ; preds = %605
%611 = load %struct.TYPE_12__*, %struct.TYPE_12__** %37
%612 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %611, i32 0, i32 0
%613 = load i64, i64* %612
%614 = load i64, i64* @V_ASN1_NEG_ENUMERATED
%615 = icmp eq i64 %613, %614
br i1 %615, label %616, label %622
616: ; preds = %610
%617 = load i32*, i32** %9
%618 = call i32 @BIO_write(i32* %617, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i32 1)
%619 = icmp sle i32 %618, 0
br i1 %619, label %620, label %621
620: ; preds = %616
br label %737
621: ; preds = %616
br label %622
622: ; preds = %621, %610
store i32 0, i32* %38
br label %623
623: ; preds = %642, %622
%624 = load i32, i32* %38
%625 = load %struct.TYPE_12__*, %struct.TYPE_12__** %37
%626 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %625, i32 0, i32 1
%627 = load i32, i32* %626
%628 = icmp slt i32 %624, %627
br i1 %628, label %629, label %645
629: ; preds = %623
%630 = load i32*, i32** %9
%631 = load %struct.TYPE_12__*, %struct.TYPE_12__** %37
%632 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %631, i32 0, i32 2
%633 = load i8*, i8** %632
%634 = load i32, i32* %38
%635 = sext i32 %634 to i64
%636 = getelementptr inbounds i8, i8* %633, i64 %635
%637 = load i8, i8* %636
%638 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %630, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8 zeroext %637)
%639 = icmp sle i64 %638, 0
br i1 %639, label %640, label %641
640: ; preds = %629
br label %737
641: ; preds = %629
br label %642
642: ; preds = %641
%643 = load i32, i32* %38
%644 = add nsw i32 %643, 1
store i32 %644, i32* %38
br label %623
645: ; preds = %623
%646 = load %struct.TYPE_12__*, %struct.TYPE_12__** %37
%647 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %646, i32 0, i32 1
%648 = load i32, i32* %647
%649 = icmp eq i32 %648, 0
br i1 %649, label %650, label %656
650: ; preds = %645
%651 = load i32*, i32** %9
%652 = call i32 @BIO_write(i32* %651, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32 2)
%653 = icmp sle i32 %652, 0
br i1 %653, label %654, label %655
654: ; preds = %650
br label %737
655: ; preds = %650
br label %656
656: ; preds = %655, %645
br label %663
657: ; preds = %596
%658 = load i32*, i32** %9
%659 = call i32 @BIO_write(i32* %658, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 11)
%660 = icmp sle i32 %659, 0
br i1 %660, label %661, label %662
661: ; preds = %657
br label %737
662: ; preds = %657
br label %663
663: ; preds = %662, %656
%664 = load %struct.TYPE_12__*, %struct.TYPE_12__** %37
%665 = call i32 @M_ASN1_ENUMERATED_free(%struct.TYPE_12__* %664)
br label %704
666: ; preds = %592
%667 = load i64, i64* %21
%668 = icmp sgt i64 %667, 0
br i1 %668, label %669, label %703
669: ; preds = %666
%670 = load i32, i32* %15
%671 = icmp ne i32 %670, 0
br i1 %671, label %672, label %703
672: ; preds = %669
%673 = load i32, i32* %25
%674 = icmp ne i32 %673, 0
br i1 %674, label %681, label %675
675: ; preds = %672
%676 = load i32*, i32** %9
%677 = call i32 @BIO_write(i32* %676, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%678 = icmp sle i32 %677, 0
br i1 %678, label %679, label %680
679: ; preds = %675
br label %737
680: ; preds = %675
br label %681
681: ; preds = %680, %672
%682 = load i32*, i32** %9
%683 = load i8*, i8** %16
%684 = load i32, i32* %15
%685 = icmp eq i32 %684, -1
br i1 %685, label %691, label %686
686: ; preds = %681
%687 = load i32, i32* %15
%688 = sext i32 %687 to i64
%689 = load i64, i64* %21
%690 = icmp sgt i64 %688, %689
br i1 %690, label %691, label %693
691: ; preds = %686, %681
%692 = load i64, i64* %21
br label %696
693: ; preds = %686
%694 = load i32, i32* %15
%695 = sext i32 %694 to i64
br label %696
696: ; preds = %693, %691
%697 = phi i64 [ %692, %691 ], [ %695, %693 ]
%698 = load i32, i32* %31
%699 = call i64 @BIO_dump_indent(i32* %682, i8* %683, i64 %697, i32 %698)
%700 = icmp sle i64 %699, 0
br i1 %700, label %701, label %702
701: ; preds = %696
br label %737
702: ; preds = %696
store i32 1, i32* %25
br label %703
703: ; preds = %702, %669, %666
br label %704
704: ; preds = %703, %663
br label %705
705: ; preds = %704, %589
br label %706
706: ; preds = %705, %517
br label %707
707: ; preds = %706, %353
br label %708
708: ; preds = %707, %344
br label %709
709: ; preds = %708, %324
br label %710
710: ; preds = %709, %296
%711 = load i32, i32* %25
%712 = icmp ne i32 %711, 0
br i1 %712, label %719, label %713
713: ; preds = %710
%714 = load i32*, i32** %9
%715 = call i32 @BIO_write(i32* %714, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%716 = icmp sle i32 %715, 0
br i1 %716, label %717, label %718
717: ; preds = %713
br label %737
718: ; preds = %713
br label %719
719: ; preds = %718, %710
%720 = load i64, i64* %21
%721 = load i8*, i8** %16
%722 = getelementptr inbounds i8, i8* %721, i64 %720
store i8* %722, i8** %16
%723 = load i32, i32* %22
%724 = load i32, i32* @V_ASN1_EOC
%725 = icmp eq i32 %723, %724
br i1 %725, label %726, label %730
726: ; preds = %719
%727 = load i32, i32* %23
%728 = icmp eq i32 %727, 0
br i1 %728, label %729, label %730
729: ; preds = %726
store i32 2, i32* %24
br label %737
730: ; preds = %726, %719
br label %731
731: ; preds = %730, %245
br label %732
732: ; preds = %731, %233
%733 = load i64, i64* %21
%734 = load i64, i64* %11
%735 = sub nsw i64 %734, %733
store i64 %735, i64* %11
br label %52
736: ; preds = %60
store i32 1, i32* %24
br label %737
737: ; preds = %736, %729, %717, %701, %679, %661, %654, %640, %620, %609, %587, %580, %566, %546, %535, %507, %482, %469, %452, %443, %434, %342, %322, %313, %295, %282, %244, %230, %194, %158, %153, %140, %124, %114, %99, %74, %73
%738 = load i32*, i32** %29
%739 = icmp ne i32* %738, null
br i1 %739, label %740, label %743
740: ; preds = %737
%741 = load i32*, i32** %29
%742 = call i32 @ASN1_OBJECT_free(i32* %741)
br label %743
743: ; preds = %740, %737
%744 = load %struct.TYPE_10__*, %struct.TYPE_10__** %30
%745 = icmp ne %struct.TYPE_10__* %744, null
br i1 %745, label %746, label %749
746: ; preds = %743
%747 = load %struct.TYPE_10__*, %struct.TYPE_10__** %30
%748 = call i32 @M_ASN1_OCTET_STRING_free(%struct.TYPE_10__* %747)
br label %749
749: ; preds = %746, %743
%750 = load i8*, i8** %16
%751 = load i8**, i8*** %10
store i8* %750, i8** %751
%752 = load i32, i32* %24
store i32 %752, i32* %8
br label %753
753: ; preds = %749, %41
%754 = load i32, i32* %8
ret i32 %754
}

LLVM IR (-O2):
%struct.TYPE_10__ = type { i32, i8* }
%struct.TYPE_11__ = type { i64, i32, i8* }
%struct.TYPE_12__ = type { i64, i32, i8* }
@.str = [21 x i8] c"BAD RECURSION DEPTH\0A\00"
@.str.1 = [19 x i8] c"Error in encoding\0A\00"
@.str.2 = [6 x i8] c"%5ld:\00"
@V_ASN1_CONSTRUCTED = global i32 0
@.str.3 = [22 x i8] c"d=%-2d hl=%ld l=%4ld \00"
@.str.4 = [22 x i8] c"d=%-2d hl=%ld l=inf \00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [28 x i8] c"length is greater than %ld\0A\00"
@V_ASN1_PRINTABLESTRING = global i32 0
@V_ASN1_T61STRING = global i32 0
@V_ASN1_IA5STRING = global i32 0
@V_ASN1_VISIBLESTRING = global i32 0
@V_ASN1_NUMERICSTRING = global i32 0
@V_ASN1_UTF8STRING = global i32 0
@V_ASN1_UTCTIME = global i32 0
@V_ASN1_GENERALIZEDTIME = global i32 0
@.str.7 = [2 x i8] c":\00"
@V_ASN1_OBJECT = global i32 0
@.str.8 = [12 x i8] c":BAD OBJECT\00"
@V_ASN1_BOOLEAN = global i32 0
@.str.9 = [13 x i8] c"Bad boolean\0A\00"
@.str.10 = [4 x i8] c":%d\00"
@V_ASN1_BMPSTRING = global i32 0
@V_ASN1_OCTET_STRING = global i32 0
@.str.11 = [12 x i8] c"[HEX DUMP]:\00"
@.str.12 = [5 x i8] c"%02X\00"
@V_ASN1_INTEGER = global i32 0
@V_ASN1_NEG_INTEGER = global i64 0
@.str.13 = [2 x i8] c"-\00"
@.str.14 = [3 x i8] c"00\00"
@.str.15 = [12 x i8] c"BAD INTEGER\00"
@V_ASN1_ENUMERATED = global i32 0
@V_ASN1_NEG_ENUMERATED = global i64 0
@.str.16 = [15 x i8] c"BAD ENUMERATED\00"
@V_ASN1_EOC = global i32 0
define i32 @asn1_parse2(i32* %0, i8** nocapture %1, i64 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32*
%14 = bitcast i8** %8 to i8*
%15 = bitcast i8** %9 to i8*
%16 = bitcast i64* %10 to i8*
%17 = bitcast i32* %11 to i8*
%18 = bitcast i32* %12 to i8*
%19 = bitcast i32** %13 to i8*
store i32* null, i32** %13
%20 = icmp sgt i32 %4, 128
br i1 %20, label %21, label %23
21: ; preds = %7
%22 = tail call i32 @BIO_puts(i32* %0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %421
23: ; preds = %7
%24 = load i8*, i8** %1
store i8* %24, i8** %8
%25 = getelementptr inbounds i8, i8* %24, i64 %2
%26 = icmp sgt i64 %2, 0
br i1 %26, label %27, label %408
27: ; preds = %23
%28 = zext i32 %3 to i64
%29 = trunc i32 %4 to i8
%30 = icmp eq i32 %5, 0
%31 = select i1 %30, i32 0, i32 %4
%32 = add nsw i32 %4, 1
%33 = ptrtoint i8* %25 to i64
%34 = icmp ne i32 %6, 0
%35 = icmp eq i32 %6, -1
%36 = sext i32 %6 to i64
%37 = icmp eq i32 %6, 0
br label %38
38: ; preds = %27, %401
%39 = phi i8* [ %24, %27 ], [ %404, %401 ]
%40 = phi i64 [ %2, %27 ], [ %403, %401 ]
%41 = call i32 @ASN1_get_object(i8** %8, i64* %10, i32* %11, i32* %12, i64 %40)
%42 = and i32 %41, 128
%43 = icmp eq i32 %42, 0
br i1 %43, label %46, label %44
44: ; preds = %38
%45 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 18)
br label %408
46: ; preds = %38
%47 = load i8*, i8** %8
%48 = ptrtoint i8* %47 to i64
%49 = ptrtoint i8* %39 to i64
%50 = sub i64 %48, %49
%51 = shl i64 %50, 32
%52 = ashr exact i64 %51, 32
%53 = sub nsw i64 %40, %52
%54 = load i8*, i8** %1
%55 = ptrtoint i8* %54 to i64
%56 = add i64 %49, %28
%57 = sub i64 %56, %55
%58 = trunc i64 %57 to i8
%59 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %58)
%60 = icmp slt i64 %59, 1
br i1 %60, label %408, label %61
61: ; preds = %46
%62 = load i32, i32* @V_ASN1_CONSTRUCTED
%63 = or i32 %62, 1
%64 = icmp eq i32 %41, %63
br i1 %64, label %69, label %65
65: ; preds = %61
%66 = load i64, i64* %10
%67 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8 zeroext %29, i64 %52, i64 %66)
%68 = icmp slt i64 %67, 1
br i1 %68, label %408, label %72
69: ; preds = %61
%70 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8 zeroext %29, i64 %52)
%71 = icmp slt i64 %70, 1
br i1 %71, label %408, label %72
72: ; preds = %69, %65
%73 = load i32, i32* %11
%74 = load i32, i32* %12
%75 = call i32 @asn1_print_info(i32* %0, i32 %73, i32 %74, i32 %41, i32 %31)
%76 = icmp eq i32 %75, 0
br i1 %76, label %408, label %77
77: ; preds = %72
%78 = load i32, i32* @V_ASN1_CONSTRUCTED
%79 = and i32 %78, %41
%80 = icmp eq i32 %79, 0
br i1 %80, label %125, label %81
81: ; preds = %77
%82 = load i8*, i8** %8
%83 = load i64, i64* %10
%84 = getelementptr inbounds i8, i8* %82, i64 %83
%85 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%86 = icmp slt i32 %85, 1
br i1 %86, label %408, label %87
87: ; preds = %81
%88 = load i64, i64* %10
%89 = icmp sgt i64 %88, %53
br i1 %89, label %90, label %93
90: ; preds = %87
%91 = trunc i64 %53 to i8
%92 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8 zeroext %91)
br label %408
93: ; preds = %87
%94 = icmp eq i32 %41, 33
%95 = icmp eq i64 %88, 0
%96 = select i1 %94, i1 %95, i1 false
br i1 %96, label %97, label %112
97: ; preds = %93
%98 = load i8*, i8** %8
br label %99
99: ; preds = %97, %109
%100 = phi i8* [ %98, %97 ], [ %110, %109 ]
%101 = ptrtoint i8* %100 to i64
%102 = sub i64 %33, %101
%103 = load i8*, i8** %1
%104 = ptrtoint i8* %103 to i64
%105 = sub i64 %101, %104
%106 = trunc i64 %105 to i32
%107 = add i32 %106, %3
%108 = call i32 @asn1_parse2(i32* %0, i8** %8, i64 %102, i32 %107, i32 %32, i32 %5, i32 %6)
switch i32 %108, label %109 [
i32 0, label %408
i32 2, label %401
]
109: ; preds = %99
%110 = load i8*, i8** %8
%111 = icmp ult i8* %110, %25
br i1 %111, label %99, label %401
112: ; preds = %93, %115
%113 = load i8*, i8** %8
%114 = icmp ult i8* %113, %84
br i1 %114, label %115, label %401
115: ; preds = %112
%116 = load i64, i64* %10
%117 = load i8*, i8** %1
%118 = ptrtoint i8* %113 to i64
%119 = ptrtoint i8* %117 to i64
%120 = sub i64 %118, %119
%121 = trunc i64 %120 to i32
%122 = add i32 %121, %3
%123 = call i32 @asn1_parse2(i32* %0, i8** %8, i64 %116, i32 %122, i32 %32, i32 %5, i32 %6)
%124 = icmp eq i32 %123, 0
br i1 %124, label %408, label %112
125: ; preds = %77
%126 = load i32, i32* %12
%127 = icmp eq i32 %126, 0
br i1 %127, label %134, label %128
128: ; preds = %125
%129 = load i64, i64* %10
%130 = load i8*, i8** %8
%131 = getelementptr inbounds i8, i8* %130, i64 %129
store i8* %131, i8** %8
%132 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%133 = icmp slt i32 %132, 1
br i1 %133, label %408, label %401
134: ; preds = %125
%135 = load i32, i32* %11
%136 = load i32, i32* @V_ASN1_PRINTABLESTRING
%137 = icmp eq i32 %135, %136
%138 = load i32, i32* @V_ASN1_T61STRING
%139 = icmp eq i32 %135, %138
%140 = select i1 %137, i1 true, i1 %139
%141 = load i32, i32* @V_ASN1_IA5STRING
%142 = icmp eq i32 %135, %141
%143 = select i1 %140, i1 true, i1 %142
%144 = load i32, i32* @V_ASN1_VISIBLESTRING
%145 = icmp eq i32 %135, %144
%146 = select i1 %143, i1 true, i1 %145
%147 = load i32, i32* @V_ASN1_NUMERICSTRING
%148 = icmp eq i32 %135, %147
%149 = select i1 %146, i1 true, i1 %148
%150 = load i32, i32* @V_ASN1_UTF8STRING
%151 = icmp eq i32 %135, %150
%152 = select i1 %149, i1 true, i1 %151
%153 = load i32, i32* @V_ASN1_UTCTIME
%154 = icmp eq i32 %135, %153
%155 = select i1 %152, i1 true, i1 %154
%156 = load i32, i32* @V_ASN1_GENERALIZEDTIME
%157 = icmp eq i32 %135, %156
%158 = select i1 %155, i1 true, i1 %157
br i1 %158, label %159, label %172
159: ; preds = %134
%160 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 1)
%161 = icmp slt i32 %160, 1
br i1 %161, label %408, label %162
162: ; preds = %159
%163 = load i64, i64* %10
%164 = icmp sgt i64 %163, 0
br i1 %164, label %165, label %388
165: ; preds = %162
%166 = load i8*, i8** %8
%167 = trunc i64 %163 to i32
%168 = call i32 @BIO_write(i32* %0, i8* %166, i32 %167)
%169 = load i64, i64* %10
%170 = trunc i64 %169 to i32
%171 = icmp eq i32 %168, %170
br i1 %171, label %388, label %408
172: ; preds = %134
%173 = load i32, i32* @V_ASN1_OBJECT
%174 = icmp eq i32 %135, %173
br i1 %174, label %175, label %189
175: ; preds = %172
store i8* %39, i8** %9
%176 = load i64, i64* %10
%177 = add nsw i64 %176, %52
%178 = call i32* @d2i_ASN1_OBJECT(i32** %13, i8** %9, i64 %177)
%179 = icmp eq i32* %178, null
br i1 %179, label %186, label %180
180: ; preds = %175
%181 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 1)
%182 = icmp slt i32 %181, 1
br i1 %182, label %408, label %183
183: ; preds = %180
%184 = load i32*, i32** %13
%185 = call i32 @i2a_ASN1_OBJECT(i32* %0, i32* %184)
br label %388
186: ; preds = %175
%187 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 11)
%188 = icmp slt i32 %187, 1
br i1 %188, label %408, label %388
189: ; preds = %172
%190 = load i32, i32* @V_ASN1_BOOLEAN
%191 = icmp eq i32 %135, %190
br i1 %191, label %192, label %203
192: ; preds = %189
store i8* %39, i8** %9
%193 = load i64, i64* %10
%194 = add nsw i64 %193, %52
%195 = call i32 @d2i_ASN1_BOOLEAN(i32* null, i8** %9, i64 %194)
%196 = icmp slt i32 %195, 0
br i1 %196, label %197, label %200
197: ; preds = %192
%198 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 12)
%199 = icmp slt i32 %198, 1
br i1 %199, label %408, label %200
200: ; preds = %192, %197
%201 = trunc i32 %195 to i8
%202 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8 zeroext %201)
br label %388
203: ; preds = %189
%204 = load i32, i32* @V_ASN1_BMPSTRING
%205 = icmp eq i32 %135, %204
br i1 %205, label %388, label %206
206: ; preds = %203
%207 = load i32, i32* @V_ASN1_OCTET_STRING
%208 = icmp eq i32 %135, %207
br i1 %208, label %209, label %273
209: ; preds = %206
store i8* %39, i8** %9
%210 = load i64, i64* %10
%211 = add nsw i64 %210, %52
%212 = call %struct.TYPE_10__* @d2i_ASN1_OCTET_STRING(i32* null, i8** %9, i64 %211)
%213 = icmp eq %struct.TYPE_10__* %212, null
br i1 %213, label %388, label %214
214: ; preds = %209
%215 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %212, i64 0, i32 0
%216 = load i32, i32* %215
%217 = icmp sgt i32 %216, 0
br i1 %217, label %218, label %384
218: ; preds = %214
%219 = getelementptr inbounds %struct.TYPE_10__, %struct.TYPE_10__* %212, i64 0, i32 1
%220 = load i8*, i8** %219
store i8* %220, i8** %9
%221 = zext i32 %216 to i64
br label %222
222: ; preds = %218, %231
%223 = phi i64 [ 0, %218 ], [ %232, %231 ]
%224 = getelementptr inbounds i8, i8* %220, i64 %223
%225 = load i8, i8* %224
%226 = freeze i8 %225
%227 = icmp ugt i8 %226, 31
br i1 %227, label %229, label %228
228: ; preds = %222
switch i8 %226, label %242 [
i8 13, label %231
i8 10, label %231
i8 9, label %231
]
229: ; preds = %222
%230 = icmp ugt i8 %226, 126
br i1 %230, label %242, label %231
231: ; preds = %228, %228, %228, %229
%232 = add nuw nsw i64 %223, 1
%233 = icmp eq i64 %232, %221
br i1 %233, label %234, label %222
234: ; preds = %231
%235 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 1)
%236 = icmp slt i32 %235, 1
br i1 %236, label %408, label %237
237: ; preds = %234
%238 = load i8*, i8** %9
%239 = load i32, i32* %215
%240 = call i32 @BIO_write(i32* %0, i8* %238, i32 %239)
%241 = icmp slt i32 %240, 1
br i1 %241, label %408, label %384
242: ; preds = %229, %228
br i1 %37, label %243, label %261
243: ; preds = %242
%244 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32 11)
%245 = icmp slt i32 %244, 1
br i1 %245, label %408, label %246
246: ; preds = %243
%247 = load i32, i32* %215
%248 = icmp sgt i32 %247, 0
br i1 %248, label %253, label %384
249: ; preds = %253
%250 = load i32, i32* %215
%251 = sext i32 %250 to i64
%252 = icmp slt i64 %260, %251
br i1 %252, label %253, label %384
253: ; preds = %246, %249
%254 = phi i64 [ %260, %249 ], [ 0, %246 ]
%255 = load i8*, i8** %9
%256 = getelementptr inbounds i8, i8* %255, i64 %254
%257 = load i8, i8* %256
%258 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8 zeroext %257)
%259 = icmp slt i64 %258, 1
%260 = add nuw nsw i64 %254, 1
br i1 %259, label %408, label %249
261: ; preds = %242
%262 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%263 = icmp slt i32 %262, 1
br i1 %263, label %408, label %264
264: ; preds = %261
%265 = load i8*, i8** %9
%266 = load i32, i32* %215
%267 = icmp slt i32 %266, %6
%268 = select i1 %35, i1 true, i1 %267
%269 = sext i32 %266 to i64
%270 = select i1 %268, i64 %269, i64 %36
%271 = call i64 @BIO_dump_indent(i32* %0, i8* %265, i64 %270, i32 6)
%272 = icmp slt i64 %271, 1
br i1 %272, label %408, label %386
273: ; preds = %206
%274 = load i32, i32* @V_ASN1_INTEGER
%275 = icmp eq i32 %135, %274
br i1 %275, label %276, label %321
276: ; preds = %273
store i8* %39, i8** %9
%277 = load i64, i64* %10
%278 = add nsw i64 %277, %52
%279 = call %struct.TYPE_11__* @d2i_ASN1_INTEGER(i32* null, i8** %9, i64 %278)
%280 = icmp eq %struct.TYPE_11__* %279, null
br i1 %280, label %316, label %281
281: ; preds = %276
%282 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 1)
%283 = icmp slt i32 %282, 1
br i1 %283, label %408, label %284
284: ; preds = %281
%285 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %279, i64 0, i32 0
%286 = load i64, i64* %285
%287 = load i64, i64* @V_ASN1_NEG_INTEGER
%288 = icmp eq i64 %286, %287
br i1 %288, label %289, label %292
289: ; preds = %284
%290 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i32 1)
%291 = icmp slt i32 %290, 1
br i1 %291, label %408, label %292
292: ; preds = %289, %284
%293 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %279, i64 0, i32 1
%294 = load i32, i32* %293
%295 = icmp sgt i32 %294, 0
br i1 %295, label %296, label %310
296: ; preds = %292
%297 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %279, i64 0, i32 2
br label %302
298: ; preds = %302
%299 = load i32, i32* %293
%300 = sext i32 %299 to i64
%301 = icmp slt i64 %309, %300
br i1 %301, label %302, label %310
302: ; preds = %296, %298
%303 = phi i64 [ 0, %296 ], [ %309, %298 ]
%304 = load i8*, i8** %297
%305 = getelementptr inbounds i8, i8* %304, i64 %303
%306 = load i8, i8* %305
%307 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8 zeroext %306)
%308 = icmp slt i64 %307, 1
%309 = add nuw nsw i64 %303, 1
br i1 %308, label %408, label %298
310: ; preds = %298, %292
%311 = phi i32 [ %294, %292 ], [ %299, %298 ]
%312 = icmp eq i32 %311, 0
br i1 %312, label %313, label %319
313: ; preds = %310
%314 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32 2)
%315 = icmp slt i32 %314, 1
br i1 %315, label %408, label %319
316: ; preds = %276
%317 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 11)
%318 = icmp slt i32 %317, 1
br i1 %318, label %408, label %319
319: ; preds = %313, %310, %316
%320 = call i32 @M_ASN1_INTEGER_free(%struct.TYPE_11__* %279)
br label %388
321: ; preds = %273
%322 = load i32, i32* @V_ASN1_ENUMERATED
%323 = icmp eq i32 %135, %322
br i1 %323, label %324, label %369
324: ; preds = %321
store i8* %39, i8** %9
%325 = load i64, i64* %10
%326 = add nsw i64 %325, %52
%327 = call %struct.TYPE_12__* @d2i_ASN1_ENUMERATED(i32* null, i8** %9, i64 %326)
%328 = icmp eq %struct.TYPE_12__* %327, null
br i1 %328, label %364, label %329
329: ; preds = %324
%330 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 1)
%331 = icmp slt i32 %330, 1
br i1 %331, label %408, label %332
332: ; preds = %329
%333 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %327, i64 0, i32 0
%334 = load i64, i64* %333
%335 = load i64, i64* @V_ASN1_NEG_ENUMERATED
%336 = icmp eq i64 %334, %335
br i1 %336, label %337, label %340
337: ; preds = %332
%338 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i32 1)
%339 = icmp slt i32 %338, 1
br i1 %339, label %408, label %340
340: ; preds = %337, %332
%341 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %327, i64 0, i32 1
%342 = load i32, i32* %341
%343 = icmp sgt i32 %342, 0
br i1 %343, label %344, label %358
344: ; preds = %340
%345 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %327, i64 0, i32 2
br label %350
346: ; preds = %350
%347 = load i32, i32* %341
%348 = sext i32 %347 to i64
%349 = icmp slt i64 %357, %348
br i1 %349, label %350, label %358
350: ; preds = %344, %346
%351 = phi i64 [ 0, %344 ], [ %357, %346 ]
%352 = load i8*, i8** %345
%353 = getelementptr inbounds i8, i8* %352, i64 %351
%354 = load i8, i8* %353
%355 = call i64 (i32*, i8*, i8, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8 zeroext %354)
%356 = icmp slt i64 %355, 1
%357 = add nuw nsw i64 %351, 1
br i1 %356, label %408, label %346
358: ; preds = %346, %340
%359 = phi i32 [ %342, %340 ], [ %347, %346 ]
%360 = icmp eq i32 %359, 0
br i1 %360, label %361, label %367
361: ; preds = %358
%362 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32 2)
%363 = icmp slt i32 %362, 1
br i1 %363, label %408, label %367
364: ; preds = %324
%365 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 11)
%366 = icmp slt i32 %365, 1
br i1 %366, label %408, label %367
367: ; preds = %361, %358, %364
%368 = call i32 @M_ASN1_ENUMERATED_free(%struct.TYPE_12__* %327)
br label %388
369: ; preds = %321
%370 = load i64, i64* %10
%371 = icmp sgt i64 %370, 0
%372 = and i1 %34, %371
br i1 %372, label %373, label %388
373: ; preds = %369
%374 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%375 = icmp slt i32 %374, 1
br i1 %375, label %408, label %376
376: ; preds = %373
%377 = load i8*, i8** %8
%378 = load i64, i64* %10
%379 = icmp slt i64 %378, %36
%380 = select i1 %35, i1 true, i1 %379
%381 = select i1 %380, i64 %378, i64 %36
%382 = call i64 @BIO_dump_indent(i32* %0, i8* %377, i64 %381, i32 6)
%383 = icmp slt i64 %382, 1
br i1 %383, label %408, label %391
384: ; preds = %249, %246, %237, %214
%385 = call i32 @M_ASN1_OCTET_STRING_free(%struct.TYPE_10__* %212)
br label %388
386: ; preds = %264
%387 = call i32 @M_ASN1_OCTET_STRING_free(%struct.TYPE_10__* %212)
br label %391
388: ; preds = %209, %200, %369, %367, %319, %203, %186, %183, %162, %165, %384
%389 = call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%390 = icmp slt i32 %389, 1
br i1 %390, label %408, label %391
391: ; preds = %376, %386, %388
%392 = load i64, i64* %10
%393 = load i8*, i8** %8
%394 = getelementptr inbounds i8, i8* %393, i64 %392
store i8* %394, i8** %8
%395 = load i32, i32* %11
%396 = load i32, i32* @V_ASN1_EOC
%397 = icmp eq i32 %395, %396
%398 = load i32, i32* %12
%399 = icmp eq i32 %398, 0
%400 = select i1 %397, i1 %399, i1 false
br i1 %400, label %408, label %401
401: ; preds = %112, %99, %109, %128, %391
%402 = load i64, i64* %10
%403 = sub nsw i64 %53, %402
%404 = load i8*, i8** %8
%405 = icmp ult i8* %404, %25
%406 = icmp ult i8* %39, %404
%407 = and i1 %405, %406
br i1 %407, label %38, label %408
408: ; preds = %46, %65, %69, %72, %81, %128, %159, %165, %180, %186, %373, %376, %388, %391, %401, %197, %234, %237, %243, %261, %264, %281, %289, %313, %316, %329, %337, %361, %364, %115, %99, %350, %302, %253, %23, %44, %90
%409 = phi %struct.TYPE_10__* [ null, %90 ], [ null, %44 ], [ null, %23 ], [ %212, %253 ], [ null, %302 ], [ null, %350 ], [ null, %99 ], [ null, %115 ], [ null, %46 ], [ null, %65 ], [ null, %69 ], [ null, %72 ], [ null, %81 ], [ null, %128 ], [ null, %159 ], [ null, %165 ], [ null, %180 ], [ null, %186 ], [ null, %373 ], [ null, %376 ], [ null, %388 ], [ null, %391 ], [ null, %401 ], [ null, %197 ], [ %212, %234 ], [ %212, %237 ], [ %212, %243 ], [ %212, %261 ], [ %212, %264 ], [ null, %281 ], [ null, %289 ], [ null, %313 ], [ null, %316 ], [ null, %329 ], [ null, %337 ], [ null, %361 ], [ null, %364 ]
%410 = phi i32 [ 0, %90 ], [ 0, %44 ], [ 1, %23 ], [ 0, %253 ], [ 0, %302 ], [ 0, %350 ], [ %108, %99 ], [ 0, %115 ], [ 0, %46 ], [ 0, %65 ], [ 0, %69 ], [ 0, %72 ], [ 0, %81 ], [ 0, %128 ], [ 0, %159 ], [ 0, %165 ], [ 0, %180 ], [ 0, %186 ], [ 0, %373 ], [ 0, %376 ], [ 0, %388 ], [ 2, %391 ], [ 1, %401 ], [ 0, %197 ], [ 0, %234 ], [ 0, %237 ], [ 0, %243 ], [ 0, %261 ], [ 0, %264 ], [ 0, %281 ], [ 0, %289 ], [ 0, %313 ], [ 0, %316 ], [ 0, %329 ], [ 0, %337 ], [ 0, %361 ], [ 0, %364 ]
%411 = load i32*, i32** %13
%412 = icmp eq i32* %411, null
br i1 %412, label %415, label %413
413: ; preds = %408
%414 = call i32 @ASN1_OBJECT_free(i32* %411)
br label %415
415: ; preds = %413, %408
%416 = icmp eq %struct.TYPE_10__* %409, null
br i1 %416, label %419, label %417
417: ; preds = %415
%418 = call i32 @M_ASN1_OCTET_STRING_free(%struct.TYPE_10__* %409)
br label %419
419: ; preds = %417, %415
%420 = load i8*, i8** %8
store i8* %420, i8** %1
br label %421
421: ; preds = %419, %21
%422 = phi i32 [ 0, %21 ], [ %410, %419 ]
ret i32 %422
}