#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ SSL;
typedef int /*<<< orphan*/ BIO;

/* Variables and functions */
int /*<<< orphan*/ BIO_flush(int /*<<< orphan*/ *);
int /*<<< orphan*/ BIO_printf(int /*<<< orphan*/ *, char *, ...);
#define DTLS1_BAD_VER 132
#define DTLS1_VERSION 131
#define SSL2_VERSION 130
#define SSL3_VERSION 129
#define TLS1_VERSION 128
void msg_cb(int write_p, int version, int content_type, const void *buf,
            size_t len, SSL *ssl, void *arg) {
  BIO *bio = arg;
  const char *str_write_p, *str_version, *str_content_type = "",
                                         *str_details1 = "", *str_details2 = "";
  str_write_p = write_p ? ">>>" : "<<<";
  switch (version) {
  case SSL2_VERSION:
    str_version = "SSL 2.0";
    break;
  case SSL3_VERSION:
    str_version = "SSL 3.0 ";
    break;
  case TLS1_VERSION:
    str_version = "TLS 1.0 ";
    break;
  default:
    str_version = "???";
  case DTLS1_VERSION:
    str_version = "DTLS 1.0 ";
    break;
  case DTLS1_BAD_VER:
    str_version = "DTLS 1.0 (bad) ";
    break;
  }
  if (version == SSL2_VERSION) {
    str_details1 = "???";
    if (len > 0) {
      switch (((const unsigned char *)buf)[0]) {
      case 0:
        str_details1 = ", ERROR:";
        str_details2 = " ???";
        if (len >= 3) {
          unsigned err = (((const unsigned char *)buf)[1] << 8) +
                         ((const unsigned char *)buf)[2];
          switch (err) {
          case 0x0001:
            str_details2 = " NO-CIPHER-ERROR";
            break;
          case 0x0002:
            str_details2 = " NO-CERTIFICATE-ERROR";
            break;
          case 0x0004:
            str_details2 = " BAD-CERTIFICATE-ERROR";
            break;
          case 0x0006:
            str_details2 = " UNSUPPORTED-CERTIFICATE-TYPE-ERROR";
            break;
          }
        }
        break;
      case 1:
        str_details1 = ", CLIENT-HELLO";
        break;
      case 2:
        str_details1 = ", CLIENT-MASTER-KEY";
        break;
      case 3:
        str_details1 = ", CLIENT-FINISHED";
        break;
      case 4:
        str_details1 = ", SERVER-HELLO";
        break;
      case 5:
        str_details1 = ", SERVER-VERIFY";
        break;
      case 6:
        str_details1 = ", SERVER-FINISHED";
        break;
      case 7:
        str_details1 = ", REQUEST-CERTIFICATE";
        break;
      case 8:
        str_details1 = ", CLIENT-CERTIFICATE";
        break;
      }
    }
  }
  if (version == SSL3_VERSION || version == TLS1_VERSION ||
      version == DTLS1_VERSION || version == DTLS1_BAD_VER) {
    switch (content_type) {
    case 20:
      str_content_type = "ChangeCipherSpec";
      break;
    case 21:
      str_content_type = "Alert";
      break;
    case 22:
      str_content_type = "Handshake";
      break;
    }
    if (content_type == 21) {
      str_details1 = ", ???";
      if (len == 2) {
        switch (((const unsigned char *)buf)[0]) {
        case 1:
          str_details1 = ", warning";
          break;
        case 2:
          str_details1 = ", fatal";
          break;
        }
        str_details2 = " ???";
        switch (((const unsigned char *)buf)[1]) {
        case 0:
          str_details2 = " close_notify";
          break;
        case 10:
          str_details2 = " unexpected_message";
          break;
        case 20:
          str_details2 = " bad_record_mac";
          break;
        case 21:
          str_details2 = " decryption_failed";
          break;
        case 22:
          str_details2 = " record_overflow";
          break;
        case 30:
          str_details2 = " decompression_failure";
          break;
        case 40:
          str_details2 = " handshake_failure";
          break;
        case 42:
          str_details2 = " bad_certificate";
          break;
        case 43:
          str_details2 = " unsupported_certificate";
          break;
        case 44:
          str_details2 = " certificate_revoked";
          break;
        case 45:
          str_details2 = " certificate_expired";
          break;
        case 46:
          str_details2 = " certificate_unknown";
          break;
        case 47:
          str_details2 = " illegal_parameter";
          break;
        case 48:
          str_details2 = " unknown_ca";
          break;
        case 49:
          str_details2 = " access_denied";
          break;
        case 50:
          str_details2 = " decode_error";
          break;
        case 51:
          str_details2 = " decrypt_error";
          break;
        case 60:
          str_details2 = " export_restriction";
          break;
        case 70:
          str_details2 = " protocol_version";
          break;
        case 71:
          str_details2 = " insufficient_security";
          break;
        case 80:
          str_details2 = " internal_error";
          break;
        case 90:
          str_details2 = " user_canceled";
          break;
        case 100:
          str_details2 = " no_renegotiation";
          break;
        }
      }
    }
    if (content_type == 22) {
      str_details1 = "???";
      if (len > 0) {
        switch (((const unsigned char *)buf)[0]) {
        case 0:
          str_details1 = ", HelloRequest";
          break;
        case 1:
          str_details1 = ", ClientHello";
          break;
        case 2:
          str_details1 = ", ServerHello";
          break;
        case 11:
          str_details1 = ", Certificate";
          break;
        case 12:
          str_details1 = ", ServerKeyExchange";
          break;
        case 13:
          str_details1 = ", CertificateRequest";
          break;
        case 14:
          str_details1 = ", ServerHelloDone";
          break;
        case 15:
          str_details1 = ", CertificateVerify";
          break;
        case 3:
          str_details1 = ", HelloVerifyRequest";
          break;
        case 16:
          str_details1 = ", ClientKeyExchange";
          break;
        case 20:
          str_details1 = ", Finished";
          break;
        }
      }
    }
  }
  BIO_printf(bio, "%s %s%s [length %04lx]%s%s\n", str_write_p, str_version,
             str_content_type, (unsigned long)len, str_details1, str_details2);
  if (len > 0) {
    size_t num, i;
    BIO_printf(bio, "   ");
    num = len;
    for (i = 0; i < num; i++) {
      if (i % 16 == 0 && i > 0)
        BIO_printf(bio, "\n   ");
      BIO_printf(bio, " %02x", ((const unsigned char *)buf)[i]);
    }
    if (i < len)
      BIO_printf(bio, " ...");
    BIO_printf(bio, "\n");
  }
  (void)BIO_flush(bio);
}


