#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;

/* Variables and functions */
#define SSL2_VERSION 130
#define SSL3_VERSION 129
#define TLS1_VERSION 128
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void msg_cb(int write_p, int version, int content_type, const void *buf,
            size_t len, SSL *ssl, void *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 (((unsigned char *)buf)[0]) {
      case 0:
        str_details1 = ", ERROR:";
        str_details2 = " ???";
        if (len >= 3) {
          unsigned err =
              (((unsigned char *)buf)[1] << 8) + ((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 (((unsigned char *)buf)[0]) {
        case 1:
          str_details1 = ", warning";
          break;
        case 2:
          str_details1 = ", fatal";
          break;
        }
        str_details2 = " ???";
        switch (((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 (((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;
        }
      }
    }
  }
  fprintf(stderr, "%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;
    fprintf(stderr, "   ");
    num = len;
    for (i = 0; i < num; i++) {
      if (i % 16 == 0 && i > 0)
        fprintf(stderr, "\n   ");
      fprintf(stderr, " %02x", ((unsigned char *)buf)[i]);
    }
    if (i < len)
      fprintf(stderr, " ...");
    fprintf(stderr, "\n");
  }
}


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)
lea    0x14a4(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    %rax,-0x48(%rbp)
mov    %rax,-0x50(%rbp)
mov    -0x4(%rbp),%eax
test   %eax,%eax
lea    0x10d1(%rip),%rcx
lea    0x10ce(%rip),%rax
cmovne %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x6c(%rbp)
sub    $0x80,%eax
je     11be <msg_cb+0xae>
jmp    1178 <msg_cb+0x68>
mov    -0x6c(%rbp),%eax
sub    $0x81,%eax
je     11ae <msg_cb+0x9e>
jmp    118b <msg_cb+0x7b>
mov    -0x6c(%rbp),%eax
sub    $0x82,%eax
jne    11ce <msg_cb+0xbe>
jmp    119e <msg_cb+0x8e>
lea    0x1087(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    11d9 <msg_cb+0xc9>
lea    0x107f(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    11d9 <msg_cb+0xc9>
lea    0x1078(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    11d9 <msg_cb+0xc9>
lea    0x1190(%rip),%rax
mov    %rax,-0x38(%rbp)
cmpl   $0x82,-0x8(%rbp)
jne    1349 <msg_cb+0x239>
lea    0x1178(%rip),%rax
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x20(%rbp)
jbe    1344 <msg_cb+0x234>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %rax,-0x78(%rbp)
sub    $0x8,%rax
ja     133f <msg_cb+0x22f>
mov    -0x78(%rbp),%rax
lea    0xde4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x101a(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    0x112d(%rip),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x3,-0x20(%rbp)
jb     12bf <msg_cb+0x1af>
mov    -0x18(%rbp),%rax
movzwl 0x1(%rax),%eax
shl    $0x10,%eax
bswap  %eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x80(%rbp)
sub    $0x5,%eax
ja     12ba <msg_cb+0x1aa>
mov    -0x80(%rbp),%rax
lea    0xdae(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xfc9(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    12ba <msg_cb+0x1aa>
lea    0xfca(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    12ba <msg_cb+0x1aa>
lea    0xfd0(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    12ba <msg_cb+0x1aa>
lea    0xfd7(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    12bf <msg_cb+0x1af>
jmp    133f <msg_cb+0x22f>
lea    0xfe6(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    133f <msg_cb+0x22f>
lea    0xfe5(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    133f <msg_cb+0x22f>
lea    0xfe9(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    133f <msg_cb+0x22f>
lea    0xfeb(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    133f <msg_cb+0x22f>
lea    0xfea(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    133f <msg_cb+0x22f>
lea    0xfea(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    133f <msg_cb+0x22f>
lea    0xfec(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    133f <msg_cb+0x22f>
lea    0xff2(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    1344 <msg_cb+0x234>
jmp    1349 <msg_cb+0x239>
cmpl   $0x81,-0x8(%rbp)
je     1363 <msg_cb+0x253>
cmpl   $0x80,-0x8(%rbp)
jne    16e0 <msg_cb+0x5d0>
mov    -0xc(%rbp),%eax
mov    %eax,-0x84(%rbp)
sub    $0x14,%eax
je     13a2 <msg_cb+0x292>
jmp    137a <msg_cb+0x26a>
mov    -0x84(%rbp),%eax
sub    $0x15,%eax
je     13b2 <msg_cb+0x2a2>
jmp    138e <msg_cb+0x27e>
mov    -0x84(%rbp),%eax
sub    $0x16,%eax
je     13c2 <msg_cb+0x2b2>
jmp    13cd <msg_cb+0x2bd>
lea    0xf99(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    13cd <msg_cb+0x2bd>
lea    0xf9a(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    13cd <msg_cb+0x2bd>
lea    0xf90(%rip),%rax
mov    %rax,-0x40(%rbp)
cmpl   $0x15,-0xc(%rbp)
jne    15e7 <msg_cb+0x4d7>
lea    0xf85(%rip),%rax
mov    %rax,-0x48(%rbp)
cmpq   $0x2,-0x20(%rbp)
jne    15e2 <msg_cb+0x4d2>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %eax,-0x88(%rbp)
sub    $0x1,%eax
je     141c <msg_cb+0x30c>
jmp    1408 <msg_cb+0x2f8>
mov    -0x88(%rbp),%eax
sub    $0x2,%eax
je     142c <msg_cb+0x31c>
jmp    1437 <msg_cb+0x327>
lea    0xf46(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    1437 <msg_cb+0x327>
lea    0xf40(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    0xf26(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%eax
mov    %rax,-0x90(%rbp)
sub    $0x64,%rax
ja     15dd <msg_cb+0x4cd>
mov    -0x90(%rbp),%rax
lea    0xbd3(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf02(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf00(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf04(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf04(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf07(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf08(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf0f(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf12(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf13(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf1c(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf21(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf26(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf2b(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf2e(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf2a(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf29(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf27(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf26(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf2a(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf2c(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf33(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf33(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15dd <msg_cb+0x4cd>
lea    0xf32(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    15e2 <msg_cb+0x4d2>
jmp    15e7 <msg_cb+0x4d7>
cmpl   $0x16,-0xc(%rbp)
jne    16db <msg_cb+0x5cb>
lea    0xd6d(%rip),%rax
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x20(%rbp)
jbe    16d6 <msg_cb+0x5c6>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %rax,-0x98(%rbp)
sub    $0x14,%rax
ja     16d1 <msg_cb+0x5c1>
mov    -0x98(%rbp),%rax
lea    0xba3(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xee0(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    16d1 <msg_cb+0x5c1>
lea    0xedf(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    16d1 <msg_cb+0x5c1>
lea    0xedd(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    16d1 <msg_cb+0x5c1>
lea    0xedb(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    16d1 <msg_cb+0x5c1>
lea    0xed9(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    16d1 <msg_cb+0x5c1>
lea    0xedd(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    16d1 <msg_cb+0x5c1>
lea    0xee2(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    16d1 <msg_cb+0x5c1>
lea    0xee4(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    16d1 <msg_cb+0x5c1>
lea    0xee8(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    16d1 <msg_cb+0x5c1>
lea    0xeec(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    16d6 <msg_cb+0x5c6>
jmp    16db <msg_cb+0x5cb>
jmp    16e0 <msg_cb+0x5d0>
mov    0x28f9(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x40(%rbp),%r8
mov    -0x20(%rbp),%r9
mov    -0x48(%rbp),%r10
mov    -0x50(%rbp),%rax
lea    0xebc(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <fprintf@plt>
cmpq   $0x0,-0x20(%rbp)
jbe    17fc <msg_cb+0x6ec>
mov    0x28b6(%rip),%rax
mov    (%rax),%edi
lea    0xeae(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x60(%rbp)
movq   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%rax
cmp    -0x60(%rbp),%rax
jae    17c0 <msg_cb+0x6b0>
mov    -0x68(%rbp),%rax
and    $0xf,%rax
cmp    $0x0,%rax
jne    178c <msg_cb+0x67c>
cmpq   $0x0,-0x68(%rbp)
jbe    178c <msg_cb+0x67c>
mov    0x2864(%rip),%rax
mov    (%rax),%edi
lea    0xe5b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x284d(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    -0x68(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
lea    0xe3d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x68(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
jmp    174a <msg_cb+0x63a>
mov    -0x68(%rbp),%rax
cmp    -0x20(%rbp),%rax
jae    17e5 <msg_cb+0x6d5>
mov    0x280b(%rip),%rax
mov    (%rax),%edi
lea    0xe0d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x27f4(%rip),%rax
mov    (%rax),%edi
lea    0xde9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@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,%r15
mov    %rcx,%r14
mov    %edx,%eax
test   %edi,%edi
lea    0x10fc(%rip),%rcx
lea    0x10f1(%rip),%rdx
cmove  %rcx,%rdx
cmp    $0x82,%esi
je     1163 <msg_cb+0x53>
cmp    $0x81,%esi
je     11dd <msg_cb+0xcd>
cmp    $0x80,%esi
jne    11e6 <msg_cb+0xd6>
lea    0x10df(%rip),%rcx
jmp    11fc <msg_cb+0xec>
test   %r15,%r15
je     12c4 <msg_cb+0x1b4>
movzbl (%r14),%eax
lea    0x1468(%rip),%r8
lea    0x10ae(%rip),%rcx
cmp    $0x8,%rax
ja     13a5 <msg_cb+0x295>
lea    0xe71(%rip),%rsi
movslq (%rsi,%rax,4),%rax
add    %rsi,%rax
jmp    *%rax
lea    0x11c5(%rip),%rbx
lea    0x10a0(%rip),%r10
cmp    $0x3,%r15
jb     13f7 <msg_cb+0x2e7>
movzwl 0x1(%r14),%eax
rol    $0x8,%ax
add    $0xffffffff,%eax
cmp    $0x6,%ax
jae    13f7 <msg_cb+0x2e7>
movswq %ax,%rax
lea    0xfe7(%rip),%rsi
movslq (%rsi,%rax,4),%rbx
add    %rsi,%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0x1050(%rip),%rcx
jmp    11fc <msg_cb+0xec>
and    $0xfffffffe,%esi
lea    0x1175(%rip),%rcx
cmp    $0x80,%esi
jne    12b8 <msg_cb+0x1a8>
cmp    $0x16,%eax
je     1222 <msg_cb+0x112>
cmp    $0x15,%eax
je     124c <msg_cb+0x13c>
lea    0x13d2(%rip),%rbx
cmp    $0x14,%eax
jne    12b3 <msg_cb+0x1a3>
lea    0x1125(%rip),%r8
jmp    1301 <msg_cb+0x1f1>
test   %r15,%r15
je     1337 <msg_cb+0x227>
movsbq (%r14),%rax
cmp    $0x14,%rax
ja     1377 <msg_cb+0x267>
lea    0xf90(%rip),%rsi
movslq (%rsi,%rax,4),%rbp
add    %rsi,%rbp
jmp    137e <msg_cb+0x26e>
cmp    $0x2,%r15
jne    12f3 <msg_cb+0x1e3>
mov    (%r14),%al
cmp    $0x2,%al
lea    0x1111(%rip),%rsi
lea    0x10fa(%rip),%rdi
cmove  %rsi,%rdi
cmp    $0x1,%al
lea    0x10f3(%rip),%r10
cmovne %rdi,%r10
movzbl 0x1(%r14),%eax
lea    0x10cd(%rip),%r8
lea    0x10d7(%rip),%rbx
cmp    $0x64,%rax
ja     13f7 <msg_cb+0x2e7>
lea    0xd86(%rip),%rsi
movslq (%rsi,%rax,4),%rax
add    %rsi,%rax
jmp    *%rax
lea    0x10cd(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
mov    %rbx,%r8
jmp    1301 <msg_cb+0x1f1>
lea    0x1320(%rip),%rbx
mov    %rbx,%r8
jmp    1301 <msg_cb+0x1f1>
mov    0x2d15(%rip),%rax
mov    (%rax),%edi
lea    0x130b(%rip),%r8
lea    0x108a(%rip),%rbp
lea    0x12e2(%rip),%rsi
lea    0xf43(%rip),%rcx
xor    %r9d,%r9d
xor    %eax,%eax
push   %r8
push   %rbp
jmp    1363 <msg_cb+0x253>
lea    0x1059(%rip),%r8
lea    0x1062(%rip),%rbx
mov    0x2cd8(%rip),%rax
mov    (%rax),%edi
lea    0x12ce(%rip),%rbp
lea    0x12ac(%rip),%rsi
mov    %r15,%r9
xor    %eax,%eax
push   %rbp
push   %rbx
call   1030 <fprintf@plt>
add    $0x10,%rsp
test   %r15,%r15
jne    1418 <msg_cb+0x308>
add    $0x8,%rsp
jmp    136c <msg_cb+0x25c>
mov    0x2ca2(%rip),%rax
mov    (%rax),%edi
lea    0x1298(%rip),%rbp
lea    0x1017(%rip),%rbx
lea    0x126f(%rip),%rsi
lea    0xffd(%rip),%r8
xor    %r9d,%r9d
xor    %eax,%eax
push   %rbp
push   %rbx
call   1030 <fprintf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xfe7(%rip),%rbp
mov    0x2c5b(%rip),%rax
mov    (%rax),%edi
lea    0x1251(%rip),%rbx
lea    0x122f(%rip),%rsi
lea    0xfbd(%rip),%r8
mov    %r15,%r9
xor    %eax,%eax
push   %rbx
push   %rbp
jmp    140f <msg_cb+0x2ff>
lea    0xfb9(%rip),%r10
jmp    13f4 <msg_cb+0x2e4>
lea    0xefc(%rip),%r10
jmp    13f4 <msg_cb+0x2e4>
lea    0xf02(%rip),%r10
jmp    13f4 <msg_cb+0x2e4>
lea    0xf0d(%rip),%r10
jmp    13f4 <msg_cb+0x2e4>
lea    0xf16(%rip),%r10
jmp    13f4 <msg_cb+0x2e4>
lea    0xf1c(%rip),%r10
jmp    13f4 <msg_cb+0x2e4>
lea    0xf23(%rip),%r10
jmp    13f4 <msg_cb+0x2e4>
lea    0xf2c(%rip),%r10
jmp    13f4 <msg_cb+0x2e4>
lea    0xf39(%rip),%r10
mov    %r8,%rbx
mov    0x2be2(%rip),%rax
mov    (%rax),%edi
lea    0x11bd(%rip),%rsi
mov    %r15,%r9
xor    %eax,%eax
push   %rbx
push   %r10
call   1030 <fprintf@plt>
add    $0x10,%rsp
mov    0x2bc1(%rip),%rbx
mov    (%rbx),%edi
lea    0x11b9(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0x11aa(%rip),%r12
lea    0x11a8(%rip),%r13
xor    %ebp,%ebp
jmp    146a <msg_cb+0x35a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%rbx),%edi
movzbl (%r14,%rbp,1),%edx
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%rbp
cmp    %rbp,%r15
je     1487 <msg_cb+0x377>
test   %rbp,%rbp
je     1450 <msg_cb+0x340>
mov    %ebp,%eax
and    $0xf,%eax
test   %rax,%rax
jne    1450 <msg_cb+0x340>
mov    (%rbx),%edi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
jmp    1450 <msg_cb+0x340>
mov    (%rbx),%edi
lea    0x114e(%rip),%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <fprintf@plt>
lea    0xedd(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xee5(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xee9(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xef0(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xef5(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf00(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf07(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf0c(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf19(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf22(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf2b(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf34(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf3b(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf3b(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf3e(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf40(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf43(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf4b(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf51(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf6c(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf6f(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>
lea    0xf44(%rip),%rbx
jmp    13f7 <msg_cb+0x2e7>

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"
@stderr = global i32 0
@.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 i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i32
%21 = alloca i64
%22 = 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
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %17
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
%23 = load i32, i32* %8
%24 = icmp ne i32 %23, 0
%25 = zext i1 %24 to i64
%26 = select i1 %24, 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* %26, i8** %15
%27 = load i32, i32* %9
switch i32 %27, label %31 [
i32 130, label %28
i32 129, label %29
i32 128, label %30
]
28: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %16
br label %32
29: ; preds = %7
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8** %16
br label %32
30: ; preds = %7
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8** %16
br label %32
31: ; preds = %7
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %16
br label %32
32: ; preds = %31, %30, %29, %28
%33 = load i32, i32* %9
%34 = icmp eq i32 %33, 130
br i1 %34, label %35, label %74
35: ; preds = %32
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %18
%36 = load i64, i64* %12
%37 = icmp ugt i64 %36, 0
br i1 %37, label %38, label %73
38: ; preds = %35
%39 = load i8*, i8** %11
%40 = getelementptr inbounds i8, i8* %39, i64 0
%41 = load i8, i8* %40
%42 = zext i8 %41 to i32
switch i32 %42, label %72 [
i32 0, label %43
i32 1, label %64
i32 2, label %65
i32 3, label %66
i32 4, label %67
i32 5, label %68
i32 6, label %69
i32 7, label %70
i32 8, label %71
]
43: ; preds = %38
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8** %18
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8** %19
%44 = load i64, i64* %12
%45 = icmp uge i64 %44, 3
br i1 %45, label %46, label %63
46: ; preds = %43
%47 = load i8*, i8** %11
%48 = getelementptr inbounds i8, i8* %47, i64 1
%49 = load i8, i8* %48
%50 = zext i8 %49 to i32
%51 = shl i32 %50, 8
%52 = load i8*, i8** %11
%53 = getelementptr inbounds i8, i8* %52, i64 2
%54 = load i8, i8* %53
%55 = zext i8 %54 to i32
%56 = add nsw i32 %51, %55
store i32 %56, i32* %20
%57 = load i32, i32* %20
switch i32 %57, label %62 [
i32 1, label %58
i32 2, label %59
i32 4, label %60
i32 6, label %61
]
58: ; preds = %46
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i8** %19
br label %62
59: ; preds = %46
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i8** %19
br label %62
60: ; preds = %46
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), i8** %19
br label %62
61: ; preds = %46
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i8** %19
br label %62
62: ; preds = %46, %61, %60, %59, %58
br label %63
63: ; preds = %62, %43
br label %72
64: ; preds = %38
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i8** %18
br label %72
65: ; preds = %38
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), i8** %18
br label %72
66: ; preds = %38
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.15, i64 0, i64 0), i8** %18
br label %72
67: ; preds = %38
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i8** %18
br label %72
68: ; preds = %38
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), i8** %18
br label %72
69: ; preds = %38
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8** %18
br label %72
70: ; preds = %38
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0), i8** %18
br label %72
71: ; preds = %38
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i8** %18
br label %72
72: ; preds = %38, %71, %70, %69, %68, %67, %66, %65, %64, %63
br label %73
73: ; preds = %72, %35
br label %74
74: ; preds = %73, %32
%75 = load i32, i32* %9
%76 = icmp eq i32 %75, 129
br i1 %76, label %80, label %77
77: ; preds = %74
%78 = load i32, i32* %9
%79 = icmp eq i32 %78, 128
br i1 %79, label %80, label %152
80: ; preds = %77, %74
%81 = load i32, i32* %10
switch i32 %81, label %85 [
i32 20, label %82
i32 21, label %83
i32 22, label %84
]
82: ; preds = %80
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.21, i64 0, i64 0), i8** %17
br label %85
83: ; preds = %80
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i8** %17
br label %85
84: ; preds = %80
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i8** %17
br label %85
85: ; preds = %80, %84, %83, %82
%86 = load i32, i32* %10
%87 = icmp eq i32 %86, 21
br i1 %87, label %88, label %128
88: ; preds = %85
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), i8** %18
%89 = load i64, i64* %12
%90 = icmp eq i64 %89, 2
br i1 %90, label %91, label %127
91: ; preds = %88
%92 = load i8*, i8** %11
%93 = getelementptr inbounds i8, i8* %92, i64 0
%94 = load i8, i8* %93
%95 = zext i8 %94 to i32
switch i32 %95, label %98 [
i32 1, label %96
i32 2, label %97
]
96: ; preds = %91
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0), i8** %18
br label %98
97: ; preds = %91
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.26, i64 0, i64 0), i8** %18
br label %98
98: ; preds = %91, %97, %96
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8** %19
%99 = load i8*, i8** %11
%100 = getelementptr inbounds i8, i8* %99, i64 1
%101 = load i8, i8* %100
%102 = zext i8 %101 to i32
switch i32 %102, label %126 [
i32 0, label %103
i32 10, label %104
i32 20, label %105
i32 21, label %106
i32 22, label %107
i32 30, label %108
i32 40, label %109
i32 42, label %110
i32 43, label %111
i32 44, label %112
i32 45, label %113
i32 46, label %114
i32 47, label %115
i32 48, label %116
i32 49, label %117
i32 50, label %118
i32 51, label %119
i32 60, label %120
i32 70, label %121
i32 71, label %122
i32 80, label %123
i32 90, label %124
i32 100, label %125
]
103: ; preds = %98
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.27, i64 0, i64 0), i8** %19
br label %126
104: ; preds = %98
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.28, i64 0, i64 0), i8** %19
br label %126
105: ; preds = %98
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.29, i64 0, i64 0), i8** %19
br label %126
106: ; preds = %98
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.30, i64 0, i64 0), i8** %19
br label %126
107: ; preds = %98
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.31, i64 0, i64 0), i8** %19
br label %126
108: ; preds = %98
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.32, i64 0, i64 0), i8** %19
br label %126
109: ; preds = %98
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.33, i64 0, i64 0), i8** %19
br label %126
110: ; preds = %98
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.34, i64 0, i64 0), i8** %19
br label %126
111: ; preds = %98
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.35, i64 0, i64 0), i8** %19
br label %126
112: ; preds = %98
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.36, i64 0, i64 0), i8** %19
br label %126
113: ; preds = %98
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.37, i64 0, i64 0), i8** %19
br label %126
114: ; preds = %98
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.38, i64 0, i64 0), i8** %19
br label %126
115: ; preds = %98
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.39, i64 0, i64 0), i8** %19
br label %126
116: ; preds = %98
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.40, i64 0, i64 0), i8** %19
br label %126
117: ; preds = %98
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.41, i64 0, i64 0), i8** %19
br label %126
118: ; preds = %98
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.42, i64 0, i64 0), i8** %19
br label %126
119: ; preds = %98
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.43, i64 0, i64 0), i8** %19
br label %126
120: ; preds = %98
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.44, i64 0, i64 0), i8** %19
br label %126
121: ; preds = %98
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.45, i64 0, i64 0), i8** %19
br label %126
122: ; preds = %98
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.46, i64 0, i64 0), i8** %19
br label %126
123: ; preds = %98
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.47, i64 0, i64 0), i8** %19
br label %126
124: ; preds = %98
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.48, i64 0, i64 0), i8** %19
br label %126
125: ; preds = %98
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.49, i64 0, i64 0), i8** %19
br label %126
126: ; preds = %98, %125, %124, %123, %122, %121, %120, %119, %118, %117, %116, %115, %114, %113, %112, %111, %110, %109, %108, %107, %106, %105, %104, %103
br label %127
127: ; preds = %126, %88
br label %128
128: ; preds = %127, %85
%129 = load i32, i32* %10
%130 = icmp eq i32 %129, 22
br i1 %130, label %131, label %151
131: ; preds = %128
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %18
%132 = load i64, i64* %12
%133 = icmp ugt i64 %132, 0
br i1 %133, label %134, label %150
134: ; preds = %131
%135 = load i8*, i8** %11
%136 = getelementptr inbounds i8, i8* %135, i64 0
%137 = load i8, i8* %136
%138 = zext i8 %137 to i32
switch i32 %138, label %149 [
i32 0, label %139
i32 1, label %140
i32 2, label %141
i32 11, label %142
i32 12, label %143
i32 13, label %144
i32 14, label %145
i32 15, label %146
i32 16, label %147
i32 20, label %148
]
139: ; preds = %134
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.50, i64 0, i64 0), i8** %18
br label %149
140: ; preds = %134
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.51, i64 0, i64 0), i8** %18
br label %149
141: ; preds = %134
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.52, i64 0, i64 0), i8** %18
br label %149
142: ; preds = %134
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.53, i64 0, i64 0), i8** %18
br label %149
143: ; preds = %134
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.54, i64 0, i64 0), i8** %18
br label %149
144: ; preds = %134
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.55, i64 0, i64 0), i8** %18
br label %149
145: ; preds = %134
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.56, i64 0, i64 0), i8** %18
br label %149
146: ; preds = %134
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.57, i64 0, i64 0), i8** %18
br label %149
147: ; preds = %134
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.58, i64 0, i64 0), i8** %18
br label %149
148: ; preds = %134
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.59, i64 0, i64 0), i8** %18
br label %149
149: ; preds = %134, %148, %147, %146, %145, %144, %143, %142, %141, %140, %139
br label %150
150: ; preds = %149, %131
br label %151
151: ; preds = %150, %128
br label %152
152: ; preds = %151, %77
%153 = load i32, i32* @stderr
%154 = load i8*, i8** %15
%155 = load i8*, i8** %16
%156 = load i8*, i8** %17
%157 = load i64, i64* %12
%158 = load i8*, i8** %18
%159 = load i8*, i8** %19
%160 = call i32 (i32, i8*, ...) @fprintf(i32 %153, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.60, i64 0, i64 0), i8* %154, i8* %155, i8* %156, i64 %157, i8* %158, i8* %159)
%161 = load i64, i64* %12
%162 = icmp ugt i64 %161, 0
br i1 %162, label %163, label %202
163: ; preds = %152
%164 = load i32, i32* @stderr
%165 = call i32 (i32, i8*, ...) @fprintf(i32 %164, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.61, i64 0, i64 0))
%166 = load i64, i64* %12
store i64 %166, i64* %21
store i64 0, i64* %22
br label %167
167: ; preds = %189, %163
%168 = load i64, i64* %22
%169 = load i64, i64* %21
%170 = icmp ult i64 %168, %169
br i1 %170, label %171, label %192
171: ; preds = %167
%172 = load i64, i64* %22
%173 = urem i64 %172, 16
%174 = icmp eq i64 %173, 0
br i1 %174, label %175, label %181
175: ; preds = %171
%176 = load i64, i64* %22
%177 = icmp ugt i64 %176, 0
br i1 %177, label %178, label %181
178: ; preds = %175
%179 = load i32, i32* @stderr
%180 = call i32 (i32, i8*, ...) @fprintf(i32 %179, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.62, i64 0, i64 0))
br label %181
181: ; preds = %178, %175, %171
%182 = load i32, i32* @stderr
%183 = load i8*, i8** %11
%184 = load i64, i64* %22
%185 = getelementptr inbounds i8, i8* %183, i64 %184
%186 = load i8, i8* %185
%187 = zext i8 %186 to i32
%188 = call i32 (i32, i8*, ...) @fprintf(i32 %182, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.63, i64 0, i64 0), i32 %187)
br label %189
189: ; preds = %181
%190 = load i64, i64* %22
%191 = add i64 %190, 1
store i64 %191, i64* %22
br label %167
192: ; preds = %167
%193 = load i64, i64* %22
%194 = load i64, i64* %12
%195 = icmp ult i64 %193, %194
br i1 %195, label %196, label %199
196: ; preds = %192
%197 = load i32, i32* @stderr
%198 = call i32 (i32, i8*, ...) @fprintf(i32 %197, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.64, i64 0, i64 0))
br label %199
199: ; preds = %196, %192
%200 = load i32, i32* @stderr
%201 = call i32 (i32, i8*, ...) @fprintf(i32 %200, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.65, i64 0, i64 0))
br label %202
202: ; preds = %199, %152
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"
@stderr = global i32 0
@.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* nocapture readnone %6) {
%8 = icmp eq i32 %0, 0
%9 = select i1 %8, 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 %11
i32 129, label %42
i32 128, label %10
]
10: ; preds = %7
br label %42
11: ; preds = %7
%12 = icmp eq i64 %4, 0
br i1 %12, label %13, label %16
13: ; preds = %11
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.60, i64 0, i64 0), i8* %9, 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 %135
16: ; preds = %11
%17 = load i8, i8* %3
switch i8 %17, label %98 [
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 %98
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 %94, label %98
31: ; preds = %16
br label %98
32: ; preds = %16
br label %98
33: ; preds = %16
br label %98
34: ; preds = %16
br label %98
35: ; preds = %16
br label %98
36: ; preds = %16
br label %98
37: ; preds = %16
br label %98
38: ; preds = %16
br label %98
39: ; preds = %7
%40 = and i32 %1, -2
%41 = icmp eq i32 %40, 128
br i1 %41, label %42, label %105
42: ; preds = %7, %10, %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), %10 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), %7 ]
switch i32 %2, label %105 [
i32 20, label %44
i32 21, label %45
i32 22, label %78
]
44: ; preds = %42
br label %105
45: ; preds = %42
%46 = icmp eq i64 %4, 2
br i1 %46, label %47, label %105
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 %98 [
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 %98
56: ; preds = %47
br label %98
57: ; preds = %47
br label %98
58: ; preds = %47
br label %98
59: ; preds = %47
br label %98
60: ; preds = %47
br label %98
61: ; preds = %47
br label %98
62: ; preds = %47
br label %98
63: ; preds = %47
br label %98
64: ; preds = %47
br label %98
65: ; preds = %47
br label %98
66: ; preds = %47
br label %98
67: ; preds = %47
br label %98
68: ; preds = %47
br label %98
69: ; preds = %47
br label %98
70: ; preds = %47
br label %98
71: ; preds = %47
br label %98
72: ; preds = %47
br label %98
73: ; preds = %47
br label %98
74: ; preds = %47
br label %98
75: ; preds = %47
br label %98
76: ; preds = %47
br label %98
77: ; preds = %47
br label %98
78: ; preds = %42
%79 = icmp eq i64 %4, 0
br i1 %79, label %80, label %83
80: ; preds = %78
%81 = load i32, i32* @stderr
%82 = tail call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.60, i64 0, i64 0), i8* %9, 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 %135
83: ; preds = %78
%84 = load i8, i8* %3
%85 = icmp ult i8 %84, 21
br i1 %85, label %86, label %90
86: ; preds = %83
%87 = sext i8 %84 to i64
%88 = shl i64 %87, 2
%89 = call i8* @llvm.load.relative.i64(i8* bitcast ([21 x i32]* @reltable.msg_cb.67 to i8*), i64 %88)
br label %90
90: ; preds = %86, %83
%91 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), %83 ], [ %89, %86 ]
%92 = load i32, i32* @stderr
%93 = tail call i32 (i32, i8*, ...) @fprintf(i32 %92, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.60, i64 0, i64 0), i8* %9, i8* %43, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i64 %4, i8* %91, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %112
94: ; preds = %20
%95 = sext i16 %29 to i64
%96 = shl i64 %95, 2
%97 = call i8* @llvm.load.relative.i64(i8* bitcast ([6 x i32]* @reltable.msg_cb to i8*), i64 %96)
br label %98
98: ; preds = %94, %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
%99 = 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), %94 ]
%100 = 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), %94 ]
%101 = 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 ], [ %97, %94 ]
%102 = 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), %94 ]
%103 = load i32, i32* @stderr
%104 = tail call i32 (i32, i8*, ...) @fprintf(i32 %103, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.60, i64 0, i64 0), i8* %9, i8* %99, i8* %102, i64 %4, i8* %100, i8* %101)
br label %112
105: ; preds = %44, %42, %45, %39
%106 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), %39 ], [ %43, %45 ], [ %43, %42 ], [ %43, %44 ]
%107 = 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 ]
%108 = 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 ]
%109 = load i32, i32* @stderr
%110 = tail call i32 (i32, i8*, ...) @fprintf(i32 %109, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.60, i64 0, i64 0), i8* %9, i8* %106, i8* %108, i64 %4, i8* %107, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%111 = icmp eq i64 %4, 0
br i1 %111, label %135, label %112
112: ; preds = %105, %90, %98
%113 = load i32, i32* @stderr
%114 = tail call i32 (i32, i8*, ...) @fprintf(i32 %113, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.61, i64 0, i64 0))
br label %115
115: ; preds = %112, %124
%116 = phi i64 [ %130, %124 ], [ 0, %112 ]
%117 = and i64 %116, 15
%118 = icmp eq i64 %117, 0
%119 = icmp ne i64 %116, 0
%120 = and i1 %119, %118
br i1 %120, label %121, label %124
121: ; preds = %115
%122 = load i32, i32* @stderr
%123 = tail call i32 (i32, i8*, ...) @fprintf(i32 %122, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.62, i64 0, i64 0))
br label %124
124: ; preds = %121, %115
%125 = load i32, i32* @stderr
%126 = getelementptr inbounds i8, i8* %3, i64 %116
%127 = load i8, i8* %126
%128 = zext i8 %127 to i32
%129 = tail call i32 (i32, i8*, ...) @fprintf(i32 %125, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.63, i64 0, i64 0), i32 %128)
%130 = add nuw i64 %116, 1
%131 = icmp eq i64 %130, %4
br i1 %131, label %132, label %115
132: ; preds = %124
%133 = load i32, i32* @stderr
%134 = tail call i32 (i32, i8*, ...) @fprintf(i32 %133, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.65, i64 0, i64 0))
br label %135
135: ; preds = %13, %80, %132, %105
ret void
}