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

/* Variables and functions */
scalar_t__ sprintf(char *, char *, char const *);
const char *sas_topo_phy_status_to_text(uint8_t status) {
  static char text[256];
  int i = 0;
  text[0] = 0;
  do {
    if (status & (0x80)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "PHYSTATUS_VACANT");
    }
  } while (0);
  do {
    if (status & 0x40) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "UNKNOWN_40");
    }
  } while (0);
  do {
    if (status & 0x20) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "UNKNOWN_20");
    }
  } while (0);
  do {
    if (status & (0x10)) {
      if (i > 0)
        text[i++] = ',';
      i += sprintf(text + i, "%s", "PS_MULTIPLEX_CHANGE");
    }
  } while (0);
  const char *rc = "UNKNOWN";
  switch (status & (0x0F)) {
  case (0x01):
    rc = "TARG_ADDED";
    break;
  case (0x02):
    rc = "TARG_NOT_RESPONDING";
    break;
  case (0x03):
    rc = "PHY_CHANGED";
    break;
  case (0x04):
    rc = "NO_CHANGE";
    break;
  case (0x05):
    rc = "DELAY_NOT_RESPONDING";
    break;
  }
  if (i > 0)
    text[i++] = ',';
  sprintf(text + i, "%s", rc);
  return text;
}