x86 assembly (clang, -O0):
<msg_cb>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    0x14c6(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    %rax,-0x50(%rbp)
mov    %rax,-0x58(%rbp)
mov    -0x4(%rbp),%eax
test   %eax,%eax
lea    0x10cd(%rip),%rcx
lea    0x10ca(%rip),%rax
cmovne %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x78(%rbp)
sub    $0x4,%eax
ja     11d3 <msg_cb+0xb3>
mov    -0x78(%rbp),%rax
lea    0xe66(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1096(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    11f9 <msg_cb+0xd9>
lea    0x108e(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    11f9 <msg_cb+0xd9>
lea    0x1088(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    11f9 <msg_cb+0xd9>
lea    0x11b0(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0x106c(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    11f9 <msg_cb+0xd9>
lea    0x1066(%rip),%rax
mov    %rax,-0x40(%rbp)
cmpl   $0x82,-0x8(%rbp)
jne    136f <msg_cb+0x24f>
lea    0x117d(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x20(%rbp)
jbe    136a <msg_cb+0x24a>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %rax,-0x80(%rbp)
sub    $0x8,%rax
ja     1365 <msg_cb+0x245>
mov    -0x80(%rbp),%rax
lea    0xdd8(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x101f(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0x1132(%rip),%rax
mov    %rax,-0x58(%rbp)
cmpq   $0x3,-0x20(%rbp)
jb     12e5 <msg_cb+0x1c5>
mov    -0x18(%rbp),%rax
movzwl 0x1(%rax),%eax
shl    $0x10,%eax
bswap  %eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x88(%rbp)
sub    $0x5,%eax
ja     12e0 <msg_cb+0x1c0>
mov    -0x88(%rbp),%rax
lea    0xd9c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xfc8(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    12e0 <msg_cb+0x1c0>
lea    0xfc9(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    12e0 <msg_cb+0x1c0>
lea    0xfcf(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    12e0 <msg_cb+0x1c0>
lea    0xfd6(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    12e5 <msg_cb+0x1c5>
jmp    1365 <msg_cb+0x245>
lea    0xfe5(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1365 <msg_cb+0x245>
lea    0xfe4(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1365 <msg_cb+0x245>
lea    0xfe8(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1365 <msg_cb+0x245>
lea    0xfea(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1365 <msg_cb+0x245>
lea    0xfe9(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1365 <msg_cb+0x245>
lea    0xfe9(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1365 <msg_cb+0x245>
lea    0xfeb(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1365 <msg_cb+0x245>
lea    0xff1(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    136a <msg_cb+0x24a>
jmp    136f <msg_cb+0x24f>
cmpl   $0x81,-0x8(%rbp)
je     13a3 <msg_cb+0x283>
cmpl   $0x80,-0x8(%rbp)
je     13a3 <msg_cb+0x283>
cmpl   $0x83,-0x8(%rbp)
je     13a3 <msg_cb+0x283>
cmpl   $0x84,-0x8(%rbp)
jne    1730 <msg_cb+0x610>
mov    -0xc(%rbp),%eax
mov    %eax,-0x8c(%rbp)
sub    $0x14,%eax
je     13e2 <msg_cb+0x2c2>
jmp    13ba <msg_cb+0x29a>
mov    -0x8c(%rbp),%eax
sub    $0x15,%eax
je     13f2 <msg_cb+0x2d2>
jmp    13ce <msg_cb+0x2ae>
mov    -0x8c(%rbp),%eax
sub    $0x16,%eax
je     1402 <msg_cb+0x2e2>
jmp    140d <msg_cb+0x2ed>
lea    0xf7e(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    140d <msg_cb+0x2ed>
lea    0xf7f(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    140d <msg_cb+0x2ed>
lea    0xf75(%rip),%rax
mov    %rax,-0x48(%rbp)
cmpl   $0x15,-0xc(%rbp)
jne    1627 <msg_cb+0x507>
lea    0xf6a(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x2,-0x20(%rbp)
jne    1622 <msg_cb+0x502>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %eax,-0x90(%rbp)
sub    $0x1,%eax
je     145c <msg_cb+0x33c>
jmp    1448 <msg_cb+0x328>
mov    -0x90(%rbp),%eax
sub    $0x2,%eax
je     146c <msg_cb+0x34c>
jmp    1477 <msg_cb+0x357>
lea    0xf2b(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1477 <msg_cb+0x357>
lea    0xf25(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xf0b(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%eax
mov    %rax,-0x98(%rbp)
sub    $0x64,%rax
ja     161d <msg_cb+0x4fd>
mov    -0x98(%rbp),%rax
lea    0xba7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xee7(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xee5(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xee9(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xee9(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xeec(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xeed(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xef4(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xef7(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xef8(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf01(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf06(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf0b(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf10(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf13(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf0f(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf0e(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf0c(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf0b(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf0f(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf11(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf18(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf18(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    161d <msg_cb+0x4fd>
lea    0xf17(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    1622 <msg_cb+0x502>
jmp    1627 <msg_cb+0x507>
cmpl   $0x16,-0xc(%rbp)
jne    172b <msg_cb+0x60b>
lea    0xd52(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x20(%rbp)
jbe    1726 <msg_cb+0x606>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %rax,-0xa0(%rbp)
sub    $0x14,%rax
ja     1721 <msg_cb+0x601>
mov    -0xa0(%rbp),%rax
lea    0xb77(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xec5(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1721 <msg_cb+0x601>
lea    0xec4(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1721 <msg_cb+0x601>
lea    0xec2(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1721 <msg_cb+0x601>
lea    0xec0(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1721 <msg_cb+0x601>
lea    0xebe(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1721 <msg_cb+0x601>
lea    0xec2(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1721 <msg_cb+0x601>
lea    0xec7(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1721 <msg_cb+0x601>
lea    0xec9(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1721 <msg_cb+0x601>
lea    0xecd(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1721 <msg_cb+0x601>
lea    0xed2(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1721 <msg_cb+0x601>
lea    0xed6(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1726 <msg_cb+0x606>
jmp    172b <msg_cb+0x60b>
jmp    1730 <msg_cb+0x610>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x20(%rbp),%r9
mov    -0x50(%rbp),%r10
mov    -0x58(%rbp),%rax
lea    0xeab(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <BIO_printf@plt>
cmpq   $0x0,-0x20(%rbp)
jbe    182e <msg_cb+0x70e>
mov    -0x30(%rbp),%rdi
lea    0xea2(%rip),%rsi
mov    $0x0,%al
call   1030 <BIO_printf@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x68(%rbp)
movq   $0x0,-0x70(%rbp)
mov    -0x70(%rbp),%rax
cmp    -0x68(%rbp),%rax
jae    17fc <msg_cb+0x6dc>
mov    -0x70(%rbp),%rax
and    $0xf,%rax
cmp    $0x0,%rax
jne    17cd <msg_cb+0x6ad>
cmpq   $0x0,-0x70(%rbp)
jbe    17cd <msg_cb+0x6ad>
mov    -0x30(%rbp),%rdi
lea    0xe54(%rip),%rsi
mov    $0x0,%al
call   1030 <BIO_printf@plt>
mov    -0x30(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    -0x70(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
lea    0xe3b(%rip),%rsi
mov    $0x0,%al
call   1030 <BIO_printf@plt>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    1790 <msg_cb+0x670>
mov    -0x70(%rbp),%rax
cmp    -0x20(%rbp),%rax
jae    181c <msg_cb+0x6fc>
mov    -0x30(%rbp),%rdi
lea    0xe10(%rip),%rsi
mov    $0x0,%al
call   1030 <BIO_printf@plt>
mov    -0x30(%rbp),%rdi
lea    0xdf1(%rip),%rsi
mov    $0x0,%al
call   1030 <BIO_printf@plt>
mov    -0x30(%rbp),%rdi
call   1040 <BIO_flush@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<msg_cb>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r8,%r14
mov    %rcx,%r15
mov    %edx,%eax
test   %edi,%edi
lea    0x1100(%rip),%rcx
lea    0x10f5(%rip),%rdx
cmove  %rcx,%rdx
mov    0x40(%rsp),%r12
lea    0x14c6(%rip),%rbp
add    $0xffffff80,%esi
cmp    $0x4,%esi
ja     1187 <msg_cb+0x67>
lea    0x10e6(%rip),%rcx
lea    0xe97(%rip),%rdi
movslq (%rdi,%rsi,4),%rsi
add    %rdi,%rsi
jmp    *%rsi
lea    0x10d9(%rip),%rcx
cmp    $0x16,%eax
jne    1219 <msg_cb+0xf9>
jmp    1269 <msg_cb+0x149>
lea    0x10c3(%rip),%rcx
jmp    122f <msg_cb+0x10f>
test   %r14,%r14
je     1309 <msg_cb+0x1e9>
movzbl (%r15),%eax
lea    0x1472(%rip),%r8
lea    0x1092(%rip),%rcx
cmp    $0x8,%rax
ja     13dc <msg_cb+0x2bc>
lea    0xfe9(%rip),%rsi
movslq (%rsi,%rax,4),%rax
add    %rsi,%rax
jmp    *%rax
lea    0x11ba(%rip),%rbx
lea    0x1095(%rip),%r10
cmp    $0x3,%r14
jb     14f1 <msg_cb+0x3d1>
movzwl 0x1(%r15),%eax
rol    $0x8,%ax
add    $0xffffffff,%eax
cmp    $0x6,%ax
jae    14f1 <msg_cb+0x3d1>
movswq %ax,%rax
lea    0xfcb(%rip),%rsi
movslq (%rsi,%rax,4),%rbx
add    %rsi,%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0x103d(%rip),%rcx
cmp    $0x16,%eax
je     1269 <msg_cb+0x149>
cmp    $0x15,%eax
je     1293 <msg_cb+0x173>
cmp    $0x14,%eax
jne    122f <msg_cb+0x10f>
lea    0x113d(%rip),%r8
mov    %rbp,%rbx
jmp    1235 <msg_cb+0x115>
mov    %rbp,%rbx
mov    %rbp,%r8
lea    0x13c2(%rip),%rsi
mov    %r12,%rdi
mov    %r14,%r9
xor    %eax,%eax
push   %rbp
push   %rbx
call   1030 <BIO_printf@plt>
add    $0x10,%rsp
test   %r14,%r14
jne    150c <msg_cb+0x3ec>
jmp    157a <msg_cb+0x45a>
lea    0xff7(%rip),%rcx
cmp    $0x16,%eax
jne    1219 <msg_cb+0xf9>
test   %r14,%r14
je     1332 <msg_cb+0x212>
movsbq (%r15),%rax
cmp    $0x14,%rax
ja     1366 <msg_cb+0x246>
lea    0xf5d(%rip),%rsi
movslq (%rsi,%rax,4),%rbp
add    %rsi,%rbp
jmp    136d <msg_cb+0x24d>
cmp    $0x2,%r14
jne    12f6 <msg_cb+0x1d6>
mov    (%r15),%al
cmp    $0x2,%al
lea    0x10f3(%rip),%rsi
lea    0x10dc(%rip),%rdi
cmove  %rsi,%rdi
cmp    $0x1,%al
lea    0x10d5(%rip),%r10
cmovne %rdi,%r10
movzbl 0x1(%r15),%eax
lea    0x10af(%rip),%r8
lea    0x10b9(%rip),%rbx
cmp    $0x64,%rax
ja     14f1 <msg_cb+0x3d1>
lea    0xd33(%rip),%rsi
movslq (%rsi,%rax,4),%rax
add    %rsi,%rax
jmp    *%rax
lea    0x10af(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0x107b(%rip),%r8
lea    0x1084(%rip),%rbx
jmp    1235 <msg_cb+0x115>
lea    0x1309(%rip),%r8
lea    0x1073(%rip),%rbp
lea    0x12e0(%rip),%rsi
lea    0xf1b(%rip),%rcx
mov    %r12,%rdi
xor    %r9d,%r9d
xor    %eax,%eax
push   %r8
push   %rbp
jmp    1358 <msg_cb+0x238>
lea    0x12e0(%rip),%rbp
lea    0x104a(%rip),%rbx
lea    0x12b7(%rip),%rsi
lea    0x1030(%rip),%r8
mov    %r12,%rdi
xor    %r9d,%r9d
xor    %eax,%eax
push   %rbp
push   %rbx
call   1030 <BIO_printf@plt>
add    $0x10,%rsp
jmp    157a <msg_cb+0x45a>
lea    0x101d(%rip),%rbp
lea    0x12a5(%rip),%rbx
lea    0x1283(%rip),%rsi
lea    0xffc(%rip),%r8
mov    %r12,%rdi
mov    %r14,%r9
xor    %eax,%eax
push   %rbx
push   %rbp
jmp    1503 <msg_cb+0x3e3>
lea    0xf3e(%rip),%r10
mov    %r8,%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xf3e(%rip),%r10
mov    %r8,%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xf43(%rip),%r10
mov    %r8,%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xf46(%rip),%r10
mov    %r8,%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xf68(%rip),%r10
mov    %r8,%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xfa7(%rip),%r10
mov    %r8,%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xf28(%rip),%r10
mov    %r8,%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xf29(%rip),%r10
mov    %r8,%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xf42(%rip),%r10
mov    %r8,%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xf8f(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xf97(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xf9b(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xfa2(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xfa7(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xfb2(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xfb9(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xfbe(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xfce(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xfda(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xfe6(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xff2(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xffc(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0xfff(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0x1005(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0x100a(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0x1010(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0x101b(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0x1024(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0x1032(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0x1039(%rip),%rbx
jmp    14f1 <msg_cb+0x3d1>
lea    0x103f(%rip),%rbx
lea    0x1106(%rip),%rsi
mov    %r12,%rdi
mov    %r14,%r9
xor    %eax,%eax
push   %rbx
push   %r10
call   1030 <BIO_printf@plt>
add    $0x10,%rsp
lea    0x1108(%rip),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <BIO_printf@plt>
lea    0x10f6(%rip),%r13
lea    0x10f4(%rip),%rbx
xor    %ebp,%ebp
jmp    154b <msg_cb+0x42b>
nop
movzbl (%r15,%rbp,1),%edx
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <BIO_printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r14
je     1569 <msg_cb+0x449>
test   %rbp,%rbp
je     1530 <msg_cb+0x410>
mov    %ebp,%eax
and    $0xf,%eax
test   %rax,%rax
jne    1530 <msg_cb+0x410>
mov    %r12,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <BIO_printf@plt>
jmp    1530 <msg_cb+0x410>
lea    0x10a8(%rip),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <BIO_printf@plt>
mov    %r12,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <BIO_flush@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c">>>\00"
@.str.2 = [4 x i8] c"<<<\00"
@.str.3 = [8 x i8] c"SSL 2.0\00"
@.str.4 = [9 x i8] c"SSL 3.0 \00"
@.str.5 = [9 x i8] c"TLS 1.0 \00"
@.str.6 = [4 x i8] c"???\00"
@.str.7 = [10 x i8] c"DTLS 1.0 \00"
@.str.8 = [16 x i8] c"DTLS 1.0 (bad) \00"
@.str.9 = [9 x i8] c", ERROR:\00"
@.str.10 = [5 x i8] c" ???\00"
@.str.11 = [17 x i8] c" NO-CIPHER-ERROR\00"
@.str.12 = [22 x i8] c" NO-CERTIFICATE-ERROR\00"
@.str.13 = [23 x i8] c" BAD-CERTIFICATE-ERROR\00"
@.str.14 = [36 x i8] c" UNSUPPORTED-CERTIFICATE-TYPE-ERROR\00"
@.str.15 = [15 x i8] c", CLIENT-HELLO\00"
@.str.16 = [20 x i8] c", CLIENT-MASTER-KEY\00"
@.str.17 = [18 x i8] c", CLIENT-FINISHED\00"
@.str.18 = [15 x i8] c", SERVER-HELLO\00"
@.str.19 = [16 x i8] c", SERVER-VERIFY\00"
@.str.20 = [18 x i8] c", SERVER-FINISHED\00"
@.str.21 = [22 x i8] c", REQUEST-CERTIFICATE\00"
@.str.22 = [21 x i8] c", CLIENT-CERTIFICATE\00"
@.str.23 = [17 x i8] c"ChangeCipherSpec\00"
@.str.24 = [6 x i8] c"Alert\00"
@.str.25 = [10 x i8] c"Handshake\00"
@.str.26 = [6 x i8] c", ???\00"
@.str.27 = [10 x i8] c", warning\00"
@.str.28 = [8 x i8] c", fatal\00"
@.str.29 = [14 x i8] c" close_notify\00"
@.str.30 = [20 x i8] c" unexpected_message\00"
@.str.31 = [16 x i8] c" bad_record_mac\00"
@.str.32 = [19 x i8] c" decryption_failed\00"
@.str.33 = [17 x i8] c" record_overflow\00"
@.str.34 = [23 x i8] c" decompression_failure\00"
@.str.35 = [19 x i8] c" handshake_failure\00"
@.str.36 = [17 x i8] c" bad_certificate\00"
@.str.37 = [25 x i8] c" unsupported_certificate\00"
@.str.38 = [21 x i8] c" certificate_revoked\00"
@.str.39 = [21 x i8] c" certificate_expired\00"
@.str.40 = [21 x i8] c" certificate_unknown\00"
@.str.41 = [19 x i8] c" illegal_parameter\00"
@.str.42 = [12 x i8] c" unknown_ca\00"
@.str.43 = [15 x i8] c" access_denied\00"
@.str.44 = [14 x i8] c" decode_error\00"
@.str.45 = [15 x i8] c" decrypt_error\00"
@.str.46 = [20 x i8] c" export_restriction\00"
@.str.47 = [18 x i8] c" protocol_version\00"
@.str.48 = [23 x i8] c" insufficient_security\00"
@.str.49 = [16 x i8] c" internal_error\00"
@.str.50 = [15 x i8] c" user_canceled\00"
@.str.51 = [18 x i8] c" no_renegotiation\00"
@.str.52 = [15 x i8] c", HelloRequest\00"
@.str.53 = [14 x i8] c", ClientHello\00"
@.str.54 = [14 x i8] c", ServerHello\00"
@.str.55 = [14 x i8] c", Certificate\00"
@.str.56 = [20 x i8] c", ServerKeyExchange\00"
@.str.57 = [21 x i8] c", CertificateRequest\00"
@.str.58 = [18 x i8] c", ServerHelloDone\00"
@.str.59 = [20 x i8] c", CertificateVerify\00"
@.str.60 = [21 x i8] c", HelloVerifyRequest\00"
@.str.61 = [20 x i8] c", ClientKeyExchange\00"
@.str.62 = [11 x i8] c", Finished\00"
@.str.63 = [28 x i8] c"%s %s%s [length %04lx]%s%s\0A\00"
@.str.64 = [4 x i8] c" \00"
@.str.65 = [5 x i8] c"\0A \00"
@.str.66 = [6 x i8] c" %02x\00"
@.str.67 = [5 x i8] c" ...\00"
@.str.68 = [2 x i8] c"\0A\00"
define void @msg_cb(i32 %0, i32 %1, i32 %2, i8* %3, i64 %4, i32* %5, i8* %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i32*
%14 = alloca i8*
%15 = alloca i32*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca i32
%22 = alloca i64
%23 = alloca i64
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i8* %3, i8** %11
store i64 %4, i64* %12
store i32* %5, i32** %13
store i8* %6, i8** %14
%24 = load i8*, i8** %14
%25 = bitcast i8* %24 to i32*
store i32* %25, i32** %15
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %18
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %19
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %20
%26 = load i32, i32* %8
%27 = icmp ne i32 %26, 0
%28 = zext i1 %27 to i64
%29 = select i1 %27, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
store i8* %29, i8** %16
%30 = load i32, i32* %9
switch i32 %30, label %34 [
i32 130, label %31
i32 129, label %32
i32 128, label %33
i32 131, label %35
i32 132, label %36
]
31: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %17
br label %37
32: ; preds = %7
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8** %17
br label %37
33: ; preds = %7
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8** %17
br label %37
34: ; preds = %7
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %17
br label %35
35: ; preds = %7, %34
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8** %17
br label %37
36: ; preds = %7
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8** %17
br label %37
37: ; preds = %36, %35, %33, %32, %31
%38 = load i32, i32* %9
%39 = icmp eq i32 %38, 130
br i1 %39, label %40, label %79
40: ; preds = %37
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %19
%41 = load i64, i64* %12
%42 = icmp ugt i64 %41, 0
br i1 %42, label %43, label %78
43: ; preds = %40
%44 = load i8*, i8** %11
%45 = getelementptr inbounds i8, i8* %44, i64 0
%46 = load i8, i8* %45
%47 = zext i8 %46 to i32
switch i32 %47, label %77 [
i32 0, label %48
i32 1, label %69
i32 2, label %70
i32 3, label %71
i32 4, label %72
i32 5, label %73
i32 6, label %74
i32 7, label %75
i32 8, label %76
]
48: ; preds = %43
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8** %19
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i8** %20
%49 = load i64, i64* %12
%50 = icmp uge i64 %49, 3
br i1 %50, label %51, label %68
51: ; preds = %48
%52 = load i8*, i8** %11
%53 = getelementptr inbounds i8, i8* %52, i64 1
%54 = load i8, i8* %53
%55 = zext i8 %54 to i32
%56 = shl i32 %55, 8
%57 = load i8*, i8** %11
%58 = getelementptr inbounds i8, i8* %57, i64 2
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = add nsw i32 %56, %60
store i32 %61, i32* %21
%62 = load i32, i32* %21
switch i32 %62, label %67 [
i32 1, label %63
i32 2, label %64
i32 4, label %65
i32 6, label %66
]
63: ; preds = %51
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8** %20
br label %67
64: ; preds = %51
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i8** %20
br label %67
65: ; preds = %51
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0), i8** %20
br label %67
66: ; preds = %51
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.14, i64 0, i64 0), i8** %20
br label %67
67: ; preds = %51, %66, %65, %64, %63
br label %68
68: ; preds = %67, %48
br label %77
69: ; preds = %43
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i8** %19
br label %77
70: ; preds = %43
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0), i8** %19
br label %77
71: ; preds = %43
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), i8** %19
br label %77
72: ; preds = %43
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i8** %19
br label %77
73: ; preds = %43
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0), i8** %19
br label %77
74: ; preds = %43
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0), i8** %19
br label %77
75: ; preds = %43
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.21, i64 0, i64 0), i8** %19
br label %77
76: ; preds = %43
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.22, i64 0, i64 0), i8** %19
br label %77
77: ; preds = %43, %76, %75, %74, %73, %72, %71, %70, %69, %68
br label %78
78: ; preds = %77, %40
br label %79
79: ; preds = %78, %37
%80 = load i32, i32* %9
%81 = icmp eq i32 %80, 129
br i1 %81, label %91, label %82
82: ; preds = %79
%83 = load i32, i32* %9
%84 = icmp eq i32 %83, 128
br i1 %84, label %91, label %85
85: ; preds = %82
%86 = load i32, i32* %9
%87 = icmp eq i32 %86, 131
br i1 %87, label %91, label %88
88: ; preds = %85
%89 = load i32, i32* %9
%90 = icmp eq i32 %89, 132
br i1 %90, label %91, label %164
91: ; preds = %88, %85, %82, %79
%92 = load i32, i32* %10
switch i32 %92, label %96 [
i32 20, label %93
i32 21, label %94
i32 22, label %95
]
93: ; preds = %91
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.23, i64 0, i64 0), i8** %18
br label %96
94: ; preds = %91
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), i8** %18
br label %96
95: ; preds = %91
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0), i8** %18
br label %96
96: ; preds = %91, %95, %94, %93
%97 = load i32, i32* %10
%98 = icmp eq i32 %97, 21
br i1 %98, label %99, label %139
99: ; preds = %96
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), i8** %19
%100 = load i64, i64* %12
%101 = icmp eq i64 %100, 2
br i1 %101, label %102, label %138
102: ; preds = %99
%103 = load i8*, i8** %11
%104 = getelementptr inbounds i8, i8* %103, i64 0
%105 = load i8, i8* %104
%106 = zext i8 %105 to i32
switch i32 %106, label %109 [
i32 1, label %107
i32 2, label %108
]
107: ; preds = %102
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.27, i64 0, i64 0), i8** %19
br label %109
108: ; preds = %102
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0), i8** %19
br label %109
109: ; preds = %102, %108, %107
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i8** %20
%110 = load i8*, i8** %11
%111 = getelementptr inbounds i8, i8* %110, i64 1
%112 = load i8, i8* %111
%113 = zext i8 %112 to i32
switch i32 %113, label %137 [
i32 0, label %114
i32 10, label %115
i32 20, label %116
i32 21, label %117
i32 22, label %118
i32 30, label %119
i32 40, label %120
i32 42, label %121
i32 43, label %122
i32 44, label %123
i32 45, label %124
i32 46, label %125
i32 47, label %126
i32 48, label %127
i32 49, label %128
i32 50, label %129
i32 51, label %130
i32 60, label %131
i32 70, label %132
i32 71, label %133
i32 80, label %134
i32 90, label %135
i32 100, label %136
]
114: ; preds = %109
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.29, i64 0, i64 0), i8** %20
br label %137
115: ; preds = %109
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.30, i64 0, i64 0), i8** %20
br label %137
116: ; preds = %109
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.31, i64 0, i64 0), i8** %20
br label %137
117: ; preds = %109
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.32, i64 0, i64 0), i8** %20
br label %137
118: ; preds = %109
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.33, i64 0, i64 0), i8** %20
br label %137
119: ; preds = %109
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.34, i64 0, i64 0), i8** %20
br label %137
120: ; preds = %109
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.35, i64 0, i64 0), i8** %20
br label %137
121: ; preds = %109
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.36, i64 0, i64 0), i8** %20
br label %137
122: ; preds = %109
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.37, i64 0, i64 0), i8** %20
br label %137
123: ; preds = %109
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.38, i64 0, i64 0), i8** %20
br label %137
124: ; preds = %109
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.39, i64 0, i64 0), i8** %20
br label %137
125: ; preds = %109
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.40, i64 0, i64 0), i8** %20
br label %137
126: ; preds = %109
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.41, i64 0, i64 0), i8** %20
br label %137
127: ; preds = %109
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.42, i64 0, i64 0), i8** %20
br label %137
128: ; preds = %109
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.43, i64 0, i64 0), i8** %20
br label %137
129: ; preds = %109
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.44, i64 0, i64 0), i8** %20
br label %137
130: ; preds = %109
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.45, i64 0, i64 0), i8** %20
br label %137
131: ; preds = %109
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.46, i64 0, i64 0), i8** %20
br label %137
132: ; preds = %109
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.47, i64 0, i64 0), i8** %20
br label %137
133: ; preds = %109
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.48, i64 0, i64 0), i8** %20
br label %137
134: ; preds = %109
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.49, i64 0, i64 0), i8** %20
br label %137
135: ; preds = %109
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.50, i64 0, i64 0), i8** %20
br label %137
136: ; preds = %109
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.51, i64 0, i64 0), i8** %20
br label %137
137: ; preds = %109, %136, %135, %134, %133, %132, %131, %130, %129, %128, %127, %126, %125, %124, %123, %122, %121, %120, %119, %118, %117, %116, %115, %114
br label %138
138: ; preds = %137, %99
br label %139
139: ; preds = %138, %96
%140 = load i32, i32* %10
%141 = icmp eq i32 %140, 22
br i1 %141, label %142, label %163
142: ; preds = %139
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %19
%143 = load i64, i64* %12
%144 = icmp ugt i64 %143, 0
br i1 %144, label %145, label %162
145: ; preds = %142
%146 = load i8*, i8** %11
%147 = getelementptr inbounds i8, i8* %146, i64 0
%148 = load i8, i8* %147
%149 = zext i8 %148 to i32
switch i32 %149, label %161 [
i32 0, label %150
i32 1, label %151
i32 2, label %152
i32 11, label %153
i32 12, label %154
i32 13, label %155
i32 14, label %156
i32 15, label %157
i32 3, label %158
i32 16, label %159
i32 20, label %160
]
150: ; preds = %145
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.52, i64 0, i64 0), i8** %19
br label %161
151: ; preds = %145
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.53, i64 0, i64 0), i8** %19
br label %161
152: ; preds = %145
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.54, i64 0, i64 0), i8** %19
br label %161
153: ; preds = %145
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.55, i64 0, i64 0), i8** %19
br label %161
154: ; preds = %145
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.56, i64 0, i64 0), i8** %19
br label %161
155: ; preds = %145
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.57, i64 0, i64 0), i8** %19
br label %161
156: ; preds = %145
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.58, i64 0, i64 0), i8** %19
br label %161
157: ; preds = %145
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.59, i64 0, i64 0), i8** %19
br label %161
158: ; preds = %145
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.60, i64 0, i64 0), i8** %19
br label %161
159: ; preds = %145
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.61, i64 0, i64 0), i8** %19
br label %161
160: ; preds = %145
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.62, i64 0, i64 0), i8** %19
br label %161
161: ; preds = %145, %160, %159, %158, %157, %156, %155, %154, %153, %152, %151, %150
br label %162
162: ; preds = %161, %142
br label %163
163: ; preds = %162, %139
br label %164
164: ; preds = %163, %88
%165 = load i32*, i32** %15
%166 = load i8*, i8** %16
%167 = load i8*, i8** %17
%168 = load i8*, i8** %18
%169 = load i64, i64* %12
%170 = load i8*, i8** %19
%171 = load i8*, i8** %20
%172 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %165, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.63, i64 0, i64 0), i8* %166, i8* %167, i8* %168, i64 %169, i8* %170, i8* %171)
%173 = load i64, i64* %12
%174 = icmp ugt i64 %173, 0
br i1 %174, label %175, label %214
175: ; preds = %164
%176 = load i32*, i32** %15
%177 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %176, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.64, i64 0, i64 0))
%178 = load i64, i64* %12
store i64 %178, i64* %22
store i64 0, i64* %23
br label %179
179: ; preds = %201, %175
%180 = load i64, i64* %23
%181 = load i64, i64* %22
%182 = icmp ult i64 %180, %181
br i1 %182, label %183, label %204
183: ; preds = %179
%184 = load i64, i64* %23
%185 = urem i64 %184, 16
%186 = icmp eq i64 %185, 0
br i1 %186, label %187, label %193
187: ; preds = %183
%188 = load i64, i64* %23
%189 = icmp ugt i64 %188, 0
br i1 %189, label %190, label %193
190: ; preds = %187
%191 = load i32*, i32** %15
%192 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %191, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.65, i64 0, i64 0))
br label %193
193: ; preds = %190, %187, %183
%194 = load i32*, i32** %15
%195 = load i8*, i8** %11
%196 = load i64, i64* %23
%197 = getelementptr inbounds i8, i8* %195, i64 %196
%198 = load i8, i8* %197
%199 = zext i8 %198 to i32
%200 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %194, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.66, i64 0, i64 0), i32 %199)
br label %201
201: ; preds = %193
%202 = load i64, i64* %23
%203 = add i64 %202, 1
store i64 %203, i64* %23
br label %179
204: ; preds = %179
%205 = load i64, i64* %23
%206 = load i64, i64* %12
%207 = icmp ult i64 %205, %206
br i1 %207, label %208, label %211
208: ; preds = %204
%209 = load i32*, i32** %15
%210 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %209, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.67, i64 0, i64 0))
br label %211
211: ; preds = %208, %204
%212 = load i32*, i32** %15
%213 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %212, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.68, i64 0, i64 0))
br label %214
214: ; preds = %211, %164
%215 = load i32*, i32** %15
%216 = call i32 @BIO_flush(i32* %215)
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c">>>\00"
@.str.2 = [4 x i8] c"<<<\00"
@.str.3 = [8 x i8] c"SSL 2.0\00"
@.str.4 = [9 x i8] c"SSL 3.0 \00"
@.str.5 = [9 x i8] c"TLS 1.0 \00"
@.str.6 = [4 x i8] c"???\00"
@.str.7 = [10 x i8] c"DTLS 1.0 \00"
@.str.8 = [16 x i8] c"DTLS 1.0 (bad) \00"
@.str.9 = [9 x i8] c", ERROR:\00"
@.str.10 = [5 x i8] c" ???\00"
@.str.11 = [17 x i8] c" NO-CIPHER-ERROR\00"
@.str.12 = [22 x i8] c" NO-CERTIFICATE-ERROR\00"
@.str.13 = [23 x i8] c" BAD-CERTIFICATE-ERROR\00"
@.str.14 = [36 x i8] c" UNSUPPORTED-CERTIFICATE-TYPE-ERROR\00"
@.str.15 = [15 x i8] c", CLIENT-HELLO\00"
@.str.16 = [20 x i8] c", CLIENT-MASTER-KEY\00"
@.str.17 = [18 x i8] c", CLIENT-FINISHED\00"
@.str.18 = [15 x i8] c", SERVER-HELLO\00"
@.str.19 = [16 x i8] c", SERVER-VERIFY\00"
@.str.20 = [18 x i8] c", SERVER-FINISHED\00"
@.str.21 = [22 x i8] c", REQUEST-CERTIFICATE\00"
@.str.22 = [21 x i8] c", CLIENT-CERTIFICATE\00"
@.str.23 = [17 x i8] c"ChangeCipherSpec\00"
@.str.24 = [6 x i8] c"Alert\00"
@.str.25 = [10 x i8] c"Handshake\00"
@.str.26 = [6 x i8] c", ???\00"
@.str.27 = [10 x i8] c", warning\00"
@.str.28 = [8 x i8] c", fatal\00"
@.str.29 = [14 x i8] c" close_notify\00"
@.str.30 = [20 x i8] c" unexpected_message\00"
@.str.31 = [16 x i8] c" bad_record_mac\00"
@.str.32 = [19 x i8] c" decryption_failed\00"
@.str.33 = [17 x i8] c" record_overflow\00"
@.str.34 = [23 x i8] c" decompression_failure\00"
@.str.35 = [19 x i8] c" handshake_failure\00"
@.str.36 = [17 x i8] c" bad_certificate\00"
@.str.37 = [25 x i8] c" unsupported_certificate\00"
@.str.38 = [21 x i8] c" certificate_revoked\00"
@.str.39 = [21 x i8] c" certificate_expired\00"
@.str.40 = [21 x i8] c" certificate_unknown\00"
@.str.41 = [19 x i8] c" illegal_parameter\00"
@.str.42 = [12 x i8] c" unknown_ca\00"
@.str.43 = [15 x i8] c" access_denied\00"
@.str.44 = [14 x i8] c" decode_error\00"
@.str.45 = [15 x i8] c" decrypt_error\00"
@.str.46 = [20 x i8] c" export_restriction\00"
@.str.47 = [18 x i8] c" protocol_version\00"
@.str.48 = [23 x i8] c" insufficient_security\00"
@.str.49 = [16 x i8] c" internal_error\00"
@.str.50 = [15 x i8] c" user_canceled\00"
@.str.51 = [18 x i8] c" no_renegotiation\00"
@.str.52 = [15 x i8] c", HelloRequest\00"
@.str.53 = [14 x i8] c", ClientHello\00"
@.str.54 = [14 x i8] c", ServerHello\00"
@.str.55 = [14 x i8] c", Certificate\00"
@.str.56 = [20 x i8] c", ServerKeyExchange\00"
@.str.57 = [21 x i8] c", CertificateRequest\00"
@.str.58 = [18 x i8] c", ServerHelloDone\00"
@.str.59 = [20 x i8] c", CertificateVerify\00"
@.str.60 = [21 x i8] c", HelloVerifyRequest\00"
@.str.61 = [20 x i8] c", ClientKeyExchange\00"
@.str.62 = [11 x i8] c", Finished\00"
@.str.63 = [28 x i8] c"%s %s%s [length %04lx]%s%s\0A\00"
@.str.64 = [4 x i8] c" \00"
@.str.65 = [5 x i8] c"\0A \00"
@.str.66 = [6 x i8] c" %02x\00"
@.str.68 = [2 x i8] c"\0A\00"
@reltable.msg_cb = [6 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.11 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.12 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.10 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @.str.13 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.10 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([36 x i8]* @.str.14 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32)]
@reltable.msg_cb.70 = [21 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.52 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.53 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.54 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.60 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.6 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.6 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.6 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.6 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.6 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.6 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.6 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.55 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.56 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.57 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.58 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.59 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.61 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.6 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.6 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.6 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.62 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.70 to i64)) to i32)]
define void @msg_cb(i32 %0, i32 %1, i32 %2, i8* nocapture %3, i64 %4, i32* nocapture readnone %5, i8* %6) {
%8 = bitcast i8* %6 to i32*
%9 = icmp eq i32 %0, 0
%10 = select i1 %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
switch i32 %1, label %101 [
i32 130, label %13
i32 129, label %41
i32 128, label %11
i32 132, label %12
i32 131, label %40
]
11: ; preds = %7
br label %41
12: ; preds = %7
br label %41
13: ; preds = %7
%14 = icmp eq i64 %4, 0
br i1 %14, label %15, label %17
15: ; preds = %13
%16 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.63, i64 0, i64 0), i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %126
17: ; preds = %13
%18 = load i8, i8* %3
switch i8 %18, label %95 [
i8 0, label %19
i8 1, label %32
i8 2, label %33
i8 3, label %34
i8 4, label %35
i8 5, label %36
i8 6, label %37
i8 7, label %38
i8 8, label %39
]
19: ; preds = %17
%20 = icmp ugt i64 %4, 2
br i1 %20, label %21, label %95
21: ; preds = %19
%22 = getelementptr inbounds i8, i8* %3, i64 1
%23 = load i8, i8* %22
%24 = zext i8 %23 to i16
%25 = shl nuw i16 %24, 8
%26 = getelementptr inbounds i8, i8* %3, i64 2
%27 = load i8, i8* %26
%28 = zext i8 %27 to i16
%29 = or i16 %25, %28
%30 = add i16 %29, -1
%31 = icmp ult i16 %30, 6
br i1 %31, label %91, label %95
32: ; preds = %17
br label %95
33: ; preds = %17
br label %95
34: ; preds = %17
br label %95
35: ; preds = %17
br label %95
36: ; preds = %17
br label %95
37: ; preds = %17
br label %95
38: ; preds = %17
br label %95
39: ; preds = %17
br label %95
40: ; preds = %7
br label %41
41: ; preds = %7, %40, %11, %12
%42 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), %12 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), %11 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), %7 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), %40 ]
switch i32 %2, label %101 [
i32 20, label %43
i32 21, label %44
i32 22, label %77
]
43: ; preds = %41
br label %101
44: ; preds = %41
%45 = icmp eq i64 %4, 2
br i1 %45, label %46, label %101
46: ; preds = %44
%47 = load i8, i8* %3
%48 = icmp eq i8 %47, 2
%49 = select i1 %48, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0)
%50 = icmp eq i8 %47, 1
%51 = select i1 %50, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.27, i64 0, i64 0), i8* %49
%52 = getelementptr inbounds i8, i8* %3, i64 1
%53 = load i8, i8* %52
switch i8 %53, label %95 [
i8 0, label %54
i8 10, label %55
i8 20, label %56
i8 21, label %57
i8 22, label %58
i8 30, label %59
i8 40, label %60
i8 42, label %61
i8 43, label %62
i8 44, label %63
i8 45, label %64
i8 46, label %65
i8 47, label %66
i8 48, label %67
i8 49, label %68
i8 50, label %69
i8 51, label %70
i8 60, label %71
i8 70, label %72
i8 71, label %73
i8 80, label %74
i8 90, label %75
i8 100, label %76
]
54: ; preds = %46
br label %95
55: ; preds = %46
br label %95
56: ; preds = %46
br label %95
57: ; preds = %46
br label %95
58: ; preds = %46
br label %95
59: ; preds = %46
br label %95
60: ; preds = %46
br label %95
61: ; preds = %46
br label %95
62: ; preds = %46
br label %95
63: ; preds = %46
br label %95
64: ; preds = %46
br label %95
65: ; preds = %46
br label %95
66: ; preds = %46
br label %95
67: ; preds = %46
br label %95
68: ; preds = %46
br label %95
69: ; preds = %46
br label %95
70: ; preds = %46
br label %95
71: ; preds = %46
br label %95
72: ; preds = %46
br label %95
73: ; preds = %46
br label %95
74: ; preds = %46
br label %95
75: ; preds = %46
br label %95
76: ; preds = %46
br label %95
77: ; preds = %41
%78 = icmp eq i64 %4, 0
br i1 %78, label %79, label %81
79: ; preds = %77
%80 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.63, i64 0, i64 0), i8* %10, i8* %42, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %126
81: ; preds = %77
%82 = load i8, i8* %3
%83 = icmp ult i8 %82, 21
br i1 %83, label %84, label %88
84: ; preds = %81
%85 = sext i8 %82 to i64
%86 = shl i64 %85, 2
%87 = call i8* @llvm.load.relative.i64(i8* bitcast ([21 x i32]* @reltable.msg_cb.70 to i8*), i64 %86)
br label %88
88: ; preds = %84, %81
%89 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), %81 ], [ %87, %84 ]
%90 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.63, i64 0, i64 0), i8* %10, i8* %42, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0), i64 %4, i8* %89, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %107
91: ; preds = %21
%92 = sext i16 %30 to i64
%93 = shl i64 %92, 2
%94 = call i8* @llvm.load.relative.i64(i8* bitcast ([6 x i32]* @reltable.msg_cb to i8*), i64 %93)
br label %95
95: ; preds = %91, %21, %54, %55, %56, %57, %58, %59, %60, %61, %62, %63, %64, %65, %66, %67, %68, %69, %70, %71, %72, %73, %74, %75, %76, %46, %32, %33, %34, %35, %36, %37, %38, %39, %17, %19
%96 = phi i8* [ %42, %54 ], [ %42, %55 ], [ %42, %56 ], [ %42, %57 ], [ %42, %58 ], [ %42, %59 ], [ %42, %60 ], [ %42, %61 ], [ %42, %62 ], [ %42, %63 ], [ %42, %64 ], [ %42, %65 ], [ %42, %66 ], [ %42, %67 ], [ %42, %68 ], [ %42, %69 ], [ %42, %70 ], [ %42, %71 ], [ %42, %72 ], [ %42, %73 ], [ %42, %74 ], [ %42, %75 ], [ %42, %76 ], [ %42, %46 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %32 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %33 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %34 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %35 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %36 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %37 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %38 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %39 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %17 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %19 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %21 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %91 ]
%97 = phi i8* [ %51, %54 ], [ %51, %55 ], [ %51, %56 ], [ %51, %57 ], [ %51, %58 ], [ %51, %59 ], [ %51, %60 ], [ %51, %61 ], [ %51, %62 ], [ %51, %63 ], [ %51, %64 ], [ %51, %65 ], [ %51, %66 ], [ %51, %67 ], [ %51, %68 ], [ %51, %69 ], [ %51, %70 ], [ %51, %71 ], [ %51, %72 ], [ %51, %73 ], [ %51, %74 ], [ %51, %75 ], [ %51, %76 ], [ %51, %46 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), %32 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0), %33 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), %34 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), %35 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0), %36 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0), %37 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.21, i64 0, i64 0), %38 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.22, i64 0, i64 0), %39 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), %17 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), %19 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), %21 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), %91 ]
%98 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.29, i64 0, i64 0), %54 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.30, i64 0, i64 0), %55 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.31, i64 0, i64 0), %56 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.32, i64 0, i64 0), %57 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.33, i64 0, i64 0), %58 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.34, i64 0, i64 0), %59 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.35, i64 0, i64 0), %60 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.36, i64 0, i64 0), %61 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.37, i64 0, i64 0), %62 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.38, i64 0, i64 0), %63 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.39, i64 0, i64 0), %64 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.40, i64 0, i64 0), %65 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.41, i64 0, i64 0), %66 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.42, i64 0, i64 0), %67 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.43, i64 0, i64 0), %68 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.44, i64 0, i64 0), %69 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.45, i64 0, i64 0), %70 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.46, i64 0, i64 0), %71 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.47, i64 0, i64 0), %72 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.48, i64 0, i64 0), %73 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.49, i64 0, i64 0), %74 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.50, i64 0, i64 0), %75 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.51, i64 0, i64 0), %76 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), %46 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %32 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %33 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %34 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %35 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %36 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %37 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %38 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %39 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %17 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), %19 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), %21 ], [ %94, %91 ]
%99 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %54 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %55 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %56 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %57 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %58 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %59 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %60 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %61 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %62 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %63 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %64 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %65 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %66 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %67 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %68 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %69 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %70 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %71 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %72 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %73 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %74 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %75 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %76 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %46 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %32 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %33 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %34 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %35 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %36 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %37 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %38 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %39 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %17 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %19 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %21 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %91 ]
%100 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.63, i64 0, i64 0), i8* %10, i8* %96, i8* %99, i64 %4, i8* %97, i8* %98)
br label %107
101: ; preds = %7, %43, %41, %44
%102 = phi i8* [ %42, %44 ], [ %42, %41 ], [ %42, %43 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), %7 ]
%103 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %44 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %41 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %43 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %7 ]
%104 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), %44 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %41 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.23, i64 0, i64 0), %43 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %7 ]
%105 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.63, i64 0, i64 0), i8* %10, i8* %102, i8* %104, i64 %4, i8* %103, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%106 = icmp eq i64 %4, 0
br i1 %106, label %126, label %107
107: ; preds = %101, %88, %95
%108 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.64, i64 0, i64 0))
br label %109
109: ; preds = %107, %117
%110 = phi i64 [ %122, %117 ], [ 0, %107 ]
%111 = and i64 %110, 15
%112 = icmp eq i64 %111, 0
%113 = icmp ne i64 %110, 0
%114 = and i1 %113, %112
br i1 %114, label %115, label %117
115: ; preds = %109
%116 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.65, i64 0, i64 0))
br label %117
117: ; preds = %115, %109
%118 = getelementptr inbounds i8, i8* %3, i64 %110
%119 = load i8, i8* %118
%120 = zext i8 %119 to i32
%121 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.66, i64 0, i64 0), i32 %120)
%122 = add nuw i64 %110, 1
%123 = icmp eq i64 %122, %4
br i1 %123, label %124, label %109
124: ; preds = %117
%125 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.68, i64 0, i64 0))
br label %126
126: ; preds = %15, %79, %124, %101
%127 = tail call i32 @BIO_flush(i32* %8)
ret void
}