#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_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;
  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) {
    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    0x159f(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    %rax,-0x50(%rbp)
mov    %rax,-0x58(%rbp)
mov    -0x4(%rbp),%eax
test   %eax,%eax
lea    0x110d(%rip),%rcx
lea    0x110a(%rip),%rax
cmovne %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x78(%rbp)
sub    $0x5,%eax
ja     1203 <msg_cb+0xe3>
mov    -0x78(%rbp),%rax
lea    0xe66(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x10d6(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    120e <msg_cb+0xee>
lea    0x10ce(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    120e <msg_cb+0xee>
lea    0x10da(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    120e <msg_cb+0xee>
lea    0x10b7(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    120e <msg_cb+0xee>
lea    0x10b0(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    120e <msg_cb+0xee>
lea    0x10a9(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    120e <msg_cb+0xee>
lea    0x11c2(%rip),%rax
mov    %rax,-0x40(%rbp)
cmpl   $0x84,-0x8(%rbp)
jne    1384 <msg_cb+0x264>
lea    0x11aa(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x20(%rbp)
jbe    137f <msg_cb+0x25f>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %rax,-0x80(%rbp)
sub    $0x8,%rax
ja     137a <msg_cb+0x25a>
mov    -0x80(%rbp),%rax
lea    0xdc7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x104c(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0x115f(%rip),%rax
mov    %rax,-0x58(%rbp)
cmpq   $0x3,-0x20(%rbp)
jb     12fa <msg_cb+0x1da>
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     12f5 <msg_cb+0x1d5>
mov    -0x88(%rbp),%rax
lea    0xd8b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xff5(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    12f5 <msg_cb+0x1d5>
lea    0xff6(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    12f5 <msg_cb+0x1d5>
lea    0xffc(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    12f5 <msg_cb+0x1d5>
lea    0x1003(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    12fa <msg_cb+0x1da>
jmp    137a <msg_cb+0x25a>
lea    0x1012(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    137a <msg_cb+0x25a>
lea    0x1011(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    137a <msg_cb+0x25a>
lea    0x1015(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    137a <msg_cb+0x25a>
lea    0x1017(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    137a <msg_cb+0x25a>
lea    0x1016(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    137a <msg_cb+0x25a>
lea    0x1016(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    137a <msg_cb+0x25a>
lea    0x1018(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    137a <msg_cb+0x25a>
lea    0x101e(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    137f <msg_cb+0x25f>
jmp    1384 <msg_cb+0x264>
cmpl   $0x83,-0x8(%rbp)
je     13c5 <msg_cb+0x2a5>
cmpl   $0x80,-0x8(%rbp)
je     13c5 <msg_cb+0x2a5>
cmpl   $0x82,-0x8(%rbp)
je     13c5 <msg_cb+0x2a5>
cmpl   $0x81,-0x8(%rbp)
je     13c5 <msg_cb+0x2a5>
cmpl   $0x85,-0x8(%rbp)
jne    17b2 <msg_cb+0x692>
mov    -0xc(%rbp),%eax
mov    %eax,-0x8c(%rbp)
sub    $0x14,%eax
je     1404 <msg_cb+0x2e4>
jmp    13dc <msg_cb+0x2bc>
mov    -0x8c(%rbp),%eax
sub    $0x15,%eax
je     1414 <msg_cb+0x2f4>
jmp    13f0 <msg_cb+0x2d0>
mov    -0x8c(%rbp),%eax
sub    $0x16,%eax
je     1424 <msg_cb+0x304>
jmp    142f <msg_cb+0x30f>
lea    0xf9e(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    142f <msg_cb+0x30f>
lea    0xf9f(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    142f <msg_cb+0x30f>
lea    0xf95(%rip),%rax
mov    %rax,-0x48(%rbp)
cmpl   $0x15,-0xc(%rbp)
jne    16a9 <msg_cb+0x589>
lea    0xf8a(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x2,-0x20(%rbp)
jne    16a4 <msg_cb+0x584>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %eax,-0x90(%rbp)
sub    $0x1,%eax
je     147e <msg_cb+0x35e>
jmp    146a <msg_cb+0x34a>
mov    -0x90(%rbp),%eax
sub    $0x2,%eax
je     148e <msg_cb+0x36e>
jmp    1499 <msg_cb+0x379>
lea    0xf4b(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1499 <msg_cb+0x379>
lea    0xf45(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xf2b(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%eax
mov    %rax,-0x98(%rbp)
sub    $0x73,%rax
ja     169f <msg_cb+0x57f>
mov    -0x98(%rbp),%rax
lea    0xb89(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf07(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf05(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf09(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf09(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf0c(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf0d(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf14(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf17(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf18(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf21(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf26(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf2b(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf30(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf33(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf2f(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf2e(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf2c(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf2b(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf2f(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf31(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf38(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf38(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf37(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf39(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf40(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf4a(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf4d(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf5e(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    169f <msg_cb+0x57f>
lea    0xf6a(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    16a4 <msg_cb+0x584>
jmp    16a9 <msg_cb+0x589>
cmpl   $0x16,-0xc(%rbp)
jne    17ad <msg_cb+0x68d>
lea    0xd12(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x20(%rbp)
jbe    17a8 <msg_cb+0x688>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %rax,-0xa0(%rbp)
sub    $0x14,%rax
ja     17a3 <msg_cb+0x683>
mov    -0xa0(%rbp),%rax
lea    0xb35(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf1c(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17a3 <msg_cb+0x683>
lea    0xf1b(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17a3 <msg_cb+0x683>
lea    0xf19(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17a3 <msg_cb+0x683>
lea    0xf17(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17a3 <msg_cb+0x683>
lea    0xf1c(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17a3 <msg_cb+0x683>
lea    0xf1a(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17a3 <msg_cb+0x683>
lea    0xf1e(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17a3 <msg_cb+0x683>
lea    0xf23(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17a3 <msg_cb+0x683>
lea    0xf25(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17a3 <msg_cb+0x683>
lea    0xf29(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17a3 <msg_cb+0x683>
lea    0xf2d(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    17a8 <msg_cb+0x688>
jmp    17ad <msg_cb+0x68d>
jmp    17b2 <msg_cb+0x692>
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    0xf02(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <BIO_printf@plt>
cmpq   $0x0,-0x20(%rbp)
jbe    18b0 <msg_cb+0x790>
mov    -0x30(%rbp),%rdi
lea    0xef9(%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    187e <msg_cb+0x75e>
mov    -0x70(%rbp),%rax
and    $0xf,%rax
cmp    $0x0,%rax
jne    184f <msg_cb+0x72f>
cmpq   $0x0,-0x70(%rbp)
jbe    184f <msg_cb+0x72f>
mov    -0x30(%rbp),%rdi
lea    0xeab(%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    0xe92(%rip),%rsi
mov    $0x0,%al
call   1030 <BIO_printf@plt>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    1812 <msg_cb+0x6f2>
mov    -0x70(%rbp),%rax
cmp    -0x20(%rbp),%rax
jae    189e <msg_cb+0x77e>
mov    -0x30(%rbp),%rdi
lea    0xe67(%rip),%rsi
mov    $0x0,%al
call   1030 <BIO_printf@plt>
mov    -0x30(%rbp),%rdi
lea    0xe48(%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    0x1140(%rip),%rcx
lea    0x1135(%rip),%rdx
cmove  %rcx,%rdx
mov    0x40(%rsp),%r12
lea    0x159f(%rip),%rbp
add    $0xffffff80,%esi
cmp    $0x5,%esi
ja     1183 <msg_cb+0x63>
lea    0x1126(%rip),%rcx
lea    0xe97(%rip),%rdi
movslq (%rdi,%rsi,4),%rsi
add    %rdi,%rsi
jmp    *%rsi
lea    0x112b(%rip),%rcx
cmp    $0x16,%eax
jne    11ad <msg_cb+0x8d>
jmp    12c2 <msg_cb+0x1a2>
lea    0x1242(%rip),%rcx
jmp    11c6 <msg_cb+0xa6>
lea    0x1107(%rip),%rcx
cmp    $0x16,%eax
jne    11ad <msg_cb+0x8d>
jmp    12c2 <msg_cb+0x1a2>
lea    0x10ed(%rip),%rcx
cmp    $0x16,%eax
je     12c2 <msg_cb+0x1a2>
cmp    $0x15,%eax
je     11d1 <msg_cb+0xb1>
cmp    $0x14,%eax
jne    11c6 <msg_cb+0xa6>
lea    0x11eb(%rip),%r8
mov    %rbp,%rbx
jmp    12ef <msg_cb+0x1cf>
mov    %rbp,%rbx
mov    %rbp,%r8
jmp    12ef <msg_cb+0x1cf>
cmp    $0x2,%r14
jne    12e1 <msg_cb+0x1c1>
mov    (%r15),%al
cmp    $0x2,%al
lea    0x11f3(%rip),%rsi
lea    0x11dc(%rip),%rdi
cmove  %rsi,%rdi
cmp    $0x1,%al
lea    0x11d5(%rip),%r10
cmovne %rdi,%r10
movzbl 0x1(%r15),%eax
lea    0x11af(%rip),%r8
lea    0x11b9(%rip),%rbx
cmp    $0x73,%rax
ja     1547 <msg_cb+0x427>
lea    0xdf5(%rip),%rsi
movslq (%rsi,%rax,4),%rax
add    %rsi,%rax
jmp    *%rax
lea    0x11af(%rip),%rbx
jmp    1547 <msg_cb+0x427>
test   %r14,%r14
je     136a <msg_cb+0x24a>
movzbl (%r15),%eax
lea    0x14a6(%rip),%r8
lea    0x102d(%rip),%rcx
cmp    $0x8,%rax
ja     13db <msg_cb+0x2bb>
lea    0xf84(%rip),%rsi
movslq (%rsi,%rax,4),%rax
add    %rsi,%rax
jmp    *%rax
lea    0x1157(%rip),%rbx
lea    0x1032(%rip),%r10
cmp    $0x3,%r14
jb     1547 <msg_cb+0x427>
movzwl 0x1(%r15),%eax
rol    $0x8,%ax
add    $0xffffffff,%eax
cmp    $0x6,%ax
jae    1547 <msg_cb+0x427>
movswq %ax,%rax
lea    0xf66(%rip),%rsi
movslq (%rsi,%rax,4),%rbx
add    %rsi,%rbx
jmp    1547 <msg_cb+0x427>
lea    0xfea(%rip),%rcx
cmp    $0x16,%eax
jne    11ad <msg_cb+0x8d>
test   %r14,%r14
je     1317 <msg_cb+0x1f7>
movsbq (%r15),%rax
cmp    $0x14,%rax
ja     133f <msg_cb+0x21f>
lea    0xf4c(%rip),%rsi
movslq (%rsi,%rax,4),%rbp
add    %rsi,%rbp
jmp    1346 <msg_cb+0x226>
lea    0x10d2(%rip),%r8
lea    0x10db(%rip),%rbx
lea    0x13e1(%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    1562 <msg_cb+0x442>
jmp    15da <msg_cb+0x4ba>
lea    0x13d4(%rip),%rbp
lea    0x10a7(%rip),%rbx
lea    0x13ab(%rip),%rsi
lea    0x108d(%rip),%r8
mov    %r12,%rdi
xor    %r9d,%r9d
xor    %eax,%eax
push   %rbp
push   %rbx
jmp    1391 <msg_cb+0x271>
lea    0x1086(%rip),%rbp
lea    0x13a5(%rip),%rbx
lea    0x1383(%rip),%rsi
lea    0x1065(%rip),%r8
mov    %r12,%rdi
mov    %r14,%r9
xor    %eax,%eax
push   %rbx
push   %rbp
jmp    1559 <msg_cb+0x439>
lea    0x1381(%rip),%r8
lea    0x1054(%rip),%rbp
lea    0x1358(%rip),%rsi
lea    0xefa(%rip),%rcx
mov    %r12,%rdi
xor    %r9d,%r9d
xor    %eax,%eax
push   %r8
push   %rbp
call   1030 <BIO_printf@plt>
add    $0x10,%rsp
jmp    15da <msg_cb+0x4ba>
lea    0xf81(%rip),%r10
mov    %r8,%rbx
jmp    1547 <msg_cb+0x427>
lea    0xf86(%rip),%r10
mov    %r8,%rbx
jmp    1547 <msg_cb+0x427>
lea    0xf89(%rip),%r10
mov    %r8,%rbx
jmp    1547 <msg_cb+0x427>
lea    0xfab(%rip),%r10
mov    %r8,%rbx
jmp    1547 <msg_cb+0x427>
lea    0xfea(%rip),%r10
mov    %r8,%rbx
jmp    1547 <msg_cb+0x427>
lea    0xf27(%rip),%r10
mov    %r8,%rbx
jmp    1547 <msg_cb+0x427>
lea    0xf5c(%rip),%r10
mov    %r8,%rbx
jmp    1547 <msg_cb+0x427>
lea    0xf5d(%rip),%r10
mov    %r8,%rbx
jmp    1547 <msg_cb+0x427>
lea    0xf76(%rip),%r10
mov    %r8,%rbx
jmp    1547 <msg_cb+0x427>
lea    0xfc3(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0xfcb(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0xfcf(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0xfd6(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0xfdb(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0xfe6(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0xfed(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0xff2(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0xfff(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x1008(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x1011(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x101a(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x1021(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x1021(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x1027(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x102c(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x1032(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x103d(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x1046(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x1054(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x105b(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x1061(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x106a(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x1078(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x1089(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x1093(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x10ab(%rip),%rbx
jmp    1547 <msg_cb+0x427>
lea    0x10be(%rip),%rbx
lea    0x1189(%rip),%rsi
mov    %r12,%rdi
mov    %r14,%r9
xor    %eax,%eax
push   %rbx
push   %r10
call   1030 <BIO_printf@plt>
add    $0x10,%rsp
lea    0x118b(%rip),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <BIO_printf@plt>
lea    0x1179(%rip),%r13
lea    0x1177(%rip),%rbx
xor    %ebp,%ebp
jmp    15ab <msg_cb+0x48b>
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     15c9 <msg_cb+0x4a9>
test   %rbp,%rbp
je     1590 <msg_cb+0x470>
mov    %ebp,%eax
and    $0xf,%eax
test   %rax,%rax
jne    1590 <msg_cb+0x470>
mov    %r12,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <BIO_printf@plt>
jmp    1590 <msg_cb+0x470>
lea    0x1121(%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 = [4 x i8] c"???\00"
@.str.10 = [9 x i8] c", ERROR:\00"
@.str.11 = [5 x i8] c" ???\00"
@.str.12 = [17 x i8] c" NO-CIPHER-ERROR\00"
@.str.13 = [22 x i8] c" NO-CERTIFICATE-ERROR\00"
@.str.14 = [23 x i8] c" BAD-CERTIFICATE-ERROR\00"
@.str.15 = [36 x i8] c" UNSUPPORTED-CERTIFICATE-TYPE-ERROR\00"
@.str.16 = [15 x i8] c", CLIENT-HELLO\00"
@.str.17 = [20 x i8] c", CLIENT-MASTER-KEY\00"
@.str.18 = [18 x i8] c", CLIENT-FINISHED\00"
@.str.19 = [15 x i8] c", SERVER-HELLO\00"
@.str.20 = [16 x i8] c", SERVER-VERIFY\00"
@.str.21 = [18 x i8] c", SERVER-FINISHED\00"
@.str.22 = [22 x i8] c", REQUEST-CERTIFICATE\00"
@.str.23 = [21 x i8] c", CLIENT-CERTIFICATE\00"
@.str.24 = [17 x i8] c"ChangeCipherSpec\00"
@.str.25 = [6 x i8] c"Alert\00"
@.str.26 = [10 x i8] c"Handshake\00"
@.str.27 = [6 x i8] c", ???\00"
@.str.28 = [10 x i8] c", warning\00"
@.str.29 = [8 x i8] c", fatal\00"
@.str.30 = [14 x i8] c" close_notify\00"
@.str.31 = [20 x i8] c" unexpected_message\00"
@.str.32 = [16 x i8] c" bad_record_mac\00"
@.str.33 = [19 x i8] c" decryption_failed\00"
@.str.34 = [17 x i8] c" record_overflow\00"
@.str.35 = [23 x i8] c" decompression_failure\00"
@.str.36 = [19 x i8] c" handshake_failure\00"
@.str.37 = [17 x i8] c" bad_certificate\00"
@.str.38 = [25 x i8] c" unsupported_certificate\00"
@.str.39 = [21 x i8] c" certificate_revoked\00"
@.str.40 = [21 x i8] c" certificate_expired\00"
@.str.41 = [21 x i8] c" certificate_unknown\00"
@.str.42 = [19 x i8] c" illegal_parameter\00"
@.str.43 = [12 x i8] c" unknown_ca\00"
@.str.44 = [15 x i8] c" access_denied\00"
@.str.45 = [14 x i8] c" decode_error\00"
@.str.46 = [15 x i8] c" decrypt_error\00"
@.str.47 = [20 x i8] c" export_restriction\00"
@.str.48 = [18 x i8] c" protocol_version\00"
@.str.49 = [23 x i8] c" insufficient_security\00"
@.str.50 = [16 x i8] c" internal_error\00"
@.str.51 = [15 x i8] c" user_canceled\00"
@.str.52 = [18 x i8] c" no_renegotiation\00"
@.str.53 = [23 x i8] c" unsupported_extension\00"
@.str.54 = [26 x i8] c" certificate_unobtainable\00"
@.str.55 = [19 x i8] c" unrecognized_name\00"
@.str.56 = [33 x i8] c" bad_certificate_status_response\00"
@.str.57 = [28 x i8] c" bad_certificate_hash_value\00"
@.str.58 = [22 x i8] c" unknown_psk_identity\00"
@.str.59 = [15 x i8] c", HelloRequest\00"
@.str.60 = [14 x i8] c", ClientHello\00"
@.str.61 = [14 x i8] c", ServerHello\00"
@.str.62 = [21 x i8] c", HelloVerifyRequest\00"
@.str.63 = [14 x i8] c", Certificate\00"
@.str.64 = [20 x i8] c", ServerKeyExchange\00"
@.str.65 = [21 x i8] c", CertificateRequest\00"
@.str.66 = [18 x i8] c", ServerHelloDone\00"
@.str.67 = [20 x i8] c", CertificateVerify\00"
@.str.68 = [20 x i8] c", ClientKeyExchange\00"
@.str.69 = [11 x i8] c", Finished\00"
@.str.70 = [28 x i8] c"%s %s%s [length %04lx]%s%s\0A\00"
@.str.71 = [4 x i8] c" \00"
@.str.72 = [5 x i8] c"\0A \00"
@.str.73 = [6 x i8] c" %02x\00"
@.str.74 = [5 x i8] c" ...\00"
@.str.75 = [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 %37 [
i32 132, label %31
i32 131, label %32
i32 128, label %33
i32 130, label %34
i32 129, label %35
i32 133, 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 %38
32: ; preds = %7
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8** %17
br label %38
33: ; preds = %7
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8** %17
br label %38
34: ; preds = %7
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8** %17
br label %38
35: ; preds = %7
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8** %17
br label %38
36: ; preds = %7
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8** %17
br label %38
37: ; preds = %7
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8** %17
br label %38
38: ; preds = %37, %36, %35, %34, %33, %32, %31
%39 = load i32, i32* %9
%40 = icmp eq i32 %39, 132
br i1 %40, label %41, label %80
41: ; preds = %38
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8** %19
%42 = load i64, i64* %12
%43 = icmp ugt i64 %42, 0
br i1 %43, label %44, label %79
44: ; preds = %41
%45 = load i8*, i8** %11
%46 = getelementptr inbounds i8, i8* %45, i64 0
%47 = load i8, i8* %46
%48 = zext i8 %47 to i32
switch i32 %48, label %78 [
i32 0, label %49
i32 1, label %70
i32 2, label %71
i32 3, label %72
i32 4, label %73
i32 5, label %74
i32 6, label %75
i32 7, label %76
i32 8, label %77
]
49: ; preds = %44
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8** %19
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8** %20
%50 = load i64, i64* %12
%51 = icmp uge i64 %50, 3
br i1 %51, label %52, label %69
52: ; preds = %49
%53 = load i8*, i8** %11
%54 = getelementptr inbounds i8, i8* %53, i64 1
%55 = load i8, i8* %54
%56 = zext i8 %55 to i32
%57 = shl i32 %56, 8
%58 = load i8*, i8** %11
%59 = getelementptr inbounds i8, i8* %58, i64 2
%60 = load i8, i8* %59
%61 = zext i8 %60 to i32
%62 = add nsw i32 %57, %61
store i32 %62, i32* %21
%63 = load i32, i32* %21
switch i32 %63, label %68 [
i32 1, label %64
i32 2, label %65
i32 4, label %66
i32 6, label %67
]
64: ; preds = %52
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i8** %20
br label %68
65: ; preds = %52
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i8** %20
br label %68
66: ; preds = %52
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0), i8** %20
br label %68
67: ; preds = %52
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.15, i64 0, i64 0), i8** %20
br label %68
68: ; preds = %52, %67, %66, %65, %64
br label %69
69: ; preds = %68, %49
br label %78
70: ; preds = %44
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i8** %19
br label %78
71: ; preds = %44
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.17, i64 0, i64 0), i8** %19
br label %78
72: ; preds = %44
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8** %19
br label %78
73: ; preds = %44
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.19, i64 0, i64 0), i8** %19
br label %78
74: ; preds = %44
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8** %19
br label %78
75: ; preds = %44
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.21, i64 0, i64 0), i8** %19
br label %78
76: ; preds = %44
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.22, i64 0, i64 0), i8** %19
br label %78
77: ; preds = %44
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.23, i64 0, i64 0), i8** %19
br label %78
78: ; preds = %44, %77, %76, %75, %74, %73, %72, %71, %70, %69
br label %79
79: ; preds = %78, %41
br label %80
80: ; preds = %79, %38
%81 = load i32, i32* %9
%82 = icmp eq i32 %81, 131
br i1 %82, label %95, label %83
83: ; preds = %80
%84 = load i32, i32* %9
%85 = icmp eq i32 %84, 128
br i1 %85, label %95, label %86
86: ; preds = %83
%87 = load i32, i32* %9
%88 = icmp eq i32 %87, 130
br i1 %88, label %95, label %89
89: ; preds = %86
%90 = load i32, i32* %9
%91 = icmp eq i32 %90, 129
br i1 %91, label %95, label %92
92: ; preds = %89
%93 = load i32, i32* %9
%94 = icmp eq i32 %93, 133
br i1 %94, label %95, label %174
95: ; preds = %92, %89, %86, %83, %80
%96 = load i32, i32* %10
switch i32 %96, label %100 [
i32 20, label %97
i32 21, label %98
i32 22, label %99
]
97: ; preds = %95
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.24, i64 0, i64 0), i8** %18
br label %100
98: ; preds = %95
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), i8** %18
br label %100
99: ; preds = %95
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.26, i64 0, i64 0), i8** %18
br label %100
100: ; preds = %95, %99, %98, %97
%101 = load i32, i32* %10
%102 = icmp eq i32 %101, 21
br i1 %102, label %103, label %149
103: ; preds = %100
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.27, i64 0, i64 0), i8** %19
%104 = load i64, i64* %12
%105 = icmp eq i64 %104, 2
br i1 %105, label %106, label %148
106: ; preds = %103
%107 = load i8*, i8** %11
%108 = getelementptr inbounds i8, i8* %107, i64 0
%109 = load i8, i8* %108
%110 = zext i8 %109 to i32
switch i32 %110, label %113 [
i32 1, label %111
i32 2, label %112
]
111: ; preds = %106
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.28, i64 0, i64 0), i8** %19
br label %113
112: ; preds = %106
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.29, i64 0, i64 0), i8** %19
br label %113
113: ; preds = %106, %112, %111
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8** %20
%114 = load i8*, i8** %11
%115 = getelementptr inbounds i8, i8* %114, i64 1
%116 = load i8, i8* %115
%117 = zext i8 %116 to i32
switch i32 %117, label %147 [
i32 0, label %118
i32 10, label %119
i32 20, label %120
i32 21, label %121
i32 22, label %122
i32 30, label %123
i32 40, label %124
i32 42, label %125
i32 43, label %126
i32 44, label %127
i32 45, label %128
i32 46, label %129
i32 47, label %130
i32 48, label %131
i32 49, label %132
i32 50, label %133
i32 51, label %134
i32 60, label %135
i32 70, label %136
i32 71, label %137
i32 80, label %138
i32 90, label %139
i32 100, label %140
i32 110, label %141
i32 111, label %142
i32 112, label %143
i32 113, label %144
i32 114, label %145
i32 115, label %146
]
118: ; preds = %113
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.30, i64 0, i64 0), i8** %20
br label %147
119: ; preds = %113
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.31, i64 0, i64 0), i8** %20
br label %147
120: ; preds = %113
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), i8** %20
br label %147
121: ; preds = %113
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.33, i64 0, i64 0), i8** %20
br label %147
122: ; preds = %113
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.34, i64 0, i64 0), i8** %20
br label %147
123: ; preds = %113
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.35, i64 0, i64 0), i8** %20
br label %147
124: ; preds = %113
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.36, i64 0, i64 0), i8** %20
br label %147
125: ; preds = %113
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.37, i64 0, i64 0), i8** %20
br label %147
126: ; preds = %113
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.38, i64 0, i64 0), i8** %20
br label %147
127: ; preds = %113
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.39, i64 0, i64 0), i8** %20
br label %147
128: ; preds = %113
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.40, i64 0, i64 0), i8** %20
br label %147
129: ; preds = %113
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.41, i64 0, i64 0), i8** %20
br label %147
130: ; preds = %113
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.42, i64 0, i64 0), i8** %20
br label %147
131: ; preds = %113
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.43, i64 0, i64 0), i8** %20
br label %147
132: ; preds = %113
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.44, i64 0, i64 0), i8** %20
br label %147
133: ; preds = %113
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.45, i64 0, i64 0), i8** %20
br label %147
134: ; preds = %113
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.46, i64 0, i64 0), i8** %20
br label %147
135: ; preds = %113
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.47, i64 0, i64 0), i8** %20
br label %147
136: ; preds = %113
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.48, i64 0, i64 0), i8** %20
br label %147
137: ; preds = %113
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.49, i64 0, i64 0), i8** %20
br label %147
138: ; preds = %113
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.50, i64 0, i64 0), i8** %20
br label %147
139: ; preds = %113
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.51, i64 0, i64 0), i8** %20
br label %147
140: ; preds = %113
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.52, i64 0, i64 0), i8** %20
br label %147
141: ; preds = %113
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.53, i64 0, i64 0), i8** %20
br label %147
142: ; preds = %113
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.54, i64 0, i64 0), i8** %20
br label %147
143: ; preds = %113
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.55, i64 0, i64 0), i8** %20
br label %147
144: ; preds = %113
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.56, i64 0, i64 0), i8** %20
br label %147
145: ; preds = %113
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.57, i64 0, i64 0), i8** %20
br label %147
146: ; preds = %113
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.58, i64 0, i64 0), i8** %20
br label %147
147: ; preds = %113, %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, %121, %120, %119, %118
br label %148
148: ; preds = %147, %103
br label %149
149: ; preds = %148, %100
%150 = load i32, i32* %10
%151 = icmp eq i32 %150, 22
br i1 %151, label %152, label %173
152: ; preds = %149
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8** %19
%153 = load i64, i64* %12
%154 = icmp ugt i64 %153, 0
br i1 %154, label %155, label %172
155: ; preds = %152
%156 = load i8*, i8** %11
%157 = getelementptr inbounds i8, i8* %156, i64 0
%158 = load i8, i8* %157
%159 = zext i8 %158 to i32
switch i32 %159, label %171 [
i32 0, label %160
i32 1, label %161
i32 2, label %162
i32 3, label %163
i32 11, label %164
i32 12, label %165
i32 13, label %166
i32 14, label %167
i32 15, label %168
i32 16, label %169
i32 20, label %170
]
160: ; preds = %155
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.59, i64 0, i64 0), i8** %19
br label %171
161: ; preds = %155
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.60, i64 0, i64 0), i8** %19
br label %171
162: ; preds = %155
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.61, i64 0, i64 0), i8** %19
br label %171
163: ; preds = %155
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.62, i64 0, i64 0), i8** %19
br label %171
164: ; preds = %155
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.63, i64 0, i64 0), i8** %19
br label %171
165: ; preds = %155
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.64, i64 0, i64 0), i8** %19
br label %171
166: ; preds = %155
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.65, i64 0, i64 0), i8** %19
br label %171
167: ; preds = %155
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.66, i64 0, i64 0), i8** %19
br label %171
168: ; preds = %155
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.67, i64 0, i64 0), i8** %19
br label %171
169: ; preds = %155
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.68, i64 0, i64 0), i8** %19
br label %171
170: ; preds = %155
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.69, i64 0, i64 0), i8** %19
br label %171
171: ; preds = %155, %170, %169, %168, %167, %166, %165, %164, %163, %162, %161, %160
br label %172
172: ; preds = %171, %152
br label %173
173: ; preds = %172, %149
br label %174
174: ; preds = %173, %92
%175 = load i32*, i32** %15
%176 = load i8*, i8** %16
%177 = load i8*, i8** %17
%178 = load i8*, i8** %18
%179 = load i64, i64* %12
%180 = load i8*, i8** %19
%181 = load i8*, i8** %20
%182 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %175, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.70, i64 0, i64 0), i8* %176, i8* %177, i8* %178, i64 %179, i8* %180, i8* %181)
%183 = load i64, i64* %12
%184 = icmp ugt i64 %183, 0
br i1 %184, label %185, label %224
185: ; preds = %174
%186 = load i32*, i32** %15
%187 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %186, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.71, i64 0, i64 0))
%188 = load i64, i64* %12
store i64 %188, i64* %22
store i64 0, i64* %23
br label %189
189: ; preds = %211, %185
%190 = load i64, i64* %23
%191 = load i64, i64* %22
%192 = icmp ult i64 %190, %191
br i1 %192, label %193, label %214
193: ; preds = %189
%194 = load i64, i64* %23
%195 = urem i64 %194, 16
%196 = icmp eq i64 %195, 0
br i1 %196, label %197, label %203
197: ; preds = %193
%198 = load i64, i64* %23
%199 = icmp ugt i64 %198, 0
br i1 %199, label %200, label %203
200: ; preds = %197
%201 = load i32*, i32** %15
%202 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %201, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.72, i64 0, i64 0))
br label %203
203: ; preds = %200, %197, %193
%204 = load i32*, i32** %15
%205 = load i8*, i8** %11
%206 = load i64, i64* %23
%207 = getelementptr inbounds i8, i8* %205, i64 %206
%208 = load i8, i8* %207
%209 = zext i8 %208 to i32
%210 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %204, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.73, i64 0, i64 0), i32 %209)
br label %211
211: ; preds = %203
%212 = load i64, i64* %23
%213 = add i64 %212, 1
store i64 %213, i64* %23
br label %189
214: ; preds = %189
%215 = load i64, i64* %23
%216 = load i64, i64* %12
%217 = icmp ult i64 %215, %216
br i1 %217, label %218, label %221
218: ; preds = %214
%219 = load i32*, i32** %15
%220 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %219, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.74, i64 0, i64 0))
br label %221
221: ; preds = %218, %214
%222 = load i32*, i32** %15
%223 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %222, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.75, i64 0, i64 0))
br label %224
224: ; preds = %221, %174
%225 = load i32*, i32** %15
%226 = call i32 @BIO_flush(i32* %225)
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 = [4 x i8] c"???\00"
@.str.10 = [9 x i8] c", ERROR:\00"
@.str.11 = [5 x i8] c" ???\00"
@.str.12 = [17 x i8] c" NO-CIPHER-ERROR\00"
@.str.13 = [22 x i8] c" NO-CERTIFICATE-ERROR\00"
@.str.14 = [23 x i8] c" BAD-CERTIFICATE-ERROR\00"
@.str.15 = [36 x i8] c" UNSUPPORTED-CERTIFICATE-TYPE-ERROR\00"
@.str.16 = [15 x i8] c", CLIENT-HELLO\00"
@.str.17 = [20 x i8] c", CLIENT-MASTER-KEY\00"
@.str.18 = [18 x i8] c", CLIENT-FINISHED\00"
@.str.19 = [15 x i8] c", SERVER-HELLO\00"
@.str.20 = [16 x i8] c", SERVER-VERIFY\00"
@.str.21 = [18 x i8] c", SERVER-FINISHED\00"
@.str.22 = [22 x i8] c", REQUEST-CERTIFICATE\00"
@.str.23 = [21 x i8] c", CLIENT-CERTIFICATE\00"
@.str.24 = [17 x i8] c"ChangeCipherSpec\00"
@.str.25 = [6 x i8] c"Alert\00"
@.str.26 = [10 x i8] c"Handshake\00"
@.str.27 = [6 x i8] c", ???\00"
@.str.28 = [10 x i8] c", warning\00"
@.str.29 = [8 x i8] c", fatal\00"
@.str.30 = [14 x i8] c" close_notify\00"
@.str.31 = [20 x i8] c" unexpected_message\00"
@.str.32 = [16 x i8] c" bad_record_mac\00"
@.str.33 = [19 x i8] c" decryption_failed\00"
@.str.34 = [17 x i8] c" record_overflow\00"
@.str.35 = [23 x i8] c" decompression_failure\00"
@.str.36 = [19 x i8] c" handshake_failure\00"
@.str.37 = [17 x i8] c" bad_certificate\00"
@.str.38 = [25 x i8] c" unsupported_certificate\00"
@.str.39 = [21 x i8] c" certificate_revoked\00"
@.str.40 = [21 x i8] c" certificate_expired\00"
@.str.41 = [21 x i8] c" certificate_unknown\00"
@.str.42 = [19 x i8] c" illegal_parameter\00"
@.str.43 = [12 x i8] c" unknown_ca\00"
@.str.44 = [15 x i8] c" access_denied\00"
@.str.45 = [14 x i8] c" decode_error\00"
@.str.46 = [15 x i8] c" decrypt_error\00"
@.str.47 = [20 x i8] c" export_restriction\00"
@.str.48 = [18 x i8] c" protocol_version\00"
@.str.49 = [23 x i8] c" insufficient_security\00"
@.str.50 = [16 x i8] c" internal_error\00"
@.str.51 = [15 x i8] c" user_canceled\00"
@.str.52 = [18 x i8] c" no_renegotiation\00"
@.str.53 = [23 x i8] c" unsupported_extension\00"
@.str.54 = [26 x i8] c" certificate_unobtainable\00"
@.str.55 = [19 x i8] c" unrecognized_name\00"
@.str.56 = [33 x i8] c" bad_certificate_status_response\00"
@.str.57 = [28 x i8] c" bad_certificate_hash_value\00"
@.str.58 = [22 x i8] c" unknown_psk_identity\00"
@.str.59 = [15 x i8] c", HelloRequest\00"
@.str.60 = [14 x i8] c", ClientHello\00"
@.str.61 = [14 x i8] c", ServerHello\00"
@.str.62 = [21 x i8] c", HelloVerifyRequest\00"
@.str.63 = [14 x i8] c", Certificate\00"
@.str.64 = [20 x i8] c", ServerKeyExchange\00"
@.str.65 = [21 x i8] c", CertificateRequest\00"
@.str.66 = [18 x i8] c", ServerHelloDone\00"
@.str.67 = [20 x i8] c", CertificateVerify\00"
@.str.68 = [20 x i8] c", ClientKeyExchange\00"
@.str.69 = [11 x i8] c", Finished\00"
@.str.70 = [28 x i8] c"%s %s%s [length %04lx]%s%s\0A\00"
@.str.71 = [4 x i8] c" \00"
@.str.72 = [5 x i8] c"\0A \00"
@.str.73 = [6 x i8] c" %02x\00"
@.str.75 = [2 x i8] c"\0A\00"
@reltable.msg_cb = [6 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.12 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 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.11 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 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.11 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([36 x i8]* @.str.15 to i64), i64 ptrtoint ([6 x i32]* @reltable.msg_cb to i64)) to i32)]
@reltable.msg_cb.77 = [21 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.59 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.60 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 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.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.62 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.9 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.9 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.9 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.9 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.9 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.9 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.9 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.63 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.64 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.65 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.66 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.67 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 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.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.9 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.9 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.9 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.69 to i64), i64 ptrtoint ([21 x i32]* @reltable.msg_cb.77 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 %108 [
i32 132, label %15
i32 131, label %42
i32 128, label %11
i32 130, label %12
i32 129, label %13
i32 133, label %14
]
11: ; preds = %7
br label %42
12: ; preds = %7
br label %42
13: ; preds = %7
br label %42
14: ; preds = %7
br label %42
15: ; preds = %7
%16 = icmp eq i64 %4, 0
br i1 %16, label %17, label %19
17: ; preds = %15
%18 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.70, 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.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %133
19: ; preds = %15
%20 = load i8, i8* %3
switch i8 %20, label %102 [
i8 0, label %21
i8 1, label %34
i8 2, label %35
i8 3, label %36
i8 4, label %37
i8 5, label %38
i8 6, label %39
i8 7, label %40
i8 8, label %41
]
21: ; preds = %19
%22 = icmp ugt i64 %4, 2
br i1 %22, label %23, label %102
23: ; preds = %21
%24 = getelementptr inbounds i8, i8* %3, i64 1
%25 = load i8, i8* %24
%26 = zext i8 %25 to i16
%27 = shl nuw i16 %26, 8
%28 = getelementptr inbounds i8, i8* %3, i64 2
%29 = load i8, i8* %28
%30 = zext i8 %29 to i16
%31 = or i16 %27, %30
%32 = add i16 %31, -1
%33 = icmp ult i16 %32, 6
br i1 %33, label %98, label %102
34: ; preds = %19
br label %102
35: ; preds = %19
br label %102
36: ; preds = %19
br label %102
37: ; preds = %19
br label %102
38: ; preds = %19
br label %102
39: ; preds = %19
br label %102
40: ; preds = %19
br label %102
41: ; preds = %19
br label %102
42: ; preds = %7, %11, %12, %13, %14
%43 = phi i8* [ 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 %108 [
i32 20, label %44
i32 21, label %45
i32 22, label %84
]
44: ; preds = %42
br label %108
45: ; preds = %42
%46 = icmp eq i64 %4, 2
br i1 %46, label %47, label %108
47: ; preds = %45
%48 = load i8, i8* %3
%49 = icmp eq i8 %48, 2
%50 = select i1 %49, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.29, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.27, i64 0, i64 0)
%51 = icmp eq i8 %48, 1
%52 = select i1 %51, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.28, i64 0, i64 0), i8* %50
%53 = getelementptr inbounds i8, i8* %3, i64 1
%54 = load i8, i8* %53
switch i8 %54, label %102 [
i8 0, label %55
i8 10, label %56
i8 20, label %57
i8 21, label %58
i8 22, label %59
i8 30, label %60
i8 40, label %61
i8 42, label %62
i8 43, label %63
i8 44, label %64
i8 45, label %65
i8 46, label %66
i8 47, label %67
i8 48, label %68
i8 49, label %69
i8 50, label %70
i8 51, label %71
i8 60, label %72
i8 70, label %73
i8 71, label %74
i8 80, label %75
i8 90, label %76
i8 100, label %77
i8 110, label %78
i8 111, label %79
i8 112, label %80
i8 113, label %81
i8 114, label %82
i8 115, label %83
]
55: ; preds = %47
br label %102
56: ; preds = %47
br label %102
57: ; preds = %47
br label %102
58: ; preds = %47
br label %102
59: ; preds = %47
br label %102
60: ; preds = %47
br label %102
61: ; preds = %47
br label %102
62: ; preds = %47
br label %102
63: ; preds = %47
br label %102
64: ; preds = %47
br label %102
65: ; preds = %47
br label %102
66: ; preds = %47
br label %102
67: ; preds = %47
br label %102
68: ; preds = %47
br label %102
69: ; preds = %47
br label %102
70: ; preds = %47
br label %102
71: ; preds = %47
br label %102
72: ; preds = %47
br label %102
73: ; preds = %47
br label %102
74: ; preds = %47
br label %102
75: ; preds = %47
br label %102
76: ; preds = %47
br label %102
77: ; preds = %47
br label %102
78: ; preds = %47
br label %102
79: ; preds = %47
br label %102
80: ; preds = %47
br label %102
81: ; preds = %47
br label %102
82: ; preds = %47
br label %102
83: ; preds = %47
br label %102
84: ; preds = %42
%85 = icmp eq i64 %4, 0
br i1 %85, label %86, label %88
86: ; preds = %84
%87 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.70, i64 0, i64 0), i8* %10, i8* %43, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.26, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %133
88: ; preds = %84
%89 = load i8, i8* %3
%90 = icmp ult i8 %89, 21
br i1 %90, label %91, label %95
91: ; preds = %88
%92 = sext i8 %89 to i64
%93 = shl i64 %92, 2
%94 = call i8* @llvm.load.relative.i64(i8* bitcast ([21 x i32]* @reltable.msg_cb.77 to i8*), i64 %93)
br label %95
95: ; preds = %91, %88
%96 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), %88 ], [ %94, %91 ]
%97 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.70, i64 0, i64 0), i8* %10, i8* %43, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.26, i64 0, i64 0), i64 %4, i8* %96, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %114
98: ; preds = %23
%99 = sext i16 %32 to i64
%100 = shl i64 %99, 2
%101 = call i8* @llvm.load.relative.i64(i8* bitcast ([6 x i32]* @reltable.msg_cb to i8*), i64 %100)
br label %102
102: ; preds = %98, %23, %55, %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, %47, %34, %35, %36, %37, %38, %39, %40, %41, %19, %21
%103 = phi i8* [ %43, %55 ], [ %43, %56 ], [ %43, %57 ], [ %43, %58 ], [ %43, %59 ], [ %43, %60 ], [ %43, %61 ], [ %43, %62 ], [ %43, %63 ], [ %43, %64 ], [ %43, %65 ], [ %43, %66 ], [ %43, %67 ], [ %43, %68 ], [ %43, %69 ], [ %43, %70 ], [ %43, %71 ], [ %43, %72 ], [ %43, %73 ], [ %43, %74 ], [ %43, %75 ], [ %43, %76 ], [ %43, %77 ], [ %43, %78 ], [ %43, %79 ], [ %43, %80 ], [ %43, %81 ], [ %43, %82 ], [ %43, %83 ], [ %43, %47 ], [ 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), %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), %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), %23 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %98 ]
%104 = phi i8* [ %52, %55 ], [ %52, %56 ], [ %52, %57 ], [ %52, %58 ], [ %52, %59 ], [ %52, %60 ], [ %52, %61 ], [ %52, %62 ], [ %52, %63 ], [ %52, %64 ], [ %52, %65 ], [ %52, %66 ], [ %52, %67 ], [ %52, %68 ], [ %52, %69 ], [ %52, %70 ], [ %52, %71 ], [ %52, %72 ], [ %52, %73 ], [ %52, %74 ], [ %52, %75 ], [ %52, %76 ], [ %52, %77 ], [ %52, %78 ], [ %52, %79 ], [ %52, %80 ], [ %52, %81 ], [ %52, %82 ], [ %52, %83 ], [ %52, %47 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), %34 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.17, i64 0, i64 0), %35 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), %36 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.19, i64 0, i64 0), %37 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), %38 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.21, i64 0, i64 0), %39 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.22, i64 0, i64 0), %40 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.23, i64 0, i64 0), %41 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), %19 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), %21 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), %23 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), %98 ]
%105 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.30, i64 0, i64 0), %55 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.31, i64 0, i64 0), %56 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), %57 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.33, i64 0, i64 0), %58 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.34, i64 0, i64 0), %59 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.35, i64 0, i64 0), %60 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.36, i64 0, i64 0), %61 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.37, i64 0, i64 0), %62 ], [ getelementptr inbounds ([25 x i8], [25 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 ([21 x i8], [21 x i8]* @.str.41, i64 0, i64 0), %66 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.42, i64 0, i64 0), %67 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.43, i64 0, i64 0), %68 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.44, i64 0, i64 0), %69 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.45, i64 0, i64 0), %70 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.46, i64 0, i64 0), %71 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.47, i64 0, i64 0), %72 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.48, i64 0, i64 0), %73 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.49, i64 0, i64 0), %74 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.50, i64 0, i64 0), %75 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.51, i64 0, i64 0), %76 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.52, i64 0, i64 0), %77 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.53, i64 0, i64 0), %78 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.54, i64 0, i64 0), %79 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.55, i64 0, i64 0), %80 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.56, i64 0, i64 0), %81 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.57, i64 0, i64 0), %82 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.58, i64 0, i64 0), %83 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), %47 ], [ 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), %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), %19 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), %21 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), %23 ], [ %101, %98 ]
%106 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %55 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %56 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %57 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %58 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %59 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %60 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %61 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %62 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %63 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %64 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %65 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %66 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %67 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %68 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %69 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %70 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %71 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %72 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %73 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %74 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %75 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %76 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %77 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %78 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %79 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %80 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %81 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %82 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %83 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %47 ], [ 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), %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), %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), %23 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %98 ]
%107 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.70, i64 0, i64 0), i8* %10, i8* %103, i8* %106, i64 %4, i8* %104, i8* %105)
br label %114
108: ; preds = %7, %44, %42, %45
%109 = phi i8* [ %43, %45 ], [ %43, %42 ], [ %43, %44 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), %7 ]
%110 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.27, i64 0, i64 0), %45 ], [ 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), %44 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %7 ]
%111 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0), %45 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %42 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.24, i64 0, i64 0), %44 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %7 ]
%112 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.70, i64 0, i64 0), i8* %10, i8* %109, i8* %111, i64 %4, i8* %110, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%113 = icmp eq i64 %4, 0
br i1 %113, label %133, label %114
114: ; preds = %108, %95, %102
%115 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.71, i64 0, i64 0))
br label %116
116: ; preds = %114, %124
%117 = phi i64 [ %129, %124 ], [ 0, %114 ]
%118 = and i64 %117, 15
%119 = icmp eq i64 %118, 0
%120 = icmp ne i64 %117, 0
%121 = and i1 %120, %119
br i1 %121, label %122, label %124
122: ; preds = %116
%123 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.72, i64 0, i64 0))
br label %124
124: ; preds = %122, %116
%125 = getelementptr inbounds i8, i8* %3, i64 %117
%126 = load i8, i8* %125
%127 = zext i8 %126 to i32
%128 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.73, i64 0, i64 0), i32 %127)
%129 = add nuw i64 %117, 1
%130 = icmp eq i64 %129, %4
br i1 %130, label %131, label %116
131: ; preds = %124
%132 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.75, i64 0, i64 0))
br label %133
133: ; preds = %17, %86, %131, %108
%134 = tail call i32 @BIO_flush(i32* %8)
ret void
}