#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((originating_line_information_dump))(struct ss7 *ss7, int messagetype,
                                         unsigned char *parm, int len) {
  char *name;
  switch (parm[0]) {
  case 0:
    name = " Plain Old Telephone Service POTS";
    break;
  case 1:
    name = " Multiparty line";
    break;
  case 2:
    name = " ANI Failure";
    break;
  case 3:
  case 4:
  case 5:
    name = " Unassigned";
    break;
  case 6:
    name = " Station Level Rating";
    break;
  case 7:
    name = " Special Operator Handling Required";
    break;
  case 8:
  case 9:
    name = "Unassigned";
    break;
  case 10:
    name = "Not assignable";
    break;
  case 11:
    name = "Unassigned";
    break;
  case 12:
  case 13:
  case 14:
  case 15:
  case 16:
  case 17:
  case 18:
  case 19:
    name = "Not assignable";
    break;
  case 20:
    name = "Automatic Identified Outward Dialing";
    break;
  case 21:
  case 22:
    name = "Unassigned";
    break;
  case 23:
    name = "Coin or Non-Coin";
    break;
  case 24:
  case 25:
    name = "Toll Free Service translated to POTS";
    break;
  case 26:
    name = "Unassigned";
    break;
  case 27:
    name = "Pay Station using Coin Control Signalling";
    break;
  case 28:
    name = "Unassigned";
    break;
  case 29:
    name = "Prison/Inmate Service";
    break;
  case 30:
  case 31:
  case 32:
    name = "Intercept";
    break;
  case 33:
    name = "Unassigned";
    break;
  case 34:
    name = "Telco Operator Handled Call";
    break;
  case 35:
  case 36:
  case 37:
  case 38:
  case 39:
    name = "Unassigned";
    break;
  case 40:
  case 41:
  case 42:
  case 43:
  case 44:
  case 45:
  case 46:
  case 47:
  case 48:
  case 49:
    name = "Unrestricted Use - locally determined by carrier";
    break;
  case 50:
  case 51:
    name = "Unassigned";
    break;
  case 52:
    name = "OUTWATS";
    break;
  case 53:
  case 54:
  case 55:
  case 56:
  case 57:
  case 58:
  case 59:
    name = "Unassigned";
    break;
  case 60:
    name = "TRS Unrestricted Line";
    break;
  case 61:
    name = "Cellular Wireless PCS Type 1";
    break;
  case 62:
    name = "Cellular Wireless PCS Type 2";
    break;
  case 63:
    name = "Cellular Wireless PCS Roaming";
    break;
  case 64:
  case 65:
    name = "Unassigned";
    break;
  case 66:
    name = "TRS Hotel Motel";
    break;
  case 67:
    name = "TRS Restricted Line";
    break;
  case 68:
  case 69:
    name = "Unassigned";
    break;
  case 70:
    name = "Pay Station No network Coin Control Signalling";
    break;
  case 71:
  case 72:
  case 73:
  case 74:
  case 75:
  case 76:
  case 77:
  case 78:
  case 79:
    name = "Unassigned";
    break;
  case 80:
  case 81:
  case 82:
  case 83:
  case 84:
  case 85:
  case 86:
  case 87:
  case 88:
  case 89:
    name = "Reserved";
    break;
  case 90:
  case 91:
  case 92:
    name = "Unassigned";
    break;
  case 93:
    name = "Private Virtual Network Type of service call";
    break;
  case 94:
  case 95:
  case 96:
  case 97:
  case 98:
  case 99:
    name = "Unassigned";
    break;
  default:
    name = "Unknown to Asterisk ";
  }
  ss7_message(ss7, "\t\t\tLine info code: %s (%d)\n", name, parm[0]);
  return 1;
}


