#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*/ sas_tport_addr;

/* Variables and functions */
int /*<<< orphan*/ dStrHex(char const *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char const *, int);
int /*<<< orphan*/ memset(unsigned char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int sg_vpd_dev_id_iter(unsigned char *, int, int *, int, int, int);
int /*<<< orphan*/ stderr;
int decode_dev_ids_quiet(unsigned char *buff, int len, int m_assoc,
                         int m_desig_type, int m_code_set) {
  int m, p_id, c_set, piv, assoc, desig_type, i_len, is_sas;
  int naa, off, u, rtp;
  const unsigned char *ucp;
  const unsigned char *ip;
  unsigned char sas_tport_addr[8];
  rtp = 0;
  memset(sas_tport_addr, 0, sizeof(sas_tport_addr));
  off = -1;
  while ((u = sg_vpd_dev_id_iter(buff, len, &off, m_assoc, m_desig_type,
                                 m_code_set)) == 0) {
    ucp = buff + off;
    i_len = ucp[3];
    if ((off + i_len + 4) > len) {
      fprintf(stderr,
              "    VPD page error: designator length longer "
              "than\n     remaining response length=%d\n",
              (len - off));
      return 97;
    }
    ip = ucp + 4;
    p_id = ((ucp[0] >> 4) & 0xf);
    c_set = (ucp[0] & 0xf);
    piv = ((ucp[1] & 0x80) ? 1 : 0);
    is_sas = (piv && (6 == p_id)) ? 1 : 0;
    assoc = ((ucp[1] >> 4) & 0x3);
    desig_type = (ucp[1] & 0xf);
    switch (desig_type) {
    case 0:
      break;
    case 1:
      break;
    case 2:
      if ((8 != i_len) && (12 != i_len) && (16 != i_len))
        fprintf(stderr,
                "      << expect 8, 12 and 16 byte "
                "EUI, got %d>>\n",
                i_len);
      printf("0x");
      for (m = 0; m < i_len; ++m)
        printf("%02x", (unsigned int)ip[m]);
      printf("\n");
      break;
    case 3:
      if (1 != c_set) {
        fprintf(stderr,
                "      << unexpected code set %d for "
                "NAA>>\n",
                c_set);
        dStrHex((const char *)ip, i_len, 0);
        break;
      }
      naa = (ip[0] >> 4) & 0xff;
      if (!((2 == naa) || (5 == naa) || (6 == naa))) {
        fprintf(stderr, "      << unexpected NAA [0x%x]>>\n", naa);
        dStrHex((const char *)ip, i_len, 0);
        break;
      }
      if (2 == naa) {
        if (8 != i_len) {
          fprintf(stderr,
                  "      << unexpected NAA 2 identifier "
                  "length: 0x%x>>\n",
                  i_len);
          dStrHex((const char *)ip, i_len, 0);
          break;
        }
        printf("0x");
        for (m = 0; m < 8; ++m)
          printf("%02x", (unsigned int)ip[m]);
        printf("\n");
      } else if (5 == naa) {
        if (8 != i_len) {
          fprintf(stderr,
                  "      << unexpected NAA 5 identifier "
                  "length: 0x%x>>\n",
                  i_len);
          dStrHex((const char *)ip, i_len, 0);
          break;
        }
        if ((0 == is_sas) || (1 != assoc)) {
          printf("0x");
          for (m = 0; m < 8; ++m)
            printf("%02x", (unsigned int)ip[m]);
          printf("\n");
        } else if (rtp) {
          printf("0x");
          for (m = 0; m < 8; ++m)
            printf("%02x", (unsigned int)ip[m]);
          printf(",0x%x\n", rtp);
          rtp = 0;
        } else {
          if (sas_tport_addr[0]) {
            printf("0x");
            for (m = 0; m < 8; ++m)
              printf("%02x", (unsigned int)sas_tport_addr[m]);
            printf("\n");
          }
          memcpy(sas_tport_addr, ip, sizeof(sas_tport_addr));
        }
      } else if (6 == naa) {
        if (16 != i_len) {
          fprintf(stderr,
                  "      << unexpected NAA 6 identifier "
                  "length: 0x%x>>\n",
                  i_len);
          dStrHex((const char *)ip, i_len, 0);
          break;
        }
        printf("0x");
        for (m = 0; m < 16; ++m)
          printf("%02x", (unsigned int)ip[m]);
        printf("\n");
      }
      break;
    case 4:
      if ((0 == is_sas) || (1 != c_set) || (1 != assoc) || (4 != i_len))
        break;
      rtp = ((ip[2] << 8) | ip[3]);
      if (sas_tport_addr[0]) {
        printf("0x");
        for (m = 0; m < 8; ++m)
          printf("%02x", (unsigned int)sas_tport_addr[m]);
        printf(",0x%x\n", rtp);
        memset(sas_tport_addr, 0, sizeof(sas_tport_addr));
        rtp = 0;
      }
      break;
    case 5:
      break;
    case 6:
      break;
    case 7:
      break;
    case 8:
      if (3 != c_set) {
        fprintf(stderr, "      << expected UTF-8 code_set>>\n");
        dStrHex((const char *)ip, i_len, 0);
        break;
      }
      printf("%s\n", (const char *)ip);
      break;
    default:
      break;
    }
  }
  if (sas_tport_addr[0]) {
    printf("0x");
    for (m = 0; m < 8; ++m)
      printf("%02x", (unsigned int)sas_tport_addr[m]);
    printf("\n");
  }
  if (-2 == u) {
    fprintf(stderr,
            "VPD page error: short designator near "
            "offset %d\n",
            off);
    return 97;
  }
  return 0;
}


x86 assembly (clang, -O0):
<decode_dev_ids_quiet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
movl   $0x0,-0x50(%rbp)
lea    -0x68(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1050 <memset@plt>
movl   $0xffffffff,-0x48(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
mov    -0x20(%rbp),%r9d
lea    -0x48(%rbp),%rdx
call   1080 <sg_vpd_dev_id_iter@plt>
mov    %eax,-0x4c(%rbp)
cmp    $0x0,%eax
jne    183f <decode_dev_ids_quiet+0x6df>
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
movzbl 0x3(%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x48(%rbp),%eax
add    -0x3c(%rbp),%eax
add    $0x4,%eax
cmp    -0x14(%rbp),%eax
jle    1216 <decode_dev_ids_quiet+0xb6>
mov    0x2dec(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
sub    -0x48(%rbp),%edx
lea    0xe21(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x61,-0x4(%rbp)
jmp    18d6 <decode_dev_ids_quiet+0x776>
mov    -0x58(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x60(%rbp)
mov    -0x58(%rbp),%rax
movzbl (%rax),%eax
sar    $0x4,%eax
and    $0xf,%eax
mov    %eax,-0x28(%rbp)
mov    -0x58(%rbp),%rax
movzbl (%rax),%eax
and    $0xf,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x58(%rbp),%rax
movzbl 0x1(%rax),%edx
and    $0x80,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %eax,-0x30(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x30(%rbp)
mov    %al,-0x69(%rbp)
je     127a <decode_dev_ids_quiet+0x11a>
mov    $0x6,%eax
cmp    -0x28(%rbp),%eax
sete   %al
mov    %al,-0x69(%rbp)
mov    -0x69(%rbp),%al
movzbl %al,%eax
and    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0x58(%rbp),%rax
movzbl 0x1(%rax),%eax
shr    $0x4,%eax
and    $0x3,%eax
mov    %eax,-0x34(%rbp)
mov    -0x58(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0xf,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    %rax,-0x78(%rbp)
sub    $0x8,%rax
ja     1835 <decode_dev_ids_quiet+0x6d5>
mov    -0x78(%rbp),%rax
lea    0xd3f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    183a <decode_dev_ids_quiet+0x6da>
jmp    183a <decode_dev_ids_quiet+0x6da>
mov    $0x8,%eax
cmp    -0x3c(%rbp),%eax
je     1318 <decode_dev_ids_quiet+0x1b8>
mov    $0xc,%eax
cmp    -0x3c(%rbp),%eax
je     1318 <decode_dev_ids_quiet+0x1b8>
mov    $0x10,%eax
cmp    -0x3c(%rbp),%eax
je     1318 <decode_dev_ids_quiet+0x1b8>
mov    0x2cdb(%rip),%rax
mov    (%rax),%edi
mov    -0x3c(%rbp),%edx
lea    0xd68(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    1361 <decode_dev_ids_quiet+0x201>
mov    -0x60(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    132d <decode_dev_ids_quiet+0x1cd>
lea    0xd73(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    183a <decode_dev_ids_quiet+0x6da>
mov    $0x1,%eax
cmp    -0x2c(%rbp),%eax
je     13af <decode_dev_ids_quiet+0x24f>
mov    0x2c57(%rip),%rax
mov    (%rax),%edi
mov    -0x2c(%rbp),%edx
lea    0xd1d(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x3c(%rbp),%esi
xor    %edx,%edx
call   1030 <dStrHex@plt>
jmp    183a <decode_dev_ids_quiet+0x6da>
mov    -0x60(%rbp),%rax
movzbl (%rax),%eax
sar    $0x4,%eax
and    $0xff,%eax
mov    %eax,-0x44(%rbp)
mov    $0x2,%eax
cmp    -0x44(%rbp),%eax
je     1418 <decode_dev_ids_quiet+0x2b8>
mov    $0x5,%eax
cmp    -0x44(%rbp),%eax
je     1418 <decode_dev_ids_quiet+0x2b8>
mov    $0x6,%eax
cmp    -0x44(%rbp),%eax
je     1418 <decode_dev_ids_quiet+0x2b8>
mov    0x2bee(%rip),%rax
mov    (%rax),%edi
mov    -0x44(%rbp),%edx
lea    0xcdf(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x3c(%rbp),%esi
xor    %edx,%edx
call   1030 <dStrHex@plt>
jmp    183a <decode_dev_ids_quiet+0x6da>
mov    $0x2,%eax
cmp    -0x44(%rbp),%eax
jne    14bb <decode_dev_ids_quiet+0x35b>
mov    $0x8,%eax
cmp    -0x3c(%rbp),%eax
je     1461 <decode_dev_ids_quiet+0x301>
mov    0x2ba5(%rip),%rax
mov    (%rax),%edi
mov    -0x3c(%rbp),%edx
lea    0xcb8(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x3c(%rbp),%esi
xor    %edx,%edx
call   1030 <dStrHex@plt>
jmp    183a <decode_dev_ids_quiet+0x6da>
lea    0xc42(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    14a8 <decode_dev_ids_quiet+0x348>
mov    -0x60(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xc1a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1476 <decode_dev_ids_quiet+0x316>
lea    0xc2c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1705 <decode_dev_ids_quiet+0x5a5>
mov    $0x5,%eax
cmp    -0x44(%rbp),%eax
jne    165d <decode_dev_ids_quiet+0x4fd>
mov    $0x8,%eax
cmp    -0x3c(%rbp),%eax
je     1504 <decode_dev_ids_quiet+0x3a4>
mov    0x2b02(%rip),%rax
mov    (%rax),%edi
mov    -0x3c(%rbp),%edx
lea    0xc4a(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x3c(%rbp),%esi
xor    %edx,%edx
call   1030 <dStrHex@plt>
jmp    183a <decode_dev_ids_quiet+0x6da>
xor    %eax,%eax
cmp    -0x40(%rbp),%eax
je     151d <decode_dev_ids_quiet+0x3bd>
mov    $0x1,%eax
cmp    -0x34(%rbp),%eax
je     1577 <decode_dev_ids_quiet+0x417>
lea    0xb86(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    1564 <decode_dev_ids_quiet+0x404>
mov    -0x60(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xb5e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1532 <decode_dev_ids_quiet+0x3d2>
lea    0xb70(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1658 <decode_dev_ids_quiet+0x4f8>
cmpl   $0x0,-0x50(%rbp)
je     15e5 <decode_dev_ids_quiet+0x485>
lea    0xb22(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    15c8 <decode_dev_ids_quiet+0x468>
mov    -0x60(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xafa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1596 <decode_dev_ids_quiet+0x436>
mov    -0x50(%rbp),%esi
lea    0xb97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x50(%rbp)
jmp    1653 <decode_dev_ids_quiet+0x4f3>
cmpb   $0x0,-0x68(%rbp)
je     1641 <decode_dev_ids_quiet+0x4e1>
lea    0xab4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    1633 <decode_dev_ids_quiet+0x4d3>
movslq -0x24(%rbp),%rax
movzbl -0x68(%rbp,%rax,1),%esi
lea    0xa8f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1604 <decode_dev_ids_quiet+0x4a4>
lea    0xaa1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x68(%rbp),%rdi
mov    -0x60(%rbp),%rsi
mov    $0x8,%edx
call   1070 <memcpy@plt>
jmp    1658 <decode_dev_ids_quiet+0x4f8>
jmp    1700 <decode_dev_ids_quiet+0x5a0>
mov    $0x6,%eax
cmp    -0x44(%rbp),%eax
jne    16fb <decode_dev_ids_quiet+0x59b>
mov    $0x10,%eax
cmp    -0x3c(%rbp),%eax
je     16a6 <decode_dev_ids_quiet+0x546>
mov    0x2960(%rip),%rax
mov    (%rax),%edi
mov    -0x3c(%rbp),%edx
lea    0xae4(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x3c(%rbp),%esi
xor    %edx,%edx
call   1030 <dStrHex@plt>
jmp    183a <decode_dev_ids_quiet+0x6da>
lea    0x9fd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    16ed <decode_dev_ids_quiet+0x58d>
mov    -0x60(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0x9d5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    16bb <decode_dev_ids_quiet+0x55b>
lea    0x9e7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1700 <decode_dev_ids_quiet+0x5a0>
jmp    1705 <decode_dev_ids_quiet+0x5a5>
jmp    183a <decode_dev_ids_quiet+0x6da>
xor    %eax,%eax
cmp    -0x40(%rbp),%eax
je     173f <decode_dev_ids_quiet+0x5df>
mov    $0x1,%eax
cmp    -0x2c(%rbp),%eax
jne    173f <decode_dev_ids_quiet+0x5df>
mov    $0x1,%eax
cmp    -0x34(%rbp),%eax
jne    173f <decode_dev_ids_quiet+0x5df>
mov    $0x4,%eax
cmp    -0x3c(%rbp),%eax
je     1744 <decode_dev_ids_quiet+0x5e4>
jmp    183a <decode_dev_ids_quiet+0x6da>
mov    -0x60(%rbp),%rax
movzbl 0x2(%rax),%eax
shl    $0x8,%eax
mov    -0x60(%rbp),%rcx
movzbl 0x3(%rcx),%ecx
or     %ecx,%eax
mov    %eax,-0x50(%rbp)
cmpb   $0x0,-0x68(%rbp)
je     17d2 <decode_dev_ids_quiet+0x672>
lea    0x93d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    17aa <decode_dev_ids_quiet+0x64a>
movslq -0x24(%rbp),%rax
movzbl -0x68(%rbp,%rax,1),%esi
lea    0x918(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    177b <decode_dev_ids_quiet+0x61b>
mov    -0x50(%rbp),%esi
lea    0x9b5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x68(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1050 <memset@plt>
movl   $0x0,-0x50(%rbp)
jmp    183a <decode_dev_ids_quiet+0x6da>
jmp    183a <decode_dev_ids_quiet+0x6da>
jmp    183a <decode_dev_ids_quiet+0x6da>
jmp    183a <decode_dev_ids_quiet+0x6da>
mov    $0x3,%eax
cmp    -0x2c(%rbp),%eax
je     181e <decode_dev_ids_quiet+0x6be>
mov    0x27e5(%rip),%rax
mov    (%rax),%edi
lea    0x9a1(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x3c(%rbp),%esi
xor    %edx,%edx
call   1030 <dStrHex@plt>
jmp    183a <decode_dev_ids_quiet+0x6da>
mov    -0x60(%rbp),%rsi
lea    0x9a0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    183a <decode_dev_ids_quiet+0x6da>
jmp    183a <decode_dev_ids_quiet+0x6da>
jmp    119a <decode_dev_ids_quiet+0x3a>
cmpb   $0x0,-0x68(%rbp)
je     189b <decode_dev_ids_quiet+0x73b>
lea    0x85a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    188d <decode_dev_ids_quiet+0x72d>
movslq -0x24(%rbp),%rax
movzbl -0x68(%rbp,%rax,1),%esi
lea    0x835(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    185e <decode_dev_ids_quiet+0x6fe>
lea    0x847(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xfffffffe,%eax
cmp    -0x4c(%rbp),%eax
jne    18cf <decode_dev_ids_quiet+0x76f>
mov    0x2730(%rip),%rax
mov    (%rax),%edi
mov    -0x48(%rbp),%edx
lea    0x911(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x61,-0x4(%rbp)
jmp    18d6 <decode_dev_ids_quiet+0x776>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<decode_dev_ids_quiet>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r8d,%r15d
mov    %ecx,%ebx
mov    %edx,%ebp
mov    %esi,%r13d
mov    %rdi,%r12
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1070 <memset@plt>
movl   $0xffffffff,0xc(%rsp)
ff
lea    0xc(%rsp),%rdx
mov    %r12,%rdi
mov    %r13d,%esi
mov    %ebp,%ecx
mov    %ebx,%r8d
mov    %r15d,%r9d
call   10a0 <sg_vpd_dev_id_iter@plt>
mov    %eax,%r14d
test   %eax,%eax
je     129a <decode_dev_ids_quiet+0x11a>
cmpb   $0x0,(%rsp)
je     1275 <decode_dev_ids_quiet+0xf5>
lea    0xebc(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl (%rsp),%esi
lea    0xead(%rip),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x1(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x2(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x3(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x4(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x5(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x6(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x7(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
cmp    $0xfffffffe,%r14d
jne    1947 <decode_dev_ids_quiet+0x7c7>
mov    0x2d58(%rip),%rax
mov    (%rax),%edi
mov    0xc(%rsp),%edx
lea    0xf2c(%rip),%rsi
jmp    193b <decode_dev_ids_quiet+0x7bb>
movl   $0x0,0x8(%rsp)
mov    %ebx,0x1c(%rsp)
mov    %r15d,0x18(%rsp)
mov    %r12,0x20(%rsp)
mov    %r13d,0x10(%rsp)
mov    %ebp,0x14(%rsp)
jmp    12f9 <decode_dev_ids_quiet+0x179>
mov    %r14,%rdi
call   1040 <puts@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbp,%rdi
mov    %r13d,%esi
lea    0xc(%rsp),%rdx
mov    %rbp,%r12
mov    0x14(%rsp),%ecx
mov    0x1c(%rsp),%r8d
mov    0x18(%rsp),%r9d
call   10a0 <sg_vpd_dev_id_iter@plt>
test   %eax,%eax
jne    1956 <decode_dev_ids_quiet+0x7d6>
movslq 0xc(%rsp),%r14
movzbl 0x3(%r12,%r14,1),%r15d
lea    (%r14,%r15,1),%eax
add    $0x4,%eax
cmp    %r13d,%eax
jg     1925 <decode_dev_ids_quiet+0x7a5>
mov    %r12,%rbp
add    %r12,%r14
movzbl (%r14),%edx
movzbl 0x1(%r14),%eax
mov    %edx,%ecx
and    $0xfffffff0,%ecx
cmp    $0x60,%ecx
sete   %bl
mov    %eax,%esi
and    $0xf,%esi
add    $0xfffffffe,%esi
cmp    $0x6,%esi
ja     12d0 <decode_dev_ids_quiet+0x150>
add    $0x4,%r14
and    $0xf,%edx
mov    %eax,%ecx
shr    $0x7,%cl
and    %bl,%cl
shr    $0x4,%eax
and    $0x3,%eax
lea    0xcaa(%rip),%rdi
movslq (%rdi,%rsi,4),%rsi
add    %rdi,%rsi
jmp    *%rsi
mov    %r15d,%r12d
cmp    $0x10,%r15b
ja     154d <decode_dev_ids_quiet+0x3cd>
mov    $0x11100,%eax
bt     %r12,%rax
jae    154d <decode_dev_ids_quiet+0x3cd>
lea    0xd20(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd15(%rip),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl (%r14,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r12
jne    13a0 <decode_dev_ids_quiet+0x220>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%rsp),%r13d
mov    0x20(%rsp),%rbp
jmp    12d0 <decode_dev_ids_quiet+0x150>
cmp    $0x1,%edx
jne    1524 <decode_dev_ids_quiet+0x3a4>
movzbl (%r14),%esi
mov    %esi,%edx
shr    $0x4,%edx
and    $0xb0,%sil
cmp    $0x20,%sil
je     158a <decode_dev_ids_quiet+0x40a>
cmp    $0x5,%dl
je     158a <decode_dev_ids_quiet+0x40a>
mov    0x2bdf(%rip),%rax
mov    (%rax),%edi
lea    0xccb(%rip),%rsi
jmp    1534 <decode_dev_ids_quiet+0x3b4>
test   %cl,%cl
je     12d0 <decode_dev_ids_quiet+0x150>
cmp    $0x1,%edx
jne    12d0 <decode_dev_ids_quiet+0x150>
cmp    $0x1,%eax
jne    12d0 <decode_dev_ids_quiet+0x150>
cmp    $0x4,%r15b
jne    12d0 <decode_dev_ids_quiet+0x150>
movzwl 0x2(%r14),%r15d
shl    $0x10,%r15d
bswap  %r15d
cmpb   $0x0,(%rsp)
je     1638 <decode_dev_ids_quiet+0x4b8>
lea    0xc52(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl (%rsp),%esi
lea    0xc43(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x1(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x2(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x3(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x5(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x6(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x7(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xc85(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1070 <memset@plt>
movl   $0x0,0x8(%rsp)
jmp    12d0 <decode_dev_ids_quiet+0x150>
cmp    $0x3,%edx
je     12bb <decode_dev_ids_quiet+0x13b>
mov    0x2ace(%rip),%rax
mov    (%rax),%edi
lea    0xc82(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    153b <decode_dev_ids_quiet+0x3bb>
mov    0x2ab5(%rip),%rax
mov    (%rax),%edi
lea    0xb76(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
xor    %edx,%edx
call   1050 <dStrHex@plt>
jmp    12d0 <decode_dev_ids_quiet+0x150>
mov    0x2a8c(%rip),%rax
mov    (%rax),%edi
lea    0xb14(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xb34(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
test   %r15d,%r15d
lea    0xb26(%rip),%rbx
jne    1390 <decode_dev_ids_quiet+0x210>
jmp    13b8 <decode_dev_ids_quiet+0x238>
cmp    $0x2,%dl
jne    1642 <decode_dev_ids_quiet+0x4c2>
cmp    $0x8,%r15b
jne    1731 <decode_dev_ids_quiet+0x5b1>
lea    0xafe(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl (%r14),%esi
lea    0xaef(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x1(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x2(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x3(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x4(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x5(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x6(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x7(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    12d0 <decode_dev_ids_quiet+0x150>
mov    %r15d,0x8(%rsp)
jmp    12d0 <decode_dev_ids_quiet+0x150>
cmp    $0x5,%dl
jne    1746 <decode_dev_ids_quiet+0x5c6>
cmp    $0x8,%r15b
jne    1858 <decode_dev_ids_quiet+0x6d8>
test   %cl,%cl
je     159d <decode_dev_ids_quiet+0x41d>
cmp    $0x1,%eax
jne    159d <decode_dev_ids_quiet+0x41d>
mov    0x8(%rsp),%r12d
test   %r12d,%r12d
lea    0xa30(%rip),%rbx
jne    1882 <decode_dev_ids_quiet+0x702>
cmpb   $0x0,(%rsp)
je     1714 <decode_dev_ids_quiet+0x594>
lea    0xa16(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl (%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x1(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x2(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x3(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x5(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x6(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x7(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rsp,%rdi
mov    %r14,%rsi
mov    $0x8,%edx
call   1090 <memcpy@plt>
movl   $0x0,0x8(%rsp)
jmp    12d0 <decode_dev_ids_quiet+0x150>
mov    0x28a8(%rip),%rax
mov    (%rax),%edi
lea    0x9b6(%rip),%rsi
jmp    187a <decode_dev_ids_quiet+0x6fa>
cmp    $0x6,%dl
jne    12d0 <decode_dev_ids_quiet+0x150>
cmp    $0x10,%r15b
jne    186a <decode_dev_ids_quiet+0x6ea>
lea    0x942(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl (%r14),%esi
lea    0x933(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x1(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x2(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x3(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x4(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x5(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x6(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x7(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x8(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x9(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0xa(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0xb(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0xc(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0xd(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0xe(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0xf(%r14),%esi
jmp    161f <decode_dev_ids_quiet+0x49f>
mov    0x2781(%rip),%rax
mov    (%rax),%edi
lea    0x8c4(%rip),%rsi
jmp    187a <decode_dev_ids_quiet+0x6fa>
mov    0x276f(%rip),%rax
mov    (%rax),%edi
lea    0x8ee(%rip),%rsi
mov    %r15d,%edx
jmp    1534 <decode_dev_ids_quiet+0x3b4>
lea    0x819(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl (%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x1(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x2(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x3(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x4(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x5(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x6(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x7(%r14),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x853(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movl   $0x0,0x8(%rsp)
jmp    12d0 <decode_dev_ids_quiet+0x150>
mov    0x26b4(%rip),%rax
mov    (%rax),%edi
sub    %r14d,%r13d
lea    0x6e4(%rip),%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x61,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %eax,%r14d
cmpb   $0x0,(%rsp)
jne    11df <decode_dev_ids_quiet+0x5f>
jmp    1275 <decode_dev_ids_quiet+0xf5>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [85 x i8] c" VPD page error: designator length longer than\0A remaining response length=%d\0A\00"
@.str.1 = [49 x i8] c" << expect 8, 12 and 16 byte EUI, got %d>>\0A\00"
@.str.2 = [3 x i8] c"0x\00"
@.str.3 = [5 x i8] c"%02x\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [43 x i8] c" << unexpected code set %d for NAA>>\0A\00"
@.str.6 = [34 x i8] c" << unexpected NAA [0x%x]>>\0A\00"
@.str.7 = [53 x i8] c" << unexpected NAA 2 identifier length: 0x%x>>\0A\00"
@.str.8 = [53 x i8] c" << unexpected NAA 5 identifier length: 0x%x>>\0A\00"
@.str.9 = [7 x i8] c",0x%x\0A\00"
@.str.10 = [53 x i8] c" << unexpected NAA 6 identifier length: 0x%x>>\0A\00"
@.str.11 = [36 x i8] c" << expected UTF-8 code_set>>\0A\00"
@.str.12 = [4 x i8] c"%s\0A\00"
@.str.13 = [49 x i8] c"VPD page error: short designator near offset %d\0A\00"
define i32 @decode_dev_ids_quiet(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i8*
%25 = alloca i8*
%26 = alloca [8 x i8]
store i8* %0, i8** %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 0, i32* %23
%27 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 0
%28 = call i32 @memset(i8* %27, i32 0, i32 8)
store i32 -1, i32* %21
br label %29
29: ; preds = %382, %5
%30 = load i8*, i8** %7
%31 = load i32, i32* %8
%32 = load i32, i32* %9
%33 = load i32, i32* %10
%34 = load i32, i32* %11
%35 = call i32 @sg_vpd_dev_id_iter(i8* %30, i32 %31, i32* %21, i32 %32, i32 %33, i32 %34)
store i32 %35, i32* %22
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %383
37: ; preds = %29
%38 = load i8*, i8** %7
%39 = load i32, i32* %21
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, i8* %38, i64 %40
store i8* %41, i8** %24
%42 = load i8*, i8** %24
%43 = getelementptr inbounds i8, i8* %42, i64 3
%44 = load i8, i8* %43
%45 = zext i8 %44 to i32
store i32 %45, i32* %18
%46 = load i32, i32* %21
%47 = load i32, i32* %18
%48 = add nsw i32 %46, %47
%49 = add nsw i32 %48, 4
%50 = load i32, i32* %8
%51 = icmp sgt i32 %49, %50
br i1 %51, label %52, label %58
52: ; preds = %37
%53 = load i32, i32* @stderr
%54 = load i32, i32* %8
%55 = load i32, i32* %21
%56 = sub nsw i32 %54, %55
%57 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str, i64 0, i64 0), i32 %56)
store i32 97, i32* %6
br label %412
58: ; preds = %37
%59 = load i8*, i8** %24
%60 = getelementptr inbounds i8, i8* %59, i64 4
store i8* %60, i8** %25
%61 = load i8*, i8** %24
%62 = getelementptr inbounds i8, i8* %61, i64 0
%63 = load i8, i8* %62
%64 = zext i8 %63 to i32
%65 = ashr i32 %64, 4
%66 = and i32 %65, 15
store i32 %66, i32* %13
%67 = load i8*, i8** %24
%68 = getelementptr inbounds i8, i8* %67, i64 0
%69 = load i8, i8* %68
%70 = zext i8 %69 to i32
%71 = and i32 %70, 15
store i32 %71, i32* %14
%72 = load i8*, i8** %24
%73 = getelementptr inbounds i8, i8* %72, i64 1
%74 = load i8, i8* %73
%75 = zext i8 %74 to i32
%76 = and i32 %75, 128
%77 = icmp ne i32 %76, 0
%78 = zext i1 %77 to i64
%79 = select i1 %77, i32 1, i32 0
store i32 %79, i32* %15
%80 = load i32, i32* %15
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %85
82: ; preds = %58
%83 = load i32, i32* %13
%84 = icmp eq i32 6, %83
br label %85
85: ; preds = %82, %58
%86 = phi i1 [ false, %58 ], [ %84, %82 ]
%87 = zext i1 %86 to i64
%88 = select i1 %86, i32 1, i32 0
store i32 %88, i32* %19
%89 = load i8*, i8** %24
%90 = getelementptr inbounds i8, i8* %89, i64 1
%91 = load i8, i8* %90
%92 = zext i8 %91 to i32
%93 = ashr i32 %92, 4
%94 = and i32 %93, 3
store i32 %94, i32* %16
%95 = load i8*, i8** %24
%96 = getelementptr inbounds i8, i8* %95, i64 1
%97 = load i8, i8* %96
%98 = zext i8 %97 to i32
%99 = and i32 %98, 15
store i32 %99, i32* %17
%100 = load i32, i32* %17
switch i32 %100, label %381 [
i32 0, label %101
i32 1, label %102
i32 2, label %103
i32 3, label %135
i32 4, label %318
i32 5, label %366
i32 6, label %367
i32 7, label %368
i32 8, label %369
]
101: ; preds = %85
br label %382
102: ; preds = %85
br label %382
103: ; preds = %85
%104 = load i32, i32* %18
%105 = icmp ne i32 8, %104
br i1 %105, label %106, label %116
106: ; preds = %103
%107 = load i32, i32* %18
%108 = icmp ne i32 12, %107
br i1 %108, label %109, label %116
109: ; preds = %106
%110 = load i32, i32* %18
%111 = icmp ne i32 16, %110
br i1 %111, label %112, label %116
112: ; preds = %109
%113 = load i32, i32* @stderr
%114 = load i32, i32* %18
%115 = call i32 (i32, i8*, ...) @fprintf(i32 %113, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0), i32 %114)
br label %116
116: ; preds = %112, %109, %106, %103
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %12
br label %118
118: ; preds = %130, %116
%119 = load i32, i32* %12
%120 = load i32, i32* %18
%121 = icmp slt i32 %119, %120
br i1 %121, label %122, label %133
122: ; preds = %118
%123 = load i8*, i8** %25
%124 = load i32, i32* %12
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i8, i8* %123, i64 %125
%127 = load i8, i8* %126
%128 = zext i8 %127 to i32
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %128)
br label %130
130: ; preds = %122
%131 = load i32, i32* %12
%132 = add nsw i32 %131, 1
store i32 %132, i32* %12
br label %118
133: ; preds = %118
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %382
135: ; preds = %85
%136 = load i32, i32* %14
%137 = icmp ne i32 1, %136
br i1 %137, label %138, label %145
138: ; preds = %135
%139 = load i32, i32* @stderr
%140 = load i32, i32* %14
%141 = call i32 (i32, i8*, ...) @fprintf(i32 %139, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i32 %140)
%142 = load i8*, i8** %25
%143 = load i32, i32* %18
%144 = call i32 @dStrHex(i8* %142, i32 %143, i32 0)
br label %382
145: ; preds = %135
%146 = load i8*, i8** %25
%147 = getelementptr inbounds i8, i8* %146, i64 0
%148 = load i8, i8* %147
%149 = zext i8 %148 to i32
%150 = ashr i32 %149, 4
%151 = and i32 %150, 255
store i32 %151, i32* %20
%152 = load i32, i32* %20
%153 = icmp eq i32 2, %152
br i1 %153, label %167, label %154
154: ; preds = %145
%155 = load i32, i32* %20
%156 = icmp eq i32 5, %155
br i1 %156, label %167, label %157
157: ; preds = %154
%158 = load i32, i32* %20
%159 = icmp eq i32 6, %158
br i1 %159, label %167, label %160
160: ; preds = %157
%161 = load i32, i32* @stderr
%162 = load i32, i32* %20
%163 = call i32 (i32, i8*, ...) @fprintf(i32 %161, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %162)
%164 = load i8*, i8** %25
%165 = load i32, i32* %18
%166 = call i32 @dStrHex(i8* %164, i32 %165, i32 0)
br label %382
167: ; preds = %157, %154, %145
%168 = load i32, i32* %20
%169 = icmp eq i32 2, %168
br i1 %169, label %170, label %198
170: ; preds = %167
%171 = load i32, i32* %18
%172 = icmp ne i32 8, %171
br i1 %172, label %173, label %180
173: ; preds = %170
%174 = load i32, i32* @stderr
%175 = load i32, i32* %18
%176 = call i32 (i32, i8*, ...) @fprintf(i32 %174, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0), i32 %175)
%177 = load i8*, i8** %25
%178 = load i32, i32* %18
%179 = call i32 @dStrHex(i8* %177, i32 %178, i32 0)
br label %382
180: ; preds = %170
%181 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %12
br label %182
182: ; preds = %193, %180
%183 = load i32, i32* %12
%184 = icmp slt i32 %183, 8
br i1 %184, label %185, label %196
185: ; preds = %182
%186 = load i8*, i8** %25
%187 = load i32, i32* %12
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds i8, i8* %186, i64 %188
%190 = load i8, i8* %189
%191 = zext i8 %190 to i32
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %191)
br label %193
193: ; preds = %185
%194 = load i32, i32* %12
%195 = add nsw i32 %194, 1
store i32 %195, i32* %12
br label %182
196: ; preds = %182
%197 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %317
198: ; preds = %167
%199 = load i32, i32* %20
%200 = icmp eq i32 5, %199
br i1 %200, label %201, label %284
201: ; preds = %198
%202 = load i32, i32* %18
%203 = icmp ne i32 8, %202
br i1 %203, label %204, label %211
204: ; preds = %201
%205 = load i32, i32* @stderr
%206 = load i32, i32* %18
%207 = call i32 (i32, i8*, ...) @fprintf(i32 %205, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0), i32 %206)
%208 = load i8*, i8** %25
%209 = load i32, i32* %18
%210 = call i32 @dStrHex(i8* %208, i32 %209, i32 0)
br label %382
211: ; preds = %201
%212 = load i32, i32* %19
%213 = icmp eq i32 0, %212
br i1 %213, label %217, label %214
214: ; preds = %211
%215 = load i32, i32* %16
%216 = icmp ne i32 1, %215
br i1 %216, label %217, label %235
217: ; preds = %214, %211
%218 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %12
br label %219
219: ; preds = %230, %217
%220 = load i32, i32* %12
%221 = icmp slt i32 %220, 8
br i1 %221, label %222, label %233
222: ; preds = %219
%223 = load i8*, i8** %25
%224 = load i32, i32* %12
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds i8, i8* %223, i64 %225
%227 = load i8, i8* %226
%228 = zext i8 %227 to i32
%229 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %228)
br label %230
230: ; preds = %222
%231 = load i32, i32* %12
%232 = add nsw i32 %231, 1
store i32 %232, i32* %12
br label %219
233: ; preds = %219
%234 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %283
235: ; preds = %214
%236 = load i32, i32* %23
%237 = icmp ne i32 %236, 0
br i1 %237, label %238, label %257
238: ; preds = %235
%239 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %12
br label %240
240: ; preds = %251, %238
%241 = load i32, i32* %12
%242 = icmp slt i32 %241, 8
br i1 %242, label %243, label %254
243: ; preds = %240
%244 = load i8*, i8** %25
%245 = load i32, i32* %12
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds i8, i8* %244, i64 %246
%248 = load i8, i8* %247
%249 = zext i8 %248 to i32
%250 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %249)
br label %251
251: ; preds = %243
%252 = load i32, i32* %12
%253 = add nsw i32 %252, 1
store i32 %253, i32* %12
br label %240
254: ; preds = %240
%255 = load i32, i32* %23
%256 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %255)
store i32 0, i32* %23
br label %282
257: ; preds = %235
%258 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 0
%259 = load i8, i8* %258
%260 = icmp ne i8 %259, 0
br i1 %260, label %261, label %278
261: ; preds = %257
%262 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %12
br label %263
263: ; preds = %273, %261
%264 = load i32, i32* %12
%265 = icmp slt i32 %264, 8
br i1 %265, label %266, label %276
266: ; preds = %263
%267 = load i32, i32* %12
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 %268
%270 = load i8, i8* %269
%271 = zext i8 %270 to i32
%272 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %271)
br label %273
273: ; preds = %266
%274 = load i32, i32* %12
%275 = add nsw i32 %274, 1
store i32 %275, i32* %12
br label %263
276: ; preds = %263
%277 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %278
278: ; preds = %276, %257
%279 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 0
%280 = load i8*, i8** %25
%281 = call i32 @memcpy(i8* %279, i8* %280, i32 8)
br label %282
282: ; preds = %278, %254
br label %283
283: ; preds = %282, %233
br label %316
284: ; preds = %198
%285 = load i32, i32* %20
%286 = icmp eq i32 6, %285
br i1 %286, label %287, label %315
287: ; preds = %284
%288 = load i32, i32* %18
%289 = icmp ne i32 16, %288
br i1 %289, label %290, label %297
290: ; preds = %287
%291 = load i32, i32* @stderr
%292 = load i32, i32* %18
%293 = call i32 (i32, i8*, ...) @fprintf(i32 %291, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0), i32 %292)
%294 = load i8*, i8** %25
%295 = load i32, i32* %18
%296 = call i32 @dStrHex(i8* %294, i32 %295, i32 0)
br label %382
297: ; preds = %287
%298 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %12
br label %299
299: ; preds = %310, %297
%300 = load i32, i32* %12
%301 = icmp slt i32 %300, 16
br i1 %301, label %302, label %313
302: ; preds = %299
%303 = load i8*, i8** %25
%304 = load i32, i32* %12
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds i8, i8* %303, i64 %305
%307 = load i8, i8* %306
%308 = zext i8 %307 to i32
%309 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %308)
br label %310
310: ; preds = %302
%311 = load i32, i32* %12
%312 = add nsw i32 %311, 1
store i32 %312, i32* %12
br label %299
313: ; preds = %299
%314 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %315
315: ; preds = %313, %284
br label %316
316: ; preds = %315, %283
br label %317
317: ; preds = %316, %196
br label %382
318: ; preds = %85
%319 = load i32, i32* %19
%320 = icmp eq i32 0, %319
br i1 %320, label %330, label %321
321: ; preds = %318
%322 = load i32, i32* %14
%323 = icmp ne i32 1, %322
br i1 %323, label %330, label %324
324: ; preds = %321
%325 = load i32, i32* %16
%326 = icmp ne i32 1, %325
br i1 %326, label %330, label %327
327: ; preds = %324
%328 = load i32, i32* %18
%329 = icmp ne i32 4, %328
br i1 %329, label %330, label %331
330: ; preds = %327, %324, %321, %318
br label %382
331: ; preds = %327
%332 = load i8*, i8** %25
%333 = getelementptr inbounds i8, i8* %332, i64 2
%334 = load i8, i8* %333
%335 = zext i8 %334 to i32
%336 = shl i32 %335, 8
%337 = load i8*, i8** %25
%338 = getelementptr inbounds i8, i8* %337, i64 3
%339 = load i8, i8* %338
%340 = zext i8 %339 to i32
%341 = or i32 %336, %340
store i32 %341, i32* %23
%342 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 0
%343 = load i8, i8* %342
%344 = icmp ne i8 %343, 0
br i1 %344, label %345, label %365
345: ; preds = %331
%346 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %12
br label %347
347: ; preds = %357, %345
%348 = load i32, i32* %12
%349 = icmp slt i32 %348, 8
br i1 %349, label %350, label %360
350: ; preds = %347
%351 = load i32, i32* %12
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 %352
%354 = load i8, i8* %353
%355 = zext i8 %354 to i32
%356 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %355)
br label %357
357: ; preds = %350
%358 = load i32, i32* %12
%359 = add nsw i32 %358, 1
store i32 %359, i32* %12
br label %347
360: ; preds = %347
%361 = load i32, i32* %23
%362 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %361)
%363 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 0
%364 = call i32 @memset(i8* %363, i32 0, i32 8)
store i32 0, i32* %23
br label %365
365: ; preds = %360, %331
br label %382
366: ; preds = %85
br label %382
367: ; preds = %85
br label %382
368: ; preds = %85
br label %382
369: ; preds = %85
%370 = load i32, i32* %14
%371 = icmp ne i32 3, %370
br i1 %371, label %372, label %378
372: ; preds = %369
%373 = load i32, i32* @stderr
%374 = call i32 (i32, i8*, ...) @fprintf(i32 %373, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0))
%375 = load i8*, i8** %25
%376 = load i32, i32* %18
%377 = call i32 @dStrHex(i8* %375, i32 %376, i32 0)
br label %382
378: ; preds = %369
%379 = load i8*, i8** %25
%380 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8* %379)
br label %382
381: ; preds = %85
br label %382
382: ; preds = %381, %378, %372, %368, %367, %366, %365, %330, %317, %290, %204, %173, %160, %138, %133, %102, %101
br label %29
383: ; preds = %29
%384 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 0
%385 = load i8, i8* %384
%386 = icmp ne i8 %385, 0
br i1 %386, label %387, label %404
387: ; preds = %383
%388 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %12
br label %389
389: ; preds = %399, %387
%390 = load i32, i32* %12
%391 = icmp slt i32 %390, 8
br i1 %391, label %392, label %402
392: ; preds = %389
%393 = load i32, i32* %12
%394 = sext i32 %393 to i64
%395 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 %394
%396 = load i8, i8* %395
%397 = zext i8 %396 to i32
%398 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %397)
br label %399
399: ; preds = %392
%400 = load i32, i32* %12
%401 = add nsw i32 %400, 1
store i32 %401, i32* %12
br label %389
402: ; preds = %389
%403 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %404
404: ; preds = %402, %383
%405 = load i32, i32* %22
%406 = icmp eq i32 -2, %405
br i1 %406, label %407, label %411
407: ; preds = %404
%408 = load i32, i32* @stderr
%409 = load i32, i32* %21
%410 = call i32 (i32, i8*, ...) @fprintf(i32 %408, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0), i32 %409)
store i32 97, i32* %6
br label %412
411: ; preds = %404
store i32 0, i32* %6
br label %412
412: ; preds = %411, %407, %52
%413 = load i32, i32* %6
ret i32 %413
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [85 x i8] c" VPD page error: designator length longer than\0A remaining response length=%d\0A\00"
@.str.1 = [49 x i8] c" << expect 8, 12 and 16 byte EUI, got %d>>\0A\00"
@.str.2 = [3 x i8] c"0x\00"
@.str.3 = [5 x i8] c"%02x\00"
@.str.5 = [43 x i8] c" << unexpected code set %d for NAA>>\0A\00"
@.str.6 = [34 x i8] c" << unexpected NAA [0x%x]>>\0A\00"
@.str.7 = [53 x i8] c" << unexpected NAA 2 identifier length: 0x%x>>\0A\00"
@.str.8 = [53 x i8] c" << unexpected NAA 5 identifier length: 0x%x>>\0A\00"
@.str.9 = [7 x i8] c",0x%x\0A\00"
@.str.10 = [53 x i8] c" << unexpected NAA 6 identifier length: 0x%x>>\0A\00"
@.str.11 = [36 x i8] c" << expected UTF-8 code_set>>\0A\00"
@.str.13 = [49 x i8] c"VPD page error: short designator near offset %d\0A\00"
define i32 @decode_dev_ids_quiet(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca [8 x i8]
%8 = bitcast i32* %6 to i8*
%9 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%10 = call i32 @memset(i8* %9, i32 0, i32 8)
store i32 -1, i32* %6
%11 = call i32 @sg_vpd_dev_id_iter(i8* %0, i32 %1, i32* %6, i32 %2, i32 %3, i32 %4)
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %385
13: ; preds = %5
%14 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%15 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%16 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%17 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%18 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%19 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%20 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%21 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%22 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%23 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%24 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%25 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%26 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%27 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
br label %28
28: ; preds = %13, %381
%29 = phi i32 [ %382, %381 ], [ 0, %13 ]
%30 = load i32, i32* %6
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, i8* %0, i64 %31
%33 = getelementptr inbounds i8, i8* %32, i64 3
%34 = load i8, i8* %33
%35 = zext i8 %34 to i32
%36 = add i32 %30, 4
%37 = add i32 %36, %35
%38 = icmp sgt i32 %37, %1
br i1 %38, label %39, label %43
39: ; preds = %28
%40 = load i32, i32* @stderr
%41 = sub nsw i32 %1, %30
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str, i64 0, i64 0), i32 %41)
br label %429
43: ; preds = %28
%44 = getelementptr inbounds i8, i8* %32, i64 4
%45 = load i8, i8* %32
%46 = zext i8 %45 to i32
%47 = and i32 %46, 15
%48 = getelementptr inbounds i8, i8* %32, i64 1
%49 = load i8, i8* %48
%50 = zext i8 %49 to i32
%51 = and i32 %50, 128
%52 = icmp ne i32 %51, 0
%53 = and i32 %46, 240
%54 = icmp eq i32 %53, 96
%55 = select i1 %52, i1 %54, i1 false
%56 = lshr i32 %50, 4
%57 = and i32 %56, 3
%58 = and i32 %50, 15
switch i32 %58, label %381 [
i32 8, label %373
i32 4, label %326
i32 2, label %59
i32 3, label %79
]
59: ; preds = %43
switch i8 %34, label %62 [
i8 16, label %60
i8 12, label %60
i8 8, label %60
]
60: ; preds = %59, %59, %59
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %67
62: ; preds = %59
%63 = load i32, i32* @stderr
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0), i32 %35)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%66 = icmp eq i8 %34, 0
br i1 %66, label %77, label %67
67: ; preds = %60, %62
%68 = zext i8 %34 to i64
br label %69
69: ; preds = %67, %69
%70 = phi i64 [ 0, %67 ], [ %75, %69 ]
%71 = getelementptr inbounds i8, i8* %44, i64 %70
%72 = load i8, i8* %71
%73 = zext i8 %72 to i32
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %73)
%75 = add nuw nsw i64 %70, 1
%76 = icmp eq i64 %75, %68
br i1 %76, label %77, label %69
77: ; preds = %69, %62
%78 = call i32 @putchar(i32 10)
br label %381
79: ; preds = %43
%80 = icmp eq i32 %47, 1
br i1 %80, label %85, label %81
81: ; preds = %79
%82 = load i32, i32* @stderr
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %82, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i32 %47)
%84 = call i32 @dStrHex(i8* %44, i32 %35, i32 0)
br label %381
85: ; preds = %79
%86 = load i8, i8* %44
%87 = lshr i8 %86, 4
%88 = icmp eq i8 %87, 5
%89 = icmp eq i8 %87, 6
%90 = and i8 %86, -80
%91 = icmp eq i8 %90, 32
%92 = or i1 %91, %88
br i1 %92, label %98, label %93
93: ; preds = %85
%94 = zext i8 %87 to i32
%95 = load i32, i32* @stderr
%96 = call i32 (i32, i8*, ...) @fprintf(i32 %95, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %94)
%97 = call i32 @dStrHex(i8* %44, i32 %35, i32 0)
br label %381
98: ; preds = %85
%99 = icmp eq i8 %87, 2
br i1 %99, label %100, label %140
100: ; preds = %98
%101 = icmp eq i8 %34, 8
br i1 %101, label %106, label %102
102: ; preds = %100
%103 = load i32, i32* @stderr
%104 = call i32 (i32, i8*, ...) @fprintf(i32 %103, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0), i32 %35)
%105 = call i32 @dStrHex(i8* %44, i32 %35, i32 0)
br label %381
106: ; preds = %100
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%108 = load i8, i8* %44
%109 = zext i8 %108 to i32
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %109)
%111 = getelementptr inbounds i8, i8* %44, i64 1
%112 = load i8, i8* %111
%113 = zext i8 %112 to i32
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %113)
%115 = getelementptr inbounds i8, i8* %44, i64 2
%116 = load i8, i8* %115
%117 = zext i8 %116 to i32
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %117)
%119 = getelementptr inbounds i8, i8* %44, i64 3
%120 = load i8, i8* %119
%121 = zext i8 %120 to i32
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %121)
%123 = getelementptr inbounds i8, i8* %44, i64 4
%124 = load i8, i8* %123
%125 = zext i8 %124 to i32
%126 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %125)
%127 = getelementptr inbounds i8, i8* %44, i64 5
%128 = load i8, i8* %127
%129 = zext i8 %128 to i32
%130 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %129)
%131 = getelementptr inbounds i8, i8* %44, i64 6
%132 = load i8, i8* %131
%133 = zext i8 %132 to i32
%134 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %133)
%135 = getelementptr inbounds i8, i8* %44, i64 7
%136 = load i8, i8* %135
%137 = zext i8 %136 to i32
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %137)
%139 = call i32 @putchar(i32 10)
br label %381
140: ; preds = %98
br i1 %88, label %141, label %253
141: ; preds = %140
%142 = icmp eq i8 %34, 8
br i1 %142, label %147, label %143
143: ; preds = %141
%144 = load i32, i32* @stderr
%145 = call i32 (i32, i8*, ...) @fprintf(i32 %144, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0), i32 %35)
%146 = call i32 @dStrHex(i8* %44, i32 %35, i32 0)
br label %381
147: ; preds = %141
%148 = xor i1 %55, true
%149 = icmp ne i32 %57, 1
%150 = select i1 %148, i1 true, i1 %149
br i1 %150, label %151, label %185
151: ; preds = %147
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%153 = load i8, i8* %44
%154 = zext i8 %153 to i32
%155 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %154)
%156 = getelementptr inbounds i8, i8* %44, i64 1
%157 = load i8, i8* %156
%158 = zext i8 %157 to i32
%159 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %158)
%160 = getelementptr inbounds i8, i8* %44, i64 2
%161 = load i8, i8* %160
%162 = zext i8 %161 to i32
%163 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %162)
%164 = getelementptr inbounds i8, i8* %44, i64 3
%165 = load i8, i8* %164
%166 = zext i8 %165 to i32
%167 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %166)
%168 = getelementptr inbounds i8, i8* %44, i64 4
%169 = load i8, i8* %168
%170 = zext i8 %169 to i32
%171 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %170)
%172 = getelementptr inbounds i8, i8* %44, i64 5
%173 = load i8, i8* %172
%174 = zext i8 %173 to i32
%175 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %174)
%176 = getelementptr inbounds i8, i8* %44, i64 6
%177 = load i8, i8* %176
%178 = zext i8 %177 to i32
%179 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %178)
%180 = getelementptr inbounds i8, i8* %44, i64 7
%181 = load i8, i8* %180
%182 = zext i8 %181 to i32
%183 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %182)
%184 = call i32 @putchar(i32 10)
br label %381
185: ; preds = %147
%186 = icmp eq i32 %29, 0
br i1 %186, label %221, label %187
187: ; preds = %185
%188 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%189 = load i8, i8* %44
%190 = zext i8 %189 to i32
%191 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %190)
%192 = getelementptr inbounds i8, i8* %44, i64 1
%193 = load i8, i8* %192
%194 = zext i8 %193 to i32
%195 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %194)
%196 = getelementptr inbounds i8, i8* %44, i64 2
%197 = load i8, i8* %196
%198 = zext i8 %197 to i32
%199 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %198)
%200 = getelementptr inbounds i8, i8* %44, i64 3
%201 = load i8, i8* %200
%202 = zext i8 %201 to i32
%203 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %202)
%204 = getelementptr inbounds i8, i8* %44, i64 4
%205 = load i8, i8* %204
%206 = zext i8 %205 to i32
%207 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %206)
%208 = getelementptr inbounds i8, i8* %44, i64 5
%209 = load i8, i8* %208
%210 = zext i8 %209 to i32
%211 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %210)
%212 = getelementptr inbounds i8, i8* %44, i64 6
%213 = load i8, i8* %212
%214 = zext i8 %213 to i32
%215 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %214)
%216 = getelementptr inbounds i8, i8* %44, i64 7
%217 = load i8, i8* %216
%218 = zext i8 %217 to i32
%219 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %218)
%220 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %29)
br label %381
221: ; preds = %185
%222 = load i8, i8* %9
%223 = icmp eq i8 %222, 0
br i1 %223, label %251, label %224
224: ; preds = %221
%225 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%226 = load i8, i8* %9
%227 = zext i8 %226 to i32
%228 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %227)
%229 = load i8, i8* %14
%230 = zext i8 %229 to i32
%231 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %230)
%232 = load i8, i8* %15
%233 = zext i8 %232 to i32
%234 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %233)
%235 = load i8, i8* %16
%236 = zext i8 %235 to i32
%237 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %236)
%238 = load i8, i8* %17
%239 = zext i8 %238 to i32
%240 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %239)
%241 = load i8, i8* %18
%242 = zext i8 %241 to i32
%243 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %242)
%244 = load i8, i8* %19
%245 = zext i8 %244 to i32
%246 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %245)
%247 = load i8, i8* %20
%248 = zext i8 %247 to i32
%249 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %248)
%250 = call i32 @putchar(i32 10)
br label %251
251: ; preds = %224, %221
%252 = call i32 @memcpy(i8* %9, i8* %44, i32 8)
br label %381
253: ; preds = %140
br i1 %89, label %254, label %381
254: ; preds = %253
%255 = icmp eq i8 %34, 16
br i1 %255, label %260, label %256
256: ; preds = %254
%257 = load i32, i32* @stderr
%258 = call i32 (i32, i8*, ...) @fprintf(i32 %257, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0), i32 %35)
%259 = call i32 @dStrHex(i8* %44, i32 %35, i32 0)
br label %381
260: ; preds = %254
%261 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%262 = load i8, i8* %44
%263 = zext i8 %262 to i32
%264 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %263)
%265 = getelementptr inbounds i8, i8* %44, i64 1
%266 = load i8, i8* %265
%267 = zext i8 %266 to i32
%268 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %267)
%269 = getelementptr inbounds i8, i8* %44, i64 2
%270 = load i8, i8* %269
%271 = zext i8 %270 to i32
%272 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %271)
%273 = getelementptr inbounds i8, i8* %44, i64 3
%274 = load i8, i8* %273
%275 = zext i8 %274 to i32
%276 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %275)
%277 = getelementptr inbounds i8, i8* %44, i64 4
%278 = load i8, i8* %277
%279 = zext i8 %278 to i32
%280 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %279)
%281 = getelementptr inbounds i8, i8* %44, i64 5
%282 = load i8, i8* %281
%283 = zext i8 %282 to i32
%284 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %283)
%285 = getelementptr inbounds i8, i8* %44, i64 6
%286 = load i8, i8* %285
%287 = zext i8 %286 to i32
%288 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %287)
%289 = getelementptr inbounds i8, i8* %44, i64 7
%290 = load i8, i8* %289
%291 = zext i8 %290 to i32
%292 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %291)
%293 = getelementptr inbounds i8, i8* %44, i64 8
%294 = load i8, i8* %293
%295 = zext i8 %294 to i32
%296 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %295)
%297 = getelementptr inbounds i8, i8* %44, i64 9
%298 = load i8, i8* %297
%299 = zext i8 %298 to i32
%300 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %299)
%301 = getelementptr inbounds i8, i8* %44, i64 10
%302 = load i8, i8* %301
%303 = zext i8 %302 to i32
%304 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %303)
%305 = getelementptr inbounds i8, i8* %44, i64 11
%306 = load i8, i8* %305
%307 = zext i8 %306 to i32
%308 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %307)
%309 = getelementptr inbounds i8, i8* %44, i64 12
%310 = load i8, i8* %309
%311 = zext i8 %310 to i32
%312 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %311)
%313 = getelementptr inbounds i8, i8* %44, i64 13
%314 = load i8, i8* %313
%315 = zext i8 %314 to i32
%316 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %315)
%317 = getelementptr inbounds i8, i8* %44, i64 14
%318 = load i8, i8* %317
%319 = zext i8 %318 to i32
%320 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %319)
%321 = getelementptr inbounds i8, i8* %44, i64 15
%322 = load i8, i8* %321
%323 = zext i8 %322 to i32
%324 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %323)
%325 = call i32 @putchar(i32 10)
br label %381
326: ; preds = %43
%327 = xor i1 %55, true
%328 = icmp ne i32 %47, 1
%329 = select i1 %327, i1 true, i1 %328
%330 = icmp ne i32 %57, 1
%331 = select i1 %329, i1 true, i1 %330
%332 = icmp ne i8 %34, 4
%333 = select i1 %331, i1 true, i1 %332
br i1 %333, label %381, label %334
334: ; preds = %326
%335 = getelementptr inbounds i8, i8* %44, i64 2
%336 = load i8, i8* %335
%337 = zext i8 %336 to i32
%338 = shl nuw nsw i32 %337, 8
%339 = getelementptr inbounds i8, i8* %44, i64 3
%340 = load i8, i8* %339
%341 = zext i8 %340 to i32
%342 = or i32 %338, %341
%343 = load i8, i8* %9
%344 = icmp eq i8 %343, 0
br i1 %344, label %381, label %345
345: ; preds = %334
%346 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%347 = load i8, i8* %9
%348 = zext i8 %347 to i32
%349 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %348)
%350 = load i8, i8* %21
%351 = zext i8 %350 to i32
%352 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %351)
%353 = load i8, i8* %22
%354 = zext i8 %353 to i32
%355 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %354)
%356 = load i8, i8* %23
%357 = zext i8 %356 to i32
%358 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %357)
%359 = load i8, i8* %24
%360 = zext i8 %359 to i32
%361 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %360)
%362 = load i8, i8* %25
%363 = zext i8 %362 to i32
%364 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %363)
%365 = load i8, i8* %26
%366 = zext i8 %365 to i32
%367 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %366)
%368 = load i8, i8* %27
%369 = zext i8 %368 to i32
%370 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %369)
%371 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %342)
%372 = call i32 @memset(i8* %9, i32 0, i32 8)
br label %381
373: ; preds = %43
%374 = icmp eq i32 %47, 3
br i1 %374, label %379, label %375
375: ; preds = %373
%376 = load i32, i32* @stderr
%377 = call i32 (i32, i8*, ...) @fprintf(i32 %376, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0))
%378 = call i32 @dStrHex(i8* %44, i32 %35, i32 0)
br label %381
379: ; preds = %373
%380 = call i32 @puts(i8* %44)
br label %381
381: ; preds = %43, %334, %345, %326, %106, %253, %260, %151, %251, %187, %379, %375, %256, %143, %102, %93, %81, %77
%382 = phi i32 [ %29, %43 ], [ %29, %81 ], [ %29, %102 ], [ %29, %106 ], [ %29, %143 ], [ %29, %151 ], [ 0, %187 ], [ 0, %251 ], [ %29, %256 ], [ %29, %260 ], [ %29, %253 ], [ %29, %93 ], [ %29, %77 ], [ %29, %326 ], [ 0, %345 ], [ %342, %334 ], [ %29, %375 ], [ %29, %379 ]
%383 = call i32 @sg_vpd_dev_id_iter(i8* %0, i32 %1, i32* %6, i32 %2, i32 %3, i32 %4)
%384 = icmp eq i32 %383, 0
br i1 %384, label %28, label %385
385: ; preds = %381, %5
%386 = phi i32 [ %11, %5 ], [ %383, %381 ]
%387 = load i8, i8* %9
%388 = icmp eq i8 %387, 0
br i1 %388, label %423, label %389
389: ; preds = %385
%390 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%391 = load i8, i8* %9
%392 = zext i8 %391 to i32
%393 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %392)
%394 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%395 = load i8, i8* %394
%396 = zext i8 %395 to i32
%397 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %396)
%398 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%399 = load i8, i8* %398
%400 = zext i8 %399 to i32
%401 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %400)
%402 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%403 = load i8, i8* %402
%404 = zext i8 %403 to i32
%405 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %404)
%406 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%407 = load i8, i8* %406
%408 = zext i8 %407 to i32
%409 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %408)
%410 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%411 = load i8, i8* %410
%412 = zext i8 %411 to i32
%413 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %412)
%414 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%415 = load i8, i8* %414
%416 = zext i8 %415 to i32
%417 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %416)
%418 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%419 = load i8, i8* %418
%420 = zext i8 %419 to i32
%421 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %420)
%422 = call i32 @putchar(i32 10)
br label %423
423: ; preds = %389, %385
%424 = icmp eq i32 %386, -2
br i1 %424, label %425, label %429
425: ; preds = %423
%426 = load i32, i32* @stderr
%427 = load i32, i32* %6
%428 = call i32 (i32, i8*, ...) @fprintf(i32 %426, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0), i32 %427)
br label %429
429: ; preds = %423, %425, %39
%430 = phi i32 [ 97, %39 ], [ 97, %425 ], [ 0, %423 ]
ret i32 %430
}