#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((redirection_info_dump))(struct ss7 *ss7, int messagetype,
                             unsigned char *parm, int len) {
  char *redirect_ind, *orig_redir_reas, *redir_reas;
  switch (parm[0] & 0x7) {
  case 0:
    redirect_ind = "No Redirection (national use)";
    break;
  case 1:
    redirect_ind = "Call rerouted (national use)";
    break;
  case 2:
    redirect_ind = "Call rerouted, all rediection information presentation "
                   "restricted (national use)";
    break;
  case 3:
    redirect_ind = "Call diverted";
    break;
  case 4:
    redirect_ind =
        "Call diverted, all redirection information presentation restricted";
    break;
  case 5:
    redirect_ind = "Call rerouted, redirection number presentation restricted "
                   "(national use)";
    break;
  case 6:
    redirect_ind = "Call diversion, redirection number presentation restricted "
                   "(national use)";
    break;
  case 7:
    redirect_ind = "spare";
    break;
  default:
    redirect_ind = "Unknown";
    break;
  }
  ss7_message(ss7, "\t\t\tRedirecting indicator: %s (%d)\n", redirect_ind,
              parm[0] & 0x7);
  switch ((parm[0] >> 4) & 0xf) {
  case 0:
    orig_redir_reas = "Unknown/not available";
    break;
  case 1:
    orig_redir_reas = "User busy (national use)";
    break;
  case 2:
    orig_redir_reas = "No reply (national use)";
    break;
  case 3:
    orig_redir_reas = "Unconditional (national use)";
    break;
  default:
    orig_redir_reas = "spare";
    break;
  }
  ss7_message(ss7, "\t\t\tOriginal redirection reason: %s (%d)\n",
              orig_redir_reas, (parm[0] >> 4) & 0xf);
  ss7_message(ss7, "\t\t\tRedirection counter: %d\n", parm[1] & 0x7);
  switch ((parm[1] >> 4) & 0xf) {
  case 0:
    redir_reas = "Unknown/not available";
    break;
  case 1:
    redir_reas = "User busy";
    break;
  case 2:
    redir_reas = "No reply";
    break;
  case 3:
    redir_reas = "Unconditional";
    break;
  case 4:
    redir_reas = "Deflection during alerting";
    break;
  case 5:
    redir_reas = "Deflection immediate response";
    break;
  case 6:
    redir_reas = "Mobile sudirriber not reachable";
    break;
  default:
    redir_reas = "spare";
    break;
  }
  ss7_message(ss7, "\t\t\tRedirecting reason: %s (%d)\n", redir_reas,
              (parm[1] >> 4) & 0xf);
  return 2;
}