x86 assembly (clang, -O0):
<sas_topo_phy_status_to_text>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movb   $0x0,0x2f17(%rip)
mov    -0x4(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     118b <sas_topo_phy_status_to_text+0x7b>
cmpl   $0x0,-0x8(%rbp)
jle    115d <sas_topo_phy_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    0xea2(%rip),%rsi
lea    0xe9e(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    1190 <sas_topo_phy_status_to_text+0x80>
jmp    1195 <sas_topo_phy_status_to_text+0x85>
mov    -0x4(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     11f5 <sas_topo_phy_status_to_text+0xe5>
cmpl   $0x0,-0x8(%rbp)
jle    11c7 <sas_topo_phy_status_to_text+0xb7>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2e7d(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2e6e(%rip),%rdi
add    %rax,%rdi
lea    0xe38(%rip),%rsi
lea    0xe45(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    11fa <sas_topo_phy_status_to_text+0xea>
jmp    11ff <sas_topo_phy_status_to_text+0xef>
mov    -0x4(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     125f <sas_topo_phy_status_to_text+0x14f>
cmpl   $0x0,-0x8(%rbp)
jle    1231 <sas_topo_phy_status_to_text+0x121>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2e13(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2e04(%rip),%rdi
add    %rax,%rdi
lea    0xdce(%rip),%rsi
lea    0xde6(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    1264 <sas_topo_phy_status_to_text+0x154>
jmp    1269 <sas_topo_phy_status_to_text+0x159>
mov    -0x4(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     12c9 <sas_topo_phy_status_to_text+0x1b9>
cmpl   $0x0,-0x8(%rbp)
jle    129b <sas_topo_phy_status_to_text+0x18b>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2da9(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2d9a(%rip),%rdi
add    %rax,%rdi
lea    0xd64(%rip),%rsi
lea    0xd87(%rip),%rdx
call   1030 <sprintf@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
jmp    12ce <sas_topo_phy_status_to_text+0x1be>
lea    0xd7d(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
and    $0xf,%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x4,%eax
ja     1350 <sas_topo_phy_status_to_text+0x240>
mov    -0x18(%rbp),%rax
lea    0xd04(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xd4e(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1350 <sas_topo_phy_status_to_text+0x240>
lea    0xd49(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1350 <sas_topo_phy_status_to_text+0x240>
lea    0xd4d(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1350 <sas_topo_phy_status_to_text+0x240>
lea    0xd49(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1350 <sas_topo_phy_status_to_text+0x240>
lea    0xd43(%rip),%rax
mov    %rax,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    1373 <sas_topo_phy_status_to_text+0x263>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %eax,%rcx
lea    0x2cd1(%rip),%rax
movb   $0x2c,(%rax,%rcx,1)
movslq -0x8(%rbp),%rax
lea    0x2cc2(%rip),%rdi
add    %rax,%rdi
mov    -0x10(%rbp),%rdx
lea    0xc88(%rip),%rsi
call   1030 <sprintf@plt>
lea    0x2ca8(%rip),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sas_topo_phy_status_to_text>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%ebp
movb   $0x0,0x2f23(%rip)
test   $0x80,%bpl
jne    1148 <sas_topo_phy_status_to_text+0x38>
xor    %ebx,%ebx
test   $0x40,%bpl
jne    118f <sas_topo_phy_status_to_text+0x7f>
xor    %ebx,%ebx
test   $0x20,%bpl
jne    11cb <sas_topo_phy_status_to_text+0xbb>
xor    %ebx,%ebx
test   $0x10,%bpl
jne    1207 <sas_topo_phy_status_to_text+0xf7>
jmp    1229 <sas_topo_phy_status_to_text+0x119>
lea    0x2ef1(%rip),%r14
lea    0xeaa(%rip),%rsi
lea    0xea6(%rip),%rdx
mov    %r14,%rdi
call   1030 <sprintf@plt>
mov    %rax,%rbx
test   $0x40,%bpl
jne    117f <sas_topo_phy_status_to_text+0x6f>
test   $0x20,%bpl
jne    11b7 <sas_topo_phy_status_to_text+0xa7>
test   $0x10,%bpl
jne    11f3 <sas_topo_phy_status_to_text+0xe3>
jmp    1229 <sas_topo_phy_status_to_text+0x119>
test   %ebx,%ebx
jle    118f <sas_topo_phy_status_to_text+0x7f>
mov    %ebx,%eax
lea    0x1(%rbx),%ecx
movb   $0x2c,(%rax,%r14,1)
mov    %ecx,%ebx
movslq %ebx,%rbx
lea    0x2ea7(%rip),%rdi
add    %rbx,%rdi
lea    0xe5d(%rip),%rsi
lea    0xe6a(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x20,%bpl
je     1174 <sas_topo_phy_status_to_text+0x64>
test   %ebx,%ebx
jle    11cb <sas_topo_phy_status_to_text+0xbb>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2e79(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2e6b(%rip),%rdi
add    %rbx,%rdi
lea    0xe21(%rip),%rsi
lea    0xe39(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
test   $0x10,%bpl
je     1229 <sas_topo_phy_status_to_text+0x119>
test   %ebx,%ebx
jle    1207 <sas_topo_phy_status_to_text+0xf7>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2e3d(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rbx
lea    0x2e2f(%rip),%rdi
add    %rbx,%rdi
lea    0xde5(%rip),%rsi
lea    0xe08(%rip),%rdx
call   1030 <sprintf@plt>
add    %eax,%ebx
and    $0xf,%ebp
add    $0xffffffff,%ebp
cmp    $0x4,%ebp
ja     124b <sas_topo_phy_status_to_text+0x13b>
movslq %ebp,%rax
lea    0xe52(%rip),%rcx
movslq (%rcx,%rax,4),%rdx
add    %rcx,%rdx
test   %ebx,%ebx
jg     1256 <sas_topo_phy_status_to_text+0x146>
jmp    1266 <sas_topo_phy_status_to_text+0x156>
lea    0xdec(%rip),%rdx
test   %ebx,%ebx
jle    1266 <sas_topo_phy_status_to_text+0x156>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0x2dde(%rip),%rcx
movb   $0x2c,(%rax,%rcx,1)
movslq %ebx,%rdi
lea    0x2dd0(%rip),%rbx
add    %rbx,%rdi
lea    0xd86(%rip),%rsi
call   1030 <sprintf@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@sas_topo_phy_status_to_text.text = internal global [256 x i8] zeroinitializer
@.str = [3 x i8] c"%s\00"
@.str.1 = [17 x i8] c"PHYSTATUS_VACANT\00"
@.str.2 = [11 x i8] c"UNKNOWN_40\00"
@.str.3 = [11 x i8] c"UNKNOWN_20\00"
@.str.4 = [20 x i8] c"PS_MULTIPLEX_CHANGE\00"
@.str.5 = [8 x i8] c"UNKNOWN\00"
@.str.6 = [11 x i8] c"TARG_ADDED\00"
@.str.7 = [20 x i8] c"TARG_NOT_RESPONDING\00"
@.str.8 = [12 x i8] c"PHY_CHANGED\00"
@.str.9 = [10 x i8] c"NO_CHANGE\00"
@.str.10 = [21 x i8] c"DELAY_NOT_RESPONDING\00"
define i8* @sas_topo_phy_status_to_text(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %2
store i32 0, i32* %3
store i8 0, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 0)
br label %5
5: ; preds = %1
%6 = load i32, i32* %2
%7 = and i32 %6, 128
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %26
9: ; preds = %5
%10 = load i32, i32* %3
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %9
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 1
store i32 %14, i32* %3
%15 = sext i32 %13 to i64
%16 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %15
store i8 44, i8* %16
br label %17
17: ; preds = %12, %9
%18 = load i32, i32* %3
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 0), i64 %19
%21 = call i64 @sprintf(i8* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%22 = load i32, i32* %3
%23 = sext i32 %22 to i64
%24 = add nsw i64 %23, %21
%25 = trunc i64 %24 to i32
store i32 %25, i32* %3
br label %26
26: ; preds = %17, %5
br label %27
27: ; preds = %26
br label %28
28: ; preds = %27
%29 = load i32, i32* %2
%30 = and i32 %29, 64
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %49
32: ; preds = %28
%33 = load i32, i32* %3
%34 = icmp sgt i32 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %32
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 1
store i32 %37, i32* %3
%38 = sext i32 %36 to i64
%39 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %38
store i8 44, i8* %39
br label %40
40: ; preds = %35, %32
%41 = load i32, i32* %3
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 0), i64 %42
%44 = call i64 @sprintf(i8* %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%45 = load i32, i32* %3
%46 = sext i32 %45 to i64
%47 = add nsw i64 %46, %44
%48 = trunc i64 %47 to i32
store i32 %48, i32* %3
br label %49
49: ; preds = %40, %28
br label %50
50: ; preds = %49
br label %51
51: ; preds = %50
%52 = load i32, i32* %2
%53 = and i32 %52, 32
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %72
55: ; preds = %51
%56 = load i32, i32* %3
%57 = icmp sgt i32 %56, 0
br i1 %57, label %58, label %63
58: ; preds = %55
%59 = load i32, i32* %3
%60 = add nsw i32 %59, 1
store i32 %60, i32* %3
%61 = sext i32 %59 to i64
%62 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %61
store i8 44, i8* %62
br label %63
63: ; preds = %58, %55
%64 = load i32, i32* %3
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 0), i64 %65
%67 = call i64 @sprintf(i8* %66, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%68 = load i32, i32* %3
%69 = sext i32 %68 to i64
%70 = add nsw i64 %69, %67
%71 = trunc i64 %70 to i32
store i32 %71, i32* %3
br label %72
72: ; preds = %63, %51
br label %73
73: ; preds = %72
br label %74
74: ; preds = %73
%75 = load i32, i32* %2
%76 = and i32 %75, 16
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %95
78: ; preds = %74
%79 = load i32, i32* %3
%80 = icmp sgt i32 %79, 0
br i1 %80, label %81, label %86
81: ; preds = %78
%82 = load i32, i32* %3
%83 = add nsw i32 %82, 1
store i32 %83, i32* %3
%84 = sext i32 %82 to i64
%85 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %84
store i8 44, i8* %85
br label %86
86: ; preds = %81, %78
%87 = load i32, i32* %3
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 0), i64 %88
%90 = call i64 @sprintf(i8* %89, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%91 = load i32, i32* %3
%92 = sext i32 %91 to i64
%93 = add nsw i64 %92, %90
%94 = trunc i64 %93 to i32
store i32 %94, i32* %3
br label %95
95: ; preds = %86, %74
br label %96
96: ; preds = %95
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8** %4
%97 = load i32, i32* %2
%98 = and i32 %97, 15
switch i32 %98, label %104 [
i32 1, label %99
i32 2, label %100
i32 3, label %101
i32 4, label %102
i32 5, label %103
]
99: ; preds = %96
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %4
br label %104
100: ; preds = %96
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8** %4
br label %104
101: ; preds = %96
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i8** %4
br label %104
102: ; preds = %96
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i8** %4
br label %104
103: ; preds = %96
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i8** %4
br label %104
104: ; preds = %96, %103, %102, %101, %100, %99
%105 = load i32, i32* %3
%106 = icmp sgt i32 %105, 0
br i1 %106, label %107, label %112
107: ; preds = %104
%108 = load i32, i32* %3
%109 = add nsw i32 %108, 1
store i32 %109, i32* %3
%110 = sext i32 %108 to i64
%111 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %110
store i8 44, i8* %111
br label %112
112: ; preds = %107, %104
%113 = load i32, i32* %3
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 0), i64 %114
%116 = load i8*, i8** %4
%117 = call i64 @sprintf(i8* %115, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %116)
ret i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 0)
}

LLVM IR (-O2):
@sas_topo_phy_status_to_text.text = internal global [256 x i8] zeroinitializer
@.str = [3 x i8] c"%s\00"
@.str.1 = [17 x i8] c"PHYSTATUS_VACANT\00"
@.str.2 = [11 x i8] c"UNKNOWN_40\00"
@.str.3 = [11 x i8] c"UNKNOWN_20\00"
@.str.4 = [20 x i8] c"PS_MULTIPLEX_CHANGE\00"
@.str.5 = [8 x i8] c"UNKNOWN\00"
@.str.6 = [11 x i8] c"TARG_ADDED\00"
@.str.7 = [20 x i8] c"TARG_NOT_RESPONDING\00"
@.str.8 = [12 x i8] c"PHY_CHANGED\00"
@.str.9 = [10 x i8] c"NO_CHANGE\00"
@.str.10 = [21 x i8] c"DELAY_NOT_RESPONDING\00"
@reltable.sas_topo_phy_status_to_text = [5 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([5 x i32]* @reltable.sas_topo_phy_status_to_text to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.7 to i64), i64 ptrtoint ([5 x i32]* @reltable.sas_topo_phy_status_to_text to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.8 to i64), i64 ptrtoint ([5 x i32]* @reltable.sas_topo_phy_status_to_text to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.9 to i64), i64 ptrtoint ([5 x i32]* @reltable.sas_topo_phy_status_to_text to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.10 to i64), i64 ptrtoint ([5 x i32]* @reltable.sas_topo_phy_status_to_text to i64)) to i32)]
define i8* @sas_topo_phy_status_to_text(i32 %0) {
store i8 0, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 0)
%2 = and i32 %0, 128
%3 = icmp eq i32 %2, 0
br i1 %3, label %9, label %4
4: ; preds = %1
%5 = tail call i64 @sprintf(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_topo_phy_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 ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%6 = trunc i64 %5 to i32
%7 = and i32 %0, 64
%8 = icmp eq i32 %7, 0
br i1 %8, label %25, label %12
9: ; preds = %1
%10 = and i32 %0, 64
%11 = icmp eq i32 %10, 0
br i1 %11, label %29, label %18
12: ; preds = %4
%13 = icmp sgt i32 %6, 0
br i1 %13, label %14, label %18
14: ; preds = %12
%15 = add nuw nsw i32 %6, 1
%16 = and i64 %5, 4294967295
%17 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %16
store i8 44, i8* %17
br label %18
18: ; preds = %9, %14, %12
%19 = phi i32 [ %15, %14 ], [ %6, %12 ], [ 0, %9 ]
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %20
%22 = tail call i64 @sprintf(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%23 = trunc i64 %22 to i32
%24 = add i32 %19, %23
br label %25
25: ; preds = %4, %18
%26 = phi i32 [ %24, %18 ], [ %6, %4 ]
%27 = and i32 %0, 32
%28 = icmp eq i32 %27, 0
br i1 %28, label %45, label %32
29: ; preds = %9
%30 = and i32 %0, 32
%31 = icmp eq i32 %30, 0
br i1 %31, label %49, label %38
32: ; preds = %25
%33 = icmp sgt i32 %26, 0
br i1 %33, label %34, label %38
34: ; preds = %32
%35 = add nuw nsw i32 %26, 1
%36 = zext i32 %26 to i64
%37 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %36
store i8 44, i8* %37
br label %38
38: ; preds = %29, %34, %32
%39 = phi i32 [ %35, %34 ], [ %26, %32 ], [ 0, %29 ]
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %40
%42 = tail call i64 @sprintf(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%43 = trunc i64 %42 to i32
%44 = add i32 %39, %43
br label %45
45: ; preds = %25, %38
%46 = phi i32 [ %44, %38 ], [ %26, %25 ]
%47 = and i32 %0, 16
%48 = icmp eq i32 %47, 0
br i1 %48, label %65, label %52
49: ; preds = %29
%50 = and i32 %0, 16
%51 = icmp eq i32 %50, 0
br i1 %51, label %65, label %58
52: ; preds = %45
%53 = icmp sgt i32 %46, 0
br i1 %53, label %54, label %58
54: ; preds = %52
%55 = add nuw nsw i32 %46, 1
%56 = zext i32 %46 to i64
%57 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %56
store i8 44, i8* %57
br label %58
58: ; preds = %49, %54, %52
%59 = phi i32 [ %55, %54 ], [ %46, %52 ], [ 0, %49 ]
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %60
%62 = tail call i64 @sprintf(i8* %61, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%63 = trunc i64 %62 to i32
%64 = add i32 %59, %63
br label %65
65: ; preds = %49, %58, %45
%66 = phi i32 [ %64, %58 ], [ %46, %45 ], [ 0, %49 ]
%67 = and i32 %0, 15
%68 = add nsw i32 %67, -1
%69 = icmp ult i32 %68, 5
br i1 %69, label %70, label %74
70: ; preds = %65
%71 = sext i32 %68 to i64
%72 = shl i64 %71, 2
%73 = call i8* @llvm.load.relative.i64(i8* bitcast ([5 x i32]* @reltable.sas_topo_phy_status_to_text to i8*), i64 %72)
br label %74
74: ; preds = %70, %65
%75 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), %65 ], [ %73, %70 ]
%76 = icmp sgt i32 %66, 0
br i1 %76, label %77, label %81
77: ; preds = %74
%78 = add nuw nsw i32 %66, 1
%79 = zext i32 %66 to i64
%80 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %79
store i8 44, i8* %80
br label %81
81: ; preds = %77, %74
%82 = phi i32 [ %78, %77 ], [ %66, %74 ]
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 %83
%85 = tail call i64 @sprintf(i8* %84, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %75)
ret i8* getelementptr inbounds ([256 x i8], [256 x i8]* @sas_topo_phy_status_to_text.text, i64 0, i64 0)
}