#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 134
#define DTLS1_VERSION 133
#define SSL2_VERSION 132
#define SSL3_VERSION 131
#define TLS1_1_VERSION 130
#define TLS1_2_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;
  case TLS1_1_VERSION:
    str_version = "TLS 1.1 ";
    break;
  case TLS1_2_VERSION:
    str_version = "TLS 1.2 ";
    break;
  case DTLS1_VERSION:
    str_version = "DTLS 1.0 ";
    break;
  case DTLS1_BAD_VER:
    str_version = "DTLS 1.0 (bad) ";
    break;
  default:
    str_version = "???";
  }
  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 == TLS1_1_VERSION || version == TLS1_2_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;
        case 110:
          str_details2 = " unsupported_extension";
          break;
        case 111:
          str_details2 = " certificate_unobtainable";
          break;
        case 112:
          str_details2 = " unrecognized_name";
          break;
        case 113:
          str_details2 = " bad_certificate_status_response";
          break;
        case 114:
          str_details2 = " bad_certificate_hash_value";
          break;
        case 115:
          str_details2 = " unknown_psk_identity";
          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 3:
          str_details1 = ", HelloVerifyRequest";
          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 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    0x15b3(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    %rax,-0x50(%rbp)
mov    %rax,-0x58(%rbp)
mov    -0x4(%rbp),%eax
test   %eax,%eax
lea    0x1111(%rip),%rcx
lea    0x110e(%rip),%rax
cmovne %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x78(%rbp)
sub    $0x6,%eax
ja     1213 <msg_cb+0xf3>
mov    -0x78(%rbp),%rax
lea    0xe66(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x10da(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    121e <msg_cb+0xfe>
lea    0x10d2(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    121e <msg_cb+0xfe>
lea    0x10de(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    121e <msg_cb+0xfe>
lea    0x10bb(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    121e <msg_cb+0xfe>
lea    0x10b4(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    121e <msg_cb+0xfe>
lea    0x10ad(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    121e <msg_cb+0xfe>
lea    0x10a7(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    121e <msg_cb+0xfe>
lea    0x11c6(%rip),%rax
mov    %rax,-0x40(%rbp)
cmpl   $0x84,-0x8(%rbp)
jne    1394 <msg_cb+0x274>
lea    0x11ae(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x20(%rbp)
jbe    138f <msg_cb+0x26f>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %rax,-0x80(%rbp)
sub    $0x8,%rax
ja     138a <msg_cb+0x26a>
mov    -0x80(%rbp),%rax
lea    0xdbb(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1050(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0x1163(%rip),%rax
mov    %rax,-0x58(%rbp)
cmpq   $0x3,-0x20(%rbp)
jb     130a <msg_cb+0x1ea>
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     1305 <msg_cb+0x1e5>
mov    -0x88(%rbp),%rax
lea    0xd7f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xff9(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    1305 <msg_cb+0x1e5>
lea    0xffa(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    1305 <msg_cb+0x1e5>
lea    0x1000(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    1305 <msg_cb+0x1e5>
lea    0x1007(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    130a <msg_cb+0x1ea>
jmp    138a <msg_cb+0x26a>
lea    0x1016(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    138a <msg_cb+0x26a>
lea    0x1015(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    138a <msg_cb+0x26a>
lea    0x1019(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    138a <msg_cb+0x26a>
lea    0x101b(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    138a <msg_cb+0x26a>
lea    0x101a(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    138a <msg_cb+0x26a>
lea    0x101a(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    138a <msg_cb+0x26a>
lea    0x101c(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    138a <msg_cb+0x26a>
lea    0x1022(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    138f <msg_cb+0x26f>
jmp    1394 <msg_cb+0x274>
cmpl   $0x83,-0x8(%rbp)
je     13e2 <msg_cb+0x2c2>
cmpl   $0x80,-0x8(%rbp)
je     13e2 <msg_cb+0x2c2>
cmpl   $0x82,-0x8(%rbp)
je     13e2 <msg_cb+0x2c2>
cmpl   $0x81,-0x8(%rbp)
je     13e2 <msg_cb+0x2c2>
cmpl   $0x85,-0x8(%rbp)
je     13e2 <msg_cb+0x2c2>
cmpl   $0x86,-0x8(%rbp)
jne    17cf <msg_cb+0x6af>
mov    -0xc(%rbp),%eax
mov    %eax,-0x8c(%rbp)
sub    $0x14,%eax
je     1421 <msg_cb+0x301>
jmp    13f9 <msg_cb+0x2d9>
mov    -0x8c(%rbp),%eax
sub    $0x15,%eax
je     1431 <msg_cb+0x311>
jmp    140d <msg_cb+0x2ed>
mov    -0x8c(%rbp),%eax
sub    $0x16,%eax
je     1441 <msg_cb+0x321>
jmp    144c <msg_cb+0x32c>
lea    0xf95(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    144c <msg_cb+0x32c>
lea    0xf96(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    144c <msg_cb+0x32c>
lea    0xf8c(%rip),%rax
mov    %rax,-0x48(%rbp)
cmpl   $0x15,-0xc(%rbp)
jne    16c6 <msg_cb+0x5a6>
lea    0xf81(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x2,-0x20(%rbp)
jne    16c1 <msg_cb+0x5a1>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %eax,-0x90(%rbp)
sub    $0x1,%eax
je     149b <msg_cb+0x37b>
jmp    1487 <msg_cb+0x367>
mov    -0x90(%rbp),%eax
sub    $0x2,%eax
je     14ab <msg_cb+0x38b>
jmp    14b6 <msg_cb+0x396>
lea    0xf42(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    14b6 <msg_cb+0x396>
lea    0xf3c(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xf22(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%eax
mov    %rax,-0x98(%rbp)
sub    $0x73,%rax
ja     16bc <msg_cb+0x59c>
mov    -0x98(%rbp),%rax
lea    0xb70(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xefe(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xefc(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf00(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf00(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf03(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf04(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf0b(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf0e(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf0f(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf18(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf1d(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf22(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf27(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf2a(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf26(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf25(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf23(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf22(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf26(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf28(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf2f(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf2f(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf2e(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf30(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf37(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf41(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf44(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf55(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16bc <msg_cb+0x59c>
lea    0xf61(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16c1 <msg_cb+0x5a1>
jmp    16c6 <msg_cb+0x5a6>
cmpl   $0x16,-0xc(%rbp)
jne    17ca <msg_cb+0x6aa>
lea    0xd09(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x20(%rbp)
jbe    17c5 <msg_cb+0x6a5>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %rax,-0xa0(%rbp)
sub    $0x14,%rax
ja     17c0 <msg_cb+0x6a0>
mov    -0xa0(%rbp),%rax
lea    0xb1c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf13(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17c0 <msg_cb+0x6a0>
lea    0xf12(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17c0 <msg_cb+0x6a0>
lea    0xf10(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17c0 <msg_cb+0x6a0>
lea    0xf0e(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17c0 <msg_cb+0x6a0>
lea    0xf13(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17c0 <msg_cb+0x6a0>
lea    0xf11(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17c0 <msg_cb+0x6a0>
lea    0xf15(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17c0 <msg_cb+0x6a0>
lea    0xf1a(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17c0 <msg_cb+0x6a0>
lea    0xf1c(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17c0 <msg_cb+0x6a0>
lea    0xf20(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17c0 <msg_cb+0x6a0>
lea    0xf24(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17c5 <msg_cb+0x6a5>
jmp    17ca <msg_cb+0x6aa>
jmp    17cf <msg_cb+0x6af>
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    0xef9(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <BIO_printf@plt>
cmpq   $0x0,-0x20(%rbp)
jbe    18cd <msg_cb+0x7ad>
mov    -0x30(%rbp),%rdi
lea    0xef0(%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    189b <msg_cb+0x77b>
mov    -0x70(%rbp),%rax
and    $0xf,%rax
cmp    $0x0,%rax
jne    186c <msg_cb+0x74c>
cmpq   $0x0,-0x70(%rbp)
jbe    186c <msg_cb+0x74c>
mov    -0x30(%rbp),%rdi
lea    0xea2(%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    0xe89(%rip),%rsi
mov    $0x0,%al
call   1030 <BIO_printf@plt>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    182f <msg_cb+0x70f>
mov    -0x70(%rbp),%rax
cmp    -0x20(%rbp),%rax
jae    18bb <msg_cb+0x79b>
mov    -0x30(%rbp),%rdi
lea    0xe5e(%rip),%rsi
mov    $0x0,%al
call   1030 <BIO_printf@plt>
mov    -0x30(%rbp),%rdi
lea    0xe3f(%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    0x1144(%rip),%rcx
lea    0x1139(%rip),%rdx
cmove  %rcx,%rdx
mov    0x40(%rsp),%r12
lea    0x15b3(%rip),%rbp
add    $0xffffff80,%esi
cmp    $0x6,%esi
ja     1187 <msg_cb+0x67>
lea    0x112a(%rip),%rcx
lea    0xe97(%rip),%rdi
movslq (%rdi,%rsi,4),%rsi
add    %rdi,%rsi
jmp    *%rsi
lea    0x112f(%rip),%rcx
cmp    $0x16,%eax
jne    1247 <msg_cb+0x127>
jmp    12e2 <msg_cb+0x1c2>
lea    0x1252(%rip),%rcx
jmp    1260 <msg_cb+0x140>
lea    0x1104(%rip),%rcx
cmp    $0x16,%eax
jne    1247 <msg_cb+0x127>
jmp    12e2 <msg_cb+0x1c2>
lea    0x10e6(%rip),%rcx
cmp    $0x16,%eax
jne    1247 <msg_cb+0x127>
jmp    12e2 <msg_cb+0x1c2>
test   %r14,%r14
je     138a <msg_cb+0x26a>
movzbl (%r15),%eax
lea    0x1535(%rip),%r8
lea    0x10ac(%rip),%rcx
cmp    $0x8,%rax
ja     140a <msg_cb+0x2ea>
lea    0x1003(%rip),%rsi
movslq (%rsi,%rax,4),%rax
add    %rsi,%rax
jmp    *%rax
lea    0x11e6(%rip),%rbx
lea    0x10c1(%rip),%r10
cmp    $0x3,%r14
jb     1567 <msg_cb+0x447>
movzwl 0x1(%r15),%eax
rol    $0x8,%ax
add    $0xffffffff,%eax
cmp    $0x6,%ax
jae    1567 <msg_cb+0x447>
movswq %ax,%rax
lea    0xfe5(%rip),%rsi
movslq (%rsi,%rax,4),%rbx
add    %rsi,%rbx
jmp    1567 <msg_cb+0x447>
lea    0x1069(%rip),%rcx
cmp    $0x16,%eax
je     12e2 <msg_cb+0x1c2>
cmp    $0x15,%eax
je     126b <msg_cb+0x14b>
cmp    $0x14,%eax
jne    1260 <msg_cb+0x140>
lea    0x1165(%rip),%r8
mov    %rbp,%rbx
jmp    130f <msg_cb+0x1ef>
mov    %rbp,%rbx
mov    %rbp,%r8
jmp    130f <msg_cb+0x1ef>
cmp    $0x2,%r14
jne    1301 <msg_cb+0x1e1>
mov    (%r15),%al
cmp    $0x2,%al
lea    0x116d(%rip),%rsi
lea    0x1156(%rip),%rdi
cmove  %rsi,%rdi
cmp    $0x1,%al
lea    0x114f(%rip),%r10
cmovne %rdi,%r10
movzbl 0x1(%r15),%eax
lea    0x1129(%rip),%r8
lea    0x1133(%rip),%rbx
cmp    $0x73,%rax
ja     1567 <msg_cb+0x447>
lea    0xd5f(%rip),%rsi
movslq (%rsi,%rax,4),%rax
add    %rsi,%rax
jmp    *%rax
lea    0x1129(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0xfd8(%rip),%rcx
cmp    $0x16,%eax
jne    1247 <msg_cb+0x127>
test   %r14,%r14
je     1337 <msg_cb+0x217>
movsbq (%r15),%rax
cmp    $0x14,%rax
ja     135f <msg_cb+0x23f>
lea    0xf30(%rip),%rsi
movslq (%rsi,%rax,4),%rbp
add    %rsi,%rbp
jmp    1366 <msg_cb+0x246>
lea    0x10c6(%rip),%r8
lea    0x10cf(%rip),%rbx
lea    0x13d5(%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    1582 <msg_cb+0x462>
jmp    15fa <msg_cb+0x4da>
lea    0x13c8(%rip),%rbp
lea    0x109b(%rip),%rbx
lea    0x139f(%rip),%rsi
lea    0x1081(%rip),%r8
mov    %r12,%rdi
xor    %r9d,%r9d
xor    %eax,%eax
push   %rbp
push   %rbx
jmp    13b1 <msg_cb+0x291>
lea    0x107a(%rip),%rbp
lea    0x1399(%rip),%rbx
lea    0x1377(%rip),%rsi
lea    0x1059(%rip),%r8
mov    %r12,%rdi
mov    %r14,%r9
xor    %eax,%eax
push   %rbx
push   %rbp
jmp    1579 <msg_cb+0x459>
lea    0x1375(%rip),%r8
lea    0x1048(%rip),%rbp
lea    0x134c(%rip),%rsi
lea    0xede(%rip),%rcx
mov    %r12,%rdi
xor    %r9d,%r9d
xor    %eax,%eax
push   %r8
push   %rbp
call   1030 <BIO_printf@plt>
add    $0x10,%rsp
jmp    15fa <msg_cb+0x4da>
lea    0xf66(%rip),%r10
mov    %r8,%rbx
jmp    1567 <msg_cb+0x447>
lea    0xf66(%rip),%r10
mov    %r8,%rbx
jmp    1567 <msg_cb+0x447>
lea    0xf6b(%rip),%r10
mov    %r8,%rbx
jmp    1567 <msg_cb+0x447>
lea    0xf6e(%rip),%r10
mov    %r8,%rbx
jmp    1567 <msg_cb+0x447>
lea    0xf90(%rip),%r10
mov    %r8,%rbx
jmp    1567 <msg_cb+0x447>
lea    0xfcf(%rip),%r10
mov    %r8,%rbx
jmp    1567 <msg_cb+0x447>
lea    0xf50(%rip),%r10
mov    %r8,%rbx
jmp    1567 <msg_cb+0x447>
lea    0xf51(%rip),%r10
mov    %r8,%rbx
jmp    1567 <msg_cb+0x447>
lea    0xf6a(%rip),%r10
mov    %r8,%rbx
jmp    1567 <msg_cb+0x447>
lea    0xfb7(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0xfbf(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0xfc3(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0xfca(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0xfcf(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0xfda(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0xfe1(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0xfe6(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0xff3(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0xffc(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x1005(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x100e(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x1015(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x1015(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x101b(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x1020(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x1026(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x1031(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x103a(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x1048(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x104f(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x1055(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x105e(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x106c(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x107d(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x1087(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x109f(%rip),%rbx
jmp    1567 <msg_cb+0x447>
lea    0x10b2(%rip),%rbx
lea    0x117d(%rip),%rsi
mov    %r12,%rdi
mov    %r14,%r9
xor    %eax,%eax
push   %rbx
push   %r10
call   1030 <BIO_printf@plt>
add    $0x10,%rsp
lea    0x117f(%rip),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <BIO_printf@plt>
lea    0x116d(%rip),%r13
lea    0x116b(%rip),%rbx
xor    %ebp,%ebp
jmp    15cb <msg_cb+0x4ab>
cs nopw 0x0(%rax,%rax,1)
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     15e9 <msg_cb+0x4c9>
test   %rbp,%rbp
je     15b0 <msg_cb+0x490>
mov    %ebp,%eax
and    $0xf,%eax
test   %rax,%rax
jne    15b0 <msg_cb+0x490>
mov    %r12,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <BIO_printf@plt>
jmp    15b0 <msg_cb+0x490>
lea    0x1115(%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 = [9 x i8] c"TLS 1.1 \00"
@.str.7 = [9 x i8] c"TLS 1.2 \00"
@.str.8 = [10 x i8] c"DTLS 1.0 \00"
@.str.9 = [16 x i8] c"DTLS 1.0 (bad) \00"
@.str.10 = [4 x i8] c"???\00"
@.str.11 = [9 x i8] c", ERROR:\00"
@.str.12 = [5 x i8] c" ???\00"
@.str.13 = [17 x i8] c" NO-CIPHER-ERROR\00"
@.str.14 = [22 x i8] c" NO-CERTIFICATE-ERROR\00"
@.str.15 = [23 x i8] c" BAD-CERTIFICATE-ERROR\00"
@.str.16 = [36 x i8] c" UNSUPPORTED-CERTIFICATE-TYPE-ERROR\00"
@.str.17 = [15 x i8] c", CLIENT-HELLO\00"
@.str.18 = [20 x i8] c", CLIENT-MASTER-KEY\00"
@.str.19 = [18 x i8] c", CLIENT-FINISHED\00"
@.str.20 = [15 x i8] c", SERVER-HELLO\00"
@.str.21 = [16 x i8] c", SERVER-VERIFY\00"
@.str.22 = [18 x i8] c", SERVER-FINISHED\00"
@.str.23 = [22 x i8] c", REQUEST-CERTIFICATE\00"
@.str.24 = [21 x i8] c", CLIENT-CERTIFICATE\00"
@.str.25 = [17 x i8] c"ChangeCipherSpec\00"
@.str.26 = [6 x i8] c"Alert\00"
@.str.27 = [10 x i8] c"Handshake\00"
@.str.28 = [6 x i8] c", ???\00"
@.str.29 = [10 x i8] c", warning\00"
@.str.30 = [8 x i8] c", fatal\00"
@.str.31 = [14 x i8] c" close_notify\00"
@.str.32 = [20 x i8] c" unexpected_message\00"
@.str.33 = [16 x i8] c" bad_record_mac\00"
@.str.34 = [19 x i8] c" decryption_failed\00"
@.str.35 = [17 x i8] c" record_overflow\00"
@.str.36 = [23 x i8] c" decompression_failure\00"
@.str.37 = [19 x i8] c" handshake_failure\00"
@.str.38 = [17 x i8] c" bad_certificate\00"
@.str.39 = [25 x i8] c" unsupported_certificate\00"
@.str.40 = [21 x i8] c" certificate_revoked\00"
@.str.41 = [21 x i8] c" certificate_expired\00"
@.str.42 = [21 x i8] c" certificate_unknown\00"
@.str.43 = [19 x i8] c" illegal_parameter\00"
@.str.44 = [12 x i8] c" unknown_ca\00"
@.str.45 = [15 x i8] c" access_denied\00"
@.str.46 = [14 x i8] c" decode_error\00"
@.str.47 = [15 x i8] c" decrypt_error\00"
@.str.48 = [20 x i8] c" export_restriction\00"
@.str.49 = [18 x i8] c" protocol_version\00"
@.str.50 = [23 x i8] c" insufficient_security\00"
@.str.51 = [16 x i8] c" internal_error\00"
@.str.52 = [15 x i8] c" user_canceled\00"
@.str.53 = [18 x i8] c" no_renegotiation\00"
@.str.54 = [23 x i8] c" unsupported_extension\00"
@.str.55 = [26 x i8] c" certificate_unobtainable\00"
@.str.56 = [19 x i8] c" unrecognized_name\00"
@.str.57 = [33 x i8] c" bad_certificate_status_response\00"
@.str.58 = [28 x i8] c" bad_certificate_hash_value\00"
@.str.59 = [22 x i8] c" unknown_psk_identity\00"
@.str.60 = [15 x i8] c", HelloRequest\00"
@.str.61 = [14 x i8] c", ClientHello\00"
@.str.62 = [14 x i8] c", ServerHello\00"
@.str.63 = [21 x i8] c", HelloVerifyRequest\00"
@.str.64 = [14 x i8] c", Certificate\00"
@.str.65 = [20 x i8] c", ServerKeyExchange\00"
@.str.66 = [21 x i8] c", CertificateRequest\00"
@.str.67 = [18 x i8] c", ServerHelloDone\00"
@.str.68 = [20 x i8] c", CertificateVerify\00"
@.str.69 = [20 x i8] c", ClientKeyExchange\00"
@.str.70 = [11 x i8] c", Finished\00"
@.str.71 = [28 x i8] c"%s %s%s [length %04lx]%s%s\0A\00"
@.str.72 = [4 x i8] c" \00"
@.str.73 = [5 x i8] c"\0A \00"
@.str.74 = [6 x i8] c" %02x\00"
@.str.75 = [5 x i8] c" ...\00"
@.str.76 = [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 %38 [
i32 132, label %31
i32 131, label %32
i32 128, label %33
i32 130, label %34
i32 129, label %35
i32 133, label %36
i32 134, label %37
]
31: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %17
br label %39
32: ; preds = %7
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8** %17
br label %39
33: ; preds = %7
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8** %17
br label %39
34: ; preds = %7
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8** %17
br label %39
35: ; preds = %7
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8** %17
br label %39
36: ; preds = %7
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8** %17
br label %39
37: ; preds = %7
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i8** %17
br label %39
38: ; preds = %7
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8** %17
br label %39
39: ; preds = %38, %37, %36, %35, %34, %33, %32, %31
%40 = load i32, i32* %9
%41 = icmp eq i32 %40, 132
br i1 %41, label %42, label %81
42: ; preds = %39
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8** %19
%43 = load i64, i64* %12
%44 = icmp ugt i64 %43, 0
br i1 %44, label %45, label %80
45: ; preds = %42
%46 = load i8*, i8** %11
%47 = getelementptr inbounds i8, i8* %46, i64 0
%48 = load i8, i8* %47
%49 = zext i8 %48 to i32
switch i32 %49, label %79 [
i32 0, label %50
i32 1, label %71
i32 2, label %72
i32 3, label %73
i32 4, label %74
i32 5, label %75
i32 6, label %76
i32 7, label %77
i32 8, label %78
]
50: ; preds = %45
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8** %19
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8** %20
%51 = load i64, i64* %12
%52 = icmp uge i64 %51, 3
br i1 %52, label %53, label %70
53: ; preds = %50
%54 = load i8*, i8** %11
%55 = getelementptr inbounds i8, i8* %54, i64 1
%56 = load i8, i8* %55
%57 = zext i8 %56 to i32
%58 = shl i32 %57, 8
%59 = load i8*, i8** %11
%60 = getelementptr inbounds i8, i8* %59, i64 2
%61 = load i8, i8* %60
%62 = zext i8 %61 to i32
%63 = add nsw i32 %58, %62
store i32 %63, i32* %21
%64 = load i32, i32* %21
switch i32 %64, label %69 [
i32 1, label %65
i32 2, label %66
i32 4, label %67
i32 6, label %68
]
65: ; preds = %53
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i8** %20
br label %69
66: ; preds = %53
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i8** %20
br label %69
67: ; preds = %53
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), i8** %20
br label %69
68: ; preds = %53
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.16, i64 0, i64 0), i8** %20
br label %69
69: ; preds = %53, %68, %67, %66, %65
br label %70
70: ; preds = %69, %50
br label %79
71: ; preds = %45
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0), i8** %19
br label %79
72: ; preds = %45
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0), i8** %19
br label %79
73: ; preds = %45
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0), i8** %19
br label %79
74: ; preds = %45
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i8** %19
br label %79
75: ; preds = %45
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0), i8** %19
br label %79
76: ; preds = %45
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0), i8** %19
br label %79
77: ; preds = %45
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.23, i64 0, i64 0), i8** %19
br label %79
78: ; preds = %45
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.24, i64 0, i64 0), i8** %19
br label %79
79: ; preds = %45, %78, %77, %76, %75, %74, %73, %72, %71, %70
br label %80
80: ; preds = %79, %42
br label %81
81: ; preds = %80, %39
%82 = load i32, i32* %9
%83 = icmp eq i32 %82, 131
br i1 %83, label %99, label %84
84: ; preds = %81
%85 = load i32, i32* %9
%86 = icmp eq i32 %85, 128
br i1 %86, label %99, label %87
87: ; preds = %84
%88 = load i32, i32* %9
%89 = icmp eq i32 %88, 130
br i1 %89, label %99, label %90
90: ; preds = %87
%91 = load i32, i32* %9
%92 = icmp eq i32 %91, 129
br i1 %92, label %99, label %93
93: ; preds = %90
%94 = load i32, i32* %9
%95 = icmp eq i32 %94, 133
br i1 %95, label %99, label %96
96: ; preds = %93
%97 = load i32, i32* %9
%98 = icmp eq i32 %97, 134
br i1 %98, label %99, label %178
99: ; preds = %96, %93, %90, %87, %84, %81
%100 = load i32, i32* %10
switch i32 %100, label %104 [
i32 20, label %101
i32 21, label %102
i32 22, label %103
]
101: ; preds = %99
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.25, i64 0, i64 0), i8** %18
br label %104
102: ; preds = %99
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), i8** %18
br label %104
103: ; preds = %99
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.27, i64 0, i64 0), i8** %18
br label %104
104: ; preds = %99, %103, %102, %101
%105 = load i32, i32* %10
%106 = icmp eq i32 %105, 21
br i1 %106, label %107, label %153
107: ; preds = %104
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.28, i64 0, i64 0), i8** %19
%108 = load i64, i64* %12
%109 = icmp eq i64 %108, 2
br i1 %109, label %110, label %152
110: ; preds = %107
%111 = load i8*, i8** %11
%112 = getelementptr inbounds i8, i8* %111, i64 0
%113 = load i8, i8* %112
%114 = zext i8 %113 to i32
switch i32 %114, label %117 [
i32 1, label %115
i32 2, label %116
]
115: ; preds = %110
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.29, i64 0, i64 0), i8** %19
br label %117
116: ; preds = %110
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0), i8** %19
br label %117
117: ; preds = %110, %116, %115
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8** %20
%118 = load i8*, i8** %11
%119 = getelementptr inbounds i8, i8* %118, i64 1
%120 = load i8, i8* %119
%121 = zext i8 %120 to i32
switch i32 %121, label %151 [
i32 0, label %122
i32 10, label %123
i32 20, label %124
i32 21, label %125
i32 22, label %126
i32 30, label %127
i32 40, label %128
i32 42, label %129
i32 43, label %130
i32 44, label %131
i32 45, label %132
i32 46, label %133
i32 47, label %134
i32 48, label %135
i32 49, label %136
i32 50, label %137
i32 51, label %138
i32 60, label %139
i32 70, label %140
i32 71, label %141
i32 80, label %142
i32 90, label %143
i32 100, label %144
i32 110, label %145
i32 111, label %146
i32 112, label %147
i32 113, label %148
i32 114, label %149
i32 115, label %150
]
122: ; preds = %117
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.31, i64 0, i64 0), i8** %20
br label %151
123: ; preds = %117
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8** %20
br label %151
124: ; preds = %117
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.33, i64 0, i64 0), i8** %20
br label %151
125: ; preds = %117
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.34, i64 0, i64 0), i8** %20
br label %151
126: ; preds = %117
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.35, i64 0, i64 0), i8** %20
br label %151
127: ; preds = %117
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.36, i64 0, i64 0), i8** %20
br label %151
128: ; preds = %117
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.37, i64 0, i64 0), i8** %20
br label %151
129: ; preds = %117
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.38, i64 0, i64 0), i8** %20
br label %151
130: ; preds = %117
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.39, i64 0, i64 0), i8** %20
br label %151
131: ; preds = %117
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.40, i64 0, i64 0), i8** %20
br label %151
132: ; preds = %117
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.41, i64 0, i64 0), i8** %20
br label %151
133: ; preds = %117
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.42, i64 0, i64 0), i8** %20
br label %151
134: ; preds = %117
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.43, i64 0, i64 0), i8** %20
br label %151
135: ; preds = %117
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.44, i64 0, i64 0), i8** %20
br label %151
136: ; preds = %117
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.45, i64 0, i64 0), i8** %20
br label %151
137: ; preds = %117
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.46, i64 0, i64 0), i8** %20
br label %151
138: ; preds = %117
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.47, i64 0, i64 0), i8** %20
br label %151
139: ; preds = %117
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.48, i64 0, i64 0), i8** %20
br label %151
140: ; preds = %117
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.49, i64 0, i64 0), i8** %20
br label %151
141: ; preds = %117
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.50, i64 0, i64 0), i8** %20
br label %151
142: ; preds = %117
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.51, i64 0, i64 0), i8** %20
br label %151
143: ; preds = %117
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.52, i64 0, i64 0), i8** %20
br label %151
144: ; preds = %117
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.53, i64 0, i64 0), i8** %20
br label %151
145: ; preds = %117
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.54, i64 0, i64 0), i8** %20
br label %151
146: ; preds = %117
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.55, i64 0, i64 0), i8** %20
br label %151
147: ; preds = %117
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.56, i64 0, i64 0), i8** %20
br label %151
148: ; preds = %117
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.57, i64 0, i64 0), i8** %20
br label %151
149: ; preds = %117
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.58, i64 0, i64 0), i8** %20
br label %151
150: ; preds = %117
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.59, i64 0, i64 0), i8** %20
br label %151
151: ; preds = %117, %150, %149, %148, %147, %146, %145, %144, %143, %142, %141, %140, %139, %138, %137, %136, %135, %134, %133, %132, %131, %130, %129, %128, %127, %126, %125, %124, %123, %122
br label %152
152: ; preds = %151, %107
br label %153
153: ; preds = %152, %104
%154 = load i32, i32* %10
%155 = icmp eq i32 %154, 22
br i1 %155, label %156, label %177
156: ; preds = %153
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8** %19
%157 = load i64, i64* %12
%158 = icmp ugt i64 %157, 0
br i1 %158, label %159, label %176
159: ; preds = %156
%160 = load i8*, i8** %11
%161 = getelementptr inbounds i8, i8* %160, i64 0
%162 = load i8, i8* %161
%163 = zext i8 %162 to i32
switch i32 %163, label %175 [
i32 0, label %164
i32 1, label %165
i32 2, label %166
i32 3, label %167
i32 11, label %168
i32 12, label %169
i32 13, label %170
i32 14, label %171
i32 15, label %172
i32 16, label %173
i32 20, label %174
]
164: ; preds = %159
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.60, i64 0, i64 0), i8** %19
br label %175
165: ; preds = %159
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.61, i64 0, i64 0), i8** %19
br label %175
166: ; preds = %159
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.62, i64 0, i64 0), i8** %19
br label %175
167: ; preds = %159
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.63, i64 0, i64 0), i8** %19
br label %175
168: ; preds = %159
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.64, i64 0, i64 0), i8** %19
br label %175
169: ; preds = %159
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.65, i64 0, i64 0), i8** %19
br label %175
170: ; preds = %159
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.66, i64 0, i64 0), i8** %19
br label %175
171: ; preds = %159
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.67, i64 0, i64 0), i8** %19
br label %175
172: ; preds = %159
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.68, i64 0, i64 0), i8** %19
br label %175
173: ; preds = %159
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.69, i64 0, i64 0), i8** %19
br label %175
174: ; preds = %159
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.70, i64 0, i64 0), i8** %19
br label %175
175: ; preds = %159, %174, %173, %172, %171, %170, %169, %168, %167, %166, %165, %164
br label %176
176: ; preds = %175, %156
br label %177
177: ; preds = %176, %153
br label %178
178: ; preds = %177, %96
%179 = load i32*, i32** %15
%180 = load i8*, i8** %16
%181 = load i8*, i8** %17
%182 = load i8*, i8** %18
%183 = load i64, i64* %12
%184 = load i8*, i8** %19
%185 = load i8*, i8** %20
%186 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %179, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.71, i64 0, i64 0), i8* %180, i8* %181, i8* %182, i64 %183, i8* %184, i8* %185)
%187 = load i64, i64* %12
%188 = icmp ugt i64 %187, 0
br i1 %188, label %189, label %228
189: ; preds = %178
%190 = load i32*, i32** %15
%191 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %190, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.72, i64 0, i64 0))
%192 = load i64, i64* %12
store i64 %192, i64* %22
store i64 0, i64* %23
br label %193
193: ; preds = %215, %189
%194 = load i64, i64* %23
%195 = load i64, i64* %22
%196 = icmp ult i64 %194, %195
br i1 %196, label %197, label %218
197: ; preds = %193
%198 = load i64, i64* %23
%199 = urem i64 %198, 16
%200 = icmp eq i64 %199, 0
br i1 %200, label %201, label %207
201: ; preds = %197
%202 = load i64, i64* %23
%203 = icmp ugt i64 %202, 0
br i1 %203, label %204, label %207
204: ; preds = %201
%205 = load i32*, i32** %15
%206 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %205, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.73, i64 0, i64 0))
br label %207
207: ; preds = %204, %201, %197
%208 = load i32*, i32** %15
%209 = load i8*, i8** %11
%210 = load i64, i64* %23
%211 = getelementptr inbounds i8, i8* %209, i64 %210
%212 = load i8, i8* %211
%213 = zext i8 %212 to i32
%214 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %208, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.74, i64 0, i64 0), i32 %213)
br label %215
215: ; preds = %207
%216 = load i64, i64* %23
%217 = add i64 %216, 1
store i64 %217, i64* %23
br label %193
218: ; preds = %193
%219 = load i64, i64* %23
%220 = load i64, i64* %12
%221 = icmp ult i64 %219, %220
br i1 %221, label %222, label %225
222: ; preds = %218
%223 = load i32*, i32** %15
%224 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %223, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.75, i64 0, i64 0))
br label %225
225: ; preds = %222, %218
%226 = load i32*, i32** %15
%227 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %226, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.76, i64 0, i64 0))
br label %228
228: ; preds = %225, %178
%229 = load i32*, i32** %15
%230 = call i32 @BIO_flush(i32* %229)
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 = [9 x i8] c"TLS 1.1 \00"
@.str.7 = [9 x i8] c"TLS 1.2 \00"
@.str.8 = [10 x i8] c"DTLS 1.0 \00"
@.str.9 = [16 x i8] c"DTLS 1.0 (bad) \00"
@.str.10 = [4 x i8] c"???\00"
@.str.11 = [9 x i8] c", ERROR:\00"
@.str.12 = [5 x i8] c" ???\00"
@.str.13 = [17 x i8] c" NO-CIPHER-ERROR\00"
@.str.14 = [22 x i8] c" NO-CERTIFICATE-ERROR\00"
@.str.15 = [23 x i8] c" BAD-CERTIFICATE-ERROR\00"
@.str.16 = [36 x i8] c" UNSUPPORTED-CERTIFICATE-TYPE-ERROR\00"
@.str.17 = [15 x i8] c", CLIENT-HELLO\00"
@.str.18 = [20 x i8] c", CLIENT-MASTER-KEY\00"
@.str.19 = [18 x i8] c", CLIENT-FINISHED\00"
@.str.20 = [15 x i8] c", SERVER-HELLO\00"
@.str.21 = [16 x i8] c", SERVER-VERIFY\00"
@.str.22 = [18 x i8] c", SERVER-FINISHED\00"
@.str.23 = [22 x i8] c", REQUEST-CERTIFICATE\00"
@.str.24 = [21 x i8] c", CLIENT-CERTIFICATE\00"
@.str.25 = [17 x i8] c"ChangeCipherSpec\00"
@.str.26 = [6 x i8] c"Alert\00"
@.str.27 = [10 x i8] c"Handshake\00"
@.str.28 = [6 x i8] c", ???\00"
@.str.29 = [10 x i8] c", warning\00"
@.str.30 = [8 x i8] c", fatal\00"
@.str.31 = [14 x i8] c" close_notify\00"
@.str.32 = [20 x i8] c" unexpected_message\00"
@.str.33 = [16 x i8] c" bad_record_mac\00"
@.str.34 = [19 x i8] c" decryption_failed\00"
@.str.35 = [17 x i8] c" record_overflow\00"
@.str.36 = [23 x i8] c" decompression_failure\00"
@.str.37 = [19 x i8] c" handshake_failure\00"
@.str.38 = [17 x i8] c" bad_certificate\00"
@.str.39 = [25 x i8] c" unsupported_certificate\00"
@.str.40 = [21 x i8] c" certificate_revoked\00"
@.str.41 = [21 x i8] c" certificate_expired\00"
@.str.42 = [21 x i8] c" certificate_unknown\00"
@.str.43 = [19 x i8] c" illegal_parameter\00"
@.str.44 = [12 x i8] c" unknown_ca\00"
@.str.45 = [15 x i8] c" access_denied\00"
@.str.46 = [14 x i8] c" decode_error\00"
@.str.47 = [15 x i8] c" decrypt_error\00"
@.str.48 = [20 x i8] c" export_restriction\00"
@.str.49 = [18 x i8] c" protocol_version\00"
@.str.50 = [23 x i8] c" insufficient_security\00"
@.str.51 = [16 x i8] c" internal_error\00"
@.str.52 = [15 x i8] c" user_canceled\00"
@.str.53 = [18 x i8] c" no_renegotiation\00"
@.str.54 = [23 x i8] c" unsupported_extension\00"
@.str.55 = [26 x i8] c" certificate_unobtainable\00"
@.str.56 = [19 x i8] c" unrecognized_name\00"
@.str.57 = [33 x i8] c" bad_certificate_status_response\00"
@.str.58 = [28 x i8] c" bad_certificate_hash_value\00"
@.str.59 = [22 x i8] c" unknown_psk_identity\00"
@.str.60 = [15 x i8] c", HelloRequest\00"
@.str.61 = [14 x i8] c", ClientHello\00"
@.str.62 = [14 x i8] c", ServerHello\00"
@.str.63 = [21 x i8] c", HelloVerifyRequest\00"
@.str.64 = [14 x i8] c", Certificate\00"
@.str.65 = [20 x i8] c", ServerKeyExchange\00"
@.str.66 = [21 x i8] c", CertificateRequest\00"
@.str.67 = [18 x i8] c", ServerHelloDone\00"
@.str.68 = [20 x i8] c", CertificateVerify\00"
@.str.69 = [20 x i8] c", ClientKeyExchange\00"
@.str.70 = [11 x i8] c", Finished\00"
@.str.71 = [28 x i8] c"%s %s%s [length %04lx]%s%s\0A\00"
@.str.72 = [4 x i8] c" \00"
@.str.73 = [5 x i8] c"\0A \00"
@.str.74 = [6 x i8] c" %02x\00"
@.str.76 = [2 x i8] c"\0A\00"
@reltable.msg_cb = [6 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.13 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.14 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.12 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @.str.15 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.12 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([36 x i8]* @.str.16 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32)]
@reltable.msg_cb.78 = [21 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.60 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.61 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.62 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.63 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.10 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.10 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.10 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.10 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.10 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.10 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.10 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.64 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.65 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.66 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.67 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.68 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.69 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.10 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.10 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.10 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.70 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.78 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 %109 [
i32 132, label %16
i32 131, label %43
i32 128, label %11
i32 130, label %12
i32 129, label %13
i32 133, label %14
i32 134, label %15
]
11: ; preds = %7
br label %43
12: ; preds = %7
br label %43
13: ; preds = %7
br label %43
14: ; preds = %7
br label %43
15: ; preds = %7
br label %43
16: ; preds = %7
%17 = icmp eq i64 %4, 0
br i1 %17, label %18, label %20
18: ; preds = %16
%19 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.71, 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.10, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %134
20: ; preds = %16
%21 = load i8, i8* %3
switch i8 %21, label %103 [
i8 0, label %22
i8 1, label %35
i8 2, label %36
i8 3, label %37
i8 4, label %38
i8 5, label %39
i8 6, label %40
i8 7, label %41
i8 8, label %42
]
22: ; preds = %20
%23 = icmp ugt i64 %4, 2
br i1 %23, label %24, label %103
24: ; preds = %22
%25 = getelementptr inbounds i8, i8* %3, i64 1
%26 = load i8, i8* %25
%27 = zext i8 %26 to i16
%28 = shl nuw i16 %27, 8
%29 = getelementptr inbounds i8, i8* %3, i64 2
%30 = load i8, i8* %29
%31 = zext i8 %30 to i16
%32 = or i16 %28, %31
%33 = add i16 %32, -1
%34 = icmp ult i16 %33, 6
br i1 %34, label %99, label %103
35: ; preds = %20
br label %103
36: ; preds = %20
br label %103
37: ; preds = %20
br label %103
38: ; preds = %20
br label %103
39: ; preds = %20
br label %103
40: ; preds = %20
br label %103
41: ; preds = %20
br label %103
42: ; preds = %20
br label %103
43: ; preds = %7, %11, %12, %13, %14, %15
%44 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), %15 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), %14 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), %13 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, 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 ]
switch i32 %2, label %109 [
i32 20, label %45
i32 21, label %46
i32 22, label %85
]
45: ; preds = %43
br label %109
46: ; preds = %43
%47 = icmp eq i64 %4, 2
br i1 %47, label %48, label %109
48: ; preds = %46
%49 = load i8, i8* %3
%50 = icmp eq i8 %49, 2
%51 = select i1 %50, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.28, i64 0, i64 0)
%52 = icmp eq i8 %49, 1
%53 = select i1 %52, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.29, i64 0, i64 0), i8* %51
%54 = getelementptr inbounds i8, i8* %3, i64 1
%55 = load i8, i8* %54
switch i8 %55, label %103 [
i8 0, label %56
i8 10, label %57
i8 20, label %58
i8 21, label %59
i8 22, label %60
i8 30, label %61
i8 40, label %62
i8 42, label %63
i8 43, label %64
i8 44, label %65
i8 45, label %66
i8 46, label %67
i8 47, label %68
i8 48, label %69
i8 49, label %70
i8 50, label %71
i8 51, label %72
i8 60, label %73
i8 70, label %74
i8 71, label %75
i8 80, label %76
i8 90, label %77
i8 100, label %78
i8 110, label %79
i8 111, label %80
i8 112, label %81
i8 113, label %82
i8 114, label %83
i8 115, label %84
]
56: ; preds = %48
br label %103
57: ; preds = %48
br label %103
58: ; preds = %48
br label %103
59: ; preds = %48
br label %103
60: ; preds = %48
br label %103
61: ; preds = %48
br label %103
62: ; preds = %48
br label %103
63: ; preds = %48
br label %103
64: ; preds = %48
br label %103
65: ; preds = %48
br label %103
66: ; preds = %48
br label %103
67: ; preds = %48
br label %103
68: ; preds = %48
br label %103
69: ; preds = %48
br label %103
70: ; preds = %48
br label %103
71: ; preds = %48
br label %103
72: ; preds = %48
br label %103
73: ; preds = %48
br label %103
74: ; preds = %48
br label %103
75: ; preds = %48
br label %103
76: ; preds = %48
br label %103
77: ; preds = %48
br label %103
78: ; preds = %48
br label %103
79: ; preds = %48
br label %103
80: ; preds = %48
br label %103
81: ; preds = %48
br label %103
82: ; preds = %48
br label %103
83: ; preds = %48
br label %103
84: ; preds = %48
br label %103
85: ; preds = %43
%86 = icmp eq i64 %4, 0
br i1 %86, label %87, label %89
87: ; preds = %85
%88 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.71, i64 0, i64 0), i8* %10, i8* %44, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.27, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %134
89: ; preds = %85
%90 = load i8, i8* %3
%91 = icmp ult i8 %90, 21
br i1 %91, label %92, label %96
92: ; preds = %89
%93 = sext i8 %90 to i64
%94 = shl i64 %93, 2
%95 = call i8* @llvm.load.relative.i64(i8* bitcast ([21 x i32]* @reltable.msg_cb.78 to i8*), i64 %94)
br label %96
96: ; preds = %92, %89
%97 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), %89 ], [ %95, %92 ]
%98 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.71, i64 0, i64 0), i8* %10, i8* %44, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.27, i64 0, i64 0), i64 %4, i8* %97, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %115
99: ; preds = %24
%100 = sext i16 %33 to i64
%101 = shl i64 %100, 2
%102 = call i8* @llvm.load.relative.i64(i8* bitcast ([6 x i32]* @reltable.msg_cb to i8*), i64 %101)
br label %103
103: ; preds = %99, %24, %56, %57, %58, %59, %60, %61, %62, %63, %64, %65, %66, %67, %68, %69, %70, %71, %72, %73, %74, %75, %76, %77, %78, %79, %80, %81, %82, %83, %84, %48, %35, %36, %37, %38, %39, %40, %41, %42, %20, %22
%104 = phi i8* [ %44, %56 ], [ %44, %57 ], [ %44, %58 ], [ %44, %59 ], [ %44, %60 ], [ %44, %61 ], [ %44, %62 ], [ %44, %63 ], [ %44, %64 ], [ %44, %65 ], [ %44, %66 ], [ %44, %67 ], [ %44, %68 ], [ %44, %69 ], [ %44, %70 ], [ %44, %71 ], [ %44, %72 ], [ %44, %73 ], [ %44, %74 ], [ %44, %75 ], [ %44, %76 ], [ %44, %77 ], [ %44, %78 ], [ %44, %79 ], [ %44, %80 ], [ %44, %81 ], [ %44, %82 ], [ %44, %83 ], [ %44, %84 ], [ %44, %48 ], [ 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), %40 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %41 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %42 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %20 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %22 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %24 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %99 ]
%105 = phi i8* [ %53, %56 ], [ %53, %57 ], [ %53, %58 ], [ %53, %59 ], [ %53, %60 ], [ %53, %61 ], [ %53, %62 ], [ %53, %63 ], [ %53, %64 ], [ %53, %65 ], [ %53, %66 ], [ %53, %67 ], [ %53, %68 ], [ %53, %69 ], [ %53, %70 ], [ %53, %71 ], [ %53, %72 ], [ %53, %73 ], [ %53, %74 ], [ %53, %75 ], [ %53, %76 ], [ %53, %77 ], [ %53, %78 ], [ %53, %79 ], [ %53, %80 ], [ %53, %81 ], [ %53, %82 ], [ %53, %83 ], [ %53, %84 ], [ %53, %48 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0), %35 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0), %36 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0), %37 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), %38 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0), %39 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0), %40 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.23, i64 0, i64 0), %41 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.24, i64 0, i64 0), %42 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), %20 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), %22 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), %24 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), %99 ]
%106 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.31, i64 0, i64 0), %56 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), %57 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.33, i64 0, i64 0), %58 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.34, i64 0, i64 0), %59 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.35, i64 0, i64 0), %60 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.36, i64 0, i64 0), %61 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.37, i64 0, i64 0), %62 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.38, i64 0, i64 0), %63 ], [ getelementptr inbounds ([25 x i8], [25 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 ([21 x i8], [21 x i8]* @.str.41, i64 0, i64 0), %66 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.42, i64 0, i64 0), %67 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.43, i64 0, i64 0), %68 ], [ getelementptr inbounds ([12 x i8], [12 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 ([14 x i8], [14 x i8]* @.str.46, i64 0, i64 0), %71 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.47, i64 0, i64 0), %72 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.48, i64 0, i64 0), %73 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.49, i64 0, i64 0), %74 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.50, i64 0, i64 0), %75 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.51, i64 0, i64 0), %76 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.52, i64 0, i64 0), %77 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.53, i64 0, i64 0), %78 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.54, i64 0, i64 0), %79 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.55, i64 0, i64 0), %80 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.56, i64 0, i64 0), %81 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.57, i64 0, i64 0), %82 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.58, i64 0, i64 0), %83 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.59, i64 0, i64 0), %84 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), %48 ], [ 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), %40 ], [ 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), %42 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %20 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), %22 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), %24 ], [ %102, %99 ]
%107 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %56 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %57 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %58 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %59 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %60 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %61 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %62 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %63 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %64 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %65 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %66 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %67 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %68 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %69 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %70 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %71 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %72 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %73 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %74 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %75 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %76 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %77 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %78 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %79 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %80 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %81 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %82 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %83 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %84 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %48 ], [ 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), %40 ], [ 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), %42 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %20 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %22 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %24 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %99 ]
%108 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.71, i64 0, i64 0), i8* %10, i8* %104, i8* %107, i64 %4, i8* %105, i8* %106)
br label %115
109: ; preds = %7, %45, %43, %46
%110 = phi i8* [ %44, %46 ], [ %44, %43 ], [ %44, %45 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), %7 ]
%111 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.28, i64 0, i64 0), %46 ], [ 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), %45 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %7 ]
%112 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), %46 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %43 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.25, i64 0, i64 0), %45 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %7 ]
%113 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.71, i64 0, i64 0), i8* %10, i8* %110, i8* %112, i64 %4, i8* %111, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%114 = icmp eq i64 %4, 0
br i1 %114, label %134, label %115
115: ; preds = %109, %96, %103
%116 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.72, i64 0, i64 0))
br label %117
117: ; preds = %115, %125
%118 = phi i64 [ %130, %125 ], [ 0, %115 ]
%119 = and i64 %118, 15
%120 = icmp eq i64 %119, 0
%121 = icmp ne i64 %118, 0
%122 = and i1 %121, %120
br i1 %122, label %123, label %125
123: ; preds = %117
%124 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.73, i64 0, i64 0))
br label %125
125: ; preds = %123, %117
%126 = getelementptr inbounds i8, i8* %3, i64 %118
%127 = load i8, i8* %126
%128 = zext i8 %127 to i32
%129 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.74, i64 0, i64 0), i32 %128)
%130 = add nuw i64 %118, 1
%131 = icmp eq i64 %130, %4
br i1 %131, label %132, label %117
132: ; preds = %125
%133 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.76, i64 0, i64 0))
br label %134
134: ; preds = %18, %87, %132, %109
%135 = tail call i32 @BIO_flush(i32* %8)
ret void
}