#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 *);
int((generic_notification_ind_dump))(struct ss7 *ss7, int messagetype,
                                     unsigned char *parm, int len) {
  int pos = 0;
  ss7_message(ss7, "\t\t\tNotification indicator: ");
  while (pos < len && (pos || !(parm[pos - 1] & 0x80))) {
    switch (parm[pos] & 0x7f) {
    case 0x00:
      ss7_message(ss7, "user suspended; ");
      break;
    case 0x01:
      ss7_message(ss7, "user resumed; ");
      break;
    case 0x02:
      ss7_message(ss7, "bearer service change; ");
      break;
    case 0x03:
      ss7_message(ss7, "discriminator for extension to ASN.1; ");
      break;
    case 0x04:
      ss7_message(ss7, "call completion delay; ");
      break;
    case 0x42:
      ss7_message(ss7, "conference established; ");
      break;
    case 0x43:
      ss7_message(ss7, "conference disconnected; ");
      break;
    case 0x44:
      ss7_message(ss7, "other party added; ");
      break;
    case 0x45:
      ss7_message(ss7, "isolated; ");
      break;
    case 0x46:
      ss7_message(ss7, "reattached; ");
      break;
    case 0x47:
      ss7_message(ss7, "other party isolated; ");
      break;
    case 0x48:
      ss7_message(ss7, "other party reattached; ");
      break;
    case 0x49:
      ss7_message(ss7, "other party split; ");
      break;
    case 0x4a:
      ss7_message(ss7, "other party disconnected; ");
      break;
    case 0x4b:
      ss7_message(ss7, "other party floating; ");
      break;
    case 0x60:
      ss7_message(ss7, "call is a waiting call; ");
      break;
    case 0x68:
      ss7_message(ss7, "diversion activated; ");
      break;
    case 0x69:
      ss7_message(ss7, "call transfer, alerting; ");
      break;
    case 0x6a:
      ss7_message(ss7, "call transfer, active; ");
      break;
    case 0x79:
      ss7_message(ss7, "remote hold; ");
      break;
    case 0x7a:
      ss7_message(ss7, "remote retrieval; ");
      break;
    case 0x7b:
      ss7_message(ss7, "remote is diverting; ");
      break;
    default:
      ss7_message(ss7, "reserved; ");
    }
    pos++;
  }
  ss7_message(ss7, "\n");
  return len;
}