x86 assembly (clang, -O0):
<redirection_info_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)
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
and    $0x7,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x7,%eax
ja     11d3 <redirection_info_dump+0xc3>
mov    -0x40(%rbp),%rax
lea    0xeb6(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xef2(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    11de <redirection_info_dump+0xce>
lea    0xf00(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    11de <redirection_info_dump+0xce>
lea    0xf0d(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    11de <redirection_info_dump+0xce>
lea    0xf4e(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    11de <redirection_info_dump+0xce>
lea    0xf4c(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    11de <redirection_info_dump+0xce>
lea    0xf7f(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    11de <redirection_info_dump+0xce>
lea    0xfb8(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    11de <redirection_info_dump+0xce>
lea    0xff2(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    11de <redirection_info_dump+0xce>
lea    0xfe8(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    -0x18(%rbp),%rax
movzbl (%rax),%ecx
and    $0x7,%ecx
lea    0xfd3(%rip),%rsi
xor    %eax,%eax
call   1030 <ss7_message@plt>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
shr    $0x4,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x3,%eax
ja     126b <redirection_info_dump+0x15b>
mov    -0x48(%rbp),%rax
lea    0xdfe(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xfbb(%rip),%rax
mov    %rax,-0x30(%rbp)
jmp    1276 <redirection_info_dump+0x166>
lea    0xfc1(%rip),%rax
mov    %rax,-0x30(%rbp)
jmp    1276 <redirection_info_dump+0x166>
lea    0xfca(%rip),%rax
mov    %rax,-0x30(%rbp)
jmp    1276 <redirection_info_dump+0x166>
lea    0xfd2(%rip),%rax
mov    %rax,-0x30(%rbp)
jmp    1276 <redirection_info_dump+0x166>
lea    0xf4a(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    -0x18(%rbp),%rax
movzbl (%rax),%ecx
shr    $0x4,%ecx
lea    0xfc2(%rip),%rsi
xor    %eax,%eax
mov    %al,-0x51(%rbp)
call   1030 <ss7_message@plt>
mov    -0x51(%rbp),%al
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rcx
movzbl 0x1(%rcx),%edx
and    $0x7,%edx
lea    0xfc8(%rip),%rsi
call   1030 <ss7_message@plt>
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%eax
shr    $0x4,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0x6,%eax
ja     1355 <redirection_info_dump+0x245>
mov    -0x50(%rbp),%rax
lea    0xd54(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf01(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    1360 <redirection_info_dump+0x250>
lea    0xf9a(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    1360 <redirection_info_dump+0x250>
lea    0xf94(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    1360 <redirection_info_dump+0x250>
lea    0xf8d(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    1360 <redirection_info_dump+0x250>
lea    0xf8b(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    1360 <redirection_info_dump+0x250>
lea    0xf96(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    1360 <redirection_info_dump+0x250>
lea    0xfa4(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    1360 <redirection_info_dump+0x250>
lea    0xe60(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%ecx
sar    $0x4,%ecx
and    $0xf,%ecx
lea    0xf93(%rip),%rsi
mov    $0x0,%al
call   1030 <ss7_message@plt>
mov    $0x2,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<redirection_info_dump>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %rdi,%r14
movzbl (%rdx),%ecx
and    $0x7,%ecx
lea    0x11b4(%rip),%rax
movslq (%rax,%rcx,4),%rdx
add    %rax,%rdx
lea    0x1040(%rip),%rsi
xor    %eax,%eax
call   1030 <ss7_message@plt>
movzbl (%rbx),%eax
mov    %rax,%rcx
shr    $0x4,%rcx
lea    0x1022(%rip),%r15
mov    %r15,%rdx
cmp    $0x3f,%rax
ja     1165 <redirection_info_dump+0x55>
lea    0x11ba(%rip),%rax
movslq (%rax,%rcx,4),%rdx
add    %rax,%rdx
lea    0x1091(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <ss7_message@plt>
movzbl 0x1(%rbx),%edx
and    $0x7,%edx
lea    0x10a2(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <ss7_message@plt>
movzbl 0x1(%rbx),%ecx
mov    %rcx,%rax
shr    $0x4,%rax
cmp    $0x6f,%rcx
ja     11ad <redirection_info_dump+0x9d>
lea    0x1156(%rip),%rcx
movslq (%rcx,%rax,4),%r15
add    %rcx,%r15
movzbl %al,%ecx
lea    0x1105(%rip),%rsi
mov    %r14,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <ss7_message@plt>
mov    $0x2,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.ss7 = type { i32 }
@.str = [30 x i8] c"No Redirection (national use)\00"
@.str.1 = [29 x i8] c"Call rerouted (national use)\00"
@.str.2 = [81 x i8] c"Call rerouted, all rediection information presentation restricted (national use)\00"
@.str.3 = [14 x i8] c"Call diverted\00"
@.str.4 = [67 x i8] c"Call diverted, all redirection information presentation restricted\00"
@.str.5 = [73 x i8] c"Call rerouted, redirection number presentation restricted (national use)\00"
@.str.6 = [74 x i8] c"Call diversion, redirection number presentation restricted (national use)\00"
@.str.7 = [6 x i8] c"spare\00"
@.str.8 = [8 x i8] c"Unknown\00"
@.str.9 = [35 x i8] c"\09\09\09Redirecting indicator: %s (%d)\0A\00"
@.str.10 = [22 x i8] c"Unknown/not available\00"
@.str.11 = [25 x i8] c"User busy (national use)\00"
@.str.12 = [24 x i8] c"No reply (national use)\00"
@.str.13 = [29 x i8] c"Unconditional (national use)\00"
@.str.14 = [41 x i8] c"\09\09\09Original redirection reason: %s (%d)\0A\00"
@.str.15 = [28 x i8] c"\09\09\09Redirection counter: %d\0A\00"
@.str.16 = [10 x i8] c"User busy\00"
@.str.17 = [9 x i8] c"No reply\00"
@.str.18 = [14 x i8] c"Unconditional\00"
@.str.19 = [27 x i8] c"Deflection during alerting\00"
@.str.20 = [30 x i8] c"Deflection immediate response\00"
@.str.21 = [32 x i8] c"Mobile sudirriber not reachable\00"
@.str.22 = [32 x i8] c"\09\09\09Redirecting reason: %s (%d)\0A\00"
define i32 @redirection_info_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*
store %struct.ss7* %0, %struct.ss7** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%12 = load i8*, i8** %7
%13 = getelementptr inbounds i8, i8* %12, i64 0
%14 = load i8, i8* %13
%15 = zext i8 %14 to i32
%16 = and i32 %15, 7
switch i32 %16, label %25 [
i32 0, label %17
i32 1, label %18
i32 2, label %19
i32 3, label %20
i32 4, label %21
i32 5, label %22
i32 6, label %23
i32 7, label %24
]
17: ; preds = %4
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8** %9
br label %26
18: ; preds = %4
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i8** %9
br label %26
19: ; preds = %4
store i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.2, i64 0, i64 0), i8** %9
br label %26
20: ; preds = %4
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8** %9
br label %26
21: ; preds = %4
store i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0), i8** %9
br label %26
22: ; preds = %4
store i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.5, i64 0, i64 0), i8** %9
br label %26
23: ; preds = %4
store i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %26
24: ; preds = %4
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8** %9
br label %26
25: ; preds = %4
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8** %9
br label %26
26: ; preds = %25, %24, %23, %22, %21, %20, %19, %18, %17
%27 = load %struct.ss7*, %struct.ss7** %5
%28 = load i8*, i8** %9
%29 = load i8*, i8** %7
%30 = getelementptr inbounds i8, i8* %29, i64 0
%31 = load i8, i8* %30
%32 = zext i8 %31 to i32
%33 = and i32 %32, 7
%34 = call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %27, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), i8* %28, i32 %33)
%35 = load i8*, i8** %7
%36 = getelementptr inbounds i8, i8* %35, i64 0
%37 = load i8, i8* %36
%38 = zext i8 %37 to i32
%39 = ashr i32 %38, 4
%40 = and i32 %39, 15
switch i32 %40, label %45 [
i32 0, label %41
i32 1, label %42
i32 2, label %43
i32 3, label %44
]
41: ; preds = %26
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i8** %10
br label %46
42: ; preds = %26
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0), i8** %10
br label %46
43: ; preds = %26
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i8** %10
br label %46
44: ; preds = %26
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.13, i64 0, i64 0), i8** %10
br label %46
45: ; preds = %26
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8** %10
br label %46
46: ; preds = %45, %44, %43, %42, %41
%47 = load %struct.ss7*, %struct.ss7** %5
%48 = load i8*, i8** %10
%49 = load i8*, i8** %7
%50 = getelementptr inbounds i8, i8* %49, i64 0
%51 = load i8, i8* %50
%52 = zext i8 %51 to i32
%53 = ashr i32 %52, 4
%54 = and i32 %53, 15
%55 = call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %47, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.14, i64 0, i64 0), i8* %48, i32 %54)
%56 = load %struct.ss7*, %struct.ss7** %5
%57 = load i8*, i8** %7
%58 = getelementptr inbounds i8, i8* %57, i64 1
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = and i32 %60, 7
%62 = call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %56, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i32 %61)
%63 = load i8*, i8** %7
%64 = getelementptr inbounds i8, i8* %63, i64 1
%65 = load i8, i8* %64
%66 = zext i8 %65 to i32
%67 = ashr i32 %66, 4
%68 = and i32 %67, 15
switch i32 %68, label %76 [
i32 0, label %69
i32 1, label %70
i32 2, label %71
i32 3, label %72
i32 4, label %73
i32 5, label %74
i32 6, label %75
]
69: ; preds = %46
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i8** %11
br label %77
70: ; preds = %46
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i8** %11
br label %77
71: ; preds = %46
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i8** %11
br label %77
72: ; preds = %46
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0), i8** %11
br label %77
73: ; preds = %46
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.19, i64 0, i64 0), i8** %11
br label %77
74: ; preds = %46
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.20, i64 0, i64 0), i8** %11
br label %77
75: ; preds = %46
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.21, i64 0, i64 0), i8** %11
br label %77
76: ; preds = %46
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8** %11
br label %77
77: ; preds = %76, %75, %74, %73, %72, %71, %70, %69
%78 = load %struct.ss7*, %struct.ss7** %5
%79 = load i8*, i8** %11
%80 = load i8*, i8** %7
%81 = getelementptr inbounds i8, i8* %80, i64 1
%82 = load i8, i8* %81
%83 = zext i8 %82 to i32
%84 = ashr i32 %83, 4
%85 = and i32 %84, 15
%86 = call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %78, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.22, i64 0, i64 0), i8* %79, i32 %85)
ret i32 2
}

LLVM IR (-O2):
%struct.ss7 = type { i32 }
@.str = [30 x i8] c"No Redirection (national use)\00"
@.str.1 = [29 x i8] c"Call rerouted (national use)\00"
@.str.2 = [81 x i8] c"Call rerouted, all rediection information presentation restricted (national use)\00"
@.str.3 = [14 x i8] c"Call diverted\00"
@.str.4 = [67 x i8] c"Call diverted, all redirection information presentation restricted\00"
@.str.5 = [73 x i8] c"Call rerouted, redirection number presentation restricted (national use)\00"
@.str.6 = [74 x i8] c"Call diversion, redirection number presentation restricted (national use)\00"
@.str.7 = [6 x i8] c"spare\00"
@.str.9 = [35 x i8] c"\09\09\09Redirecting indicator: %s (%d)\0A\00"
@.str.10 = [22 x i8] c"Unknown/not available\00"
@.str.11 = [25 x i8] c"User busy (national use)\00"
@.str.12 = [24 x i8] c"No reply (national use)\00"
@.str.13 = [29 x i8] c"Unconditional (national use)\00"
@.str.14 = [41 x i8] c"\09\09\09Original redirection reason: %s (%d)\0A\00"
@.str.15 = [28 x i8] c"\09\09\09Redirection counter: %d\0A\00"
@.str.16 = [10 x i8] c"User busy\00"
@.str.17 = [9 x i8] c"No reply\00"
@.str.18 = [14 x i8] c"Unconditional\00"
@.str.19 = [27 x i8] c"Deflection during alerting\00"
@.str.20 = [30 x i8] c"Deflection immediate response\00"
@.str.21 = [32 x i8] c"Mobile sudirriber not reachable\00"
@.str.22 = [32 x i8] c"\09\09\09Redirecting reason: %s (%d)\0A\00"
@reltable.redirection_info_dump = [8 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @.str to i64), i64 ptrtoint ([8 x i32]* @reltable.redirection_info_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.1 to i64), i64 ptrtoint ([8 x i32]* @reltable.redirection_info_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([81 x i8]* @.str.2 to i64), i64 ptrtoint ([8 x i32]* @reltable.redirection_info_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.3 to i64), i64 ptrtoint ([8 x i32]* @reltable.redirection_info_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([67 x i8]* @.str.4 to i64), i64 ptrtoint ([8 x i32]* @reltable.redirection_info_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([73 x i8]* @.str.5 to i64), i64 ptrtoint ([8 x i32]* @reltable.redirection_info_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([74 x i8]* @.str.6 to i64), i64 ptrtoint ([8 x i32]* @reltable.redirection_info_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.7 to i64), i64 ptrtoint ([8 x i32]* @reltable.redirection_info_dump to i64)) to i32)]
@reltable.redirection_info_dump.25 = [7 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.10 to i64), i64 ptrtoint ([7 x i32]* @reltable.redirection_info_dump.25 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.16 to i64), i64 ptrtoint ([7 x i32]* @reltable.redirection_info_dump.25 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.17 to i64), i64 ptrtoint ([7 x i32]* @reltable.redirection_info_dump.25 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.18 to i64), i64 ptrtoint ([7 x i32]* @reltable.redirection_info_dump.25 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @.str.19 to i64), i64 ptrtoint ([7 x i32]* @reltable.redirection_info_dump.25 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @.str.20 to i64), i64 ptrtoint ([7 x i32]* @reltable.redirection_info_dump.25 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @.str.21 to i64), i64 ptrtoint ([7 x i32]* @reltable.redirection_info_dump.25 to i64)) to i32)]
@reltable.redirection_info_dump.26 = [4 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.10 to i64), i64 ptrtoint ([4 x i32]* @reltable.redirection_info_dump.26 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.11 to i64), i64 ptrtoint ([4 x i32]* @reltable.redirection_info_dump.26 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.12 to i64), i64 ptrtoint ([4 x i32]* @reltable.redirection_info_dump.26 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.13 to i64), i64 ptrtoint ([4 x i32]* @reltable.redirection_info_dump.26 to i64)) to i32)]
define i32 @redirection_info_dump(%struct.ss7* %0, i32 %1, i8* nocapture %2, i32 %3) {
%5 = load i8, i8* %2
%6 = and i8 %5, 7
%7 = zext i8 %6 to i32
%8 = zext i8 %6 to i64
%9 = shl i64 %8, 2
%10 = call i8* @llvm.load.relative.i64(i8* bitcast ([8 x i32]* @reltable.redirection_info_dump to i8*), i64 %9)
%11 = tail call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), i8* %10, i32 %7)
%12 = load i8, i8* %2
%13 = lshr i8 %12, 4
%14 = zext i8 %13 to i32
%15 = icmp ult i8 %12, 64
br i1 %15, label %16, label %20
16: ; preds = %4
%17 = zext i8 %13 to i64
%18 = shl i64 %17, 2
%19 = call i8* @llvm.load.relative.i64(i8* bitcast ([4 x i32]* @reltable.redirection_info_dump.26 to i8*), i64 %18)
br label %20
20: ; preds = %4, %16
%21 = phi i8* [ %19, %16 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), %4 ]
%22 = tail call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.14, i64 0, i64 0), i8* %21, i32 %14)
%23 = getelementptr inbounds i8, i8* %2, i64 1
%24 = load i8, i8* %23
%25 = and i8 %24, 7
%26 = zext i8 %25 to i32
%27 = tail call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i32 %26)
%28 = load i8, i8* %23
%29 = lshr i8 %28, 4
%30 = icmp ult i8 %28, 112
br i1 %30, label %31, label %35
31: ; preds = %20
%32 = zext i8 %29 to i64
%33 = shl i64 %32, 2
%34 = call i8* @llvm.load.relative.i64(i8* bitcast ([7 x i32]* @reltable.redirection_info_dump.25 to i8*), i64 %33)
br label %35
35: ; preds = %20, %31
%36 = phi i8* [ %34, %31 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), %20 ]
%37 = zext i8 %29 to i32
%38 = tail call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.22, i64 0, i64 0), i8* %36, i32 %37)
ret i32 2
}