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

/* Variables and functions */
scalar_t__ sprintf(char *, char *, char *);
const char *sas_discovery_status_to_text(uint32_t status) {
  static char text[256];
  int i = 0;
  text[0] = 0;
  do {
    if (status & (0x80000000)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "MAX_ENCLOSURES_EXCEED");
    }
  } while (0);
  do {
    if (status & (0x40000000)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "MAX_EXPANDERS_EXCEED");
    }
  } while (0);
  do {
    if (status & (0x20000000)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "MAX_DEVICES_EXCEED");
    }
  } while (0);
  do {
    if (status & (0x10000000)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "MAX_TOPO_PHYS_EXCEED");
    }
  } while (0);
  do {
    if (status & (0x08000000)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "DOWNSTREAM_INITIATOR");
    }
  } while (0);
  do {
    if (status & (0x00008000)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "MULTI_SUBTRACTIVE_SUBTRACTIVE");
    }
  } while (0);
  do {
    if (status & (0x00004000)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "EXP_MULTI_SUBTRACTIVE");
    }
  } while (0);
  do {
    if (status & (0x00002000)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "MULTI_PORT_DOMAIN");
    }
  } while (0);
  do {
    if (status & (0x00001000)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "TABLE_TO_SUBTRACTIVE_LINK");
    }
  } while (0);
  do {
    if (status & (0x00000800)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "UNSUPPORTED_DEVICE");
    }
  } while (0);
  do {
    if (status & (0x00000400)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "TABLE_LINK");
    }
  } while (0);
  do {
    if (status & (0x00000200)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "SUBTRACTIVE_LINK");
    }
  } while (0);
  do {
    if (status & (0x00000100)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "SMP_CRC_ERROR");
    }
  } while (0);
  do {
    if (status & (0x00000080)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "SMP_FUNCTION_FAILED");
    }
  } while (0);
  do {
    if (status & (0x00000040)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "INDEX_NOT_EXIST");
    }
  } while (0);
  do {
    if (status & (0x00000020)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "OUT_ROUTE_ENTRIES");
    }
  } while (0);
  do {
    if (status & (0x00000010)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "SMP_TIMEOUT");
    }
  } while (0);
  do {
    if (status & (0x00000004)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "MULTIPLE_PORTS");
    }
  } while (0);
  do {
    if (status & (0x00000002)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "UNADDRESSABLE_DEVICE");
    }
  } while (0);
  do {
    if (status & (0x00000001)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "LOOP_DETECTED");
    }
  } while (0);
  return text;
}