x86 assembly (clang, -O0):
<generic_notification_ind_dump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
lea    0x10b8(%rip),%rsi
call   1030 <ss7_message@plt>
mov    -0x20(%rbp),%ecx
xor    %eax,%eax
cmp    -0x1c(%rbp),%ecx
mov    %al,-0x21(%rbp)
jge    1184 <generic_notification_ind_dump+0x74>
mov    $0x1,%al
cmpl   $0x0,-0x20(%rbp)
mov    %al,-0x22(%rbp)
jne    117e <generic_notification_ind_dump+0x6e>
mov    -0x18(%rbp),%rax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
and    $0x80,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x22(%rbp)
mov    -0x22(%rbp),%al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    1194 <generic_notification_ind_dump+0x84>
jmp    13b2 <generic_notification_ind_dump+0x2a2>
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
and    $0x7f,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x7b,%eax
ja     1394 <generic_notification_ind_dump+0x284>
mov    -0x30(%rbp),%rax
lea    0xe43(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%rdi
lea    0x103b(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1037(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1031(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1034(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1046(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1049(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x104d(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1052(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x105d(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x105f(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1027(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1029(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x102d(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x102c(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1032(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1034(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1038(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1039(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x103e(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1041(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x103a(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1038(%rip),%rsi
call   1030 <ss7_message@plt>
jmp    13a4 <generic_notification_ind_dump+0x294>
mov    -0x8(%rbp),%rdi
lea    0x1039(%rip),%rsi
call   1030 <ss7_message@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    113d <generic_notification_ind_dump+0x2d>
mov    -0x8(%rbp),%rdi
lea    0x1026(%rip),%rsi
call   1030 <ss7_message@plt>
mov    -0x1c(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<generic_notification_ind_dump>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %ecx,%ebx
mov    %rdx,%rbp
mov    %rdi,%r12
lea    0x10c6(%rip),%rsi
call   1030 <ss7_message@plt>
mov    %ebx,0x4(%rsp)
test   %ebx,%ebx
jle    1284 <generic_notification_ind_dump+0x174>
mov    0x4(%rsp),%r15d
xor    %ebx,%ebx
lea    0x10c3(%rip),%r13
lea    0xeb0(%rip),%r14
jmp    1175 <generic_notification_ind_dump+0x65>
lea    0x127f(%rip),%rsi
nopl   0x0(%rax)
mov    %r12,%rdi
call   1030 <ss7_message@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
je     1284 <generic_notification_ind_dump+0x174>
test   %rbx,%rbx
jne    1184 <generic_notification_ind_dump+0x74>
cmpb   $0x0,-0x1(%rbp)
js     1284 <generic_notification_ind_dump+0x174>
movzbl 0x0(%rbp,%rbx,1),%eax
and    $0x7f,%eax
cmp    $0x7b,%eax
ja     1152 <generic_notification_ind_dump+0x42>
movslq (%r14,%rax,4),%rax
add    %r14,%rax
mov    %r13,%rsi
jmp    *%rax
lea    0x1079(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x107f(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x108e(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x10ac(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x10bb(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x10cb(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x10dc(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x10f3(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x10fe(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x10cf(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x10da(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x10e7(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x10ef(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x10fe(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x1109(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x1116(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x1120(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x112e(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x113a(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x113c(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x1143(%rip),%rsi
jmp    1160 <generic_notification_ind_dump+0x50>
lea    0x1158(%rip),%rsi
mov    %r12,%rdi
call   1030 <ss7_message@plt>
mov    0x4(%rsp),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.ss7 = type { i32 }
@.str = [28 x i8] c"\09\09\09Notification indicator: \00"
@.str.1 = [17 x i8] c"user suspended; \00"
@.str.2 = [15 x i8] c"user resumed; \00"
@.str.3 = [24 x i8] c"bearer service change; \00"
@.str.4 = [39 x i8] c"discriminator for extension to ASN.1; \00"
@.str.5 = [24 x i8] c"call completion delay; \00"
@.str.6 = [25 x i8] c"conference established; \00"
@.str.7 = [26 x i8] c"conference disconnected; \00"
@.str.8 = [20 x i8] c"other party added; \00"
@.str.9 = [11 x i8] c"isolated; \00"
@.str.10 = [13 x i8] c"reattached; \00"
@.str.11 = [23 x i8] c"other party isolated; \00"
@.str.12 = [25 x i8] c"other party reattached; \00"
@.str.13 = [20 x i8] c"other party split; \00"
@.str.14 = [27 x i8] c"other party disconnected; \00"
@.str.15 = [23 x i8] c"other party floating; \00"
@.str.16 = [25 x i8] c"call is a waiting call; \00"
@.str.17 = [22 x i8] c"diversion activated; \00"
@.str.18 = [26 x i8] c"call transfer, alerting; \00"
@.str.19 = [24 x i8] c"call transfer, active; \00"
@.str.20 = [14 x i8] c"remote hold; \00"
@.str.21 = [19 x i8] c"remote retrieval; \00"
@.str.22 = [22 x i8] c"remote is diverting; \00"
@.str.23 = [11 x i8] c"reserved; \00"
@.str.24 = [2 x i8] c"\0A\00"
define i32 @generic_notification_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 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* %9
%10 = load %struct.ss7*, %struct.ss7** %5
%11 = call i32 @ss7_message(%struct.ss7* %10, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
br label %12
12: ; preds = %111, %4
%13 = load i32, i32* %9
%14 = load i32, i32* %8
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %32
16: ; preds = %12
%17 = load i32, i32* %9
%18 = icmp ne i32 %17, 0
br i1 %18, label %30, label %19
19: ; preds = %16
%20 = load i8*, i8** %7
%21 = load i32, i32* %9
%22 = sub nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, i8* %20, i64 %23
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
%27 = and i32 %26, 128
%28 = icmp ne i32 %27, 0
%29 = xor i1 %28, true
br label %30
30: ; preds = %19, %16
%31 = phi i1 [ true, %16 ], [ %29, %19 ]
br label %32
32: ; preds = %30, %12
%33 = phi i1 [ false, %12 ], [ %31, %30 ]
br i1 %33, label %34, label %114
34: ; preds = %32
%35 = load i8*, i8** %7
%36 = load i32, i32* %9
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, i8* %35, i64 %37
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
%41 = and i32 %40, 127
switch i32 %41, label %108 [
i32 0, label %42
i32 1, label %45
i32 2, label %48
i32 3, label %51
i32 4, label %54
i32 66, label %57
i32 67, label %60
i32 68, label %63
i32 69, label %66
i32 70, label %69
i32 71, label %72
i32 72, label %75
i32 73, label %78
i32 74, label %81
i32 75, label %84
i32 96, label %87
i32 104, label %90
i32 105, label %93
i32 106, label %96
i32 121, label %99
i32 122, label %102
i32 123, label %105
]
42: ; preds = %34
%43 = load %struct.ss7*, %struct.ss7** %5
%44 = call i32 @ss7_message(%struct.ss7* %43, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %111
45: ; preds = %34
%46 = load %struct.ss7*, %struct.ss7** %5
%47 = call i32 @ss7_message(%struct.ss7* %46, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %111
48: ; preds = %34
%49 = load %struct.ss7*, %struct.ss7** %5
%50 = call i32 @ss7_message(%struct.ss7* %49, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
br label %111
51: ; preds = %34
%52 = load %struct.ss7*, %struct.ss7** %5
%53 = call i32 @ss7_message(%struct.ss7* %52, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
br label %111
54: ; preds = %34
%55 = load %struct.ss7*, %struct.ss7** %5
%56 = call i32 @ss7_message(%struct.ss7* %55, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
br label %111
57: ; preds = %34
%58 = load %struct.ss7*, %struct.ss7** %5
%59 = call i32 @ss7_message(%struct.ss7* %58, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
br label %111
60: ; preds = %34
%61 = load %struct.ss7*, %struct.ss7** %5
%62 = call i32 @ss7_message(%struct.ss7* %61, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
br label %111
63: ; preds = %34
%64 = load %struct.ss7*, %struct.ss7** %5
%65 = call i32 @ss7_message(%struct.ss7* %64, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
br label %111
66: ; preds = %34
%67 = load %struct.ss7*, %struct.ss7** %5
%68 = call i32 @ss7_message(%struct.ss7* %67, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
br label %111
69: ; preds = %34
%70 = load %struct.ss7*, %struct.ss7** %5
%71 = call i32 @ss7_message(%struct.ss7* %70, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
br label %111
72: ; preds = %34
%73 = load %struct.ss7*, %struct.ss7** %5
%74 = call i32 @ss7_message(%struct.ss7* %73, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0))
br label %111
75: ; preds = %34
%76 = load %struct.ss7*, %struct.ss7** %5
%77 = call i32 @ss7_message(%struct.ss7* %76, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
br label %111
78: ; preds = %34
%79 = load %struct.ss7*, %struct.ss7** %5
%80 = call i32 @ss7_message(%struct.ss7* %79, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0))
br label %111
81: ; preds = %34
%82 = load %struct.ss7*, %struct.ss7** %5
%83 = call i32 @ss7_message(%struct.ss7* %82, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
br label %111
84: ; preds = %34
%85 = load %struct.ss7*, %struct.ss7** %5
%86 = call i32 @ss7_message(%struct.ss7* %85, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0))
br label %111
87: ; preds = %34
%88 = load %struct.ss7*, %struct.ss7** %5
%89 = call i32 @ss7_message(%struct.ss7* %88, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.16, i64 0, i64 0))
br label %111
90: ; preds = %34
%91 = load %struct.ss7*, %struct.ss7** %5
%92 = call i32 @ss7_message(%struct.ss7* %91, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0))
br label %111
93: ; preds = %34
%94 = load %struct.ss7*, %struct.ss7** %5
%95 = call i32 @ss7_message(%struct.ss7* %94, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0))
br label %111
96: ; preds = %34
%97 = load %struct.ss7*, %struct.ss7** %5
%98 = call i32 @ss7_message(%struct.ss7* %97, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.19, i64 0, i64 0))
br label %111
99: ; preds = %34
%100 = load %struct.ss7*, %struct.ss7** %5
%101 = call i32 @ss7_message(%struct.ss7* %100, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0))
br label %111
102: ; preds = %34
%103 = load %struct.ss7*, %struct.ss7** %5
%104 = call i32 @ss7_message(%struct.ss7* %103, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.21, i64 0, i64 0))
br label %111
105: ; preds = %34
%106 = load %struct.ss7*, %struct.ss7** %5
%107 = call i32 @ss7_message(%struct.ss7* %106, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.22, i64 0, i64 0))
br label %111
108: ; preds = %34
%109 = load %struct.ss7*, %struct.ss7** %5
%110 = call i32 @ss7_message(%struct.ss7* %109, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0))
br label %111
111: ; preds = %108, %105, %102, %99, %96, %93, %90, %87, %84, %81, %78, %75, %72, %69, %66, %63, %60, %57, %54, %51, %48, %45, %42
%112 = load i32, i32* %9
%113 = add nsw i32 %112, 1
store i32 %113, i32* %9
br label %12
114: ; preds = %32
%115 = load %struct.ss7*, %struct.ss7** %5
%116 = call i32 @ss7_message(%struct.ss7* %115, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0))
%117 = load i32, i32* %8
ret i32 %117
}

LLVM IR (-O2):
%struct.ss7 = type { i32 }
@.str = [28 x i8] c"\09\09\09Notification indicator: \00"
@.str.1 = [17 x i8] c"user suspended; \00"
@.str.2 = [15 x i8] c"user resumed; \00"
@.str.3 = [24 x i8] c"bearer service change; \00"
@.str.4 = [39 x i8] c"discriminator for extension to ASN.1; \00"
@.str.5 = [24 x i8] c"call completion delay; \00"
@.str.6 = [25 x i8] c"conference established; \00"
@.str.7 = [26 x i8] c"conference disconnected; \00"
@.str.8 = [20 x i8] c"other party added; \00"
@.str.9 = [11 x i8] c"isolated; \00"
@.str.10 = [13 x i8] c"reattached; \00"
@.str.11 = [23 x i8] c"other party isolated; \00"
@.str.12 = [25 x i8] c"other party reattached; \00"
@.str.13 = [20 x i8] c"other party split; \00"
@.str.14 = [27 x i8] c"other party disconnected; \00"
@.str.15 = [23 x i8] c"other party floating; \00"
@.str.16 = [25 x i8] c"call is a waiting call; \00"
@.str.17 = [22 x i8] c"diversion activated; \00"
@.str.18 = [26 x i8] c"call transfer, alerting; \00"
@.str.19 = [24 x i8] c"call transfer, active; \00"
@.str.20 = [14 x i8] c"remote hold; \00"
@.str.21 = [19 x i8] c"remote retrieval; \00"
@.str.22 = [22 x i8] c"remote is diverting; \00"
@.str.23 = [11 x i8] c"reserved; \00"
@.str.24 = [2 x i8] c"\0A\00"
define i32 @generic_notification_ind_dump(%struct.ss7* %0, i32 %1, i8* nocapture %2, i32 returned %3) {
%5 = tail call i32 @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%6 = getelementptr inbounds i8, i8* %2, i64 -1
%7 = icmp sgt i32 %3, 0
br i1 %7, label %8, label %48
8: ; preds = %4
%9 = zext i32 %3 to i64
br label %10
10: ; preds = %8, %43
%11 = phi i64 [ 0, %8 ], [ %46, %43 ]
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i8, i8* %6
%15 = icmp sgt i8 %14, -1
br i1 %15, label %16, label %48
16: ; preds = %10, %13
%17 = getelementptr inbounds i8, i8* %2, i64 %11
%18 = load i8, i8* %17
%19 = and i8 %18, 127
%20 = zext i8 %19 to i32
switch i32 %20, label %42 [
i32 0, label %43
i32 1, label %21
i32 2, label %22
i32 3, label %23
i32 4, label %24
i32 66, label %25
i32 67, label %26
i32 68, label %27
i32 69, label %28
i32 70, label %29
i32 71, label %30
i32 72, label %31
i32 73, label %32
i32 74, label %33
i32 75, label %34
i32 96, label %35
i32 104, label %36
i32 105, label %37
i32 106, label %38
i32 121, label %39
i32 122, label %40
i32 123, label %41
]
21: ; preds = %16
br label %43
22: ; preds = %16
br label %43
23: ; preds = %16
br label %43
24: ; preds = %16
br label %43
25: ; preds = %16
br label %43
26: ; preds = %16
br label %43
27: ; preds = %16
br label %43
28: ; preds = %16
br label %43
29: ; preds = %16
br label %43
30: ; preds = %16
br label %43
31: ; preds = %16
br label %43
32: ; preds = %16
br label %43
33: ; preds = %16
br label %43
34: ; preds = %16
br label %43
35: ; preds = %16
br label %43
36: ; preds = %16
br label %43
37: ; preds = %16
br label %43
38: ; preds = %16
br label %43
39: ; preds = %16
br label %43
40: ; preds = %16
br label %43
41: ; preds = %16
br label %43
42: ; preds = %16
br label %43
43: ; preds = %16, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21
%44 = phi i8* [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), %42 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.22, i64 0, i64 0), %41 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.21, i64 0, i64 0), %40 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0), %39 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.19, i64 0, i64 0), %38 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0), %37 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0), %36 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.16, i64 0, i64 0), %35 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), %34 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), %33 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), %32 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), %31 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), %30 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), %29 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), %28 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), %27 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), %26 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), %25 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), %24 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), %23 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), %22 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), %21 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), %16 ]
%45 = tail call i32 @ss7_message(%struct.ss7* %0, i8* %44)
%46 = add nuw nsw i64 %11, 1
%47 = icmp eq i64 %46, %9
br i1 %47, label %48, label %10
48: ; preds = %13, %43, %4
%49 = tail call i32 @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0))
ret i32 %3
}