x86 assembly (clang, -O0):
<originating_line_information_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)
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
mov    %rax,-0x30(%rbp)
sub    $0x63,%rax
ja     13cf <originating_line_information_dump+0x2bf>
mov    -0x30(%rbp),%rax
lea    0xeba(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x103a(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x104c(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x104d(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x104a(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1046(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x104c(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x101b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1050(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xffb(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1030(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x102f(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xfcb(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1034(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1035(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xf9b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x103a(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xf7b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1044(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x104a(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xf4b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1034(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xf2b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1030(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xf0b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1041(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xeeb(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1029(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x102f(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x103c(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1049(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xe9b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1047(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1047(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xe6b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x103b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xe4b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x104a(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xe2b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1033(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0xe0b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    13da <originating_line_information_dump+0x2ca>
lea    0x1040(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    -0x18(%rbp),%rax
lea    0x103e(%rip),%rsi
movzbl (%rax),%ecx
call   1030 <ss7_message@plt>
mov    $0x1,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<originating_line_information_dump>:
push   %rax
movsbq (%rdx),%rax
cmp    $0x63,%rax
ja     112b <originating_line_information_dump+0x1b>
lea    0x1196(%rip),%rcx
movslq (%rcx,%rax,4),%rdx
add    %rcx,%rdx
jmp    1132 <originating_line_information_dump+0x22>
lea    0x1154(%rip),%rdx
movzbl %al,%ecx
lea    0x115f(%rip),%rsi
call   1030 <ss7_message@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.ss7 = type { i32 }
@.str = [34 x i8] c" Plain Old Telephone Service POTS\00"
@.str.1 = [17 x i8] c" Multiparty line\00"
@.str.2 = [13 x i8] c" ANI Failure\00"
@.str.3 = [12 x i8] c" Unassigned\00"
@.str.4 = [22 x i8] c" Station Level Rating\00"
@.str.5 = [36 x i8] c" Special Operator Handling Required\00"
@.str.6 = [11 x i8] c"Unassigned\00"
@.str.7 = [15 x i8] c"Not assignable\00"
@.str.8 = [37 x i8] c"Automatic Identified Outward Dialing\00"
@.str.9 = [17 x i8] c"Coin or Non-Coin\00"
@.str.10 = [37 x i8] c"Toll Free Service translated to POTS\00"
@.str.11 = [42 x i8] c"Pay Station using Coin Control Signalling\00"
@.str.12 = [22 x i8] c"Prison/Inmate Service\00"
@.str.13 = [10 x i8] c"Intercept\00"
@.str.14 = [28 x i8] c"Telco Operator Handled Call\00"
@.str.15 = [49 x i8] c"Unrestricted Use - locally determined by carrier\00"
@.str.16 = [8 x i8] c"OUTWATS\00"
@.str.17 = [22 x i8] c"TRS Unrestricted Line\00"
@.str.18 = [29 x i8] c"Cellular Wireless PCS Type 1\00"
@.str.19 = [29 x i8] c"Cellular Wireless PCS Type 2\00"
@.str.20 = [30 x i8] c"Cellular Wireless PCS Roaming\00"
@.str.21 = [16 x i8] c"TRS Hotel Motel\00"
@.str.22 = [20 x i8] c"TRS Restricted Line\00"
@.str.23 = [47 x i8] c"Pay Station No network Coin Control Signalling\00"
@.str.24 = [9 x i8] c"Reserved\00"
@.str.25 = [45 x i8] c"Private Virtual Network Type of service call\00"
@.str.26 = [21 x i8] c"Unknown to Asterisk \00"
@.str.27 = [28 x i8] c"\09\09\09Line info code: %s (%d)\0A\00"
define i32 @originating_line_information_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*
store %struct.ss7* %0, %struct.ss7** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%10 = load i8*, i8** %7
%11 = getelementptr inbounds i8, i8* %10, i64 0
%12 = load i8, i8* %11
%13 = zext i8 %12 to i32
switch i32 %13, label %54 [
i32 0, label %14
i32 1, label %15
i32 2, label %16
i32 3, label %17
i32 4, label %17
i32 5, label %17
i32 6, label %18
i32 7, label %19
i32 8, label %20
i32 9, label %20
i32 10, label %21
i32 11, label %22
i32 12, label %23
i32 13, label %23
i32 14, label %23
i32 15, label %23
i32 16, label %23
i32 17, label %23
i32 18, label %23
i32 19, label %23
i32 20, label %24
i32 21, label %25
i32 22, label %25
i32 23, label %26
i32 24, label %27
i32 25, label %27
i32 26, label %28
i32 27, label %29
i32 28, label %30
i32 29, label %31
i32 30, label %32
i32 31, label %32
i32 32, label %32
i32 33, label %33
i32 34, label %34
i32 35, label %35
i32 36, label %35
i32 37, label %35
i32 38, label %35
i32 39, label %35
i32 40, label %36
i32 41, label %36
i32 42, label %36
i32 43, label %36
i32 44, label %36
i32 45, label %36
i32 46, label %36
i32 47, label %36
i32 48, label %36
i32 49, label %36
i32 50, label %37
i32 51, label %37
i32 52, label %38
i32 53, label %39
i32 54, label %39
i32 55, label %39
i32 56, label %39
i32 57, label %39
i32 58, label %39
i32 59, label %39
i32 60, label %40
i32 61, label %41
i32 62, label %42
i32 63, label %43
i32 64, label %44
i32 65, label %44
i32 66, label %45
i32 67, label %46
i32 68, label %47
i32 69, label %47
i32 70, label %48
i32 71, label %49
i32 72, label %49
i32 73, label %49
i32 74, label %49
i32 75, label %49
i32 76, label %49
i32 77, label %49
i32 78, label %49
i32 79, label %49
i32 80, label %50
i32 81, label %50
i32 82, label %50
i32 83, label %50
i32 84, label %50
i32 85, label %50
i32 86, label %50
i32 87, label %50
i32 88, label %50
i32 89, label %50
i32 90, label %51
i32 91, label %51
i32 92, label %51
i32 93, label %52
i32 94, label %53
i32 95, label %53
i32 96, label %53
i32 97, label %53
i32 98, label %53
i32 99, label %53
]
14: ; preds = %4
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8** %9
br label %55
15: ; preds = %4
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8** %9
br label %55
16: ; preds = %4
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8** %9
br label %55
17: ; preds = %4, %4, %4
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8** %9
br label %55
18: ; preds = %4
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8** %9
br label %55
19: ; preds = %4
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i8** %9
br label %55
20: ; preds = %4, %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
21: ; preds = %4
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8** %9
br label %55
22: ; preds = %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
23: ; preds = %4, %4, %4, %4, %4, %4, %4, %4
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8** %9
br label %55
24: ; preds = %4
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0), i8** %9
br label %55
25: ; preds = %4, %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
26: ; preds = %4
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i8** %9
br label %55
27: ; preds = %4, %4
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0), i8** %9
br label %55
28: ; preds = %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
29: ; preds = %4
store i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.11, i64 0, i64 0), i8** %9
br label %55
30: ; preds = %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
31: ; preds = %4
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i8** %9
br label %55
32: ; preds = %4, %4, %4
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), i8** %9
br label %55
33: ; preds = %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
34: ; preds = %4
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i8** %9
br label %55
35: ; preds = %4, %4, %4, %4, %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
36: ; preds = %4, %4, %4, %4, %4, %4, %4, %4, %4, %4
store i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.15, i64 0, i64 0), i8** %9
br label %55
37: ; preds = %4, %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
38: ; preds = %4
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i8** %9
br label %55
39: ; preds = %4, %4, %4, %4, %4, %4, %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
40: ; preds = %4
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0), i8** %9
br label %55
41: ; preds = %4
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8** %9
br label %55
42: ; preds = %4
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0), i8** %9
br label %55
43: ; preds = %4
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.20, i64 0, i64 0), i8** %9
br label %55
44: ; preds = %4, %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
45: ; preds = %4
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0), i8** %9
br label %55
46: ; preds = %4
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.22, i64 0, i64 0), i8** %9
br label %55
47: ; preds = %4, %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
48: ; preds = %4
store i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.23, i64 0, i64 0), i8** %9
br label %55
49: ; preds = %4, %4, %4, %4, %4, %4, %4, %4, %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
50: ; preds = %4, %4, %4, %4, %4, %4, %4, %4, %4, %4
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.24, i64 0, i64 0), i8** %9
br label %55
51: ; preds = %4, %4, %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
52: ; preds = %4
store i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.25, i64 0, i64 0), i8** %9
br label %55
53: ; preds = %4, %4, %4, %4, %4, %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %55
54: ; preds = %4
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.26, i64 0, i64 0), i8** %9
br label %55
55: ; preds = %54, %53, %52, %51, %50, %49, %48, %47, %46, %45, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14
%56 = load %struct.ss7*, %struct.ss7** %5
%57 = load i8*, i8** %9
%58 = load i8*, i8** %7
%59 = getelementptr inbounds i8, i8* %58, i64 0
%60 = load i8, i8* %59
%61 = call i32 @ss7_message(%struct.ss7* %56, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.27, i64 0, i64 0), i8* %57, i8 zeroext %60)
ret i32 1
}

LLVM IR (-O2):
%struct.ss7 = type { i32 }
@.str = [34 x i8] c" Plain Old Telephone Service POTS\00"
@.str.1 = [17 x i8] c" Multiparty line\00"
@.str.2 = [13 x i8] c" ANI Failure\00"
@.str.3 = [12 x i8] c" Unassigned\00"
@.str.4 = [22 x i8] c" Station Level Rating\00"
@.str.5 = [36 x i8] c" Special Operator Handling Required\00"
@.str.6 = [11 x i8] c"Unassigned\00"
@.str.7 = [15 x i8] c"Not assignable\00"
@.str.8 = [37 x i8] c"Automatic Identified Outward Dialing\00"
@.str.9 = [17 x i8] c"Coin or Non-Coin\00"
@.str.10 = [37 x i8] c"Toll Free Service translated to POTS\00"
@.str.11 = [42 x i8] c"Pay Station using Coin Control Signalling\00"
@.str.12 = [22 x i8] c"Prison/Inmate Service\00"
@.str.13 = [10 x i8] c"Intercept\00"
@.str.14 = [28 x i8] c"Telco Operator Handled Call\00"
@.str.15 = [49 x i8] c"Unrestricted Use - locally determined by carrier\00"
@.str.16 = [8 x i8] c"OUTWATS\00"
@.str.17 = [22 x i8] c"TRS Unrestricted Line\00"
@.str.18 = [29 x i8] c"Cellular Wireless PCS Type 1\00"
@.str.19 = [29 x i8] c"Cellular Wireless PCS Type 2\00"
@.str.20 = [30 x i8] c"Cellular Wireless PCS Roaming\00"
@.str.21 = [16 x i8] c"TRS Hotel Motel\00"
@.str.22 = [20 x i8] c"TRS Restricted Line\00"
@.str.23 = [47 x i8] c"Pay Station No network Coin Control Signalling\00"
@.str.24 = [9 x i8] c"Reserved\00"
@.str.25 = [45 x i8] c"Private Virtual Network Type of service call\00"
@.str.26 = [21 x i8] c"Unknown to Asterisk \00"
@.str.27 = [28 x i8] c"\09\09\09Line info code: %s (%d)\0A\00"
@reltable.originating_line_information_dump = [100 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.1 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.2 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.3 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.3 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.3 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.4 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([36 x i8]* @.str.5 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.7 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.7 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.7 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.7 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.7 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.7 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.7 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.7 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.7 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([37 x i8]* @.str.8 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.9 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([37 x i8]* @.str.10 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([37 x i8]* @.str.10 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.11 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.12 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.13 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.13 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.13 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([28 x i8]* @.str.14 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @.str.15 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @.str.15 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @.str.15 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @.str.15 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @.str.15 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @.str.15 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @.str.15 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @.str.15 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @.str.15 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @.str.15 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.16 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.17 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.18 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.19 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @.str.20 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.21 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.22 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([47 x i8]* @.str.23 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.24 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.24 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.24 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.24 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.24 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.24 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.24 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.24 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.24 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.24 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @.str.25 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([100 x i32]* @reltable.originating_line_information_dump to i64)) to i32)]
define i32 @originating_line_information_dump(%struct.ss7* %0, i32 %1, i8* nocapture %2, i32 %3) {
%5 = load i8, i8* %2
%6 = icmp ult i8 %5, 100
br i1 %6, label %7, label %11
7: ; preds = %4
%8 = sext i8 %5 to i64
%9 = shl i64 %8, 2
%10 = call i8* @llvm.load.relative.i64(i8* bitcast ([100 x i32]* @reltable.originating_line_information_dump to i8*), i64 %9)
br label %11
11: ; preds = %4, %7
%12 = phi i8* [ %10, %7 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.26, i64 0, i64 0), %4 ]
%13 = tail call i32 @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.27, i64 0, i64 0), i8* %12, i8 zeroext %5)
ret i32 1
}