x86 assembly (clang, -O0):
<sas_discovery_status_to_text>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movb   $0x0,0x2f17(%rip)
mov    -0x4(%rbp),%eax
and    $0x80000000,%eax
cmp    $0x0,%eax
je     118b <sas_discovery_status_to_text+0x7b>
cmpl   $0x0,-0x8(%rbp)
jle    115d <sas_discovery_status_to_text+0x4d>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2ee7(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2ed8(%rip),%rdi
add    %rax,%rdi
lea    0xe8e(%rip),%rsi
lea    0xe8a(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    1190 <sas_discovery_status_to_text+0x80>
jmp    1195 <sas_discovery_status_to_text+0x85>
mov    -0x4(%rbp),%eax
and    $0x40000000,%eax
cmp    $0x0,%eax
je     11f7 <sas_discovery_status_to_text+0xe7>
cmpl   $0x0,-0x8(%rbp)
jle    11c9 <sas_discovery_status_to_text+0xb9>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2e7b(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2e6c(%rip),%rdi
add    %rax,%rdi
lea    0xe22(%rip),%rsi
lea    0xe34(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    11fc <sas_discovery_status_to_text+0xec>
jmp    1201 <sas_discovery_status_to_text+0xf1>
mov    -0x4(%rbp),%eax
and    $0x20000000,%eax
cmp    $0x0,%eax
je     1263 <sas_discovery_status_to_text+0x153>
cmpl   $0x0,-0x8(%rbp)
jle    1235 <sas_discovery_status_to_text+0x125>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2e0f(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2e00(%rip),%rdi
add    %rax,%rdi
lea    0xdb6(%rip),%rsi
lea    0xddd(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    1268 <sas_discovery_status_to_text+0x158>
jmp    126d <sas_discovery_status_to_text+0x15d>
mov    -0x4(%rbp),%eax
and    $0x10000000,%eax
cmp    $0x0,%eax
je     12cf <sas_discovery_status_to_text+0x1bf>
cmpl   $0x0,-0x8(%rbp)
jle    12a1 <sas_discovery_status_to_text+0x191>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2da3(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2d94(%rip),%rdi
add    %rax,%rdi
lea    0xd4a(%rip),%rsi
lea    0xd84(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    12d4 <sas_discovery_status_to_text+0x1c4>
jmp    12d9 <sas_discovery_status_to_text+0x1c9>
mov    -0x4(%rbp),%eax
and    $0x8000000,%eax
cmp    $0x0,%eax
je     133b <sas_discovery_status_to_text+0x22b>
cmpl   $0x0,-0x8(%rbp)
jle    130d <sas_discovery_status_to_text+0x1fd>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2d37(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2d28(%rip),%rdi
add    %rax,%rdi
lea    0xcde(%rip),%rsi
lea    0xd2d(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    1340 <sas_discovery_status_to_text+0x230>
jmp    1345 <sas_discovery_status_to_text+0x235>
mov    -0x4(%rbp),%eax
and    $0x8000,%eax
cmp    $0x0,%eax
je     13a7 <sas_discovery_status_to_text+0x297>
cmpl   $0x0,-0x8(%rbp)
jle    1379 <sas_discovery_status_to_text+0x269>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2ccb(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2cbc(%rip),%rdi
add    %rax,%rdi
lea    0xc72(%rip),%rsi
lea    0xcd6(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    13ac <sas_discovery_status_to_text+0x29c>
jmp    13b1 <sas_discovery_status_to_text+0x2a1>
mov    -0x4(%rbp),%eax
and    $0x4000,%eax
cmp    $0x0,%eax
je     1413 <sas_discovery_status_to_text+0x303>
cmpl   $0x0,-0x8(%rbp)
jle    13e5 <sas_discovery_status_to_text+0x2d5>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2c5f(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2c50(%rip),%rdi
add    %rax,%rdi
lea    0xc06(%rip),%rsi
lea    0xc88(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    1418 <sas_discovery_status_to_text+0x308>
jmp    141d <sas_discovery_status_to_text+0x30d>
mov    -0x4(%rbp),%eax
and    $0x2000,%eax
cmp    $0x0,%eax
je     147f <sas_discovery_status_to_text+0x36f>
cmpl   $0x0,-0x8(%rbp)
jle    1451 <sas_discovery_status_to_text+0x341>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2bf3(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2be4(%rip),%rdi
add    %rax,%rdi
lea    0xb9a(%rip),%rsi
lea    0xc32(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    1484 <sas_discovery_status_to_text+0x374>
jmp    1489 <sas_discovery_status_to_text+0x379>
mov    -0x4(%rbp),%eax
and    $0x1000,%eax
cmp    $0x0,%eax
je     14eb <sas_discovery_status_to_text+0x3db>
cmpl   $0x0,-0x8(%rbp)
jle    14bd <sas_discovery_status_to_text+0x3ad>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2b87(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2b78(%rip),%rdi
add    %rax,%rdi
lea    0xb2e(%rip),%rsi
lea    0xbd8(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    14f0 <sas_discovery_status_to_text+0x3e0>
jmp    14f5 <sas_discovery_status_to_text+0x3e5>
mov    -0x4(%rbp),%eax
and    $0x800,%eax
cmp    $0x0,%eax
je     1557 <sas_discovery_status_to_text+0x447>
cmpl   $0x0,-0x8(%rbp)
jle    1529 <sas_discovery_status_to_text+0x419>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2b1b(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2b0c(%rip),%rdi
add    %rax,%rdi
lea    0xac2(%rip),%rsi
lea    0xb86(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    155c <sas_discovery_status_to_text+0x44c>
jmp    1561 <sas_discovery_status_to_text+0x451>
mov    -0x4(%rbp),%eax
and    $0x400,%eax
cmp    $0x0,%eax
je     15c3 <sas_discovery_status_to_text+0x4b3>
cmpl   $0x0,-0x8(%rbp)
jle    1595 <sas_discovery_status_to_text+0x485>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2aaf(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2aa0(%rip),%rdi
add    %rax,%rdi
lea    0xa56(%rip),%rsi
lea    0xb2d(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    15c8 <sas_discovery_status_to_text+0x4b8>
jmp    15cd <sas_discovery_status_to_text+0x4bd>
mov    -0x4(%rbp),%eax
and    $0x200,%eax
cmp    $0x0,%eax
je     162f <sas_discovery_status_to_text+0x51f>
cmpl   $0x0,-0x8(%rbp)
jle    1601 <sas_discovery_status_to_text+0x4f1>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2a43(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2a34(%rip),%rdi
add    %rax,%rdi
lea    0x9ea(%rip),%rsi
lea    0xa9d(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    1634 <sas_discovery_status_to_text+0x524>
jmp    1639 <sas_discovery_status_to_text+0x529>
mov    -0x4(%rbp),%eax
and    $0x100,%eax
cmp    $0x0,%eax
je     169b <sas_discovery_status_to_text+0x58b>
cmpl   $0x0,-0x8(%rbp)
jle    166d <sas_discovery_status_to_text+0x55d>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x29d7(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x29c8(%rip),%rdi
add    %rax,%rdi
lea    0x97e(%rip),%rsi
lea    0xa60(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    16a0 <sas_discovery_status_to_text+0x590>
jmp    16a5 <sas_discovery_status_to_text+0x595>
mov    -0x4(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1707 <sas_discovery_status_to_text+0x5f7>
cmpl   $0x0,-0x8(%rbp)
jle    16d9 <sas_discovery_status_to_text+0x5c9>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x296b(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x295c(%rip),%rdi
add    %rax,%rdi
lea    0x912(%rip),%rsi
lea    0xa02(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    170c <sas_discovery_status_to_text+0x5fc>
jmp    1711 <sas_discovery_status_to_text+0x601>
mov    -0x4(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     1771 <sas_discovery_status_to_text+0x661>
cmpl   $0x0,-0x8(%rbp)
jle    1743 <sas_discovery_status_to_text+0x633>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2901(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x28f2(%rip),%rdi
add    %rax,%rdi
lea    0x8a8(%rip),%rsi
lea    0x9ac(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    1776 <sas_discovery_status_to_text+0x666>
jmp    177b <sas_discovery_status_to_text+0x66b>
mov    -0x4(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     17db <sas_discovery_status_to_text+0x6cb>
cmpl   $0x0,-0x8(%rbp)
jle    17ad <sas_discovery_status_to_text+0x69d>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2897(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2888(%rip),%rdi
add    %rax,%rdi
lea    0x83e(%rip),%rsi
lea    0x952(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    17e0 <sas_discovery_status_to_text+0x6d0>
jmp    17e5 <sas_discovery_status_to_text+0x6d5>
mov    -0x4(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1845 <sas_discovery_status_to_text+0x735>
cmpl   $0x0,-0x8(%rbp)
jle    1817 <sas_discovery_status_to_text+0x707>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x282d(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x281e(%rip),%rdi
add    %rax,%rdi
lea    0x7d4(%rip),%rsi
lea    0x8fa(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    184a <sas_discovery_status_to_text+0x73a>
jmp    184f <sas_discovery_status_to_text+0x73f>
mov    -0x4(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     18af <sas_discovery_status_to_text+0x79f>
cmpl   $0x0,-0x8(%rbp)
jle    1881 <sas_discovery_status_to_text+0x771>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x27c3(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x27b4(%rip),%rdi
add    %rax,%rdi
lea    0x76a(%rip),%rsi
lea    0x89c(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    18b4 <sas_discovery_status_to_text+0x7a4>
jmp    18b9 <sas_discovery_status_to_text+0x7a9>
mov    -0x4(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1919 <sas_discovery_status_to_text+0x809>
cmpl   $0x0,-0x8(%rbp)
jle    18eb <sas_discovery_status_to_text+0x7db>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2759(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x274a(%rip),%rdi
add    %rax,%rdi
lea    0x700(%rip),%rsi
lea    0x841(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    191e <sas_discovery_status_to_text+0x80e>
jmp    1923 <sas_discovery_status_to_text+0x813>
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1983 <sas_discovery_status_to_text+0x873>
cmpl   $0x0,-0x8(%rbp)
jle    1955 <sas_discovery_status_to_text+0x845>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x26ef(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x26e0(%rip),%rdi
add    %rax,%rdi
lea    0x696(%rip),%rsi
lea    0x7ec(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    1988 <sas_discovery_status_to_text+0x878>
lea    0x26b1(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sas_discovery_status_to_text>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%ebp
movb   $0x0,0x2f23(%rip)
test   %edi,%edi
js     1226 <sas_discovery_status_to_text+0x116>
xor    %ebx,%ebx
test   $0x40000000,%ebp
jne    1331 <sas_discovery_status_to_text+0x221>
xor    %ebx,%ebx
test   $0x20000000,%ebp
jne    1373 <sas_discovery_status_to_text+0x263>
xor    %ebx,%ebx
test   $0x10000000,%ebp
jne    13b5 <sas_discovery_status_to_text+0x2a5>
xor    %ebx,%ebx
test   $0x8000000,%ebp
jne    13f7 <sas_discovery_status_to_text+0x2e7>
xor    %ebx,%ebx
test   $0x8000,%ebp
jne    1439 <sas_discovery_status_to_text+0x329>
xor    %ebx,%ebx
test   $0x4000,%ebp
jne    147b <sas_discovery_status_to_text+0x36b>
xor    %ebx,%ebx
test   $0x2000,%ebp
jne    14bd <sas_discovery_status_to_text+0x3ad>
xor    %ebx,%ebx
test   $0x1000,%ebp
jne    14ff <sas_discovery_status_to_text+0x3ef>
xor    %ebx,%ebx
test   $0x800,%ebp
jne    1541 <sas_discovery_status_to_text+0x431>
xor    %ebx,%ebx
test   $0x400,%ebp
jne    1583 <sas_discovery_status_to_text+0x473>
xor    %ebx,%ebx
test   $0x200,%ebp
jne    15c5 <sas_discovery_status_to_text+0x4b5>
xor    %ebx,%ebx
test   $0x100,%ebp
jne    1607 <sas_discovery_status_to_text+0x4f7>
xor    %ebx,%ebx
test   $0x80,%bpl
jne    1647 <sas_discovery_status_to_text+0x537>
xor    %ebx,%ebx
test   $0x40,%bpl
jne    1687 <sas_discovery_status_to_text+0x577>
xor    %ebx,%ebx
test   $0x20,%bpl
jne    16c7 <sas_discovery_status_to_text+0x5b7>
xor    %ebx,%ebx
test   $0x10,%bpl
jne    1707 <sas_discovery_status_to_text+0x5f7>
xor    %ebx,%ebx
test   $0x4,%bpl
jne    1747 <sas_discovery_status_to_text+0x637>
xor    %ebx,%ebx
test   $0x2,%bpl
jne    1787 <sas_discovery_status_to_text+0x677>
xor    %ebx,%ebx
test   $0x1,%bpl
jne    17c3 <sas_discovery_status_to_text+0x6b3>
jmp    17e3 <sas_discovery_status_to_text+0x6d3>
lea    0x2e13(%rip),%r14
lea    0xdcc(%rip),%rsi
lea    0xdc8(%rip),%rdx
mov    %r14,%rdi
call   1030 <sprintf@plt>
mov    %rax,%rbx
test   $0x40000000,%ebp
jne    1321 <sas_discovery_status_to_text+0x211>
test   $0x20000000,%ebp
jne    135f <sas_discovery_status_to_text+0x24f>
test   $0x10000000,%ebp
jne    13a1 <sas_discovery_status_to_text+0x291>
test   $0x8000000,%ebp
jne    13e3 <sas_discovery_status_to_text+0x2d3>
test   $0x8000,%ebp
jne    1425 <sas_discovery_status_to_text+0x315>
test   $0x4000,%ebp
jne    1467 <sas_discovery_status_to_text+0x357>
test   $0x2000,%ebp
jne    14a9 <sas_discovery_status_to_text+0x399>
test   $0x1000,%ebp
jne    14eb <sas_discovery_status_to_text+0x3db>
test   $0x800,%ebp
jne    152d <sas_discovery_status_to_text+0x41d>
test   $0x400,%ebp
jne    156f <sas_discovery_status_to_text+0x45f>
test   $0x200,%ebp
jne    15b1 <sas_discovery_status_to_text+0x4a1>
test   $0x100,%ebp
jne    15f3 <sas_discovery_status_to_text+0x4e3>
test   $0x80,%bpl
jne    1633 <sas_discovery_status_to_text+0x523>
test   $0x40,%bpl
jne    1673 <sas_discovery_status_to_text+0x563>
test   $0x20,%bpl
jne    16b3 <sas_discovery_status_to_text+0x5a3>
test   $0x10,%bpl
jne    16f3 <sas_discovery_status_to_text+0x5e3>
test   $0x4,%bpl
jne    1733 <sas_discovery_status_to_text+0x623>
test   $0x2,%bpl
jne    1773 <sas_discovery_status_to_text+0x663>
test   $0x1,%bpl
jne    17af <sas_discovery_status_to_text+0x69f>
jmp    17e3 <sas_discovery_status_to_text+0x6d3>
test   %ebx,%ebx
jle    1331 <sas_discovery_status_to_text+0x221>
mov    %ebx,%eax
lea    0x1(%rbx),%ecx
movb   $0x2c,(%rax,%r14,1)
mov    %ecx,%ebx
movslq %ebx,%rbx
lea    0x2d05(%rip),%rdi
add    %rbx,%rdi
lea    0xcbb(%rip),%rsi
lea    0xccd(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x20000000,%ebp
je     125e <sas_discovery_status_to_text+0x14e>
test   %ebx,%ebx
jle    1373 <sas_discovery_status_to_text+0x263>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2cd1(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2cc3(%rip),%rdi
add    %rbx,%rdi
lea    0xc79(%rip),%rsi
lea    0xca0(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x10000000,%ebp
je     126a <sas_discovery_status_to_text+0x15a>
test   %ebx,%ebx
jle    13b5 <sas_discovery_status_to_text+0x2a5>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2c8f(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2c81(%rip),%rdi
add    %rbx,%rdi
lea    0xc37(%rip),%rsi
lea    0xc71(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x8000000,%ebp
je     1276 <sas_discovery_status_to_text+0x166>
test   %ebx,%ebx
jle    13f7 <sas_discovery_status_to_text+0x2e7>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2c4d(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2c3f(%rip),%rdi
add    %rbx,%rdi
lea    0xbf5(%rip),%rsi
lea    0xc44(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x8000,%ebp
je     1282 <sas_discovery_status_to_text+0x172>
test   %ebx,%ebx
jle    1439 <sas_discovery_status_to_text+0x329>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2c0b(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2bfd(%rip),%rdi
add    %rbx,%rdi
lea    0xbb3(%rip),%rsi
lea    0xc17(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x4000,%ebp
je     128e <sas_discovery_status_to_text+0x17e>
test   %ebx,%ebx
jle    147b <sas_discovery_status_to_text+0x36b>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2bc9(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2bbb(%rip),%rdi
add    %rbx,%rdi
lea    0xb71(%rip),%rsi
lea    0xbf3(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x2000,%ebp
je     129a <sas_discovery_status_to_text+0x18a>
test   %ebx,%ebx
jle    14bd <sas_discovery_status_to_text+0x3ad>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2b87(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2b79(%rip),%rdi
add    %rbx,%rdi
lea    0xb2f(%rip),%rsi
lea    0xbc7(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x1000,%ebp
je     12a6 <sas_discovery_status_to_text+0x196>
test   %ebx,%ebx
jle    14ff <sas_discovery_status_to_text+0x3ef>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2b45(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2b37(%rip),%rdi
add    %rbx,%rdi
lea    0xaed(%rip),%rsi
lea    0xb97(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x800,%ebp
je     12b2 <sas_discovery_status_to_text+0x1a2>
test   %ebx,%ebx
jle    1541 <sas_discovery_status_to_text+0x431>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2b03(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2af5(%rip),%rdi
add    %rbx,%rdi
lea    0xaab(%rip),%rsi
lea    0xb6f(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x400,%ebp
je     12be <sas_discovery_status_to_text+0x1ae>
test   %ebx,%ebx
jle    1583 <sas_discovery_status_to_text+0x473>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2ac1(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2ab3(%rip),%rdi
add    %rbx,%rdi
lea    0xa69(%rip),%rsi
lea    0xb40(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x200,%ebp
je     12ca <sas_discovery_status_to_text+0x1ba>
test   %ebx,%ebx
jle    15c5 <sas_discovery_status_to_text+0x4b5>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2a7f(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2a71(%rip),%rdi
add    %rbx,%rdi
lea    0xa27(%rip),%rsi
lea    0xada(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x100,%ebp
je     12d6 <sas_discovery_status_to_text+0x1c6>
test   %ebx,%ebx
jle    1607 <sas_discovery_status_to_text+0x4f7>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2a3d(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2a2f(%rip),%rdi
add    %rbx,%rdi
lea    0x9e5(%rip),%rsi
lea    0xac7(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x80,%bpl
je     12e0 <sas_discovery_status_to_text+0x1d0>
test   %ebx,%ebx
jle    1647 <sas_discovery_status_to_text+0x537>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x29fd(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x29ef(%rip),%rdi
add    %rbx,%rdi
lea    0x9a5(%rip),%rsi
lea    0xa95(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x40,%bpl
je     12ea <sas_discovery_status_to_text+0x1da>
test   %ebx,%ebx
jle    1687 <sas_discovery_status_to_text+0x577>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x29bd(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x29af(%rip),%rdi
add    %rbx,%rdi
lea    0x965(%rip),%rsi
lea    0xa69(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x20,%bpl
je     12f4 <sas_discovery_status_to_text+0x1e4>
test   %ebx,%ebx
jle    16c7 <sas_discovery_status_to_text+0x5b7>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x297d(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x296f(%rip),%rdi
add    %rbx,%rdi
lea    0x925(%rip),%rsi
lea    0xa39(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x10,%bpl
je     12fe <sas_discovery_status_to_text+0x1ee>
test   %ebx,%ebx
jle    1707 <sas_discovery_status_to_text+0x5f7>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x293d(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x292f(%rip),%rdi
add    %rbx,%rdi
lea    0x8e5(%rip),%rsi
lea    0xa0b(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x4,%bpl
je     1308 <sas_discovery_status_to_text+0x1f8>
test   %ebx,%ebx
jle    1747 <sas_discovery_status_to_text+0x637>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x28fd(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x28ef(%rip),%rdi
add    %rbx,%rdi
lea    0x8a5(%rip),%rsi
lea    0x9d7(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x2,%bpl
je     1312 <sas_discovery_status_to_text+0x202>
test   %ebx,%ebx
jle    1787 <sas_discovery_status_to_text+0x677>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x28bd(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x28af(%rip),%rdi
add    %rbx,%rdi
lea    0x865(%rip),%rsi
lea    0x9a6(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x1,%bpl
je     17e3 <sas_discovery_status_to_text+0x6d3>
test   %ebx,%ebx
jle    17c3 <sas_discovery_status_to_text+0x6b3>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2881(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rax
lea    0x2873(%rip),%rdi
add    %rax,%rdi
lea    0x829(%rip),%rsi
lea    0x97f(%rip),%rdx
call   1030 <sprintf@plt>
lea    0x2856(%rip),%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@sas_discovery_status_to_text.text = internal global [256 x i8] zeroinitializer
@.str = [3 x i8] c"%s\00"
@.str.1 = [22 x i8] c"MAX_ENCLOSURES_EXCEED\00"
@.str.2 = [21 x i8] c"MAX_EXPANDERS_EXCEED\00"
@.str.3 = [19 x i8] c"MAX_DEVICES_EXCEED\00"
@.str.4 = [21 x i8] c"MAX_TOPO_PHYS_EXCEED\00"
@.str.5 = [21 x i8] c"DOWNSTREAM_INITIATOR\00"
@.str.6 = [30 x i8] c"MULTI_SUBTRACTIVE_SUBTRACTIVE\00"
@.str.7 = [22 x i8] c"EXP_MULTI_SUBTRACTIVE\00"
@.str.8 = [18 x i8] c"MULTI_PORT_DOMAIN\00"
@.str.9 = [26 x i8] c"TABLE_TO_SUBTRACTIVE_LINK\00"
@.str.10 = [19 x i8] c"UNSUPPORTED_DEVICE\00"
@.str.11 = [11 x i8] c"TABLE_LINK\00"
@.str.12 = [17 x i8] c"SUBTRACTIVE_LINK\00"
@.str.13 = [14 x i8] c"SMP_CRC_ERROR\00"
@.str.14 = [20 x i8] c"SMP_FUNCTION_FAILED\00"
@.str.15 = [16 x i8] c"INDEX_NOT_EXIST\00"
@.str.16 = [18 x i8] c"OUT_ROUTE_ENTRIES\00"
@.str.17 = [12 x i8] c"SMP_TIMEOUT\00"
@.str.18 = [15 x i8] c"MULTIPLE_PORTS\00"
@.str.19 = [21 x i8] c"UNADDRESSABLE_DEVICE\00"
@.str.20 = [14 x i8] c"LOOP_DETECTED\00"
define i8* @sas_discovery_status_to_text(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
store i8 0, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0)
br label %4
4: ; preds = %1
%5 = load i32, i32* %2
%6 = and i32 %5, -2147483648
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %25
8: ; preds = %4
%9 = load i32, i32* %3
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, i32* %3
%13 = add nsw i32 %12, 1
store i32 %13, i32* %3
%14 = sext i32 %12 to i64
%15 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %14
store i8 44, i8* %15
br label %16
16: ; preds = %11, %8
%17 = load i32, i32* %3
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %18
%20 = call i64 @sprintf(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%21 = load i32, i32* %3
%22 = sext i32 %21 to i64
%23 = add nsw i64 %22, %20
%24 = trunc i64 %23 to i32
store i32 %24, i32* %3
br label %25
25: ; preds = %16, %4
br label %26
26: ; preds = %25
br label %27
27: ; preds = %26
%28 = load i32, i32* %2
%29 = and i32 %28, 1073741824
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %48
31: ; preds = %27
%32 = load i32, i32* %3
%33 = icmp sgt i32 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %31
%35 = load i32, i32* %3
%36 = add nsw i32 %35, 1
store i32 %36, i32* %3
%37 = sext i32 %35 to i64
%38 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %37
store i8 44, i8* %38
br label %39
39: ; preds = %34, %31
%40 = load i32, i32* %3
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %41
%43 = call i64 @sprintf(i8* %42, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%44 = load i32, i32* %3
%45 = sext i32 %44 to i64
%46 = add nsw i64 %45, %43
%47 = trunc i64 %46 to i32
store i32 %47, i32* %3
br label %48
48: ; preds = %39, %27
br label %49
49: ; preds = %48
br label %50
50: ; preds = %49
%51 = load i32, i32* %2
%52 = and i32 %51, 536870912
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %71
54: ; preds = %50
%55 = load i32, i32* %3
%56 = icmp sgt i32 %55, 0
br i1 %56, label %57, label %62
57: ; preds = %54
%58 = load i32, i32* %3
%59 = add nsw i32 %58, 1
store i32 %59, i32* %3
%60 = sext i32 %58 to i64
%61 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %60
store i8 44, i8* %61
br label %62
62: ; preds = %57, %54
%63 = load i32, i32* %3
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %64
%66 = call i64 @sprintf(i8* %65, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%67 = load i32, i32* %3
%68 = sext i32 %67 to i64
%69 = add nsw i64 %68, %66
%70 = trunc i64 %69 to i32
store i32 %70, i32* %3
br label %71
71: ; preds = %62, %50
br label %72
72: ; preds = %71
br label %73
73: ; preds = %72
%74 = load i32, i32* %2
%75 = and i32 %74, 268435456
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %94
77: ; preds = %73
%78 = load i32, i32* %3
%79 = icmp sgt i32 %78, 0
br i1 %79, label %80, label %85
80: ; preds = %77
%81 = load i32, i32* %3
%82 = add nsw i32 %81, 1
store i32 %82, i32* %3
%83 = sext i32 %81 to i64
%84 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %83
store i8 44, i8* %84
br label %85
85: ; preds = %80, %77
%86 = load i32, i32* %3
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %87
%89 = call i64 @sprintf(i8* %88, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%90 = load i32, i32* %3
%91 = sext i32 %90 to i64
%92 = add nsw i64 %91, %89
%93 = trunc i64 %92 to i32
store i32 %93, i32* %3
br label %94
94: ; preds = %85, %73
br label %95
95: ; preds = %94
br label %96
96: ; preds = %95
%97 = load i32, i32* %2
%98 = and i32 %97, 134217728
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %117
100: ; preds = %96
%101 = load i32, i32* %3
%102 = icmp sgt i32 %101, 0
br i1 %102, label %103, label %108
103: ; preds = %100
%104 = load i32, i32* %3
%105 = add nsw i32 %104, 1
store i32 %105, i32* %3
%106 = sext i32 %104 to i64
%107 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %106
store i8 44, i8* %107
br label %108
108: ; preds = %103, %100
%109 = load i32, i32* %3
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %110
%112 = call i64 @sprintf(i8* %111, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%113 = load i32, i32* %3
%114 = sext i32 %113 to i64
%115 = add nsw i64 %114, %112
%116 = trunc i64 %115 to i32
store i32 %116, i32* %3
br label %117
117: ; preds = %108, %96
br label %118
118: ; preds = %117
br label %119
119: ; preds = %118
%120 = load i32, i32* %2
%121 = and i32 %120, 32768
%122 = icmp ne i32 %121, 0
br i1 %122, label %123, label %140
123: ; preds = %119
%124 = load i32, i32* %3
%125 = icmp sgt i32 %124, 0
br i1 %125, label %126, label %131
126: ; preds = %123
%127 = load i32, i32* %3
%128 = add nsw i32 %127, 1
store i32 %128, i32* %3
%129 = sext i32 %127 to i64
%130 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %129
store i8 44, i8* %130
br label %131
131: ; preds = %126, %123
%132 = load i32, i32* %3
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %133
%135 = call i64 @sprintf(i8* %134, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%136 = load i32, i32* %3
%137 = sext i32 %136 to i64
%138 = add nsw i64 %137, %135
%139 = trunc i64 %138 to i32
store i32 %139, i32* %3
br label %140
140: ; preds = %131, %119
br label %141
141: ; preds = %140
br label %142
142: ; preds = %141
%143 = load i32, i32* %2
%144 = and i32 %143, 16384
%145 = icmp ne i32 %144, 0
br i1 %145, label %146, label %163
146: ; preds = %142
%147 = load i32, i32* %3
%148 = icmp sgt i32 %147, 0
br i1 %148, label %149, label %154
149: ; preds = %146
%150 = load i32, i32* %3
%151 = add nsw i32 %150, 1
store i32 %151, i32* %3
%152 = sext i32 %150 to i64
%153 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %152
store i8 44, i8* %153
br label %154
154: ; preds = %149, %146
%155 = load i32, i32* %3
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %156
%158 = call i64 @sprintf(i8* %157, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%159 = load i32, i32* %3
%160 = sext i32 %159 to i64
%161 = add nsw i64 %160, %158
%162 = trunc i64 %161 to i32
store i32 %162, i32* %3
br label %163
163: ; preds = %154, %142
br label %164
164: ; preds = %163
br label %165
165: ; preds = %164
%166 = load i32, i32* %2
%167 = and i32 %166, 8192
%168 = icmp ne i32 %167, 0
br i1 %168, label %169, label %186
169: ; preds = %165
%170 = load i32, i32* %3
%171 = icmp sgt i32 %170, 0
br i1 %171, label %172, label %177
172: ; preds = %169
%173 = load i32, i32* %3
%174 = add nsw i32 %173, 1
store i32 %174, i32* %3
%175 = sext i32 %173 to i64
%176 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %175
store i8 44, i8* %176
br label %177
177: ; preds = %172, %169
%178 = load i32, i32* %3
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %179
%181 = call i64 @sprintf(i8* %180, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%182 = load i32, i32* %3
%183 = sext i32 %182 to i64
%184 = add nsw i64 %183, %181
%185 = trunc i64 %184 to i32
store i32 %185, i32* %3
br label %186
186: ; preds = %177, %165
br label %187
187: ; preds = %186
br label %188
188: ; preds = %187
%189 = load i32, i32* %2
%190 = and i32 %189, 4096
%191 = icmp ne i32 %190, 0
br i1 %191, label %192, label %209
192: ; preds = %188
%193 = load i32, i32* %3
%194 = icmp sgt i32 %193, 0
br i1 %194, label %195, label %200
195: ; preds = %192
%196 = load i32, i32* %3
%197 = add nsw i32 %196, 1
store i32 %197, i32* %3
%198 = sext i32 %196 to i64
%199 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %198
store i8 44, i8* %199
br label %200
200: ; preds = %195, %192
%201 = load i32, i32* %3
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %202
%204 = call i64 @sprintf(i8* %203, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
%205 = load i32, i32* %3
%206 = sext i32 %205 to i64
%207 = add nsw i64 %206, %204
%208 = trunc i64 %207 to i32
store i32 %208, i32* %3
br label %209
209: ; preds = %200, %188
br label %210
210: ; preds = %209
br label %211
211: ; preds = %210
%212 = load i32, i32* %2
%213 = and i32 %212, 2048
%214 = icmp ne i32 %213, 0
br i1 %214, label %215, label %232
215: ; preds = %211
%216 = load i32, i32* %3
%217 = icmp sgt i32 %216, 0
br i1 %217, label %218, label %223
218: ; preds = %215
%219 = load i32, i32* %3
%220 = add nsw i32 %219, 1
store i32 %220, i32* %3
%221 = sext i32 %219 to i64
%222 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %221
store i8 44, i8* %222
br label %223
223: ; preds = %218, %215
%224 = load i32, i32* %3
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %225
%227 = call i64 @sprintf(i8* %226, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%228 = load i32, i32* %3
%229 = sext i32 %228 to i64
%230 = add nsw i64 %229, %227
%231 = trunc i64 %230 to i32
store i32 %231, i32* %3
br label %232
232: ; preds = %223, %211
br label %233
233: ; preds = %232
br label %234
234: ; preds = %233
%235 = load i32, i32* %2
%236 = and i32 %235, 1024
%237 = icmp ne i32 %236, 0
br i1 %237, label %238, label %255
238: ; preds = %234
%239 = load i32, i32* %3
%240 = icmp sgt i32 %239, 0
br i1 %240, label %241, label %246
241: ; preds = %238
%242 = load i32, i32* %3
%243 = add nsw i32 %242, 1
store i32 %243, i32* %3
%244 = sext i32 %242 to i64
%245 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %244
store i8 44, i8* %245
br label %246
246: ; preds = %241, %238
%247 = load i32, i32* %3
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %248
%250 = call i64 @sprintf(i8* %249, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%251 = load i32, i32* %3
%252 = sext i32 %251 to i64
%253 = add nsw i64 %252, %250
%254 = trunc i64 %253 to i32
store i32 %254, i32* %3
br label %255
255: ; preds = %246, %234
br label %256
256: ; preds = %255
br label %257
257: ; preds = %256
%258 = load i32, i32* %2
%259 = and i32 %258, 512
%260 = icmp ne i32 %259, 0
br i1 %260, label %261, label %278
261: ; preds = %257
%262 = load i32, i32* %3
%263 = icmp sgt i32 %262, 0
br i1 %263, label %264, label %269
264: ; preds = %261
%265 = load i32, i32* %3
%266 = add nsw i32 %265, 1
store i32 %266, i32* %3
%267 = sext i32 %265 to i64
%268 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %267
store i8 44, i8* %268
br label %269
269: ; preds = %264, %261
%270 = load i32, i32* %3
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %271
%273 = call i64 @sprintf(i8* %272, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0))
%274 = load i32, i32* %3
%275 = sext i32 %274 to i64
%276 = add nsw i64 %275, %273
%277 = trunc i64 %276 to i32
store i32 %277, i32* %3
br label %278
278: ; preds = %269, %257
br label %279
279: ; preds = %278
br label %280
280: ; preds = %279
%281 = load i32, i32* %2
%282 = and i32 %281, 256
%283 = icmp ne i32 %282, 0
br i1 %283, label %284, label %301
284: ; preds = %280
%285 = load i32, i32* %3
%286 = icmp sgt i32 %285, 0
br i1 %286, label %287, label %292
287: ; preds = %284
%288 = load i32, i32* %3
%289 = add nsw i32 %288, 1
store i32 %289, i32* %3
%290 = sext i32 %288 to i64
%291 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %290
store i8 44, i8* %291
br label %292
292: ; preds = %287, %284
%293 = load i32, i32* %3
%294 = sext i32 %293 to i64
%295 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %294
%296 = call i64 @sprintf(i8* %295, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0))
%297 = load i32, i32* %3
%298 = sext i32 %297 to i64
%299 = add nsw i64 %298, %296
%300 = trunc i64 %299 to i32
store i32 %300, i32* %3
br label %301
301: ; preds = %292, %280
br label %302
302: ; preds = %301
br label %303
303: ; preds = %302
%304 = load i32, i32* %2
%305 = and i32 %304, 128
%306 = icmp ne i32 %305, 0
br i1 %306, label %307, label %324
307: ; preds = %303
%308 = load i32, i32* %3
%309 = icmp sgt i32 %308, 0
br i1 %309, label %310, label %315
310: ; preds = %307
%311 = load i32, i32* %3
%312 = add nsw i32 %311, 1
store i32 %312, i32* %3
%313 = sext i32 %311 to i64
%314 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %313
store i8 44, i8* %314
br label %315
315: ; preds = %310, %307
%316 = load i32, i32* %3
%317 = sext i32 %316 to i64
%318 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %317
%319 = call i64 @sprintf(i8* %318, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0))
%320 = load i32, i32* %3
%321 = sext i32 %320 to i64
%322 = add nsw i64 %321, %319
%323 = trunc i64 %322 to i32
store i32 %323, i32* %3
br label %324
324: ; preds = %315, %303
br label %325
325: ; preds = %324
br label %326
326: ; preds = %325
%327 = load i32, i32* %2
%328 = and i32 %327, 64
%329 = icmp ne i32 %328, 0
br i1 %329, label %330, label %347
330: ; preds = %326
%331 = load i32, i32* %3
%332 = icmp sgt i32 %331, 0
br i1 %332, label %333, label %338
333: ; preds = %330
%334 = load i32, i32* %3
%335 = add nsw i32 %334, 1
store i32 %335, i32* %3
%336 = sext i32 %334 to i64
%337 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %336
store i8 44, i8* %337
br label %338
338: ; preds = %333, %330
%339 = load i32, i32* %3
%340 = sext i32 %339 to i64
%341 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %340
%342 = call i64 @sprintf(i8* %341, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0))
%343 = load i32, i32* %3
%344 = sext i32 %343 to i64
%345 = add nsw i64 %344, %342
%346 = trunc i64 %345 to i32
store i32 %346, i32* %3
br label %347
347: ; preds = %338, %326
br label %348
348: ; preds = %347
br label %349
349: ; preds = %348
%350 = load i32, i32* %2
%351 = and i32 %350, 32
%352 = icmp ne i32 %351, 0
br i1 %352, label %353, label %370
353: ; preds = %349
%354 = load i32, i32* %3
%355 = icmp sgt i32 %354, 0
br i1 %355, label %356, label %361
356: ; preds = %353
%357 = load i32, i32* %3
%358 = add nsw i32 %357, 1
store i32 %358, i32* %3
%359 = sext i32 %357 to i64
%360 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %359
store i8 44, i8* %360
br label %361
361: ; preds = %356, %353
%362 = load i32, i32* %3
%363 = sext i32 %362 to i64
%364 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %363
%365 = call i64 @sprintf(i8* %364, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0))
%366 = load i32, i32* %3
%367 = sext i32 %366 to i64
%368 = add nsw i64 %367, %365
%369 = trunc i64 %368 to i32
store i32 %369, i32* %3
br label %370
370: ; preds = %361, %349
br label %371
371: ; preds = %370
br label %372
372: ; preds = %371
%373 = load i32, i32* %2
%374 = and i32 %373, 16
%375 = icmp ne i32 %374, 0
br i1 %375, label %376, label %393
376: ; preds = %372
%377 = load i32, i32* %3
%378 = icmp sgt i32 %377, 0
br i1 %378, label %379, label %384
379: ; preds = %376
%380 = load i32, i32* %3
%381 = add nsw i32 %380, 1
store i32 %381, i32* %3
%382 = sext i32 %380 to i64
%383 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %382
store i8 44, i8* %383
br label %384
384: ; preds = %379, %376
%385 = load i32, i32* %3
%386 = sext i32 %385 to i64
%387 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %386
%388 = call i64 @sprintf(i8* %387, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%389 = load i32, i32* %3
%390 = sext i32 %389 to i64
%391 = add nsw i64 %390, %388
%392 = trunc i64 %391 to i32
store i32 %392, i32* %3
br label %393
393: ; preds = %384, %372
br label %394
394: ; preds = %393
br label %395
395: ; preds = %394
%396 = load i32, i32* %2
%397 = and i32 %396, 4
%398 = icmp ne i32 %397, 0
br i1 %398, label %399, label %416
399: ; preds = %395
%400 = load i32, i32* %3
%401 = icmp sgt i32 %400, 0
br i1 %401, label %402, label %407
402: ; preds = %399
%403 = load i32, i32* %3
%404 = add nsw i32 %403, 1
store i32 %404, i32* %3
%405 = sext i32 %403 to i64
%406 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %405
store i8 44, i8* %406
br label %407
407: ; preds = %402, %399
%408 = load i32, i32* %3
%409 = sext i32 %408 to i64
%410 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %409
%411 = call i64 @sprintf(i8* %410, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0))
%412 = load i32, i32* %3
%413 = sext i32 %412 to i64
%414 = add nsw i64 %413, %411
%415 = trunc i64 %414 to i32
store i32 %415, i32* %3
br label %416
416: ; preds = %407, %395
br label %417
417: ; preds = %416
br label %418
418: ; preds = %417
%419 = load i32, i32* %2
%420 = and i32 %419, 2
%421 = icmp ne i32 %420, 0
br i1 %421, label %422, label %439
422: ; preds = %418
%423 = load i32, i32* %3
%424 = icmp sgt i32 %423, 0
br i1 %424, label %425, label %430
425: ; preds = %422
%426 = load i32, i32* %3
%427 = add nsw i32 %426, 1
store i32 %427, i32* %3
%428 = sext i32 %426 to i64
%429 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %428
store i8 44, i8* %429
br label %430
430: ; preds = %425, %422
%431 = load i32, i32* %3
%432 = sext i32 %431 to i64
%433 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %432
%434 = call i64 @sprintf(i8* %433, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.19, i64 0, i64 0))
%435 = load i32, i32* %3
%436 = sext i32 %435 to i64
%437 = add nsw i64 %436, %434
%438 = trunc i64 %437 to i32
store i32 %438, i32* %3
br label %439
439: ; preds = %430, %418
br label %440
440: ; preds = %439
br label %441
441: ; preds = %440
%442 = load i32, i32* %2
%443 = and i32 %442, 1
%444 = icmp ne i32 %443, 0
br i1 %444, label %445, label %462
445: ; preds = %441
%446 = load i32, i32* %3
%447 = icmp sgt i32 %446, 0
br i1 %447, label %448, label %453
448: ; preds = %445
%449 = load i32, i32* %3
%450 = add nsw i32 %449, 1
store i32 %450, i32* %3
%451 = sext i32 %449 to i64
%452 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %451
store i8 44, i8* %452
br label %453
453: ; preds = %448, %445
%454 = load i32, i32* %3
%455 = sext i32 %454 to i64
%456 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i64 %455
%457 = call i64 @sprintf(i8* %456, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0))
%458 = load i32, i32* %3
%459 = sext i32 %458 to i64
%460 = add nsw i64 %459, %457
%461 = trunc i64 %460 to i32
store i32 %461, i32* %3
br label %462
462: ; preds = %453, %441
br label %463
463: ; preds = %462
ret i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0)
}

LLVM IR (-O2):
@sas_discovery_status_to_text.text = internal global [256 x i8] zeroinitializer
@.str = [3 x i8] c"%s\00"
@.str.1 = [22 x i8] c"MAX_ENCLOSURES_EXCEED\00"
@.str.2 = [21 x i8] c"MAX_EXPANDERS_EXCEED\00"
@.str.3 = [19 x i8] c"MAX_DEVICES_EXCEED\00"
@.str.4 = [21 x i8] c"MAX_TOPO_PHYS_EXCEED\00"
@.str.5 = [21 x i8] c"DOWNSTREAM_INITIATOR\00"
@.str.6 = [30 x i8] c"MULTI_SUBTRACTIVE_SUBTRACTIVE\00"
@.str.7 = [22 x i8] c"EXP_MULTI_SUBTRACTIVE\00"
@.str.8 = [18 x i8] c"MULTI_PORT_DOMAIN\00"
@.str.9 = [26 x i8] c"TABLE_TO_SUBTRACTIVE_LINK\00"
@.str.10 = [19 x i8] c"UNSUPPORTED_DEVICE\00"
@.str.11 = [11 x i8] c"TABLE_LINK\00"
@.str.12 = [17 x i8] c"SUBTRACTIVE_LINK\00"
@.str.13 = [14 x i8] c"SMP_CRC_ERROR\00"
@.str.14 = [20 x i8] c"SMP_FUNCTION_FAILED\00"
@.str.15 = [16 x i8] c"INDEX_NOT_EXIST\00"
@.str.16 = [18 x i8] c"OUT_ROUTE_ENTRIES\00"
@.str.17 = [12 x i8] c"SMP_TIMEOUT\00"
@.str.18 = [15 x i8] c"MULTIPLE_PORTS\00"
@.str.19 = [21 x i8] c"UNADDRESSABLE_DEVICE\00"
@.str.20 = [14 x i8] c"LOOP_DETECTED\00"
define i8* @sas_discovery_status_to_text(i32 %0) {
store i8 0, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0)
%2 = icmp sgt i32 %0, -1
br i1 %2, label %8, label %3
3: ; preds = %1
%4 = tail call i64 @sprintf(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%5 = trunc i64 %4 to i32
%6 = and i32 %0, 1073741824
%7 = icmp eq i32 %6, 0
br i1 %7, label %24, label %11
8: ; preds = %1
%9 = and i32 %0, 1073741824
%10 = icmp eq i32 %9, 0
br i1 %10, label %28, label %17
11: ; preds = %3
%12 = icmp sgt i32 %5, 0
br i1 %12, label %13, label %17
13: ; preds = %11
%14 = add nuw nsw i32 %5, 1
%15 = and i64 %4, 4294967295
%16 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %15
store i8 44, i8* %16
br label %17
17: ; preds = %8, %13, %11
%18 = phi i32 [ %14, %13 ], [ %5, %11 ], [ 0, %8 ]
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %19
%21 = tail call i64 @sprintf(i8* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%22 = trunc i64 %21 to i32
%23 = add i32 %18, %22
br label %24
24: ; preds = %3, %17
%25 = phi i32 [ %23, %17 ], [ %5, %3 ]
%26 = and i32 %0, 536870912
%27 = icmp eq i32 %26, 0
br i1 %27, label %44, label %31
28: ; preds = %8
%29 = and i32 %0, 536870912
%30 = icmp eq i32 %29, 0
br i1 %30, label %48, label %37
31: ; preds = %24
%32 = icmp sgt i32 %25, 0
br i1 %32, label %33, label %37
33: ; preds = %31
%34 = add nuw nsw i32 %25, 1
%35 = zext i32 %25 to i64
%36 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %35
store i8 44, i8* %36
br label %37
37: ; preds = %28, %33, %31
%38 = phi i32 [ %34, %33 ], [ %25, %31 ], [ 0, %28 ]
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %39
%41 = tail call i64 @sprintf(i8* %40, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%42 = trunc i64 %41 to i32
%43 = add i32 %38, %42
br label %44
44: ; preds = %24, %37
%45 = phi i32 [ %43, %37 ], [ %25, %24 ]
%46 = and i32 %0, 268435456
%47 = icmp eq i32 %46, 0
br i1 %47, label %64, label %51
48: ; preds = %28
%49 = and i32 %0, 268435456
%50 = icmp eq i32 %49, 0
br i1 %50, label %68, label %57
51: ; preds = %44
%52 = icmp sgt i32 %45, 0
br i1 %52, label %53, label %57
53: ; preds = %51
%54 = add nuw nsw i32 %45, 1
%55 = zext i32 %45 to i64
%56 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %55
store i8 44, i8* %56
br label %57
57: ; preds = %48, %53, %51
%58 = phi i32 [ %54, %53 ], [ %45, %51 ], [ 0, %48 ]
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %59
%61 = tail call i64 @sprintf(i8* %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%62 = trunc i64 %61 to i32
%63 = add i32 %58, %62
br label %64
64: ; preds = %44, %57
%65 = phi i32 [ %63, %57 ], [ %45, %44 ]
%66 = and i32 %0, 134217728
%67 = icmp eq i32 %66, 0
br i1 %67, label %84, label %71
68: ; preds = %48
%69 = and i32 %0, 134217728
%70 = icmp eq i32 %69, 0
br i1 %70, label %88, label %77
71: ; preds = %64
%72 = icmp sgt i32 %65, 0
br i1 %72, label %73, label %77
73: ; preds = %71
%74 = add nuw nsw i32 %65, 1
%75 = zext i32 %65 to i64
%76 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %75
store i8 44, i8* %76
br label %77
77: ; preds = %68, %73, %71
%78 = phi i32 [ %74, %73 ], [ %65, %71 ], [ 0, %68 ]
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %79
%81 = tail call i64 @sprintf(i8* %80, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%82 = trunc i64 %81 to i32
%83 = add i32 %78, %82
br label %84
84: ; preds = %64, %77
%85 = phi i32 [ %83, %77 ], [ %65, %64 ]
%86 = and i32 %0, 32768
%87 = icmp eq i32 %86, 0
br i1 %87, label %104, label %91
88: ; preds = %68
%89 = and i32 %0, 32768
%90 = icmp eq i32 %89, 0
br i1 %90, label %108, label %97
91: ; preds = %84
%92 = icmp sgt i32 %85, 0
br i1 %92, label %93, label %97
93: ; preds = %91
%94 = add nuw nsw i32 %85, 1
%95 = zext i32 %85 to i64
%96 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %95
store i8 44, i8* %96
br label %97
97: ; preds = %88, %93, %91
%98 = phi i32 [ %94, %93 ], [ %85, %91 ], [ 0, %88 ]
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %99
%101 = tail call i64 @sprintf(i8* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%102 = trunc i64 %101 to i32
%103 = add i32 %98, %102
br label %104
104: ; preds = %84, %97
%105 = phi i32 [ %103, %97 ], [ %85, %84 ]
%106 = and i32 %0, 16384
%107 = icmp eq i32 %106, 0
br i1 %107, label %124, label %111
108: ; preds = %88
%109 = and i32 %0, 16384
%110 = icmp eq i32 %109, 0
br i1 %110, label %128, label %117
111: ; preds = %104
%112 = icmp sgt i32 %105, 0
br i1 %112, label %113, label %117
113: ; preds = %111
%114 = add nuw nsw i32 %105, 1
%115 = zext i32 %105 to i64
%116 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %115
store i8 44, i8* %116
br label %117
117: ; preds = %108, %113, %111
%118 = phi i32 [ %114, %113 ], [ %105, %111 ], [ 0, %108 ]
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %119
%121 = tail call i64 @sprintf(i8* %120, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%122 = trunc i64 %121 to i32
%123 = add i32 %118, %122
br label %124
124: ; preds = %104, %117
%125 = phi i32 [ %123, %117 ], [ %105, %104 ]
%126 = and i32 %0, 8192
%127 = icmp eq i32 %126, 0
br i1 %127, label %144, label %131
128: ; preds = %108
%129 = and i32 %0, 8192
%130 = icmp eq i32 %129, 0
br i1 %130, label %148, label %137
131: ; preds = %124
%132 = icmp sgt i32 %125, 0
br i1 %132, label %133, label %137
133: ; preds = %131
%134 = add nuw nsw i32 %125, 1
%135 = zext i32 %125 to i64
%136 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %135
store i8 44, i8* %136
br label %137
137: ; preds = %128, %133, %131
%138 = phi i32 [ %134, %133 ], [ %125, %131 ], [ 0, %128 ]
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %139
%141 = tail call i64 @sprintf(i8* %140, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%142 = trunc i64 %141 to i32
%143 = add i32 %138, %142
br label %144
144: ; preds = %124, %137
%145 = phi i32 [ %143, %137 ], [ %125, %124 ]
%146 = and i32 %0, 4096
%147 = icmp eq i32 %146, 0
br i1 %147, label %164, label %151
148: ; preds = %128
%149 = and i32 %0, 4096
%150 = icmp eq i32 %149, 0
br i1 %150, label %168, label %157
151: ; preds = %144
%152 = icmp sgt i32 %145, 0
br i1 %152, label %153, label %157
153: ; preds = %151
%154 = add nuw nsw i32 %145, 1
%155 = zext i32 %145 to i64
%156 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %155
store i8 44, i8* %156
br label %157
157: ; preds = %148, %153, %151
%158 = phi i32 [ %154, %153 ], [ %145, %151 ], [ 0, %148 ]
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %159
%161 = tail call i64 @sprintf(i8* %160, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
%162 = trunc i64 %161 to i32
%163 = add i32 %158, %162
br label %164
164: ; preds = %144, %157
%165 = phi i32 [ %163, %157 ], [ %145, %144 ]
%166 = and i32 %0, 2048
%167 = icmp eq i32 %166, 0
br i1 %167, label %184, label %171
168: ; preds = %148
%169 = and i32 %0, 2048
%170 = icmp eq i32 %169, 0
br i1 %170, label %188, label %177
171: ; preds = %164
%172 = icmp sgt i32 %165, 0
br i1 %172, label %173, label %177
173: ; preds = %171
%174 = add nuw nsw i32 %165, 1
%175 = zext i32 %165 to i64
%176 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %175
store i8 44, i8* %176
br label %177
177: ; preds = %168, %173, %171
%178 = phi i32 [ %174, %173 ], [ %165, %171 ], [ 0, %168 ]
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %179
%181 = tail call i64 @sprintf(i8* %180, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%182 = trunc i64 %181 to i32
%183 = add i32 %178, %182
br label %184
184: ; preds = %164, %177
%185 = phi i32 [ %183, %177 ], [ %165, %164 ]
%186 = and i32 %0, 1024
%187 = icmp eq i32 %186, 0
br i1 %187, label %204, label %191
188: ; preds = %168
%189 = and i32 %0, 1024
%190 = icmp eq i32 %189, 0
br i1 %190, label %208, label %197
191: ; preds = %184
%192 = icmp sgt i32 %185, 0
br i1 %192, label %193, label %197
193: ; preds = %191
%194 = add nuw nsw i32 %185, 1
%195 = zext i32 %185 to i64
%196 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %195
store i8 44, i8* %196
br label %197
197: ; preds = %188, %193, %191
%198 = phi i32 [ %194, %193 ], [ %185, %191 ], [ 0, %188 ]
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %199
%201 = tail call i64 @sprintf(i8* %200, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%202 = trunc i64 %201 to i32
%203 = add i32 %198, %202
br label %204
204: ; preds = %184, %197
%205 = phi i32 [ %203, %197 ], [ %185, %184 ]
%206 = and i32 %0, 512
%207 = icmp eq i32 %206, 0
br i1 %207, label %224, label %211
208: ; preds = %188
%209 = and i32 %0, 512
%210 = icmp eq i32 %209, 0
br i1 %210, label %228, label %217
211: ; preds = %204
%212 = icmp sgt i32 %205, 0
br i1 %212, label %213, label %217
213: ; preds = %211
%214 = add nuw nsw i32 %205, 1
%215 = zext i32 %205 to i64
%216 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %215
store i8 44, i8* %216
br label %217
217: ; preds = %208, %213, %211
%218 = phi i32 [ %214, %213 ], [ %205, %211 ], [ 0, %208 ]
%219 = sext i32 %218 to i64
%220 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %219
%221 = tail call i64 @sprintf(i8* %220, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0))
%222 = trunc i64 %221 to i32
%223 = add i32 %218, %222
br label %224
224: ; preds = %204, %217
%225 = phi i32 [ %223, %217 ], [ %205, %204 ]
%226 = and i32 %0, 256
%227 = icmp eq i32 %226, 0
br i1 %227, label %244, label %231
228: ; preds = %208
%229 = and i32 %0, 256
%230 = icmp eq i32 %229, 0
br i1 %230, label %248, label %237
231: ; preds = %224
%232 = icmp sgt i32 %225, 0
br i1 %232, label %233, label %237
233: ; preds = %231
%234 = add nuw nsw i32 %225, 1
%235 = zext i32 %225 to i64
%236 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %235
store i8 44, i8* %236
br label %237
237: ; preds = %228, %233, %231
%238 = phi i32 [ %234, %233 ], [ %225, %231 ], [ 0, %228 ]
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %239
%241 = tail call i64 @sprintf(i8* %240, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0))
%242 = trunc i64 %241 to i32
%243 = add i32 %238, %242
br label %244
244: ; preds = %224, %237
%245 = phi i32 [ %243, %237 ], [ %225, %224 ]
%246 = and i32 %0, 128
%247 = icmp eq i32 %246, 0
br i1 %247, label %264, label %251
248: ; preds = %228
%249 = and i32 %0, 128
%250 = icmp eq i32 %249, 0
br i1 %250, label %268, label %257
251: ; preds = %244
%252 = icmp sgt i32 %245, 0
br i1 %252, label %253, label %257
253: ; preds = %251
%254 = add nuw nsw i32 %245, 1
%255 = zext i32 %245 to i64
%256 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %255
store i8 44, i8* %256
br label %257
257: ; preds = %248, %253, %251
%258 = phi i32 [ %254, %253 ], [ %245, %251 ], [ 0, %248 ]
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %259
%261 = tail call i64 @sprintf(i8* %260, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0))
%262 = trunc i64 %261 to i32
%263 = add i32 %258, %262
br label %264
264: ; preds = %244, %257
%265 = phi i32 [ %263, %257 ], [ %245, %244 ]
%266 = and i32 %0, 64
%267 = icmp eq i32 %266, 0
br i1 %267, label %284, label %271
268: ; preds = %248
%269 = and i32 %0, 64
%270 = icmp eq i32 %269, 0
br i1 %270, label %288, label %277
271: ; preds = %264
%272 = icmp sgt i32 %265, 0
br i1 %272, label %273, label %277
273: ; preds = %271
%274 = add nuw nsw i32 %265, 1
%275 = zext i32 %265 to i64
%276 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %275
store i8 44, i8* %276
br label %277
277: ; preds = %268, %273, %271
%278 = phi i32 [ %274, %273 ], [ %265, %271 ], [ 0, %268 ]
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %279
%281 = tail call i64 @sprintf(i8* %280, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0))
%282 = trunc i64 %281 to i32
%283 = add i32 %278, %282
br label %284
284: ; preds = %264, %277
%285 = phi i32 [ %283, %277 ], [ %265, %264 ]
%286 = and i32 %0, 32
%287 = icmp eq i32 %286, 0
br i1 %287, label %304, label %291
288: ; preds = %268
%289 = and i32 %0, 32
%290 = icmp eq i32 %289, 0
br i1 %290, label %308, label %297
291: ; preds = %284
%292 = icmp sgt i32 %285, 0
br i1 %292, label %293, label %297
293: ; preds = %291
%294 = add nuw nsw i32 %285, 1
%295 = zext i32 %285 to i64
%296 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %295
store i8 44, i8* %296
br label %297
297: ; preds = %288, %293, %291
%298 = phi i32 [ %294, %293 ], [ %285, %291 ], [ 0, %288 ]
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %299
%301 = tail call i64 @sprintf(i8* %300, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0))
%302 = trunc i64 %301 to i32
%303 = add i32 %298, %302
br label %304
304: ; preds = %284, %297
%305 = phi i32 [ %303, %297 ], [ %285, %284 ]
%306 = and i32 %0, 16
%307 = icmp eq i32 %306, 0
br i1 %307, label %324, label %311
308: ; preds = %288
%309 = and i32 %0, 16
%310 = icmp eq i32 %309, 0
br i1 %310, label %328, label %317
311: ; preds = %304
%312 = icmp sgt i32 %305, 0
br i1 %312, label %313, label %317
313: ; preds = %311
%314 = add nuw nsw i32 %305, 1
%315 = zext i32 %305 to i64
%316 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %315
store i8 44, i8* %316
br label %317
317: ; preds = %308, %313, %311
%318 = phi i32 [ %314, %313 ], [ %305, %311 ], [ 0, %308 ]
%319 = sext i32 %318 to i64
%320 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %319
%321 = tail call i64 @sprintf(i8* %320, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%322 = trunc i64 %321 to i32
%323 = add i32 %318, %322
br label %324
324: ; preds = %304, %317
%325 = phi i32 [ %323, %317 ], [ %305, %304 ]
%326 = and i32 %0, 4
%327 = icmp eq i32 %326, 0
br i1 %327, label %344, label %331
328: ; preds = %308
%329 = and i32 %0, 4
%330 = icmp eq i32 %329, 0
br i1 %330, label %348, label %337
331: ; preds = %324
%332 = icmp sgt i32 %325, 0
br i1 %332, label %333, label %337
333: ; preds = %331
%334 = add nuw nsw i32 %325, 1
%335 = zext i32 %325 to i64
%336 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %335
store i8 44, i8* %336
br label %337
337: ; preds = %328, %333, %331
%338 = phi i32 [ %334, %333 ], [ %325, %331 ], [ 0, %328 ]
%339 = sext i32 %338 to i64
%340 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %339
%341 = tail call i64 @sprintf(i8* %340, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0))
%342 = trunc i64 %341 to i32
%343 = add i32 %338, %342
br label %344
344: ; preds = %324, %337
%345 = phi i32 [ %343, %337 ], [ %325, %324 ]
%346 = and i32 %0, 2
%347 = icmp eq i32 %346, 0
br i1 %347, label %364, label %351
348: ; preds = %328
%349 = and i32 %0, 2
%350 = icmp eq i32 %349, 0
br i1 %350, label %368, label %357
351: ; preds = %344
%352 = icmp sgt i32 %345, 0
br i1 %352, label %353, label %357
353: ; preds = %351
%354 = add nuw nsw i32 %345, 1
%355 = zext i32 %345 to i64
%356 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %355
store i8 44, i8* %356
br label %357
357: ; preds = %348, %353, %351
%358 = phi i32 [ %354, %353 ], [ %345, %351 ], [ 0, %348 ]
%359 = sext i32 %358 to i64
%360 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %359
%361 = tail call i64 @sprintf(i8* %360, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.19, i64 0, i64 0))
%362 = trunc i64 %361 to i32
%363 = add i32 %358, %362
br label %364
364: ; preds = %344, %357
%365 = phi i32 [ %363, %357 ], [ %345, %344 ]
%366 = and i32 %0, 1
%367 = icmp eq i32 %366, 0
br i1 %367, label %382, label %371
368: ; preds = %348
%369 = and i32 %0, 1
%370 = icmp eq i32 %369, 0
br i1 %370, label %382, label %377
371: ; preds = %364
%372 = icmp sgt i32 %365, 0
br i1 %372, label %373, label %377
373: ; preds = %371
%374 = add nuw nsw i32 %365, 1
%375 = zext i32 %365 to i64
%376 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %375
store i8 44, i8* %376
br label %377
377: ; preds = %368, %373, %371
%378 = phi i32 [ %374, %373 ], [ %365, %371 ], [ 0, %368 ]
%379 = sext i32 %378 to i64
%380 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 %379
%381 = tail call i64 @sprintf(i8* %380, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0))
br label %382
382: ; preds = %368, %377, %364
ret i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_discovery_status_to_text.text, i64 0, i64 0)
}