#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 SSL2_VERSION 130
#define SSL3_VERSION 129
#define TLS1_VERSION 128
void msg_cb(int write_p, int version, int content_type, const void *buf,
            size_t len, SSL *ssl, void *arg) {
  BIO *bio = arg;
  const char *str_write_p, *str_version, *str_content_type = "",
                                         *str_details1 = "", *str_details2 = "";
  str_write_p = write_p ? ">>>" : "<<<";
  switch (version) {
  case SSL2_VERSION:
    str_version = "SSL 2.0";
    break;
  case SSL3_VERSION:
    str_version = "SSL 3.0 ";
    break;
  case TLS1_VERSION:
    str_version = "TLS 1.0 ";
    break;
  default:
    str_version = "???";
  }
  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) {
    switch (content_type) {
    case 20:
      str_content_type = "ChangeCipherSpec";
      break;
    case 21:
      str_content_type = "Alert";
      break;
    case 22:
      str_content_type = "Handshake";
      break;
    }
    if (content_type == 21) {
      str_details1 = ", ???";
      if (len == 2) {
        switch (((const unsigned char *)buf)[0]) {
        case 1:
          str_details1 = ", warning";
          break;
        case 2:
          str_details1 = ", fatal";
          break;
        }
        str_details2 = " ???";
        switch (((const unsigned char *)buf)[1]) {
        case 0:
          str_details2 = " close_notify";
          break;
        case 10:
          str_details2 = " unexpected_message";
          break;
        case 20:
          str_details2 = " bad_record_mac";
          break;
        case 21:
          str_details2 = " decryption_failed";
          break;
        case 22:
          str_details2 = " record_overflow";
          break;
        case 30:
          str_details2 = " decompression_failure";
          break;
        case 40:
          str_details2 = " handshake_failure";
          break;
        case 42:
          str_details2 = " bad_certificate";
          break;
        case 43:
          str_details2 = " unsupported_certificate";
          break;
        case 44:
          str_details2 = " certificate_revoked";
          break;
        case 45:
          str_details2 = " certificate_expired";
          break;
        case 46:
          str_details2 = " certificate_unknown";
          break;
        case 47:
          str_details2 = " illegal_parameter";
          break;
        case 48:
          str_details2 = " unknown_ca";
          break;
        case 49:
          str_details2 = " access_denied";
          break;
        case 50:
          str_details2 = " decode_error";
          break;
        case 51:
          str_details2 = " decrypt_error";
          break;
        case 60:
          str_details2 = " export_restriction";
          break;
        case 70:
          str_details2 = " protocol_version";
          break;
        case 71:
          str_details2 = " insufficient_security";
          break;
        case 80:
          str_details2 = " internal_error";
          break;
        case 90:
          str_details2 = " user_canceled";
          break;
        case 100:
          str_details2 = " no_renegotiation";
          break;
        }
      }
    }
    if (content_type == 22) {
      str_details1 = "???";
      if (len > 0) {
        switch (((const unsigned char *)buf)[0]) {
        case 0:
          str_details1 = ", HelloRequest";
          break;
        case 1:
          str_details1 = ", ClientHello";
          break;
        case 2:
          str_details1 = ", ServerHello";
          break;
        case 11:
          str_details1 = ", Certificate";
          break;
        case 12:
          str_details1 = ", ServerKeyExchange";
          break;
        case 13:
          str_details1 = ", CertificateRequest";
          break;
        case 14:
          str_details1 = ", ServerHelloDone";
          break;
        case 15:
          str_details1 = ", CertificateVerify";
          break;
        case 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    0x148c(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    %rax,-0x50(%rbp)
mov    %rax,-0x58(%rbp)
mov    -0x4(%rbp),%eax
test   %eax,%eax
lea    0x10b9(%rip),%rcx
lea    0x10b6(%rip),%rax
cmovne %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x74(%rbp)
sub    $0x80,%eax
je     11d6 <msg_cb+0xb6>
jmp    1190 <msg_cb+0x70>
mov    -0x74(%rbp),%eax
sub    $0x81,%eax
je     11c6 <msg_cb+0xa6>
jmp    11a3 <msg_cb+0x83>
mov    -0x74(%rbp),%eax
sub    $0x82,%eax
jne    11e6 <msg_cb+0xc6>
jmp    11b6 <msg_cb+0x96>
lea    0x106f(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    11f1 <msg_cb+0xd1>
lea    0x1067(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    11f1 <msg_cb+0xd1>
lea    0x1060(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    11f1 <msg_cb+0xd1>
lea    0x1178(%rip),%rax
mov    %rax,-0x40(%rbp)
cmpl   $0x82,-0x8(%rbp)
jne    1367 <msg_cb+0x247>
lea    0x1160(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x20(%rbp)
jbe    1362 <msg_cb+0x242>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %rax,-0x80(%rbp)
sub    $0x8,%rax
ja     135d <msg_cb+0x23d>
mov    -0x80(%rbp),%rax
lea    0xdcc(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1002(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0x1115(%rip),%rax
mov    %rax,-0x58(%rbp)
cmpq   $0x3,-0x20(%rbp)
jb     12dd <msg_cb+0x1bd>
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     12d8 <msg_cb+0x1b8>
mov    -0x88(%rbp),%rax
lea    0xd90(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xfab(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    12d8 <msg_cb+0x1b8>
lea    0xfac(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    12d8 <msg_cb+0x1b8>
lea    0xfb2(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    12d8 <msg_cb+0x1b8>
lea    0xfb9(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    12dd <msg_cb+0x1bd>
jmp    135d <msg_cb+0x23d>
lea    0xfc8(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    135d <msg_cb+0x23d>
lea    0xfc7(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    135d <msg_cb+0x23d>
lea    0xfcb(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    135d <msg_cb+0x23d>
lea    0xfcd(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    135d <msg_cb+0x23d>
lea    0xfcc(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    135d <msg_cb+0x23d>
lea    0xfcc(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    135d <msg_cb+0x23d>
lea    0xfce(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    135d <msg_cb+0x23d>
lea    0xfd4(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1362 <msg_cb+0x242>
jmp    1367 <msg_cb+0x247>
cmpl   $0x81,-0x8(%rbp)
je     1381 <msg_cb+0x261>
cmpl   $0x80,-0x8(%rbp)
jne    16fe <msg_cb+0x5de>
mov    -0xc(%rbp),%eax
mov    %eax,-0x8c(%rbp)
sub    $0x14,%eax
je     13c0 <msg_cb+0x2a0>
jmp    1398 <msg_cb+0x278>
mov    -0x8c(%rbp),%eax
sub    $0x15,%eax
je     13d0 <msg_cb+0x2b0>
jmp    13ac <msg_cb+0x28c>
mov    -0x8c(%rbp),%eax
sub    $0x16,%eax
je     13e0 <msg_cb+0x2c0>
jmp    13eb <msg_cb+0x2cb>
lea    0xf7b(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    13eb <msg_cb+0x2cb>
lea    0xf7c(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    13eb <msg_cb+0x2cb>
lea    0xf72(%rip),%rax
mov    %rax,-0x48(%rbp)
cmpl   $0x15,-0xc(%rbp)
jne    1605 <msg_cb+0x4e5>
lea    0xf67(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x2,-0x20(%rbp)
jne    1600 <msg_cb+0x4e0>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %eax,-0x90(%rbp)
sub    $0x1,%eax
je     143a <msg_cb+0x31a>
jmp    1426 <msg_cb+0x306>
mov    -0x90(%rbp),%eax
sub    $0x2,%eax
je     144a <msg_cb+0x32a>
jmp    1455 <msg_cb+0x335>
lea    0xf28(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    1455 <msg_cb+0x335>
lea    0xf22(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xf08(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%eax
mov    %rax,-0x98(%rbp)
sub    $0x64,%rax
ja     15fb <msg_cb+0x4db>
mov    -0x98(%rbp),%rax
lea    0xbb5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xee4(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xee2(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xee6(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xee6(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xee9(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xeea(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xef1(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xef4(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xef5(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xefe(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf03(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf08(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf0d(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf10(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf0c(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf0b(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf09(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf08(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf0c(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf0e(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf15(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf15(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15fb <msg_cb+0x4db>
lea    0xf14(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    1600 <msg_cb+0x4e0>
jmp    1605 <msg_cb+0x4e5>
cmpl   $0x16,-0xc(%rbp)
jne    16f9 <msg_cb+0x5d9>
lea    0xd4f(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x20(%rbp)
jbe    16f4 <msg_cb+0x5d4>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %rax,-0xa0(%rbp)
sub    $0x14,%rax
ja     16ef <msg_cb+0x5cf>
mov    -0xa0(%rbp),%rax
lea    0xb85(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xec2(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    16ef <msg_cb+0x5cf>
lea    0xec1(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    16ef <msg_cb+0x5cf>
lea    0xebf(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    16ef <msg_cb+0x5cf>
lea    0xebd(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    16ef <msg_cb+0x5cf>
lea    0xebb(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    16ef <msg_cb+0x5cf>
lea    0xebf(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    16ef <msg_cb+0x5cf>
lea    0xec4(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    16ef <msg_cb+0x5cf>
lea    0xec6(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    16ef <msg_cb+0x5cf>
lea    0xeca(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    16ef <msg_cb+0x5cf>
lea    0xece(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    16f4 <msg_cb+0x5d4>
jmp    16f9 <msg_cb+0x5d9>
jmp    16fe <msg_cb+0x5de>
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    0xea3(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <BIO_printf@plt>
cmpq   $0x0,-0x20(%rbp)
jbe    17fc <msg_cb+0x6dc>
mov    -0x30(%rbp),%rdi
lea    0xe9a(%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    17ca <msg_cb+0x6aa>
mov    -0x70(%rbp),%rax
and    $0xf,%rax
cmp    $0x0,%rax
jne    179b <msg_cb+0x67b>
cmpq   $0x0,-0x70(%rbp)
jbe    179b <msg_cb+0x67b>
mov    -0x30(%rbp),%rdi
lea    0xe4c(%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    0xe33(%rip),%rsi
mov    $0x0,%al
call   1030 <BIO_printf@plt>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    175e <msg_cb+0x63e>
mov    -0x70(%rbp),%rax
cmp    -0x20(%rbp),%rax
jae    17ea <msg_cb+0x6ca>
mov    -0x30(%rbp),%rdi
lea    0xe08(%rip),%rsi
mov    $0x0,%al
call   1030 <BIO_printf@plt>
mov    -0x30(%rbp),%rdi
lea    0xde9(%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
mov    0x40(%rsp),%r12
test   %edi,%edi
lea    0x10e7(%rip),%rcx
lea    0x10dc(%rip),%rdx
cmove  %rcx,%rdx
cmp    $0x82,%esi
je     1178 <msg_cb+0x58>
cmp    $0x81,%esi
je     11f2 <msg_cb+0xd2>
cmp    $0x80,%esi
jne    11fb <msg_cb+0xdb>
lea    0x10ca(%rip),%rcx
jmp    1211 <msg_cb+0xf1>
test   %r14,%r14
je     12d9 <msg_cb+0x1b9>
movzbl (%r15),%eax
lea    0x1453(%rip),%r8
lea    0x1099(%rip),%rcx
cmp    $0x8,%rax
ja     139b <msg_cb+0x27b>
lea    0xe5c(%rip),%rsi
movslq (%rsi,%rax,4),%rax
add    %rsi,%rax
jmp    *%rax
lea    0x11b0(%rip),%rbx
lea    0x108b(%rip),%r10
cmp    $0x3,%r14
jb     13ed <msg_cb+0x2cd>
movzwl 0x1(%r15),%eax
rol    $0x8,%ax
add    $0xffffffff,%eax
cmp    $0x6,%ax
jae    13ed <msg_cb+0x2cd>
movswq %ax,%rax
lea    0xfd2(%rip),%rsi
movslq (%rsi,%rax,4),%rbx
add    %rsi,%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0x103b(%rip),%rcx
jmp    1211 <msg_cb+0xf1>
and    $0xfffffffe,%esi
lea    0x1160(%rip),%rcx
cmp    $0x80,%esi
jne    12cd <msg_cb+0x1ad>
cmp    $0x16,%eax
je     1237 <msg_cb+0x117>
cmp    $0x15,%eax
je     1261 <msg_cb+0x141>
lea    0x13bd(%rip),%rbx
cmp    $0x14,%eax
jne    12c8 <msg_cb+0x1a8>
lea    0x1110(%rip),%r8
jmp    1310 <msg_cb+0x1f0>
test   %r14,%r14
je     133f <msg_cb+0x21f>
movsbq (%r15),%rax
cmp    $0x14,%rax
ja     1373 <msg_cb+0x253>
lea    0xf7b(%rip),%rsi
movslq (%rsi,%rax,4),%rbp
add    %rsi,%rbp
jmp    137a <msg_cb+0x25a>
cmp    $0x2,%r14
jne    1302 <msg_cb+0x1e2>
mov    (%r15),%al
cmp    $0x2,%al
lea    0x10fc(%rip),%rsi
lea    0x10e5(%rip),%rdi
cmove  %rsi,%rdi
cmp    $0x1,%al
lea    0x10de(%rip),%r10
cmovne %rdi,%r10
movzbl 0x1(%r15),%eax
lea    0x10b8(%rip),%r8
lea    0x10c2(%rip),%rbx
cmp    $0x64,%rax
ja     13ed <msg_cb+0x2cd>
lea    0xd71(%rip),%rsi
movslq (%rsi,%rax,4),%rax
add    %rsi,%rax
jmp    *%rax
lea    0x10b8(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
mov    %rbx,%r8
jmp    1310 <msg_cb+0x1f0>
lea    0x130b(%rip),%rbx
mov    %rbx,%r8
jmp    1310 <msg_cb+0x1f0>
lea    0x12ff(%rip),%r8
lea    0x107e(%rip),%rbp
lea    0x12d6(%rip),%rsi
lea    0xf37(%rip),%rcx
mov    %r12,%rdi
xor    %r9d,%r9d
xor    %eax,%eax
push   %r8
push   %rbp
jmp    1365 <msg_cb+0x245>
lea    0x104a(%rip),%r8
lea    0x1053(%rip),%rbx
lea    0x12c8(%rip),%rbp
lea    0x12a6(%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    1408 <msg_cb+0x2e8>
jmp    147a <msg_cb+0x35a>
lea    0x1299(%rip),%rbp
lea    0x1018(%rip),%rbx
lea    0x1270(%rip),%rsi
lea    0xffe(%rip),%r8
mov    %r12,%rdi
xor    %r9d,%r9d
xor    %eax,%eax
push   %rbp
push   %rbx
call   1030 <BIO_printf@plt>
add    $0x10,%rsp
jmp    147a <msg_cb+0x35a>
lea    0xfeb(%rip),%rbp
lea    0x125e(%rip),%rbx
lea    0x123c(%rip),%rsi
lea    0xfca(%rip),%r8
mov    %r12,%rdi
mov    %r14,%r9
xor    %eax,%eax
push   %rbx
push   %rbp
jmp    13ff <msg_cb+0x2df>
lea    0xfc3(%rip),%r10
jmp    13ea <msg_cb+0x2ca>
lea    0xf06(%rip),%r10
jmp    13ea <msg_cb+0x2ca>
lea    0xf0c(%rip),%r10
jmp    13ea <msg_cb+0x2ca>
lea    0xf17(%rip),%r10
jmp    13ea <msg_cb+0x2ca>
lea    0xf20(%rip),%r10
jmp    13ea <msg_cb+0x2ca>
lea    0xf26(%rip),%r10
jmp    13ea <msg_cb+0x2ca>
lea    0xf2d(%rip),%r10
jmp    13ea <msg_cb+0x2ca>
lea    0xf36(%rip),%r10
jmp    13ea <msg_cb+0x2ca>
lea    0xf43(%rip),%r10
mov    %r8,%rbx
lea    0x11d0(%rip),%rsi
mov    %r12,%rdi
mov    %r14,%r9
xor    %eax,%eax
push   %rbx
push   %r10
call   1030 <BIO_printf@plt>
add    $0x10,%rsp
lea    0x11d2(%rip),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <BIO_printf@plt>
lea    0x11c0(%rip),%r13
lea    0x11be(%rip),%rbx
xor    %ebp,%ebp
jmp    144b <msg_cb+0x32b>
nopl   0x0(%rax,%rax,1)
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     1469 <msg_cb+0x349>
test   %rbp,%rbp
je     1430 <msg_cb+0x310>
mov    %ebp,%eax
and    $0xf,%eax
test   %rax,%rax
jne    1430 <msg_cb+0x310>
mov    %r12,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <BIO_printf@plt>
jmp    1430 <msg_cb+0x310>
lea    0x116e(%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>
lea    0xef2(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xefa(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xefe(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf05(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf0a(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf15(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf1c(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf21(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf2e(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf37(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf40(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf49(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf50(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf50(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf53(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf55(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf58(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf60(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf66(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf81(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf84(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>
lea    0xf59(%rip),%rbx
jmp    13ed <msg_cb+0x2cd>

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

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