#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 ((naa < 2) || (naa > 6) || (4 == 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 ((3 == naa) || (5 == naa)) {
        if (8 != i_len) {
          fprintf(stderr,
                  "      << unexpected NAA 3 or 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;
    case 9:
      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    184a <decode_dev_ids_quiet+0x6ea>
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    0xe25(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x61,-0x4(%rbp)
jmp    18e1 <decode_dev_ids_quiet+0x781>
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    $0x9,%rax
ja     1840 <decode_dev_ids_quiet+0x6e0>
mov    -0x78(%rbp),%rax
lea    0xd3f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    1845 <decode_dev_ids_quiet+0x6e5>
jmp    1845 <decode_dev_ids_quiet+0x6e5>
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    0xd6c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
lea    0xd8f(%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    0xd65(%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    0xd77(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1845 <decode_dev_ids_quiet+0x6e5>
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    0xd21(%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    1845 <decode_dev_ids_quiet+0x6e5>
mov    -0x60(%rbp),%rax
movzbl (%rax),%eax
sar    $0x4,%eax
and    $0xff,%eax
mov    %eax,-0x44(%rbp)
cmpl   $0x2,-0x44(%rbp)
jl     13e3 <decode_dev_ids_quiet+0x283>
cmpl   $0x6,-0x44(%rbp)
jg     13e3 <decode_dev_ids_quiet+0x283>
mov    $0x4,%eax
cmp    -0x44(%rbp),%eax
jne    1410 <decode_dev_ids_quiet+0x2b0>
mov    0x2bf6(%rip),%rax
mov    (%rax),%edi
mov    -0x44(%rbp),%edx
lea    0xceb(%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    1845 <decode_dev_ids_quiet+0x6e5>
mov    $0x2,%eax
cmp    -0x44(%rbp),%eax
jne    14b3 <decode_dev_ids_quiet+0x353>
mov    $0x8,%eax
cmp    -0x3c(%rbp),%eax
je     1459 <decode_dev_ids_quiet+0x2f9>
mov    0x2bad(%rip),%rax
mov    (%rax),%edi
mov    -0x3c(%rbp),%edx
lea    0xcc4(%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    1845 <decode_dev_ids_quiet+0x6e5>
lea    0xc4e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    14a0 <decode_dev_ids_quiet+0x340>
mov    -0x60(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xc26(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    146e <decode_dev_ids_quiet+0x30e>
lea    0xc38(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    170b <decode_dev_ids_quiet+0x5ab>
mov    $0x3,%eax
cmp    -0x44(%rbp),%eax
je     14cf <decode_dev_ids_quiet+0x36f>
mov    $0x5,%eax
cmp    -0x44(%rbp),%eax
jne    1663 <decode_dev_ids_quiet+0x503>
mov    $0x8,%eax
cmp    -0x3c(%rbp),%eax
je     150a <decode_dev_ids_quiet+0x3aa>
mov    0x2afc(%rip),%rax
mov    (%rax),%edi
mov    -0x3c(%rbp),%edx
lea    0xc48(%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    1845 <decode_dev_ids_quiet+0x6e5>
xor    %eax,%eax
cmp    -0x40(%rbp),%eax
je     1523 <decode_dev_ids_quiet+0x3c3>
mov    $0x1,%eax
cmp    -0x34(%rbp),%eax
je     157d <decode_dev_ids_quiet+0x41d>
lea    0xb84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    156a <decode_dev_ids_quiet+0x40a>
mov    -0x60(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xb5c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1538 <decode_dev_ids_quiet+0x3d8>
lea    0xb6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    165e <decode_dev_ids_quiet+0x4fe>
cmpl   $0x0,-0x50(%rbp)
je     15eb <decode_dev_ids_quiet+0x48b>
lea    0xb20(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    15ce <decode_dev_ids_quiet+0x46e>
mov    -0x60(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xaf8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    159c <decode_dev_ids_quiet+0x43c>
mov    -0x50(%rbp),%esi
lea    0xb9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x50(%rbp)
jmp    1659 <decode_dev_ids_quiet+0x4f9>
cmpb   $0x0,-0x68(%rbp)
je     1647 <decode_dev_ids_quiet+0x4e7>
lea    0xab2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    1639 <decode_dev_ids_quiet+0x4d9>
movslq -0x24(%rbp),%rax
movzbl -0x68(%rbp,%rax,1),%esi
lea    0xa8d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    160a <decode_dev_ids_quiet+0x4aa>
lea    0xa9f(%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    165e <decode_dev_ids_quiet+0x4fe>
jmp    1706 <decode_dev_ids_quiet+0x5a6>
mov    $0x6,%eax
cmp    -0x44(%rbp),%eax
jne    1701 <decode_dev_ids_quiet+0x5a1>
mov    $0x10,%eax
cmp    -0x3c(%rbp),%eax
je     16ac <decode_dev_ids_quiet+0x54c>
mov    0x295a(%rip),%rax
mov    (%rax),%edi
mov    -0x3c(%rbp),%edx
lea    0xae7(%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    1845 <decode_dev_ids_quiet+0x6e5>
lea    0x9fb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    16f3 <decode_dev_ids_quiet+0x593>
mov    -0x60(%rbp),%rax
movslq -0x24(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0x9d3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    16c1 <decode_dev_ids_quiet+0x561>
lea    0x9e5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1706 <decode_dev_ids_quiet+0x5a6>
jmp    170b <decode_dev_ids_quiet+0x5ab>
jmp    1845 <decode_dev_ids_quiet+0x6e5>
xor    %eax,%eax
cmp    -0x40(%rbp),%eax
je     1745 <decode_dev_ids_quiet+0x5e5>
mov    $0x1,%eax
cmp    -0x2c(%rbp),%eax
jne    1745 <decode_dev_ids_quiet+0x5e5>
mov    $0x1,%eax
cmp    -0x34(%rbp),%eax
jne    1745 <decode_dev_ids_quiet+0x5e5>
mov    $0x4,%eax
cmp    -0x3c(%rbp),%eax
je     174a <decode_dev_ids_quiet+0x5ea>
jmp    1845 <decode_dev_ids_quiet+0x6e5>
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     17d8 <decode_dev_ids_quiet+0x678>
lea    0x93b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    17b0 <decode_dev_ids_quiet+0x650>
movslq -0x24(%rbp),%rax
movzbl -0x68(%rbp,%rax,1),%esi
lea    0x916(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1781 <decode_dev_ids_quiet+0x621>
mov    -0x50(%rbp),%esi
lea    0x9b8(%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    1845 <decode_dev_ids_quiet+0x6e5>
jmp    1845 <decode_dev_ids_quiet+0x6e5>
jmp    1845 <decode_dev_ids_quiet+0x6e5>
jmp    1845 <decode_dev_ids_quiet+0x6e5>
mov    $0x3,%eax
cmp    -0x2c(%rbp),%eax
je     1824 <decode_dev_ids_quiet+0x6c4>
mov    0x27df(%rip),%rax
mov    (%rax),%edi
lea    0x9a4(%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    1845 <decode_dev_ids_quiet+0x6e5>
mov    -0x60(%rbp),%rsi
lea    0x9a3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1845 <decode_dev_ids_quiet+0x6e5>
jmp    1845 <decode_dev_ids_quiet+0x6e5>
jmp    1845 <decode_dev_ids_quiet+0x6e5>
jmp    119a <decode_dev_ids_quiet+0x3a>
cmpb   $0x0,-0x68(%rbp)
je     18a6 <decode_dev_ids_quiet+0x746>
lea    0x853(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    1898 <decode_dev_ids_quiet+0x738>
movslq -0x24(%rbp),%rax
movzbl -0x68(%rbp,%rax,1),%esi
lea    0x82e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1869 <decode_dev_ids_quiet+0x709>
lea    0x840(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xfffffffe,%eax
cmp    -0x4c(%rbp),%eax
jne    18da <decode_dev_ids_quiet+0x77a>
mov    0x2725(%rip),%rax
mov    (%rax),%edi
mov    -0x48(%rbp),%edx
lea    0x90f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x61,-0x4(%rbp)
jmp    18e1 <decode_dev_ids_quiet+0x781>
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    0xed0(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl (%rsp),%esi
lea    0xec1(%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    196f <decode_dev_ids_quiet+0x7ef>
mov    0x2d58(%rip),%rax
mov    (%rax),%edi
mov    0xc(%rsp),%edx
lea    0xf45(%rip),%rsi
jmp    1963 <decode_dev_ids_quiet+0x7e3>
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    197e <decode_dev_ids_quiet+0x7fe>
movslq 0xc(%rsp),%r14
movzbl 0x3(%r12,%r14,1),%r15d
lea    (%r14,%r15,1),%eax
add    $0x4,%eax
cmp    %r13d,%eax
jg     194d <decode_dev_ids_quiet+0x7cd>
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     163f <decode_dev_ids_quiet+0x4bf>
mov    $0x11100,%eax
bt     %r12,%rax
jae    163f <decode_dev_ids_quiet+0x4bf>
lea    0xd34(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd29(%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>
mov    %r13d,%r12d
cmp    $0x1,%edx
jne    162a <decode_dev_ids_quiet+0x4aa>
movzbl (%r14),%edx
lea    -0x70(%rdx),%esi
shr    $0x4,%edx
cmp    $0xb0,%sil
jb     167c <decode_dev_ids_quiet+0x4fc>
cmp    $0x4,%dl
je     167c <decode_dev_ids_quiet+0x4fc>
add    $0xfffffffe,%edx
cmp    $0x4,%dl
ja     185e <decode_dev_ids_quiet+0x6de>
movzbl %dl,%edx
lea    0xc0c(%rip),%rsi
movslq (%rsi,%rdx,4),%rdx
add    %rsi,%rdx
mov    %r12d,%r13d
jmp    *%rdx
cmp    $0x8,%r15b
jne    184c <decode_dev_ids_quiet+0x6cc>
test   %cl,%cl
je     16a5 <decode_dev_ids_quiet+0x525>
cmp    $0x1,%eax
jne    16a5 <decode_dev_ids_quiet+0x525>
mov    0x8(%rsp),%r15d
test   %r15d,%r15d
lea    0xc73(%rip),%rbx
jne    18a7 <decode_dev_ids_quiet+0x727>
cmpb   $0x0,(%rsp)
je     14e5 <decode_dev_ids_quiet+0x365>
lea    0xc59(%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)
mov    %r12d,%r13d
jmp    12d0 <decode_dev_ids_quiet+0x150>
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     1691 <decode_dev_ids_quiet+0x511>
lea    0xb70(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl (%rsp),%esi
lea    0xb61(%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    0xba8(%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    0x29d8(%rip),%rax
mov    (%rax),%edi
lea    0xba5(%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    0x29af(%rip),%rax
mov    (%rax),%edi
lea    0xa84(%rip),%rsi
jmp    188b <decode_dev_ids_quiet+0x70b>
mov    0x299a(%rip),%rax
mov    (%rax),%edi
lea    0xa36(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xa56(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
test   %r15d,%r15d
lea    0xa48(%rip),%rbx
jne    1390 <decode_dev_ids_quiet+0x210>
jmp    13b8 <decode_dev_ids_quiet+0x238>
mov    0x295d(%rip),%rax
mov    (%rax),%edi
lea    0xa5d(%rip),%rsi
jmp    188b <decode_dev_ids_quiet+0x70b>
mov    %r15d,0x8(%rsp)
jmp    12d0 <decode_dev_ids_quiet+0x150>
cmp    $0x8,%r15b
jne    1866 <decode_dev_ids_quiet+0x6e6>
lea    0xa0a(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl (%r14),%esi
lea    0x9fb(%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
jmp    1830 <decode_dev_ids_quiet+0x6b0>
cmp    $0x10,%r15b
jne    1878 <decode_dev_ids_quiet+0x6f8>
lea    0x979(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl (%r14),%esi
lea    0x96a(%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
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r12d,%r13d
jmp    12d0 <decode_dev_ids_quiet+0x150>
mov    0x278d(%rip),%rax
mov    (%rax),%edi
lea    0x8e4(%rip),%rsi
jmp    1888 <decode_dev_ids_quiet+0x708>
mov    %r12d,%r13d
jmp    12d0 <decode_dev_ids_quiet+0x150>
mov    0x2773(%rip),%rax
mov    (%rax),%edi
lea    0x895(%rip),%rsi
jmp    1888 <decode_dev_ids_quiet+0x708>
mov    0x2761(%rip),%rax
mov    (%rax),%edi
lea    0x8f9(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
xor    %edx,%edx
call   1050 <dStrHex@plt>
mov    %r12d,%r13d
jmp    12d0 <decode_dev_ids_quiet+0x150>
lea    0x808(%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    0x847(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%r13d
movl   $0x0,0x8(%rsp)
jmp    12d0 <decode_dev_ids_quiet+0x150>
mov    0x268c(%rip),%rax
mov    (%rax),%edi
sub    %r14d,%r13d
lea    0x6d0(%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 = [58 x i8] c" << unexpected NAA 3 or 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 = %386, %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 %387
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 %416
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 %385 [
i32 0, label %101
i32 1, label %102
i32 2, label %103
i32 3, label %135
i32 4, label %321
i32 5, label %369
i32 6, label %370
i32 7, label %371
i32 8, label %372
i32 9, label %384
]
101: ; preds = %85
br label %386
102: ; preds = %85
br label %386
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 %386
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 %386
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 slt i32 %152, 2
br i1 %153, label %160, label %154
154: ; preds = %145
%155 = load i32, i32* %20
%156 = icmp sgt i32 %155, 6
br i1 %156, label %160, label %157
157: ; preds = %154
%158 = load i32, i32* %20
%159 = icmp eq i32 4, %158
br i1 %159, label %160, label %167
160: ; preds = %157, %154, %145
%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 %386
167: ; preds = %157
%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 %386
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 %320
198: ; preds = %167
%199 = load i32, i32* %20
%200 = icmp eq i32 3, %199
br i1 %200, label %204, label %201
201: ; preds = %198
%202 = load i32, i32* %20
%203 = icmp eq i32 5, %202
br i1 %203, label %204, label %287
204: ; preds = %201, %198
%205 = load i32, i32* %18
%206 = icmp ne i32 8, %205
br i1 %206, label %207, label %214
207: ; preds = %204
%208 = load i32, i32* @stderr
%209 = load i32, i32* %18
%210 = call i32 (i32, i8*, ...) @fprintf(i32 %208, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0), i32 %209)
%211 = load i8*, i8** %25
%212 = load i32, i32* %18
%213 = call i32 @dStrHex(i8* %211, i32 %212, i32 0)
br label %386
214: ; preds = %204
%215 = load i32, i32* %19
%216 = icmp eq i32 0, %215
br i1 %216, label %220, label %217
217: ; preds = %214
%218 = load i32, i32* %16
%219 = icmp ne i32 1, %218
br i1 %219, label %220, label %238
220: ; preds = %217, %214
%221 = 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 %222
222: ; preds = %233, %220
%223 = load i32, i32* %12
%224 = icmp slt i32 %223, 8
br i1 %224, label %225, label %236
225: ; preds = %222
%226 = load i8*, i8** %25
%227 = load i32, i32* %12
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds i8, i8* %226, i64 %228
%230 = load i8, i8* %229
%231 = zext i8 %230 to i32
%232 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %231)
br label %233
233: ; preds = %225
%234 = load i32, i32* %12
%235 = add nsw i32 %234, 1
store i32 %235, i32* %12
br label %222
236: ; preds = %222
%237 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %286
238: ; preds = %217
%239 = load i32, i32* %23
%240 = icmp ne i32 %239, 0
br i1 %240, label %241, label %260
241: ; preds = %238
%242 = 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 %243
243: ; preds = %254, %241
%244 = load i32, i32* %12
%245 = icmp slt i32 %244, 8
br i1 %245, label %246, label %257
246: ; preds = %243
%247 = load i8*, i8** %25
%248 = load i32, i32* %12
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds i8, i8* %247, i64 %249
%251 = load i8, i8* %250
%252 = zext i8 %251 to i32
%253 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %252)
br label %254
254: ; preds = %246
%255 = load i32, i32* %12
%256 = add nsw i32 %255, 1
store i32 %256, i32* %12
br label %243
257: ; preds = %243
%258 = load i32, i32* %23
%259 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %258)
store i32 0, i32* %23
br label %285
260: ; preds = %238
%261 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 0
%262 = load i8, i8* %261
%263 = icmp ne i8 %262, 0
br i1 %263, label %264, label %281
264: ; preds = %260
%265 = 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 %266
266: ; preds = %276, %264
%267 = load i32, i32* %12
%268 = icmp slt i32 %267, 8
br i1 %268, label %269, label %279
269: ; preds = %266
%270 = load i32, i32* %12
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 %271
%273 = load i8, i8* %272
%274 = zext i8 %273 to i32
%275 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %274)
br label %276
276: ; preds = %269
%277 = load i32, i32* %12
%278 = add nsw i32 %277, 1
store i32 %278, i32* %12
br label %266
279: ; preds = %266
%280 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %281
281: ; preds = %279, %260
%282 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 0
%283 = load i8*, i8** %25
%284 = call i32 @memcpy(i8* %282, i8* %283, i32 8)
br label %285
285: ; preds = %281, %257
br label %286
286: ; preds = %285, %236
br label %319
287: ; preds = %201
%288 = load i32, i32* %20
%289 = icmp eq i32 6, %288
br i1 %289, label %290, label %318
290: ; preds = %287
%291 = load i32, i32* %18
%292 = icmp ne i32 16, %291
br i1 %292, label %293, label %300
293: ; preds = %290
%294 = load i32, i32* @stderr
%295 = load i32, i32* %18
%296 = call i32 (i32, i8*, ...) @fprintf(i32 %294, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0), i32 %295)
%297 = load i8*, i8** %25
%298 = load i32, i32* %18
%299 = call i32 @dStrHex(i8* %297, i32 %298, i32 0)
br label %386
300: ; preds = %290
%301 = 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 %302
302: ; preds = %313, %300
%303 = load i32, i32* %12
%304 = icmp slt i32 %303, 16
br i1 %304, label %305, label %316
305: ; preds = %302
%306 = load i8*, i8** %25
%307 = load i32, i32* %12
%308 = sext i32 %307 to i64
%309 = getelementptr inbounds i8, i8* %306, i64 %308
%310 = load i8, i8* %309
%311 = zext i8 %310 to i32
%312 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %311)
br label %313
313: ; preds = %305
%314 = load i32, i32* %12
%315 = add nsw i32 %314, 1
store i32 %315, i32* %12
br label %302
316: ; preds = %302
%317 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %318
318: ; preds = %316, %287
br label %319
319: ; preds = %318, %286
br label %320
320: ; preds = %319, %196
br label %386
321: ; preds = %85
%322 = load i32, i32* %19
%323 = icmp eq i32 0, %322
br i1 %323, label %333, label %324
324: ; preds = %321
%325 = load i32, i32* %14
%326 = icmp ne i32 1, %325
br i1 %326, label %333, label %327
327: ; preds = %324
%328 = load i32, i32* %16
%329 = icmp ne i32 1, %328
br i1 %329, label %333, label %330
330: ; preds = %327
%331 = load i32, i32* %18
%332 = icmp ne i32 4, %331
br i1 %332, label %333, label %334
333: ; preds = %330, %327, %324, %321
br label %386
334: ; preds = %330
%335 = load i8*, i8** %25
%336 = getelementptr inbounds i8, i8* %335, i64 2
%337 = load i8, i8* %336
%338 = zext i8 %337 to i32
%339 = shl i32 %338, 8
%340 = load i8*, i8** %25
%341 = getelementptr inbounds i8, i8* %340, i64 3
%342 = load i8, i8* %341
%343 = zext i8 %342 to i32
%344 = or i32 %339, %343
store i32 %344, i32* %23
%345 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 0
%346 = load i8, i8* %345
%347 = icmp ne i8 %346, 0
br i1 %347, label %348, label %368
348: ; preds = %334
%349 = 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 %350
350: ; preds = %360, %348
%351 = load i32, i32* %12
%352 = icmp slt i32 %351, 8
br i1 %352, label %353, label %363
353: ; preds = %350
%354 = load i32, i32* %12
%355 = sext i32 %354 to i64
%356 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 %355
%357 = load i8, i8* %356
%358 = zext i8 %357 to i32
%359 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %358)
br label %360
360: ; preds = %353
%361 = load i32, i32* %12
%362 = add nsw i32 %361, 1
store i32 %362, i32* %12
br label %350
363: ; preds = %350
%364 = load i32, i32* %23
%365 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %364)
%366 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 0
%367 = call i32 @memset(i8* %366, i32 0, i32 8)
store i32 0, i32* %23
br label %368
368: ; preds = %363, %334
br label %386
369: ; preds = %85
br label %386
370: ; preds = %85
br label %386
371: ; preds = %85
br label %386
372: ; preds = %85
%373 = load i32, i32* %14
%374 = icmp ne i32 3, %373
br i1 %374, label %375, label %381
375: ; preds = %372
%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 = load i8*, i8** %25
%379 = load i32, i32* %18
%380 = call i32 @dStrHex(i8* %378, i32 %379, i32 0)
br label %386
381: ; preds = %372
%382 = load i8*, i8** %25
%383 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8* %382)
br label %386
384: ; preds = %85
br label %386
385: ; preds = %85
br label %386
386: ; preds = %385, %384, %381, %375, %371, %370, %369, %368, %333, %320, %293, %207, %173, %160, %138, %133, %102, %101
br label %29
387: ; preds = %29
%388 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 0
%389 = load i8, i8* %388
%390 = icmp ne i8 %389, 0
br i1 %390, label %391, label %408
391: ; preds = %387
%392 = 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 %393
393: ; preds = %403, %391
%394 = load i32, i32* %12
%395 = icmp slt i32 %394, 8
br i1 %395, label %396, label %406
396: ; preds = %393
%397 = load i32, i32* %12
%398 = sext i32 %397 to i64
%399 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 %398
%400 = load i8, i8* %399
%401 = zext i8 %400 to i32
%402 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %401)
br label %403
403: ; preds = %396
%404 = load i32, i32* %12
%405 = add nsw i32 %404, 1
store i32 %405, i32* %12
br label %393
406: ; preds = %393
%407 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %408
408: ; preds = %406, %387
%409 = load i32, i32* %22
%410 = icmp eq i32 -2, %409
br i1 %410, label %411, label %415
411: ; preds = %408
%412 = load i32, i32* @stderr
%413 = load i32, i32* %21
%414 = call i32 (i32, i8*, ...) @fprintf(i32 %412, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0), i32 %413)
store i32 97, i32* %6
br label %416
415: ; preds = %408
store i32 0, i32* %6
br label %416
416: ; preds = %415, %411, %52
%417 = load i32, i32* %6
ret i32 %417
}

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 = [58 x i8] c" << unexpected NAA 3 or 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 %381
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, %377
%29 = phi i32 [ %378, %377 ], [ 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 %425
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 %377 [
i32 8, label %369
i32 4, label %322
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 %377
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 %377
85: ; preds = %79
%86 = load i8, i8* %44
%87 = lshr i8 %86, 4
%88 = add i8 %86, -112
%89 = icmp ult i8 %88, -80
%90 = icmp eq i8 %87, 4
%91 = or i1 %89, %90
br i1 %91, label %92, label %97
92: ; preds = %85
%93 = zext i8 %87 to i32
%94 = load i32, i32* @stderr
%95 = call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %93)
%96 = call i32 @dStrHex(i8* %44, i32 %35, i32 0)
br label %377
97: ; preds = %85
switch i8 %87, label %377 [
i8 2, label %98
i8 5, label %138
i8 3, label %138
i8 6, label %250
]
98: ; preds = %97
%99 = icmp eq i8 %34, 8
br i1 %99, label %104, label %100
100: ; preds = %98
%101 = load i32, i32* @stderr
%102 = call i32 (i32, i8*, ...) @fprintf(i32 %101, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0), i32 %35)
%103 = call i32 @dStrHex(i8* %44, i32 %35, i32 0)
br label %377
104: ; preds = %98
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%106 = load i8, i8* %44
%107 = zext i8 %106 to i32
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %107)
%109 = getelementptr inbounds i8, i8* %44, i64 1
%110 = load i8, i8* %109
%111 = zext i8 %110 to i32
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %111)
%113 = getelementptr inbounds i8, i8* %44, i64 2
%114 = load i8, i8* %113
%115 = zext i8 %114 to i32
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %115)
%117 = getelementptr inbounds i8, i8* %44, i64 3
%118 = load i8, i8* %117
%119 = zext i8 %118 to i32
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %119)
%121 = getelementptr inbounds i8, i8* %44, i64 4
%122 = load i8, i8* %121
%123 = zext i8 %122 to i32
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %123)
%125 = getelementptr inbounds i8, i8* %44, i64 5
%126 = load i8, i8* %125
%127 = zext i8 %126 to i32
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %127)
%129 = getelementptr inbounds i8, i8* %44, i64 6
%130 = load i8, i8* %129
%131 = zext i8 %130 to i32
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %131)
%133 = getelementptr inbounds i8, i8* %44, i64 7
%134 = load i8, i8* %133
%135 = zext i8 %134 to i32
%136 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %135)
%137 = call i32 @putchar(i32 10)
br label %377
138: ; preds = %97, %97
%139 = icmp eq i8 %34, 8
br i1 %139, label %144, label %140
140: ; preds = %138
%141 = load i32, i32* @stderr
%142 = call i32 (i32, i8*, ...) @fprintf(i32 %141, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0), i32 %35)
%143 = call i32 @dStrHex(i8* %44, i32 %35, i32 0)
br label %377
144: ; preds = %138
%145 = xor i1 %55, true
%146 = icmp ne i32 %57, 1
%147 = select i1 %145, i1 true, i1 %146
br i1 %147, label %148, label %182
148: ; preds = %144
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%150 = load i8, i8* %44
%151 = zext i8 %150 to i32
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %151)
%153 = getelementptr inbounds i8, i8* %44, i64 1
%154 = load i8, i8* %153
%155 = zext i8 %154 to i32
%156 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %155)
%157 = getelementptr inbounds i8, i8* %44, i64 2
%158 = load i8, i8* %157
%159 = zext i8 %158 to i32
%160 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %159)
%161 = getelementptr inbounds i8, i8* %44, i64 3
%162 = load i8, i8* %161
%163 = zext i8 %162 to i32
%164 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %163)
%165 = getelementptr inbounds i8, i8* %44, i64 4
%166 = load i8, i8* %165
%167 = zext i8 %166 to i32
%168 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %167)
%169 = getelementptr inbounds i8, i8* %44, i64 5
%170 = load i8, i8* %169
%171 = zext i8 %170 to i32
%172 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %171)
%173 = getelementptr inbounds i8, i8* %44, i64 6
%174 = load i8, i8* %173
%175 = zext i8 %174 to i32
%176 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %175)
%177 = getelementptr inbounds i8, i8* %44, i64 7
%178 = load i8, i8* %177
%179 = zext i8 %178 to i32
%180 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %179)
%181 = call i32 @putchar(i32 10)
br label %377
182: ; preds = %144
%183 = icmp eq i32 %29, 0
br i1 %183, label %218, label %184
184: ; preds = %182
%185 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%186 = load i8, i8* %44
%187 = zext i8 %186 to i32
%188 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %187)
%189 = getelementptr inbounds i8, i8* %44, i64 1
%190 = load i8, i8* %189
%191 = zext i8 %190 to i32
%192 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %191)
%193 = getelementptr inbounds i8, i8* %44, i64 2
%194 = load i8, i8* %193
%195 = zext i8 %194 to i32
%196 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %195)
%197 = getelementptr inbounds i8, i8* %44, i64 3
%198 = load i8, i8* %197
%199 = zext i8 %198 to i32
%200 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %199)
%201 = getelementptr inbounds i8, i8* %44, i64 4
%202 = load i8, i8* %201
%203 = zext i8 %202 to i32
%204 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %203)
%205 = getelementptr inbounds i8, i8* %44, i64 5
%206 = load i8, i8* %205
%207 = zext i8 %206 to i32
%208 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %207)
%209 = getelementptr inbounds i8, i8* %44, i64 6
%210 = load i8, i8* %209
%211 = zext i8 %210 to i32
%212 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %211)
%213 = getelementptr inbounds i8, i8* %44, i64 7
%214 = load i8, i8* %213
%215 = zext i8 %214 to i32
%216 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %215)
%217 = 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 %377
218: ; preds = %182
%219 = load i8, i8* %9
%220 = icmp eq i8 %219, 0
br i1 %220, label %248, label %221
221: ; preds = %218
%222 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%223 = load i8, i8* %9
%224 = zext i8 %223 to i32
%225 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %224)
%226 = load i8, i8* %14
%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* %15
%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* %16
%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* %17
%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* %18
%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* %19
%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* %20
%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 = call i32 @putchar(i32 10)
br label %248
248: ; preds = %221, %218
%249 = call i32 @memcpy(i8* %9, i8* %44, i32 8)
br label %377
250: ; preds = %97
%251 = icmp eq i8 %34, 16
br i1 %251, label %256, label %252
252: ; preds = %250
%253 = load i32, i32* @stderr
%254 = call i32 (i32, i8*, ...) @fprintf(i32 %253, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0), i32 %35)
%255 = call i32 @dStrHex(i8* %44, i32 %35, i32 0)
br label %377
256: ; preds = %250
%257 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%258 = load i8, i8* %44
%259 = zext i8 %258 to i32
%260 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %259)
%261 = getelementptr inbounds i8, i8* %44, i64 1
%262 = load i8, i8* %261
%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 2
%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 3
%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 4
%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 5
%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 6
%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 7
%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 8
%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 9
%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 10
%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 11
%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 12
%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 13
%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 14
%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 15
%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 = call i32 @putchar(i32 10)
br label %377
322: ; preds = %43
%323 = xor i1 %55, true
%324 = icmp ne i32 %47, 1
%325 = select i1 %323, i1 true, i1 %324
%326 = icmp ne i32 %57, 1
%327 = select i1 %325, i1 true, i1 %326
%328 = icmp ne i8 %34, 4
%329 = select i1 %327, i1 true, i1 %328
br i1 %329, label %377, label %330
330: ; preds = %322
%331 = getelementptr inbounds i8, i8* %44, i64 2
%332 = load i8, i8* %331
%333 = zext i8 %332 to i32
%334 = shl nuw nsw i32 %333, 8
%335 = getelementptr inbounds i8, i8* %44, i64 3
%336 = load i8, i8* %335
%337 = zext i8 %336 to i32
%338 = or i32 %334, %337
%339 = load i8, i8* %9
%340 = icmp eq i8 %339, 0
br i1 %340, label %377, label %341
341: ; preds = %330
%342 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%343 = load i8, i8* %9
%344 = zext i8 %343 to i32
%345 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %344)
%346 = load i8, i8* %21
%347 = zext i8 %346 to i32
%348 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %347)
%349 = load i8, i8* %22
%350 = zext i8 %349 to i32
%351 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %350)
%352 = load i8, i8* %23
%353 = zext i8 %352 to i32
%354 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %353)
%355 = load i8, i8* %24
%356 = zext i8 %355 to i32
%357 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %356)
%358 = load i8, i8* %25
%359 = zext i8 %358 to i32
%360 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %359)
%361 = load i8, i8* %26
%362 = zext i8 %361 to i32
%363 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %362)
%364 = load i8, i8* %27
%365 = zext i8 %364 to i32
%366 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %365)
%367 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %338)
%368 = call i32 @memset(i8* %9, i32 0, i32 8)
br label %377
369: ; preds = %43
%370 = icmp eq i32 %47, 3
br i1 %370, label %375, label %371
371: ; preds = %369
%372 = load i32, i32* @stderr
%373 = call i32 (i32, i8*, ...) @fprintf(i32 %372, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0))
%374 = call i32 @dStrHex(i8* %44, i32 %35, i32 0)
br label %377
375: ; preds = %369
%376 = call i32 @puts(i8* %44)
br label %377
377: ; preds = %97, %43, %330, %341, %322, %104, %256, %148, %248, %184, %375, %371, %252, %140, %100, %92, %81, %77
%378 = phi i32 [ %29, %43 ], [ %29, %81 ], [ %29, %92 ], [ %29, %100 ], [ %29, %104 ], [ %29, %140 ], [ %29, %148 ], [ 0, %184 ], [ 0, %248 ], [ %29, %252 ], [ %29, %256 ], [ %29, %77 ], [ %29, %322 ], [ 0, %341 ], [ %338, %330 ], [ %29, %371 ], [ %29, %375 ], [ %29, %97 ]
%379 = call i32 @sg_vpd_dev_id_iter(i8* %0, i32 %1, i32* %6, i32 %2, i32 %3, i32 %4)
%380 = icmp eq i32 %379, 0
br i1 %380, label %28, label %381
381: ; preds = %377, %5
%382 = phi i32 [ %11, %5 ], [ %379, %377 ]
%383 = load i8, i8* %9
%384 = icmp eq i8 %383, 0
br i1 %384, label %419, label %385
385: ; preds = %381
%386 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%387 = load i8, i8* %9
%388 = zext i8 %387 to i32
%389 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %388)
%390 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%391 = load i8, i8* %390
%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 2
%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 3
%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 4
%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 5
%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 6
%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 7
%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 = call i32 @putchar(i32 10)
br label %419
419: ; preds = %385, %381
%420 = icmp eq i32 %382, -2
br i1 %420, label %421, label %425
421: ; preds = %419
%422 = load i32, i32* @stderr
%423 = load i32, i32* %6
%424 = call i32 (i32, i8*, ...) @fprintf(i32 %422, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0), i32 %423)
br label %425
425: ; preds = %419, %421, %39
%426 = phi i32 [ 97, %39 ], [ 97, %421 ], [ 0, %419 ]
ret i32 %426
}