#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 */
struct ss7 {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ ss7_message(struct ss7 *, char *, char *, unsigned char);
int((circuit_state_ind_dump))(struct ss7 *ss7, int messagetype,
                              unsigned char *parm, int len) {
  unsigned char dcbits, babits, febits;
  char *ba_str, *dc_str, *fe_str;
  int i;
  for (i = 0; i < len; i++) {
    babits = parm[i] & 0x3;
    dcbits = (parm[i] >> 2) & 0x3;
    febits = (parm[i] >> 4) & 0x3;
    ba_str = dc_str = fe_str = "";
    if (dcbits == 0) {
      switch (babits) {
      case 0:
        ba_str = "transient";
        break;
      case 1:
      case 2:
        ba_str = "spare";
        break;
      case 3:
        ba_str = "unequipped";
        break;
      }
    } else {
      switch (babits) {
      case 0:
        ba_str = "no blocking (active)";
        break;
      case 1:
        ba_str = "locally blocked";
        break;
      case 2:
        ba_str = "remotely blocked";
        break;
      case 3:
        ba_str = "locally and remotely blocked";
        break;
      }
      switch (dcbits) {
      case 1:
        dc_str = "circuit incoming busy";
        break;
      case 2:
        dc_str = "circuit outgoing busy";
        break;
      case 3:
        dc_str = "idle";
        break;
      }
      switch (febits) {
      case 0:
        fe_str = "no blocking (active)";
        break;
      case 1:
        fe_str = "locally blocked";
        break;
      case 2:
        fe_str = "remotely blocked";
        break;
      case 3:
        fe_str = "locally and remotely blocked";
        break;
      }
    }
    ss7_message(ss7, "\t\t\tMaintenance blocking state: %s (%d)\n", ba_str,
                babits);
    if (!dcbits)
      continue;
    ss7_message(ss7, "\t\t\tCall processing state: %s (%d)\n", dc_str, dcbits);
    ss7_message(ss7, "\t\t\tHardware blocking state: %s (%d)\n", fe_str,
                febits);
  }
  return len;
}


x86 assembly (clang, -O0):
<circuit_state_ind_dump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    139a <circuit_state_ind_dump+0x28a>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
and    $0x3,%eax
mov    %al,-0x1e(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
sar    $0x2,%eax
and    $0x3,%eax
mov    %al,-0x1d(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
sar    $0x4,%eax
and    $0x3,%eax
mov    %al,-0x1f(%rbp)
lea    0xf59(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xf4e(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xf43(%rip),%rax
mov    %rax,-0x28(%rbp)
movzbl -0x1d(%rbp),%eax
cmp    $0x0,%eax
jne    120c <circuit_state_ind_dump+0xfc>
movzbl -0x1e(%rbp),%eax
mov    %eax,-0x40(%rbp)
test   %eax,%eax
je     11dc <circuit_state_ind_dump+0xcc>
jmp    11b7 <circuit_state_ind_dump+0xa7>
mov    -0x40(%rbp),%eax
add    $0xffffffff,%eax
sub    $0x2,%eax
jb     11ec <circuit_state_ind_dump+0xdc>
jmp    11cb <circuit_state_ind_dump+0xbb>
mov    -0x40(%rbp),%eax
sub    $0x3,%eax
je     11fc <circuit_state_ind_dump+0xec>
jmp    1207 <circuit_state_ind_dump+0xf7>
lea    0xe3d(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    1207 <circuit_state_ind_dump+0xf7>
lea    0xe37(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    1207 <circuit_state_ind_dump+0xf7>
lea    0xe2d(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    1335 <circuit_state_ind_dump+0x225>
movzbl -0x1e(%rbp),%eax
mov    %rax,-0x48(%rbp)
sub    $0x3,%rax
ja     126d <circuit_state_ind_dump+0x15d>
mov    -0x48(%rbp),%rax
lea    0xdd7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe02(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    126d <circuit_state_ind_dump+0x15d>
lea    0xe07(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    126d <circuit_state_ind_dump+0x15d>
lea    0xe13(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    126d <circuit_state_ind_dump+0x15d>
lea    0xdf7(%rip),%rax
mov    %rax,-0x28(%rbp)
movzbl -0x1d(%rbp),%eax
mov    %eax,-0x4c(%rbp)
sub    $0x1,%eax
je     12a4 <circuit_state_ind_dump+0x194>
jmp    1282 <circuit_state_ind_dump+0x172>
mov    -0x4c(%rbp),%eax
sub    $0x2,%eax
je     12b4 <circuit_state_ind_dump+0x1a4>
jmp    1293 <circuit_state_ind_dump+0x183>
mov    -0x4c(%rbp),%eax
sub    $0x3,%eax
je     12c4 <circuit_state_ind_dump+0x1b4>
jmp    12cf <circuit_state_ind_dump+0x1bf>
lea    0xdd2(%rip),%rax
mov    %rax,-0x30(%rbp)
jmp    12cf <circuit_state_ind_dump+0x1bf>
lea    0xdd8(%rip),%rax
mov    %rax,-0x30(%rbp)
jmp    12cf <circuit_state_ind_dump+0x1bf>
lea    0xdde(%rip),%rax
mov    %rax,-0x30(%rbp)
movzbl -0x1f(%rbp),%eax
mov    %rax,-0x58(%rbp)
sub    $0x3,%rax
ja     1330 <circuit_state_ind_dump+0x220>
mov    -0x58(%rbp),%rax
lea    0xd24(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xd3f(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    1330 <circuit_state_ind_dump+0x220>
lea    0xd44(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    1330 <circuit_state_ind_dump+0x220>
lea    0xd50(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    1330 <circuit_state_ind_dump+0x220>
lea    0xd34(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    1335 <circuit_state_ind_dump+0x225>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xd6a(%rip),%rsi
movzbl -0x1e(%rbp),%ecx
call   1030 <ss7_message@plt>
cmpb   $0x0,-0x1d(%rbp)
jne    135c <circuit_state_ind_dump+0x24c>
jmp    138c <circuit_state_ind_dump+0x27c>
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rdx
lea    0xd6b(%rip),%rsi
movzbl -0x1d(%rbp),%ecx
call   1030 <ss7_message@plt>
mov    -0x8(%rbp),%rdi
mov    -0x38(%rbp),%rdx
lea    0xd76(%rip),%rsi
movzbl -0x1f(%rbp),%ecx
call   1030 <ss7_message@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    112d <circuit_state_ind_dump+0x1d>
mov    -0x1c(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<circuit_state_ind_dump>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,0x10(%rsp)
mov    %ecx,0x4(%rsp)
test   %ecx,%ecx
jle    1210 <circuit_state_ind_dump+0x100>
mov    %rdi,%rbp
mov    0x4(%rsp),%eax
mov    %rax,0x8(%rsp)
xor    %r15d,%r15d
jmp    1197 <circuit_state_ind_dump+0x87>
lea    0x2cb9(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
mov    (%rcx,%r13,8),%r12
movzbl %al,%ecx
mov    %rbp,%rdi
lea    0xf32(%rip),%rsi
call   1030 <ss7_message@plt>
movzbl %bl,%ecx
mov    %rbp,%rdi
lea    0xf48(%rip),%rsi
mov    %r14,%rdx
call   1030 <ss7_message@plt>
movzbl %r13b,%ecx
mov    %rbp,%rdi
lea    0xf55(%rip),%rsi
mov    %r12,%rdx
call   1030 <ss7_message@plt>
add    $0x1,%r15
cmp    %r15,0x8(%rsp)
je     1210 <circuit_state_ind_dump+0x100>
mov    0x10(%rsp),%rax
movzbl (%rax,%r15,1),%r13d
mov    %r13d,%eax
and    $0x3,%eax
mov    %r13d,%ebx
shr    $0x2,%ebx
and    $0x3,%ebx
je     11f0 <circuit_state_ind_dump+0xe0>
shr    $0x4,%r13d
and    $0x3,%r13d
lea    -0x1(%rbx),%ecx
lea    0xef1(%rip),%r14
cmp    $0x2,%ecx
ja     1140 <circuit_state_ind_dump+0x30>
movslq %ecx,%rcx
lea    0xf39(%rip),%rdx
movslq (%rdx,%rcx,4),%r14
add    %rdx,%r14
jmp    1140 <circuit_state_ind_dump+0x30>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl %al,%ecx
lea    0xf06(%rip),%rax
movslq (%rax,%rcx,4),%rdx
add    %rax,%rdx
mov    %rbp,%rdi
lea    0xe83(%rip),%rsi
jmp    1187 <circuit_state_ind_dump+0x77>
mov    0x4(%rsp),%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.ss7 = type { i32 }
@.str = [1 x i8] zeroinitializer
@.str.1 = [10 x i8] c"transient\00"
@.str.2 = [6 x i8] c"spare\00"
@.str.3 = [11 x i8] c"unequipped\00"
@.str.4 = [21 x i8] c"no blocking (active)\00"
@.str.5 = [16 x i8] c"locally blocked\00"
@.str.6 = [17 x i8] c"remotely blocked\00"
@.str.7 = [29 x i8] c"locally and remotely blocked\00"
@.str.8 = [22 x i8] c"circuit incoming busy\00"
@.str.9 = [22 x i8] c"circuit outgoing busy\00"
@.str.10 = [5 x i8] c"idle\00"
@.str.11 = [40 x i8] c"\09\09\09Maintenance blocking state: %s (%d)\0A\00"
@.str.12 = [35 x i8] c"\09\09\09Call processing state: %s (%d)\0A\00"
@.str.13 = [37 x i8] c"\09\09\09Hardware blocking state: %s (%d)\0A\00"
define i32 @circuit_state_ind_dump(%struct.ss7* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca %struct.ss7*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i32
store %struct.ss7* %0, %struct.ss7** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
store i32 0, i32* %15
br label %16
16: ; preds = %95, %4
%17 = load i32, i32* %15
%18 = load i32, i32* %8
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %98
20: ; preds = %16
%21 = load i8*, i8** %7
%22 = load i32, i32* %15
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, i8* %21, i64 %23
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
%27 = and i32 %26, 3
%28 = trunc i32 %27 to i8
store i8 %28, i8* %10
%29 = load i8*, i8** %7
%30 = load i32, i32* %15
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, i8* %29, i64 %31
%33 = load i8, i8* %32
%34 = zext i8 %33 to i32
%35 = ashr i32 %34, 2
%36 = and i32 %35, 3
%37 = trunc i32 %36 to i8
store i8 %37, i8* %9
%38 = load i8*, i8** %7
%39 = load i32, i32* %15
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, i8* %38, i64 %40
%42 = load i8, i8* %41
%43 = zext i8 %42 to i32
%44 = ashr i32 %43, 4
%45 = and i32 %44, 3
%46 = trunc i32 %45 to i8
store i8 %46, i8* %11
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %14
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %13
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %12
%47 = load i8, i8* %9
%48 = zext i8 %47 to i32
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %57
50: ; preds = %20
%51 = load i8, i8* %10
%52 = zext i8 %51 to i32
switch i32 %52, label %56 [
i32 0, label %53
i32 1, label %54
i32 2, label %54
i32 3, label %55
]
53: ; preds = %50
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8** %12
br label %56
54: ; preds = %50, %50
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %12
br label %56
55: ; preds = %50
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8** %12
br label %56
56: ; preds = %50, %55, %54, %53
br label %78
57: ; preds = %20
%58 = load i8, i8* %10
%59 = zext i8 %58 to i32
switch i32 %59, label %64 [
i32 0, label %60
i32 1, label %61
i32 2, label %62
i32 3, label %63
]
60: ; preds = %57
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8** %12
br label %64
61: ; preds = %57
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8** %12
br label %64
62: ; preds = %57
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8** %12
br label %64
63: ; preds = %57
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i8** %12
br label %64
64: ; preds = %57, %63, %62, %61, %60
%65 = load i8, i8* %9
%66 = zext i8 %65 to i32
switch i32 %66, label %70 [
i32 1, label %67
i32 2, label %68
i32 3, label %69
]
67: ; preds = %64
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i8** %13
br label %70
68: ; preds = %64
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i8** %13
br label %70
69: ; preds = %64
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i8** %13
br label %70
70: ; preds = %64, %69, %68, %67
%71 = load i8, i8* %11
%72 = zext i8 %71 to i32
switch i32 %72, label %77 [
i32 0, label %73
i32 1, label %74
i32 2, label %75
i32 3, label %76
]
73: ; preds = %70
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8** %14
br label %77
74: ; preds = %70
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8** %14
br label %77
75: ; preds = %70
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8** %14
br label %77
76: ; preds = %70
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i8** %14
br label %77
77: ; preds = %70, %76, %75, %74, %73
br label %78
78: ; preds = %77, %56
%79 = load %struct.ss7*, %struct.ss7** %5
%80 = load i8*, i8** %12
%81 = load i8, i8* %10
%82 = call i32 @ss7_message(%struct.ss7* %79, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0), i8* %80, i8 zeroext %81)
%83 = load i8, i8* %9
%84 = icmp ne i8 %83, 0
br i1 %84, label %86, label %85
85: ; preds = %78
br label %95
86: ; preds = %78
%87 = load %struct.ss7*, %struct.ss7** %5
%88 = load i8*, i8** %13
%89 = load i8, i8* %9
%90 = call i32 @ss7_message(%struct.ss7* %87, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i8* %88, i8 zeroext %89)
%91 = load %struct.ss7*, %struct.ss7** %5
%92 = load i8*, i8** %14
%93 = load i8, i8* %11
%94 = call i32 @ss7_message(%struct.ss7* %91, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0), i8* %92, i8 zeroext %93)
br label %95
95: ; preds = %86, %85
%96 = load i32, i32* %15
%97 = add nsw i32 %96, 1
store i32 %97, i32* %15
br label %16
98: ; preds = %16
%99 = load i32, i32* %8
ret i32 %99
}

LLVM IR (-O2):
%struct.ss7 = type { i32 }
@.str = [1 x i8] zeroinitializer
@.str.1 = [10 x i8] c"transient\00"
@.str.2 = [6 x i8] c"spare\00"
@.str.3 = [11 x i8] c"unequipped\00"
@.str.4 = [21 x i8] c"no blocking (active)\00"
@.str.5 = [16 x i8] c"locally blocked\00"
@.str.6 = [17 x i8] c"remotely blocked\00"
@.str.7 = [29 x i8] c"locally and remotely blocked\00"
@.str.8 = [22 x i8] c"circuit incoming busy\00"
@.str.9 = [22 x i8] c"circuit outgoing busy\00"
@.str.10 = [5 x i8] c"idle\00"
@.str.11 = [40 x i8] c"\09\09\09Maintenance blocking state: %s (%d)\0A\00"
@.str.12 = [35 x i8] c"\09\09\09Call processing state: %s (%d)\0A\00"
@.str.13 = [37 x i8] c"\09\09\09Hardware blocking state: %s (%d)\0A\00"
@reltable.circuit_state_ind_dump = [4 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.1 to i64), i64 ptrtoint ([4 x i32]* @reltable.circuit_state_ind_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.2 to i64), i64 ptrtoint ([4 x i32]* @reltable.circuit_state_ind_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.2 to i64), i64 ptrtoint ([4 x i32]* @reltable.circuit_state_ind_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.3 to i64), i64 ptrtoint ([4 x i32]* @reltable.circuit_state_ind_dump to i64)) to i32)]
@switch.table.circuit_state_ind_dump.15 = [4 x i8*] [i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0)]
@reltable.circuit_state_ind_dump.17 = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.8 to i64), i64 ptrtoint ([3 x i32]* @reltable.circuit_state_ind_dump.17 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.9 to i64), i64 ptrtoint ([3 x i32]* @reltable.circuit_state_ind_dump.17 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.10 to i64), i64 ptrtoint ([3 x i32]* @reltable.circuit_state_ind_dump.17 to i64)) to i32)]
define i32 @circuit_state_ind_dump(%struct.ss7* %0, i32 %1, i8* nocapture %2, i32 returned %3) {
%5 = icmp sgt i32 %3, 0
br i1 %5, label %6, label %45
6: ; preds = %4
%7 = zext i32 %3 to i64
br label %8
8: ; preds = %6, %42
%9 = phi i64 [ 0, %6 ], [ %43, %42 ]
%10 = getelementptr inbounds i8, i8* %2, i64 %9
%11 = load i8, i8* %10
%12 = and i8 %11, 3
%13 = lshr i8 %11, 2
%14 = and i8 %13, 3
%15 = lshr i8 %11, 4
%16 = and i8 %15, 3
%17 = icmp eq i8 %14, 0
br i1 %17, label %37, label %18
18: ; preds = %8
%19 = zext i8 %14 to i32
%20 = zext i8 %12 to i64
%21 = getelementptr inbounds [4 x i8*], [4 x i8*]* @switch.table.circuit_state_ind_dump.15, i64 0, i64 %20
%22 = load i8*, i8** %21
%23 = add nsw i32 %19, -1
%24 = icmp ult i32 %23, 3
br i1 %24, label %25, label %29
25: ; preds = %18
%26 = sext i32 %23 to i64
%27 = shl i64 %26, 2
%28 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.circuit_state_ind_dump.17 to i8*), i64 %27)
br label %29
29: ; preds = %25, %18
%30 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %18 ], [ %28, %25 ]
%31 = zext i8 %16 to i64
%32 = getelementptr inbounds [4 x i8*], [4 x i8*]* @switch.table.circuit_state_ind_dump.15, i64 0, i64 %31
%33 = load i8*, i8** %32
%34 = tail call i32 @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0), i8* %22, i8 zeroext %12)
%35 = tail call i32 @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i8* %30, i8 zeroext %14)
%36 = tail call i32 @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0), i8* %33, i8 zeroext %16)
br label %42
37: ; preds = %8
%38 = zext i8 %12 to i64
%39 = shl i64 %38, 2
%40 = call i8* @llvm.load.relative.i64(i8* bitcast ([4 x i32]* @reltable.circuit_state_ind_dump to i8*), i64 %39)
%41 = tail call i32 @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0), i8* %40, i8 zeroext %12)
br label %42
42: ; preds = %37, %29
%43 = add nuw nsw i64 %9, 1
%44 = icmp eq i64 %43, %7
br i1 %44, label %45, label %8
45: ; preds = %42, %4
ret i32 %3
}