#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_ENUMERATED_free(TYPE_3__ *);
int /*<<< orphan*/ ASN1_INTEGER_free(TYPE_2__ *);
int /*<<< orphan*/ ASN1_OBJECT_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ ASN1_OCTET_STRING_free(TYPE_1__ *);
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, ...);
scalar_t__ BIO_write(int /*<<< orphan*/ *, char const *, int);
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;
  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)) {
            len = (long)(p - ep);
            break;
          }
        }
      } else {
        while (p < ep) {
          r = asn1_parse2(bp, &p, (long)(ep - p), 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;
          }
        }
        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;
        }
        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", 14) <= 0)
            goto end;
        }
        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);
  ASN1_OCTET_STRING_free(os);
  *pp = p;
  return (ret);
}


x86 assembly (clang, -O0):
<asn1_parse2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
movl   $0x0,-0x64(%rbp)
movq   $0x0,-0x80(%rbp)
movq   $0x0,-0x88(%rbp)
movl   $0x6,-0x8c(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x30(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x48(%rbp)
mov    -0x30(%rbp),%rcx
xor    %eax,%eax
cmp    -0x40(%rbp),%rcx
mov    %al,-0xb5(%rbp)
jae    1293 <asn1_parse2+0x93>
mov    -0x48(%rbp),%rax
cmp    -0x30(%rbp),%rax
setb   %al
mov    %al,-0xb5(%rbp)
mov    -0xb5(%rbp),%al
test   $0x1,%al
jne    12a6 <asn1_parse2+0xa6>
jmp    2011 <asn1_parse2+0xe11>
mov    -0x30(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%r8
lea    -0x30(%rbp),%rdi
lea    -0x58(%rbp),%rsi
lea    -0x5c(%rbp),%rdx
lea    -0x60(%rbp),%rcx
call   10c0 <ASN1_get_object@plt>
mov    %eax,-0x70(%rbp)
mov    -0x70(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     130b <asn1_parse2+0x10b>
mov    -0x8(%rbp),%rdi
lea    0x1d1a(%rip),%rsi
mov    $0x12,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     12ff <asn1_parse2+0xff>
jmp    2018 <asn1_parse2+0xe18>
movl   $0x0,-0x64(%rbp)
jmp    2018 <asn1_parse2+0xe18>
mov    -0x30(%rbp),%rax
mov    -0x48(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,-0x6c(%rbp)
movslq -0x6c(%rbp),%rcx
mov    -0x18(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x1c(%rbp),%rax
mov    -0x48(%rbp),%rcx
mov    -0x10(%rbp),%rdx
mov    (%rdx),%rdx
sub    %rdx,%rcx
add    %rcx,%rax
lea    0x1ccb(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
cmp    $0x0,%rax
jg     1361 <asn1_parse2+0x161>
jmp    2018 <asn1_parse2+0xe18>
mov    -0x70(%rbp),%eax
mov    0x3c05(%rip),%rcx
mov    (%rcx),%ecx
or     $0x1,%ecx
cmp    %ecx,%eax
je     13ac <asn1_parse2+0x1ac>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%eax
movslq -0x6c(%rbp),%rcx
mov    -0x58(%rbp),%r8
lea    0x1c8b(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
cmp    $0x0,%rax
jg     13a7 <asn1_parse2+0x1a7>
jmp    2018 <asn1_parse2+0xe18>
jmp    13dc <asn1_parse2+0x1dc>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%eax
movslq -0x6c(%rbp),%rcx
lea    0x1c71(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
cmp    $0x0,%rax
jg     13d7 <asn1_parse2+0x1d7>
jmp    2018 <asn1_parse2+0xe18>
jmp    13dc <asn1_parse2+0x1dc>
mov    -0x8(%rbp),%rax
mov    %rax,-0xd0(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0xc4(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0xc0(%rbp)
mov    -0x70(%rbp),%eax
mov    %eax,-0xbc(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     141a <asn1_parse2+0x21a>
mov    -0x20(%rbp),%eax
mov    %eax,-0xd4(%rbp)
jmp    1427 <asn1_parse2+0x227>
xor    %eax,%eax
mov    %eax,-0xd4(%rbp)
jmp    1427 <asn1_parse2+0x227>
mov    -0xbc(%rbp),%ecx
mov    -0xc0(%rbp),%edx
mov    -0xc4(%rbp),%esi
mov    -0xd0(%rbp),%rdi
mov    -0xd4(%rbp),%r8d
call   1100 <asn1_print_info@plt>
cmp    $0x0,%eax
jne    145a <asn1_parse2+0x25a>
jmp    2018 <asn1_parse2+0xe18>
mov    -0x70(%rbp),%eax
mov    0x3b0c(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     15f8 <asn1_parse2+0x3f8>
mov    -0x30(%rbp),%rax
add    -0x58(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
lea    0x1bd9(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     149f <asn1_parse2+0x29f>
jmp    2018 <asn1_parse2+0xe18>
mov    -0x58(%rbp),%rax
cmp    -0x18(%rbp),%rax
jle    14d2 <asn1_parse2+0x2d2>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rax
lea    0x1b89(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
movl   $0x0,-0x64(%rbp)
jmp    2018 <asn1_parse2+0xe18>
cmpl   $0x21,-0x70(%rbp)
jne    157c <asn1_parse2+0x37c>
cmpq   $0x0,-0x58(%rbp)
jne    157c <asn1_parse2+0x37c>
jmp    14ec <asn1_parse2+0x2ec>
mov    -0x8(%rbp),%rdi
mov    -0x40(%rbp),%rdx
mov    -0x30(%rbp),%rax
sub    %rax,%rdx
movslq -0x1c(%rbp),%rax
mov    -0x30(%rbp),%rcx
mov    -0x10(%rbp),%rsi
mov    (%rsi),%rsi
sub    %rsi,%rcx
add    %rcx,%rax
mov    %eax,%ecx
mov    -0x20(%rbp),%r8d
add    $0x1,%r8d
mov    -0x24(%rbp),%r9d
mov    0x10(%rbp),%eax
lea    -0x30(%rbp),%rsi
mov    %eax,(%rsp)
call   1070 <asn1_parse2@plt>
mov    %eax,-0x74(%rbp)
cmpl   $0x0,-0x74(%rbp)
jne    1546 <asn1_parse2+0x346>
movl   $0x0,-0x64(%rbp)
jmp    2018 <asn1_parse2+0xe18>
cmpl   $0x2,-0x74(%rbp)
je     155e <asn1_parse2+0x35e>
mov    -0x30(%rbp),%rax
cmp    -0x40(%rbp),%rax
jb     1572 <asn1_parse2+0x372>
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x58(%rbp)
jmp    1577 <asn1_parse2+0x377>
jmp    14ec <asn1_parse2+0x2ec>
jmp    15f3 <asn1_parse2+0x3f3>
jmp    1581 <asn1_parse2+0x381>
mov    -0x30(%rbp),%rax
cmp    -0x38(%rbp),%rax
jae    15ee <asn1_parse2+0x3ee>
mov    -0x8(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    -0x30(%rbp),%rax
sub    %rax,%rdx
movslq -0x1c(%rbp),%rax
mov    -0x30(%rbp),%rcx
mov    -0x10(%rbp),%rsi
mov    (%rsi),%rsi
sub    %rsi,%rcx
add    %rcx,%rax
mov    %eax,%ecx
mov    -0x20(%rbp),%r8d
add    $0x1,%r8d
mov    -0x24(%rbp),%r9d
mov    0x10(%rbp),%eax
lea    -0x30(%rbp),%rsi
mov    %eax,(%rsp)
call   1070 <asn1_parse2@plt>
mov    %eax,-0x74(%rbp)
cmpl   $0x0,-0x74(%rbp)
jne    15e9 <asn1_parse2+0x3e9>
movl   $0x0,-0x64(%rbp)
jmp    2018 <asn1_parse2+0xe18>
jmp    1581 <asn1_parse2+0x381>
jmp    15f3 <asn1_parse2+0x3f3>
jmp    1ffd <asn1_parse2+0xdfd>
cmpl   $0x0,-0x60(%rbp)
je     1637 <asn1_parse2+0x437>
mov    -0x58(%rbp),%rax
add    -0x30(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
lea    0x1a46(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1632 <asn1_parse2+0x432>
jmp    2018 <asn1_parse2+0xe18>
jmp    1ff8 <asn1_parse2+0xdf8>
movl   $0x0,-0x68(%rbp)
mov    -0x5c(%rbp),%eax
mov    0x3938(%rip),%rcx
cmp    (%rcx),%eax
je     16ce <asn1_parse2+0x4ce>
mov    -0x5c(%rbp),%eax
mov    0x393e(%rip),%rcx
cmp    (%rcx),%eax
je     16ce <asn1_parse2+0x4ce>
mov    -0x5c(%rbp),%eax
mov    0x391c(%rip),%rcx
cmp    (%rcx),%eax
je     16ce <asn1_parse2+0x4ce>
mov    -0x5c(%rbp),%eax
mov    0x3952(%rip),%rcx
cmp    (%rcx),%eax
je     16ce <asn1_parse2+0x4ce>
mov    -0x5c(%rbp),%eax
mov    0x3958(%rip),%rcx
cmp    (%rcx),%eax
je     16ce <asn1_parse2+0x4ce>
mov    -0x5c(%rbp),%eax
mov    0x391e(%rip),%rcx
cmp    (%rcx),%eax
je     16ce <asn1_parse2+0x4ce>
mov    -0x5c(%rbp),%eax
mov    0x38ac(%rip),%rcx
cmp    (%rcx),%eax
je     16ce <asn1_parse2+0x4ce>
mov    -0x5c(%rbp),%eax
mov    0x38f2(%rip),%rcx
cmp    (%rcx),%eax
jne    172a <asn1_parse2+0x52a>
mov    -0x8(%rbp),%rdi
lea    0x19af(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     16f2 <asn1_parse2+0x4f2>
jmp    2018 <asn1_parse2+0xe18>
cmpq   $0x0,-0x58(%rbp)
jle    1725 <asn1_parse2+0x525>
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x58(%rbp),%rax
mov    %eax,%edx
call   1120 <BIO_write@plt>
mov    -0x58(%rbp),%rcx
movslq %ecx,%rcx
cmp    %rcx,%rax
je     1725 <asn1_parse2+0x525>
jmp    2018 <asn1_parse2+0xe18>
jmp    1f8c <asn1_parse2+0xd8c>
mov    -0x5c(%rbp),%eax
mov    0x3894(%rip),%rcx
cmp    (%rcx),%eax
jne    17ca <asn1_parse2+0x5ca>
mov    -0x48(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rdx
movslq -0x6c(%rbp),%rax
add    %rax,%rdx
lea    -0x80(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1080 <d2i_ASN1_OBJECT@plt>
cmp    $0x0,%rax
je     179c <asn1_parse2+0x59c>
mov    -0x8(%rbp),%rdi
lea    0x1917(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     178a <asn1_parse2+0x58a>
jmp    2018 <asn1_parse2+0xe18>
mov    -0x8(%rbp),%rdi
mov    -0x80(%rbp),%rsi
call   1030 <i2a_ASN1_OBJECT@plt>
jmp    17c5 <asn1_parse2+0x5c5>
mov    -0x8(%rbp),%rdi
lea    0x18ba(%rip),%rsi
mov    $0xb,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     17c0 <asn1_parse2+0x5c0>
jmp    2018 <asn1_parse2+0xe18>
jmp    17c5 <asn1_parse2+0x5c5>
jmp    1f87 <asn1_parse2+0xd87>
mov    -0x5c(%rbp),%eax
mov    0x37bc(%rip),%rcx
cmp    (%rcx),%eax
jne    1858 <asn1_parse2+0x658>
mov    -0x48(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rdx
movslq -0x6c(%rbp),%rax
add    %rax,%rdx
xor    %eax,%eax
mov    %eax,%edi
lea    -0x50(%rbp),%rsi
call   10f0 <d2i_ASN1_BOOLEAN@plt>
mov    %eax,-0x90(%rbp)
cmpl   $0x0,-0x90(%rbp)
jge    1838 <asn1_parse2+0x638>
mov    -0x8(%rbp),%rdi
lea    0x1853(%rip),%rsi
mov    $0xc,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1833 <asn1_parse2+0x633>
jmp    2018 <asn1_parse2+0xe18>
jmp    1838 <asn1_parse2+0x638>
mov    -0x8(%rbp),%rdi
mov    -0x90(%rbp),%eax
lea    0x1831(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
jmp    1f82 <asn1_parse2+0xd82>
mov    -0x5c(%rbp),%eax
mov    0x36f6(%rip),%rcx
cmp    (%rcx),%eax
jne    186f <asn1_parse2+0x66f>
jmp    1f7d <asn1_parse2+0xd7d>
mov    -0x5c(%rbp),%eax
mov    0x36ef(%rip),%rcx
cmp    (%rcx),%eax
jne    1b74 <asn1_parse2+0x974>
movl   $0x1,-0x98(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rdx
movslq -0x6c(%rbp),%rax
add    %rax,%rdx
xor    %eax,%eax
mov    %eax,%edi
lea    -0x50(%rbp),%rsi
call   1040 <d2i_ASN1_OCTET_STRING@plt>
mov    %rax,-0x88(%rbp)
cmpq   $0x0,-0x88(%rbp)
je     1b58 <asn1_parse2+0x958>
mov    -0x88(%rbp),%rax
cmpl   $0x0,(%rax)
jle    1b58 <asn1_parse2+0x958>
mov    -0x88(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
mov    -0x88(%rbp),%rcx
cmp    (%rcx),%eax
jge    199e <asn1_parse2+0x79e>
mov    -0x50(%rbp),%rax
movslq -0x94(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
jge    195e <asn1_parse2+0x75e>
mov    -0x50(%rbp),%rax
movslq -0x94(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
je     195e <asn1_parse2+0x75e>
mov    -0x50(%rbp),%rax
movslq -0x94(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0xd,%eax
je     195e <asn1_parse2+0x75e>
mov    -0x50(%rbp),%rax
movslq -0x94(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x9,%eax
jne    1976 <asn1_parse2+0x776>
mov    -0x50(%rbp),%rax
movslq -0x94(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x7e,%eax
jle    1985 <asn1_parse2+0x785>
movl   $0x0,-0x98(%rbp)
jmp    199e <asn1_parse2+0x79e>
jmp    198a <asn1_parse2+0x78a>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    18e9 <asn1_parse2+0x6e9>
cmpl   $0x0,-0x98(%rbp)
je     19f9 <asn1_parse2+0x7f9>
mov    -0x8(%rbp),%rdi
lea    0x16d2(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     19cf <asn1_parse2+0x7cf>
jmp    2018 <asn1_parse2+0xe18>
mov    -0x8(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x88(%rbp),%rax
mov    (%rax),%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     19f4 <asn1_parse2+0x7f4>
jmp    2018 <asn1_parse2+0xe18>
jmp    1b53 <asn1_parse2+0x953>
cmpl   $0x0,0x10(%rbp)
jne    1a94 <asn1_parse2+0x894>
mov    -0x8(%rbp),%rdi
lea    0x1670(%rip),%rsi
mov    $0xb,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1a27 <asn1_parse2+0x827>
jmp    2018 <asn1_parse2+0xe18>
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
mov    -0x88(%rbp),%rcx
cmp    (%rcx),%eax
jge    1a8f <asn1_parse2+0x88f>
mov    -0x8(%rbp),%rdi
mov    -0x50(%rbp),%rax
movslq -0x94(%rbp),%rcx
lea    0x162e(%rip),%rsi
movzbl (%rax,%rcx,1),%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
cmp    $0x0,%rax
jg     1a76 <asn1_parse2+0x876>
jmp    2018 <asn1_parse2+0xe18>
jmp    1a7b <asn1_parse2+0x87b>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1a31 <asn1_parse2+0x831>
jmp    1b4e <asn1_parse2+0x94e>
cmpl   $0x0,-0x68(%rbp)
jne    1ac7 <asn1_parse2+0x8c7>
mov    -0x8(%rbp),%rdi
lea    0x15b6(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1ac2 <asn1_parse2+0x8c2>
jmp    2018 <asn1_parse2+0xe18>
jmp    1ac7 <asn1_parse2+0x8c7>
mov    -0x8(%rbp),%rax
mov    %rax,-0xe8(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0xe0(%rbp)
cmpl   $0xffffffff,0x10(%rbp)
je     1af9 <asn1_parse2+0x8f9>
mov    0x10(%rbp),%eax
mov    -0x88(%rbp),%rcx
cmp    (%rcx),%eax
jle    1b0d <asn1_parse2+0x90d>
mov    -0x88(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0xec(%rbp)
jmp    1b16 <asn1_parse2+0x916>
mov    0x10(%rbp),%eax
mov    %eax,-0xec(%rbp)
mov    -0xe0(%rbp),%rsi
mov    -0xe8(%rbp),%rdi
mov    -0xec(%rbp),%eax
movslq %eax,%rdx
mov    -0x8c(%rbp),%ecx
call   10d0 <BIO_dump_indent@plt>
cmp    $0x0,%rax
jg     1b47 <asn1_parse2+0x947>
jmp    2018 <asn1_parse2+0xe18>
movl   $0x1,-0x68(%rbp)
jmp    1b53 <asn1_parse2+0x953>
jmp    1b58 <asn1_parse2+0x958>
mov    -0x88(%rbp),%rdi
call   1050 <ASN1_OCTET_STRING_free@plt>
movq   $0x0,-0x88(%rbp)
jmp    1f78 <asn1_parse2+0xd78>
mov    -0x5c(%rbp),%eax
mov    0x3432(%rip),%rcx
cmp    (%rcx),%eax
jne    1d0b <asn1_parse2+0xb0b>
mov    -0x48(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rdx
movslq -0x6c(%rbp),%rax
add    %rax,%rdx
xor    %eax,%eax
mov    %eax,%edi
lea    -0x50(%rbp),%rsi
call   10b0 <d2i_ASN1_INTEGER@plt>
mov    %rax,-0xa0(%rbp)
cmpq   $0x0,-0xa0(%rbp)
je     1cd1 <asn1_parse2+0xad1>
mov    -0x8(%rbp),%rdi
lea    0x14c2(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1bdf <asn1_parse2+0x9df>
jmp    2018 <asn1_parse2+0xe18>
mov    -0xa0(%rbp),%rax
mov    (%rax),%rax
mov    0x3388(%rip),%rcx
cmp    (%rcx),%rax
jne    1c22 <asn1_parse2+0xa22>
mov    -0x8(%rbp),%rdi
lea    0x148b(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1c1d <asn1_parse2+0xa1d>
jmp    2018 <asn1_parse2+0xe18>
jmp    1c22 <asn1_parse2+0xa22>
movl   $0x0,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
mov    -0xa0(%rbp),%rcx
cmp    0x8(%rcx),%eax
jge    1c92 <asn1_parse2+0xa92>
mov    -0x8(%rbp),%rdi
mov    -0xa0(%rbp),%rax
mov    0x10(%rax),%rax
movslq -0xa4(%rbp),%rcx
lea    0x142b(%rip),%rsi
movzbl (%rax,%rcx,1),%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
cmp    $0x0,%rax
jg     1c79 <asn1_parse2+0xa79>
jmp    2018 <asn1_parse2+0xe18>
jmp    1c7e <asn1_parse2+0xa7e>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    1c2c <asn1_parse2+0xa2c>
mov    -0xa0(%rbp),%rax
cmpl   $0x0,0x8(%rax)
jne    1ccc <asn1_parse2+0xacc>
mov    -0x8(%rbp),%rdi
lea    0x13e3(%rip),%rsi
mov    $0x2,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1cc7 <asn1_parse2+0xac7>
jmp    2018 <asn1_parse2+0xe18>
jmp    1ccc <asn1_parse2+0xacc>
jmp    1cfa <asn1_parse2+0xafa>
mov    -0x8(%rbp),%rdi
lea    0x13b8(%rip),%rsi
mov    $0xb,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1cf5 <asn1_parse2+0xaf5>
jmp    2018 <asn1_parse2+0xe18>
jmp    1cfa <asn1_parse2+0xafa>
mov    -0xa0(%rbp),%rdi
call   1110 <ASN1_INTEGER_free@plt>
jmp    1f73 <asn1_parse2+0xd73>
mov    -0x5c(%rbp),%eax
mov    0x328b(%rip),%rcx
cmp    (%rcx),%eax
jne    1ea2 <asn1_parse2+0xca2>
mov    -0x48(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rdx
movslq -0x6c(%rbp),%rax
add    %rax,%rdx
xor    %eax,%eax
mov    %eax,%edi
lea    -0x50(%rbp),%rsi
call   1090 <d2i_ASN1_ENUMERATED@plt>
mov    %rax,-0xb0(%rbp)
cmpq   $0x0,-0xb0(%rbp)
je     1e68 <asn1_parse2+0xc68>
mov    -0x8(%rbp),%rdi
lea    0x132b(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1d76 <asn1_parse2+0xb76>
jmp    2018 <asn1_parse2+0xe18>
mov    -0xb0(%rbp),%rax
mov    (%rax),%rax
mov    0x3251(%rip),%rcx
cmp    (%rcx),%rax
jne    1db9 <asn1_parse2+0xbb9>
mov    -0x8(%rbp),%rdi
lea    0x12f4(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1db4 <asn1_parse2+0xbb4>
jmp    2018 <asn1_parse2+0xe18>
jmp    1db9 <asn1_parse2+0xbb9>
movl   $0x0,-0xb4(%rbp)
mov    -0xb4(%rbp),%eax
mov    -0xb0(%rbp),%rcx
cmp    0x8(%rcx),%eax
jge    1e29 <asn1_parse2+0xc29>
mov    -0x8(%rbp),%rdi
mov    -0xb0(%rbp),%rax
mov    0x10(%rax),%rax
movslq -0xb4(%rbp),%rcx
lea    0x1294(%rip),%rsi
movzbl (%rax,%rcx,1),%edx
mov    $0x0,%al
call   1060 <BIO_printf@plt>
cmp    $0x0,%rax
jg     1e10 <asn1_parse2+0xc10>
jmp    2018 <asn1_parse2+0xe18>
jmp    1e15 <asn1_parse2+0xc15>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    1dc3 <asn1_parse2+0xbc3>
mov    -0xb0(%rbp),%rax
cmpl   $0x0,0x8(%rax)
jne    1e63 <asn1_parse2+0xc63>
mov    -0x8(%rbp),%rdi
lea    0x124c(%rip),%rsi
mov    $0x2,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1e5e <asn1_parse2+0xc5e>
jmp    2018 <asn1_parse2+0xe18>
jmp    1e63 <asn1_parse2+0xc63>
jmp    1e91 <asn1_parse2+0xc91>
mov    -0x8(%rbp),%rdi
lea    0x122d(%rip),%rsi
mov    $0xe,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1e8c <asn1_parse2+0xc8c>
jmp    2018 <asn1_parse2+0xe18>
jmp    1e91 <asn1_parse2+0xc91>
mov    -0xb0(%rbp),%rdi
call   10a0 <ASN1_ENUMERATED_free@plt>
jmp    1f6e <asn1_parse2+0xd6e>
cmpq   $0x0,-0x58(%rbp)
jle    1f69 <asn1_parse2+0xd69>
cmpl   $0x0,0x10(%rbp)
je     1f69 <asn1_parse2+0xd69>
cmpl   $0x0,-0x68(%rbp)
jne    1eea <asn1_parse2+0xcea>
mov    -0x8(%rbp),%rdi
lea    0x1193(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1ee5 <asn1_parse2+0xce5>
jmp    2018 <asn1_parse2+0xe18>
jmp    1eea <asn1_parse2+0xcea>
mov    -0x8(%rbp),%rax
mov    %rax,-0x100(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0xf8(%rbp)
cmpl   $0xffffffff,0x10(%rbp)
je     1f18 <asn1_parse2+0xd18>
movslq 0x10(%rbp),%rax
cmp    -0x58(%rbp),%rax
jle    1f28 <asn1_parse2+0xd28>
mov    -0x58(%rbp),%rax
mov    %rax,-0x108(%rbp)
jmp    1f33 <asn1_parse2+0xd33>
movslq 0x10(%rbp),%rax
mov    %rax,-0x108(%rbp)
mov    -0xf8(%rbp),%rsi
mov    -0x100(%rbp),%rdi
mov    -0x108(%rbp),%rdx
mov    -0x8c(%rbp),%ecx
call   10d0 <BIO_dump_indent@plt>
cmp    $0x0,%rax
jg     1f62 <asn1_parse2+0xd62>
jmp    2018 <asn1_parse2+0xe18>
movl   $0x1,-0x68(%rbp)
jmp    1f6e <asn1_parse2+0xd6e>
jmp    1f73 <asn1_parse2+0xd73>
jmp    1f78 <asn1_parse2+0xd78>
jmp    1f7d <asn1_parse2+0xd7d>
jmp    1f82 <asn1_parse2+0xd82>
jmp    1f87 <asn1_parse2+0xd87>
jmp    1f8c <asn1_parse2+0xd8c>
cmpl   $0x0,-0x68(%rbp)
jne    1fbf <asn1_parse2+0xdbf>
mov    -0x8(%rbp),%rdi
lea    0x10be(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
cmp    $0x0,%rax
jg     1fba <asn1_parse2+0xdba>
jmp    2018 <asn1_parse2+0xe18>
jmp    1fbf <asn1_parse2+0xdbf>
mov    -0x58(%rbp),%rax
add    -0x30(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x5c(%rbp),%eax
mov    0x3023(%rip),%rcx
cmp    (%rcx),%eax
jne    1ff3 <asn1_parse2+0xdf3>
cmpl   $0x0,-0x60(%rbp)
jne    1ff3 <asn1_parse2+0xdf3>
movl   $0x2,-0x64(%rbp)
jmp    2018 <asn1_parse2+0xe18>
jmp    1ff8 <asn1_parse2+0xdf8>
jmp    1ffd <asn1_parse2+0xdfd>
mov    -0x58(%rbp),%rcx
mov    -0x18(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x18(%rbp)
jmp    126c <asn1_parse2+0x6c>
movl   $0x1,-0x64(%rbp)
cmpq   $0x0,-0x80(%rbp)
je     202c <asn1_parse2+0xe2c>
mov    -0x80(%rbp),%rdi
call   10e0 <ASN1_OBJECT_free@plt>
mov    -0x88(%rbp),%rdi
call   1050 <ASN1_OCTET_STRING_free@plt>
mov    -0x30(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x64(%rbp),%eax
add    $0x110,%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)
mov    %rsi,0x48(%rsp)
mov    (%rsi),%rbp
mov    %rbp,0x18(%rsp)
test   %rdx,%rdx
jle    1bb5 <asn1_parse2+0x9b5>
mov    %rdx,%r12
mov    %rdi,%r13
lea    (%rdx,%rbp,1),%r10
mov    %ecx,0x54(%rsp)
mov    %ecx,%eax
mov    %rax,0x80(%rsp)
test   %r9d,%r9d
mov    %r8d,%eax
cmove  %r9d,%eax
mov    %eax,0x68(%rsp)
mov    %r8d,0x6c(%rsp)
add    $0x1,%r8d
mov    %r8d,0x50(%rsp)
movslq 0xc0(%rsp),%rax
mov    %rax,0x70(%rsp)
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x24(%rsp),%rdx
lea    0x20(%rsp),%rbx
xor    %eax,%eax
mov    %rax,0x8(%rsp)
mov    %r9d,0x64(%rsp)
mov    %r13,0x30(%rsp)
mov    %r10,0x40(%rsp)
mov    %rbx,%rcx
mov    %r12,%r8
call   10c0 <ASN1_get_object@plt>
mov    %eax,%r13d
test   $0x80,%r13b
jne    1bc8 <asn1_parse2+0x9c8>
mov    0x18(%rsp),%ebx
mov    0x80(%rsp),%rax
add    %ebp,%eax
mov    0x48(%rsp),%rcx
sub    (%rcx),%eax
movzbl %al,%edx
xor    %r15d,%r15d
mov    0x30(%rsp),%rdi
lea    0xd39(%rip),%rsi
xor    %eax,%eax
call   1060 <BIO_printf@plt>
test   %rax,%rax
jle    1bbf <asn1_parse2+0x9bf>
mov    %rbp,0x38(%rsp)
sub    %ebp,%ebx
movslq %ebx,%r14
mov    0x2c75(%rip),%rbx
mov    (%rbx),%eax
or     $0x1,%eax
movzbl 0x6c(%rsp),%edx
cmp    %eax,%r13d
jne    1330 <asn1_parse2+0x130>
xor    %r15d,%r15d
mov    0x30(%rsp),%rbp
mov    %rbp,%rdi
lea    0xd13(%rip),%rsi
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <BIO_printf@plt>
test   %rax,%rax
jg     135a <asn1_parse2+0x15a>
jmp    1bbf <asn1_parse2+0x9bf>
mov    0x10(%rsp),%r8
xor    %r15d,%r15d
mov    0x30(%rsp),%rbp
mov    %rbp,%rdi
lea    0xcd2(%rip),%rsi
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <BIO_printf@plt>
test   %rax,%rax
jle    1bbf <asn1_parse2+0x9bf>
mov    0x24(%rsp),%esi
mov    0x20(%rsp),%edx
mov    %rbp,%rdi
mov    %r13d,%ecx
mov    0x68(%rsp),%r8d
call   1100 <asn1_print_info@plt>
xor    %r15d,%r15d
test   %eax,%eax
je     1bbf <asn1_parse2+0x9bf>
sub    %r14,%r12
test   %r13d,(%rbx)
je     14b0 <asn1_parse2+0x2b0>
mov    0x18(%rsp),%r14
add    0x10(%rsp),%r14
mov    0x30(%rsp),%rdi
lea    0xcc0(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
mov    0x10(%rsp),%rax
cmp    %r12,%rax
jg     1c23 <asn1_parse2+0xa23>
mov    %r12,0x78(%rsp)
cmp    $0x21,%r13d
mov    0x64(%rsp),%r12d
mov    0x30(%rsp),%r13
mov    0x54(%rsp),%ebx
mov    0xc0(%rsp),%ebp
mov    0x50(%rsp),%r15d
jne    148d <asn1_parse2+0x28d>
test   %rax,%rax
jne    148d <asn1_parse2+0x28d>
mov    0x18(%rsp),%rcx
mov    0x40(%rsp),%r10
nopl   0x0(%rax)
mov    %r10,%rdx
sub    %rcx,%rdx
mov    0x48(%rsp),%rax
sub    (%rax),%ecx
add    %ebx,%ecx
mov    %ebp,(%rsp)
mov    %r13,%rdi
lea    0x18(%rsp),%rsi
mov    %r15d,%r8d
mov    %r12d,%r9d
call   1070 <asn1_parse2@plt>
mov    %eax,%r15d
test   %eax,%eax
je     1bbf <asn1_parse2+0x9bf>
cmp    $0x2,%r15d
je     15db <asn1_parse2+0x3db>
mov    0x18(%rsp),%rcx
mov    0x40(%rsp),%r10
cmp    %r10,%rcx
mov    0x54(%rsp),%ebx
mov    0xc0(%rsp),%ebp
mov    0x50(%rsp),%r15d
jb     1400 <asn1_parse2+0x200>
jmp    15e5 <asn1_parse2+0x3e5>
xchg   %ax,%ax
mov    %r14,%rdx
sub    %rcx,%rdx
mov    0x48(%rsp),%rax
sub    (%rax),%ecx
add    %ebx,%ecx
mov    %ebp,(%rsp)
mov    %r13,%rdi
lea    0x18(%rsp),%rsi
mov    %r15d,%r8d
mov    %r12d,%r9d
call   1070 <asn1_parse2@plt>
test   %eax,%eax
je     1bde <asn1_parse2+0x9de>
mov    0x18(%rsp),%rcx
cmp    %r14,%rcx
jb     1460 <asn1_parse2+0x260>
mov    0x38(%rsp),%rbp
mov    0x40(%rsp),%r10
jmp    15f5 <asn1_parse2+0x3f5>
cs nopw 0x0(%rax,%rax,1)
cmpl   $0x0,0x20(%rsp)
je     14ef <asn1_parse2+0x2ef>
mov    0x10(%rsp),%rax
add    %rax,0x18(%rsp)
mov    0x30(%rsp),%rdi
lea    0xb92(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
mov    0x38(%rsp),%rbp
jle    1bde <asn1_parse2+0x9de>
mov    0x18(%rsp),%rcx
jmp    1850 <asn1_parse2+0x650>
mov    0x24(%rsp),%eax
mov    0x2a86(%rip),%rcx
cmp    (%rcx),%eax
mov    0x38(%rsp),%rbp
je     1613 <asn1_parse2+0x413>
mov    0x2a8a(%rip),%rcx
cmp    (%rcx),%eax
je     1613 <asn1_parse2+0x413>
mov    0x2a6b(%rip),%rcx
cmp    (%rcx),%eax
je     1613 <asn1_parse2+0x413>
mov    0x2aa4(%rip),%rcx
cmp    (%rcx),%eax
je     1613 <asn1_parse2+0x413>
mov    0x2aad(%rip),%rcx
cmp    (%rcx),%eax
je     1613 <asn1_parse2+0x413>
mov    0x2a76(%rip),%rcx
cmp    (%rcx),%eax
je     1613 <asn1_parse2+0x413>
mov    0x2a07(%rip),%rcx
cmp    (%rcx),%eax
je     1613 <asn1_parse2+0x413>
mov    0x2a50(%rip),%rcx
cmp    (%rcx),%eax
je     1613 <asn1_parse2+0x413>
mov    0x2a51(%rip),%rcx
cmp    (%rcx),%eax
mov    0x30(%rsp),%r13
jne    1663 <asn1_parse2+0x463>
mov    %rbp,0x28(%rsp)
add    0x10(%rsp),%r14
lea    0x58(%rsp),%rdi
lea    0x28(%rsp),%rsi
mov    %r14,%rdx
call   1080 <d2i_ASN1_OBJECT@plt>
test   %rax,%rax
je     17c5 <asn1_parse2+0x5c5>
mov    %r13,%rdi
lea    0xad5(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
mov    0x58(%rsp),%rsi
mov    %r13,%rdi
call   1030 <i2a_ASN1_OBJECT@plt>
mov    %r13,%rbx
jmp    17e5 <asn1_parse2+0x5e5>
mov    0x18(%rsp),%rcx
mov    0x40(%rsp),%r10
mov    %rcx,%rax
sub    %r14,%rax
mov    %rax,0x10(%rsp)
mov    0x38(%rsp),%rbp
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x24(%rsp),%rdx
lea    0x20(%rsp),%rbx
mov    0x78(%rsp),%r12
jmp    1869 <asn1_parse2+0x669>
mov    0x30(%rsp),%rbx
mov    %rbx,%rdi
lea    0xa66(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
mov    0x10(%rsp),%rdx
test   %rdx,%rdx
jle    17e5 <asn1_parse2+0x5e5>
mov    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1120 <BIO_write@plt>
movslq 0x10(%rsp),%rcx
cmp    %rcx,%rax
je     17e5 <asn1_parse2+0x5e5>
jmp    1bde <asn1_parse2+0x9de>
mov    0x2926(%rip),%rcx
cmp    (%rcx),%eax
jne    16c8 <asn1_parse2+0x4c8>
mov    %rbp,0x28(%rsp)
add    0x10(%rsp),%r14
xor    %edi,%edi
lea    0x28(%rsp),%rsi
mov    %r14,%rdx
call   10f0 <d2i_ASN1_BOOLEAN@plt>
mov    %eax,%r14d
test   %eax,%eax
jns    16ab <asn1_parse2+0x4ab>
mov    %r13,%rdi
lea    0x9d5(%rip),%rsi
mov    $0xc,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
movzbl %r14b,%edx
mov    %r13,%rbx
mov    %r13,%rdi
lea    0x9be(%rip),%rsi
xor    %eax,%eax
call   1060 <BIO_printf@plt>
jmp    17e5 <asn1_parse2+0x5e5>
mov    0x2889(%rip),%rcx
cmp    (%rcx),%eax
mov    %r13,%rbx
je     17e5 <asn1_parse2+0x5e5>
mov    0x2887(%rip),%rcx
cmp    (%rcx),%eax
jne    188e <asn1_parse2+0x68e>
mov    %rbp,0x28(%rsp)
add    0x10(%rsp),%r14
xor    %edi,%edi
lea    0x28(%rsp),%rsi
mov    %r14,%rdx
call   1040 <d2i_ASN1_OCTET_STRING@plt>
mov    %rax,%r14
test   %rax,%rax
je     1af5 <asn1_parse2+0x8f5>
mov    (%r14),%esi
test   %esi,%esi
jle    1af5 <asn1_parse2+0x8f5>
mov    0x8(%r14),%rcx
mov    %rcx,0x28(%rsp)
xor    %edx,%edx
mov    $0x2600,%edi
jmp    173c <asn1_parse2+0x53c>
cmp    $0x7e,%al
ja     1751 <asn1_parse2+0x551>
add    $0x1,%rdx
cmp    %rdx,%rsi
je     1abc <asn1_parse2+0x8bc>
movzbl (%rcx,%rdx,1),%eax
cmp    $0x1f,%al
ja     172b <asn1_parse2+0x52b>
cmp    $0xd,%al
ja     1751 <asn1_parse2+0x551>
movzbl %al,%eax
bt     %rax,%rdi
jb     172f <asn1_parse2+0x52f>
cmpl   $0x0,0xc0(%rsp)
je     1b55 <asn1_parse2+0x955>
mov    %r13,%rbx
mov    %r13,%rdi
lea    0x8f3(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1c4b <asn1_parse2+0xa4b>
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    %rbx,%rdi
mov    $0x6,%ecx
call   10d0 <BIO_dump_indent@plt>
test   %rax,%rax
mov    0x38(%rsp),%rbp
jle    1c4b <asn1_parse2+0xa4b>
mov    %r14,%rdi
call   1050 <ASN1_OCTET_STRING_free@plt>
jmp    1802 <asn1_parse2+0x602>
mov    %r13,%rbx
mov    %r13,%rdi
lea    0x88f(%rip),%rsi
mov    $0xb,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
mov    %rbx,%rdi
lea    0x870(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
mov    0x18(%rsp),%rcx
add    0x10(%rsp),%rcx
mov    %rcx,0x18(%rsp)
mov    0x24(%rsp),%eax
mov    0x27dc(%rip),%rdx
cmp    (%rdx),%eax
jne    1850 <asn1_parse2+0x650>
cmpl   $0x0,0x20(%rsp)
mov    0x40(%rsp),%r10
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x24(%rsp),%rdx
lea    0x20(%rsp),%rbx
jne    1869 <asn1_parse2+0x669>
jmp    1c43 <asn1_parse2+0xa43>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x40(%rsp),%r10
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x24(%rsp),%rdx
lea    0x20(%rsp),%rbx
mov    $0x1,%r15d
cmp    %r10,%rcx
jae    1be8 <asn1_parse2+0x9e8>
sub    0x10(%rsp),%r12
cmp    %rcx,%rbp
mov    %rcx,%rbp
jb     129b <asn1_parse2+0x9b>
jmp    1be8 <asn1_parse2+0x9e8>
mov    0x271b(%rip),%rcx
cmp    (%rcx),%eax
jne    1968 <asn1_parse2+0x768>
mov    %rbp,0x28(%rsp)
add    0x10(%rsp),%r14
xor    %edi,%edi
lea    0x28(%rsp),%rsi
mov    %r14,%rdx
call   10b0 <d2i_ASN1_INTEGER@plt>
mov    %rax,%r14
mov    %r13,%rdi
test   %rax,%rax
je     1b07 <asn1_parse2+0x907>
lea    0x7bc(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
mov    (%r14),%rax
mov    0x268f(%rip),%rcx
cmp    (%rcx),%rax
jne    190b <asn1_parse2+0x70b>
mov    %r13,%rdi
lea    0x797(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
mov    0x8(%r14),%eax
test   %eax,%eax
jle    194c <asn1_parse2+0x74c>
xor    %ebp,%ebp
mov    0x10(%r14),%rax
movzbl (%rax,%rbp,1),%edx
xor    %r15d,%r15d
mov    %r13,%rdi
lea    0x760(%rip),%rsi
xor    %eax,%eax
call   1060 <BIO_printf@plt>
test   %rax,%rax
jle    1bbf <asn1_parse2+0x9bf>
add    $0x1,%rbp
movslq 0x8(%r14),%rax
cmp    %rax,%rbp
jl     1915 <asn1_parse2+0x715>
mov    0x38(%rsp),%rbp
test   %eax,%eax
jne    1b21 <asn1_parse2+0x921>
mov    %r13,%rdi
lea    0x733(%rip),%rsi
mov    $0x2,%edx
jmp    1b13 <asn1_parse2+0x913>
mov    0x2631(%rip),%rcx
cmp    (%rcx),%eax
jne    1a42 <asn1_parse2+0x842>
mov    %rbp,0x28(%rsp)
add    0x10(%rsp),%r14
xor    %edi,%edi
lea    0x28(%rsp),%rsi
mov    %r14,%rdx
call   1090 <d2i_ASN1_ENUMERATED@plt>
mov    %rax,%r14
mov    %r13,%rdi
test   %rax,%rax
je     1b2e <asn1_parse2+0x92e>
lea    0x6e2(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
mov    (%r14),%rax
mov    0x2615(%rip),%rcx
cmp    (%rcx),%rax
jne    19e5 <asn1_parse2+0x7e5>
mov    %r13,%rdi
lea    0x6bd(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
mov    0x8(%r14),%eax
test   %eax,%eax
jle    1a26 <asn1_parse2+0x826>
xor    %ebp,%ebp
mov    0x10(%r14),%rax
movzbl (%rax,%rbp,1),%edx
xor    %r15d,%r15d
mov    %r13,%rdi
lea    0x686(%rip),%rsi
xor    %eax,%eax
call   1060 <BIO_printf@plt>
test   %rax,%rax
jle    1bbf <asn1_parse2+0x9bf>
add    $0x1,%rbp
movslq 0x8(%r14),%rax
cmp    %rax,%rbp
jl     19ef <asn1_parse2+0x7ef>
mov    0x38(%rsp),%rbp
test   %eax,%eax
jne    1b48 <asn1_parse2+0x948>
mov    %r13,%rdi
lea    0x659(%rip),%rsi
mov    $0x2,%edx
jmp    1b3a <asn1_parse2+0x93a>
cmpl   $0x0,0xc0(%rsp)
mov    %r13,%rbx
je     17e5 <asn1_parse2+0x5e5>
cmpq   $0x0,0x10(%rsp)
jle    17e5 <asn1_parse2+0x5e5>
mov    %rbx,%rdi
lea    0x5f6(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
mov    %rbx,%r13
mov    0x10(%rsp),%rax
mov    0x70(%rsp),%rdx
cmp    %rdx,%rax
cmovl  %rax,%rdx
cmpl   $0xffffffff,0xc0(%rsp)
ff
mov    0x18(%rsp),%rsi
cmove  %rax,%rdx
mov    %rbx,%rdi
mov    $0x6,%ecx
call   10d0 <BIO_dump_indent@plt>
test   %rax,%rax
jg     1802 <asn1_parse2+0x602>
jmp    1bde <asn1_parse2+0x9de>
mov    %r13,%rbx
mov    %r13,%rdi
lea    0x5bf(%rip),%rsi
mov    $0x1,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1c4b <asn1_parse2+0xa4b>
mov    0x28(%rsp),%rsi
mov    (%r14),%edx
mov    %rbx,%rdi
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1c4b <asn1_parse2+0xa4b>
mov    %r14,%rdi
call   1050 <ASN1_OCTET_STRING_free@plt>
mov    0x38(%rsp),%rbp
jmp    15d3 <asn1_parse2+0x3d3>
lea    0x586(%rip),%rsi
mov    $0xb,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
mov    %r14,%rdi
call   1110 <ASN1_INTEGER_free@plt>
jmp    15d3 <asn1_parse2+0x3d3>
lea    0x56b(%rip),%rsi
mov    $0xe,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1bde <asn1_parse2+0x9de>
mov    %r14,%rdi
call   10a0 <ASN1_ENUMERATED_free@plt>
jmp    15d3 <asn1_parse2+0x3d3>
mov    %r13,%rdi
lea    0x51f(%rip),%rsi
mov    $0xb,%edx
call   1120 <BIO_write@plt>
test   %rax,%rax
jle    1c4b <asn1_parse2+0xa4b>
cmpl   $0x0,(%r14)
jle    1af5 <asn1_parse2+0x8f5>
xor    %ebp,%ebp
mov    0x28(%rsp),%rax
movzbl (%rax,%rbp,1),%edx
xor    %r15d,%r15d
mov    %r13,%rdi
lea    0x4f6(%rip),%rsi
xor    %eax,%eax
call   1060 <BIO_printf@plt>
test   %rax,%rax
jle    1c4b <asn1_parse2+0xa4b>
add    $0x1,%rbp
movslq (%r14),%rax
cmp    %rax,%rbp
jl     1b7e <asn1_parse2+0x97e>
jmp    1af5 <asn1_parse2+0x8f5>
mov    $0x1,%r15d
xor    %edi,%edi
jmp    1bfc <asn1_parse2+0x9fc>
xor    %eax,%eax
mov    %rax,0x8(%rsp)
jmp    1be8 <asn1_parse2+0x9e8>
lea    0x431(%rip),%rsi
mov    0x30(%rsp),%rdi
mov    $0x12,%edx
call   1120 <BIO_write@plt>
xor    %eax,%eax
mov    %rax,0x8(%rsp)
xor    %r15d,%r15d
mov    0x58(%rsp),%rdi
test   %rdi,%rdi
je     1bf7 <asn1_parse2+0x9f7>
call   10e0 <ASN1_OBJECT_free@plt>
mov    0x8(%rsp),%rdi
mov    0x48(%rsp),%rbx
call   1050 <ASN1_OCTET_STRING_free@plt>
mov    0x18(%rsp),%rax
mov    %rax,(%rbx)
mov    %r15d,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movzbl %r12b,%edx
lea    0x417(%rip),%rsi
xor    %eax,%eax
mov    %rax,0x8(%rsp)
mov    0x30(%rsp),%rdi
xor    %eax,%eax
call   1060 <BIO_printf@plt>
jmp    1be5 <asn1_parse2+0x9e5>
mov    $0x2,%r15d
jmp    1be8 <asn1_parse2+0x9e8>
mov    %r14,0x8(%rsp)
jmp    1be8 <asn1_parse2+0x9e8>

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

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