#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((cause_dump))(struct ss7 *ss7, int messagetype, unsigned char *parm,
                  int len) {
  char *cause;
  switch (parm[1] & 0x7f) {
  case 1:
    cause = "Unallocated (unassigned) number";
    break;
  case 2:
    cause = "No route to specified transit network";
    break;
  case 3:
    cause = "No route to destination";
    break;
  case 4:
    cause = "Send special information tone";
    break;
  case 5:
    cause = "Misdialled trunk prefix";
    break;
  case 6:
    cause = "Channel unacceptable";
    break;
  case 7:
    cause = "Call awarded and being delivered in an established channel";
    break;
  case 8:
    cause = "Preemption";
    break;
  case 9:
    cause = "Preemption - circuit reserved for reuse";
    break;
  case 16:
    cause = "Normal call clearing";
    break;
  case 17:
    cause = "User busy";
    break;
  case 18:
    cause = "No user responding";
    break;
  case 19:
    cause = "No answer from user (user alerted)";
    break;
  case 20:
    cause = "Sudirriber absent";
    break;
  case 21:
    cause = "Call rejected";
    break;
  case 22:
    cause = "Number changed";
    break;
  case 23:
    cause = "Redirection to new destination";
    break;
  case 25:
    cause = "Exchange routing error";
    break;
  case 26:
    cause = "Non-selected user clearing";
    break;
  case 27:
    cause = "Destination out of order";
    break;
  case 28:
    cause = "Invalid number format (address incomplete)";
    break;
  case 29:
    cause = "Facility rejected";
    break;
  case 30:
    cause = "Response to STATUS ENQUIRY";
    break;
  case 31:
    cause = "Normal, unspecified";
    break;
  case 34:
    cause = "No circuit/channel available";
    break;
  case 38:
    cause = "Network out of order";
    break;
  case 39:
    cause = "Permanent frame mode connection out of service";
    break;
  case 40:
    cause = "Permanent frame mode connection operational";
    break;
  case 41:
    cause = "Temporary failure";
    break;
  case 42:
    cause = "Switching equipment congestion";
    break;
  case 43:
    cause = "Access information discarded";
    break;
  case 44:
    cause = "Requested circuit/channel not available";
    break;
  case 46:
    cause = "Precedence call blocked";
    break;
  case 47:
    cause = "Resource unavailable, unspecified";
    break;
  case 49:
    cause = "Quality of service not available";
    break;
  case 50:
    cause = "Requested facility not sudirribed";
    break;
  case 53:
    cause = "Outgoing calls barred within CUG";
    break;
  case 55:
    cause = "Incoming calls barred within CUG";
    break;
  case 57:
    cause = "Bearer capability not authorized";
    break;
  case 58:
    cause = "Bearer capability not presently available";
    break;
  case 62:
    cause = "Inconsistency in designated outgoing access information and "
            "sudirriber class";
    break;
  case 63:
    cause = "Service or option not available, unspecified";
    break;
  case 65:
    cause = "Bearer capability not implemented";
    break;
  case 66:
    cause = "Channel type not implemented";
    break;
  case 69:
    cause = "Requested facility not implemented";
    break;
  case 70:
    cause =
        "Only restricted digital information bearer capability is available";
    break;
  case 79:
    cause = "Service or option not implemented, unspecified";
    break;
  case 81:
    cause = "Invalid call reference value";
    break;
  case 82:
    cause = "Identified channel does not exist";
    break;
  case 83:
    cause = "A suspended call exists, but this call identity does not";
    break;
  case 84:
    cause = "Call identity in use";
    break;
  case 85:
    cause = "No call suspended";
    break;
  case 86:
    cause = "Call having the requested call identity has been cleared";
    break;
  case 87:
    cause = "User not member of CUG";
    break;
  case 88:
    cause = "Incompatible destination";
    break;
  case 90:
    cause = "Non-existent CUG";
    break;
  case 91:
    cause = "Invalid transit network selection";
    break;
  case 95:
    cause = "Invalid message, unspecified";
    break;
  case 96:
    cause = "Mandatory information element is missing";
    break;
  case 97:
    cause = "Message type non-existent or not implemented";
    break;
  case 98:
    cause = "Message not compatible with call state or message type "
            "non-existent or not implemented";
    break;
  case 99:
    cause = "Information element /parameter non-existent or not implemented";
    break;
  case 100:
    cause = "Invalid information element contents";
    break;
  case 101:
    cause = "Message not compatible with call state";
    break;
  case 102:
    cause = "Recovery on timer expiry";
    break;
  case 103:
    cause = "Parameter non-existent or not implemented, passed on";
    break;
  case 110:
    cause = "Message with unrecognized parameter, discarded";
    break;
  case 111:
    cause = "Protocol error, unspecified";
    break;
  case 127:
    cause = "Interworking, unspecified";
    break;
  default:
    cause = "Unknown";
  }
  ss7_message(ss7, "\t\t\tCoding Standard: %d\n", (parm[0] >> 5) & 3);
  ss7_message(ss7, "\t\t\tLocation: %d\n", parm[0] & 0xf);
  ss7_message(ss7, "\t\t\tCause Class: %d\n", (parm[1] >> 4) & 0x7);
  ss7_message(ss7, "\t\t\tCause Subclass: %d\n", parm[1] & 0xf);
  ss7_message(ss7, "\t\t\tCause: %s (%d)\n", cause, parm[1] & 0x7f);
  return len;
}


x86 assembly (clang, -O0):
<cause_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 0x1(%rax),%eax
and    $0x7f,%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x7e,%eax
ja     15a7 <cause_dump+0x497>
mov    -0x30(%rbp),%rax
lea    0xeb2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x109e(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x10ae(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x10c4(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x10cc(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x10da(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x10e2(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x10e7(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1112(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x110d(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1125(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x112a(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1124(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1127(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x113a(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x113c(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x113a(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1139(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1148(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x114f(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x115a(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1163(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x117e(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1180(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x118b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x118f(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x119c(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x11a1(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x11c0(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x11dc(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x11de(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x11ed(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x11fa(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1212(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x121a(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x122c(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x123d(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x124f(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1260(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1271(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1282(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x129c(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x12d9(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x12f6(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1308(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1315(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1328(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x135b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x137a(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1387(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1399(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x13c2(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x13c7(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x13c9(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x13f2(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x13f9(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1402(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1403(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1415(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1422(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x143b(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1458(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x149f(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x14ce(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x14e3(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x14fa(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1503(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1528(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1547(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x1553(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    15b2 <cause_dump+0x4a2>
lea    0x155d(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rax
movzbl (%rax),%edx
sar    $0x5,%edx
and    $0x3,%edx
lea    0x1549(%rip),%rsi
mov    $0x0,%al
call   1030 <ss7_message@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rax
movzbl (%rax),%edx
and    $0xf,%edx
lea    0x1545(%rip),%rsi
mov    $0x0,%al
call   1030 <ss7_message@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%edx
sar    $0x4,%edx
and    $0x7,%edx
lea    0x1536(%rip),%rsi
mov    $0x0,%al
call   1030 <ss7_message@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%edx
and    $0xf,%edx
lea    0x152d(%rip),%rsi
mov    $0x0,%al
call   1030 <ss7_message@plt>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%ecx
and    $0x7f,%ecx
lea    0x1523(%rip),%rsi
mov    $0x0,%al
call   1030 <ss7_message@plt>
mov    -0x1c(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cause_dump>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %rdx,%rbp
mov    %rdi,%rbx
movzbl 0x1(%rdx),%eax
and    $0x7f,%eax
add    $0xffffffffffffffff,%rax
cmp    $0x7e,%eax
ja     1140 <cause_dump+0x30>
lea    0x1849(%rip),%rcx
movslq (%rcx,%rax,4),%r15
add    %rcx,%r15
jmp    1147 <cause_dump+0x37>
lea    0x17c8(%rip),%r15
movzbl 0x0(%rbp),%edx
shr    $0x5,%edx
and    $0x3,%edx
lea    0x17bf(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <ss7_message@plt>
movzbl 0x0(%rbp),%edx
and    $0xf,%edx
lea    0x17bf(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <ss7_message@plt>
movzbl 0x1(%rbp),%edx
shr    $0x4,%edx
and    $0x7,%edx
lea    0x17b5(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <ss7_message@plt>
movzbl 0x1(%rbp),%edx
and    $0xf,%edx
lea    0x17b1(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <ss7_message@plt>
movzbl 0x1(%rbp),%ecx
and    $0x7f,%ecx
lea    0x17b0(%rip),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <ss7_message@plt>
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.ss7 = type { i32 }
@.str = [32 x i8] c"Unallocated (unassigned) number\00"
@.str.1 = [38 x i8] c"No route to specified transit network\00"
@.str.2 = [24 x i8] c"No route to destination\00"
@.str.3 = [30 x i8] c"Send special information tone\00"
@.str.4 = [24 x i8] c"Misdialled trunk prefix\00"
@.str.5 = [21 x i8] c"Channel unacceptable\00"
@.str.6 = [59 x i8] c"Call awarded and being delivered in an established channel\00"
@.str.7 = [11 x i8] c"Preemption\00"
@.str.8 = [40 x i8] c"Preemption - circuit reserved for reuse\00"
@.str.9 = [21 x i8] c"Normal call clearing\00"
@.str.10 = [10 x i8] c"User busy\00"
@.str.11 = [19 x i8] c"No user responding\00"
@.str.12 = [35 x i8] c"No answer from user (user alerted)\00"
@.str.13 = [18 x i8] c"Sudirriber absent\00"
@.str.14 = [14 x i8] c"Call rejected\00"
@.str.15 = [15 x i8] c"Number changed\00"
@.str.16 = [31 x i8] c"Redirection to new destination\00"
@.str.17 = [23 x i8] c"Exchange routing error\00"
@.str.18 = [27 x i8] c"Non-selected user clearing\00"
@.str.19 = [25 x i8] c"Destination out of order\00"
@.str.20 = [43 x i8] c"Invalid number format (address incomplete)\00"
@.str.21 = [18 x i8] c"Facility rejected\00"
@.str.22 = [27 x i8] c"Response to STATUS ENQUIRY\00"
@.str.23 = [20 x i8] c"Normal, unspecified\00"
@.str.24 = [29 x i8] c"No circuit/channel available\00"
@.str.25 = [21 x i8] c"Network out of order\00"
@.str.26 = [47 x i8] c"Permanent frame mode connection out of service\00"
@.str.27 = [44 x i8] c"Permanent frame mode connection operational\00"
@.str.28 = [18 x i8] c"Temporary failure\00"
@.str.29 = [31 x i8] c"Switching equipment congestion\00"
@.str.30 = [29 x i8] c"Access information discarded\00"
@.str.31 = [40 x i8] c"Requested circuit/channel not available\00"
@.str.32 = [24 x i8] c"Precedence call blocked\00"
@.str.33 = [34 x i8] c"Resource unavailable, unspecified\00"
@.str.34 = [33 x i8] c"Quality of service not available\00"
@.str.35 = [34 x i8] c"Requested facility not sudirribed\00"
@.str.36 = [33 x i8] c"Outgoing calls barred within CUG\00"
@.str.37 = [33 x i8] c"Incoming calls barred within CUG\00"
@.str.38 = [33 x i8] c"Bearer capability not authorized\00"
@.str.39 = [42 x i8] c"Bearer capability not presently available\00"
@.str.40 = [77 x i8] c"Inconsistency in designated outgoing access information and sudirriber class\00"
@.str.41 = [45 x i8] c"Service or option not available, unspecified\00"
@.str.42 = [34 x i8] c"Bearer capability not implemented\00"
@.str.43 = [29 x i8] c"Channel type not implemented\00"
@.str.44 = [35 x i8] c"Requested facility not implemented\00"
@.str.45 = [67 x i8] c"Only restricted digital information bearer capability is available\00"
@.str.46 = [47 x i8] c"Service or option not implemented, unspecified\00"
@.str.47 = [29 x i8] c"Invalid call reference value\00"
@.str.48 = [34 x i8] c"Identified channel does not exist\00"
@.str.49 = [57 x i8] c"A suspended call exists, but this call identity does not\00"
@.str.50 = [21 x i8] c"Call identity in use\00"
@.str.51 = [18 x i8] c"No call suspended\00"
@.str.52 = [57 x i8] c"Call having the requested call identity has been cleared\00"
@.str.53 = [23 x i8] c"User not member of CUG\00"
@.str.54 = [25 x i8] c"Incompatible destination\00"
@.str.55 = [17 x i8] c"Non-existent CUG\00"
@.str.56 = [34 x i8] c"Invalid transit network selection\00"
@.str.57 = [29 x i8] c"Invalid message, unspecified\00"
@.str.58 = [41 x i8] c"Mandatory information element is missing\00"
@.str.59 = [45 x i8] c"Message type non-existent or not implemented\00"
@.str.60 = [87 x i8] c"Message not compatible with call state or message type non-existent or not implemented\00"
@.str.61 = [63 x i8] c"Information element /parameter non-existent or not implemented\00"
@.str.62 = [37 x i8] c"Invalid information element contents\00"
@.str.63 = [39 x i8] c"Message not compatible with call state\00"
@.str.64 = [25 x i8] c"Recovery on timer expiry\00"
@.str.65 = [53 x i8] c"Parameter non-existent or not implemented, passed on\00"
@.str.66 = [47 x i8] c"Message with unrecognized parameter, discarded\00"
@.str.67 = [28 x i8] c"Protocol error, unspecified\00"
@.str.68 = [26 x i8] c"Interworking, unspecified\00"
@.str.69 = [8 x i8] c"Unknown\00"
@.str.70 = [24 x i8] c"\09\09\09Coding Standard: %d\0A\00"
@.str.71 = [17 x i8] c"\09\09\09Location: %d\0A\00"
@.str.72 = [20 x i8] c"\09\09\09Cause Class: %d\0A\00"
@.str.73 = [23 x i8] c"\09\09\09Cause Subclass: %d\0A\00"
@.str.74 = [19 x i8] c"\09\09\09Cause: %s (%d)\0A\00"
define i32 @cause_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 1
%12 = load i8, i8* %11
%13 = zext i8 %12 to i32
%14 = and i32 %13, 127
switch i32 %14, label %84 [
i32 1, label %15
i32 2, label %16
i32 3, label %17
i32 4, label %18
i32 5, label %19
i32 6, label %20
i32 7, label %21
i32 8, label %22
i32 9, label %23
i32 16, label %24
i32 17, label %25
i32 18, label %26
i32 19, label %27
i32 20, label %28
i32 21, label %29
i32 22, label %30
i32 23, label %31
i32 25, label %32
i32 26, label %33
i32 27, label %34
i32 28, label %35
i32 29, label %36
i32 30, label %37
i32 31, label %38
i32 34, label %39
i32 38, label %40
i32 39, label %41
i32 40, label %42
i32 41, label %43
i32 42, label %44
i32 43, label %45
i32 44, label %46
i32 46, label %47
i32 47, label %48
i32 49, label %49
i32 50, label %50
i32 53, label %51
i32 55, label %52
i32 57, label %53
i32 58, label %54
i32 62, label %55
i32 63, label %56
i32 65, label %57
i32 66, label %58
i32 69, label %59
i32 70, label %60
i32 79, label %61
i32 81, label %62
i32 82, label %63
i32 83, label %64
i32 84, label %65
i32 85, label %66
i32 86, label %67
i32 87, label %68
i32 88, label %69
i32 90, label %70
i32 91, label %71
i32 95, label %72
i32 96, label %73
i32 97, label %74
i32 98, label %75
i32 99, label %76
i32 100, label %77
i32 101, label %78
i32 102, label %79
i32 103, label %80
i32 110, label %81
i32 111, label %82
i32 127, label %83
]
15: ; preds = %4
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8** %9
br label %85
16: ; preds = %4
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i8** %9
br label %85
17: ; preds = %4
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8** %9
br label %85
18: ; preds = %4
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8** %9
br label %85
19: ; preds = %4
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i8** %9
br label %85
20: ; preds = %4
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8** %9
br label %85
21: ; preds = %4
store i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.6, i64 0, i64 0), i8** %9
br label %85
22: ; preds = %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8** %9
br label %85
23: ; preds = %4
store i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i8** %9
br label %85
24: ; preds = %4
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i8** %9
br label %85
25: ; preds = %4
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i8** %9
br label %85
26: ; preds = %4
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8** %9
br label %85
27: ; preds = %4
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i8** %9
br label %85
28: ; preds = %4
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i8** %9
br label %85
29: ; preds = %4
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i8** %9
br label %85
30: ; preds = %4
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i8** %9
br label %85
31: ; preds = %4
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.16, i64 0, i64 0), i8** %9
br label %85
32: ; preds = %4
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0), i8** %9
br label %85
33: ; preds = %4
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.18, i64 0, i64 0), i8** %9
br label %85
34: ; preds = %4
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0), i8** %9
br label %85
35: ; preds = %4
store i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.20, i64 0, i64 0), i8** %9
br label %85
36: ; preds = %4
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.21, i64 0, i64 0), i8** %9
br label %85
37: ; preds = %4
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.22, i64 0, i64 0), i8** %9
br label %85
38: ; preds = %4
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0), i8** %9
br label %85
39: ; preds = %4
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.24, i64 0, i64 0), i8** %9
br label %85
40: ; preds = %4
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.25, i64 0, i64 0), i8** %9
br label %85
41: ; preds = %4
store i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.26, i64 0, i64 0), i8** %9
br label %85
42: ; preds = %4
store i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.27, i64 0, i64 0), i8** %9
br label %85
43: ; preds = %4
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.28, i64 0, i64 0), i8** %9
br label %85
44: ; preds = %4
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.29, i64 0, i64 0), i8** %9
br label %85
45: ; preds = %4
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.30, i64 0, i64 0), i8** %9
br label %85
46: ; preds = %4
store i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.31, i64 0, i64 0), i8** %9
br label %85
47: ; preds = %4
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.32, i64 0, i64 0), i8** %9
br label %85
48: ; preds = %4
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.33, i64 0, i64 0), i8** %9
br label %85
49: ; preds = %4
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.34, i64 0, i64 0), i8** %9
br label %85
50: ; preds = %4
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.35, i64 0, i64 0), i8** %9
br label %85
51: ; preds = %4
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.36, i64 0, i64 0), i8** %9
br label %85
52: ; preds = %4
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.37, i64 0, i64 0), i8** %9
br label %85
53: ; preds = %4
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.38, i64 0, i64 0), i8** %9
br label %85
54: ; preds = %4
store i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.39, i64 0, i64 0), i8** %9
br label %85
55: ; preds = %4
store i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.40, i64 0, i64 0), i8** %9
br label %85
56: ; preds = %4
store i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.41, i64 0, i64 0), i8** %9
br label %85
57: ; preds = %4
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.42, i64 0, i64 0), i8** %9
br label %85
58: ; preds = %4
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.43, i64 0, i64 0), i8** %9
br label %85
59: ; preds = %4
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.44, i64 0, i64 0), i8** %9
br label %85
60: ; preds = %4
store i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.45, i64 0, i64 0), i8** %9
br label %85
61: ; preds = %4
store i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.46, i64 0, i64 0), i8** %9
br label %85
62: ; preds = %4
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.47, i64 0, i64 0), i8** %9
br label %85
63: ; preds = %4
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.48, i64 0, i64 0), i8** %9
br label %85
64: ; preds = %4
store i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.49, i64 0, i64 0), i8** %9
br label %85
65: ; preds = %4
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.50, i64 0, i64 0), i8** %9
br label %85
66: ; preds = %4
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.51, i64 0, i64 0), i8** %9
br label %85
67: ; preds = %4
store i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.52, i64 0, i64 0), i8** %9
br label %85
68: ; preds = %4
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.53, i64 0, i64 0), i8** %9
br label %85
69: ; preds = %4
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.54, i64 0, i64 0), i8** %9
br label %85
70: ; preds = %4
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.55, i64 0, i64 0), i8** %9
br label %85
71: ; preds = %4
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.56, i64 0, i64 0), i8** %9
br label %85
72: ; preds = %4
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.57, i64 0, i64 0), i8** %9
br label %85
73: ; preds = %4
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.58, i64 0, i64 0), i8** %9
br label %85
74: ; preds = %4
store i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.59, i64 0, i64 0), i8** %9
br label %85
75: ; preds = %4
store i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.60, i64 0, i64 0), i8** %9
br label %85
76: ; preds = %4
store i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.61, i64 0, i64 0), i8** %9
br label %85
77: ; preds = %4
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.62, i64 0, i64 0), i8** %9
br label %85
78: ; preds = %4
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.63, i64 0, i64 0), i8** %9
br label %85
79: ; preds = %4
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.64, i64 0, i64 0), i8** %9
br label %85
80: ; preds = %4
store i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.65, i64 0, i64 0), i8** %9
br label %85
81: ; preds = %4
store i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.66, i64 0, i64 0), i8** %9
br label %85
82: ; preds = %4
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.67, i64 0, i64 0), i8** %9
br label %85
83: ; preds = %4
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.68, i64 0, i64 0), i8** %9
br label %85
84: ; preds = %4
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.69, i64 0, i64 0), i8** %9
br label %85
85: ; preds = %84, %83, %82, %81, %80, %79, %78, %77, %76, %75, %74, %73, %72, %71, %70, %69, %68, %67, %66, %65, %64, %63, %62, %61, %60, %59, %58, %57, %56, %55, %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
%86 = load %struct.ss7*, %struct.ss7** %5
%87 = load i8*, i8** %7
%88 = getelementptr inbounds i8, i8* %87, i64 0
%89 = load i8, i8* %88
%90 = zext i8 %89 to i32
%91 = ashr i32 %90, 5
%92 = and i32 %91, 3
%93 = call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %86, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.70, i64 0, i64 0), i32 %92)
%94 = load %struct.ss7*, %struct.ss7** %5
%95 = load i8*, i8** %7
%96 = getelementptr inbounds i8, i8* %95, i64 0
%97 = load i8, i8* %96
%98 = zext i8 %97 to i32
%99 = and i32 %98, 15
%100 = call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %94, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.71, i64 0, i64 0), i32 %99)
%101 = load %struct.ss7*, %struct.ss7** %5
%102 = load i8*, i8** %7
%103 = getelementptr inbounds i8, i8* %102, i64 1
%104 = load i8, i8* %103
%105 = zext i8 %104 to i32
%106 = ashr i32 %105, 4
%107 = and i32 %106, 7
%108 = call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %101, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.72, i64 0, i64 0), i32 %107)
%109 = load %struct.ss7*, %struct.ss7** %5
%110 = load i8*, i8** %7
%111 = getelementptr inbounds i8, i8* %110, i64 1
%112 = load i8, i8* %111
%113 = zext i8 %112 to i32
%114 = and i32 %113, 15
%115 = call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %109, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.73, i64 0, i64 0), i32 %114)
%116 = load %struct.ss7*, %struct.ss7** %5
%117 = load i8*, i8** %9
%118 = load i8*, i8** %7
%119 = getelementptr inbounds i8, i8* %118, i64 1
%120 = load i8, i8* %119
%121 = zext i8 %120 to i32
%122 = and i32 %121, 127
%123 = call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %116, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.74, i64 0, i64 0), i8* %117, i32 %122)
%124 = load i32, i32* %8
ret i32 %124
}

LLVM IR (-O2):
%struct.ss7 = type { i32 }
@.str = [32 x i8] c"Unallocated (unassigned) number\00"
@.str.1 = [38 x i8] c"No route to specified transit network\00"
@.str.2 = [24 x i8] c"No route to destination\00"
@.str.3 = [30 x i8] c"Send special information tone\00"
@.str.4 = [24 x i8] c"Misdialled trunk prefix\00"
@.str.5 = [21 x i8] c"Channel unacceptable\00"
@.str.6 = [59 x i8] c"Call awarded and being delivered in an established channel\00"
@.str.7 = [11 x i8] c"Preemption\00"
@.str.8 = [40 x i8] c"Preemption - circuit reserved for reuse\00"
@.str.9 = [21 x i8] c"Normal call clearing\00"
@.str.10 = [10 x i8] c"User busy\00"
@.str.11 = [19 x i8] c"No user responding\00"
@.str.12 = [35 x i8] c"No answer from user (user alerted)\00"
@.str.13 = [18 x i8] c"Sudirriber absent\00"
@.str.14 = [14 x i8] c"Call rejected\00"
@.str.15 = [15 x i8] c"Number changed\00"
@.str.16 = [31 x i8] c"Redirection to new destination\00"
@.str.17 = [23 x i8] c"Exchange routing error\00"
@.str.18 = [27 x i8] c"Non-selected user clearing\00"
@.str.19 = [25 x i8] c"Destination out of order\00"
@.str.20 = [43 x i8] c"Invalid number format (address incomplete)\00"
@.str.21 = [18 x i8] c"Facility rejected\00"
@.str.22 = [27 x i8] c"Response to STATUS ENQUIRY\00"
@.str.23 = [20 x i8] c"Normal, unspecified\00"
@.str.24 = [29 x i8] c"No circuit/channel available\00"
@.str.25 = [21 x i8] c"Network out of order\00"
@.str.26 = [47 x i8] c"Permanent frame mode connection out of service\00"
@.str.27 = [44 x i8] c"Permanent frame mode connection operational\00"
@.str.28 = [18 x i8] c"Temporary failure\00"
@.str.29 = [31 x i8] c"Switching equipment congestion\00"
@.str.30 = [29 x i8] c"Access information discarded\00"
@.str.31 = [40 x i8] c"Requested circuit/channel not available\00"
@.str.32 = [24 x i8] c"Precedence call blocked\00"
@.str.33 = [34 x i8] c"Resource unavailable, unspecified\00"
@.str.34 = [33 x i8] c"Quality of service not available\00"
@.str.35 = [34 x i8] c"Requested facility not sudirribed\00"
@.str.36 = [33 x i8] c"Outgoing calls barred within CUG\00"
@.str.37 = [33 x i8] c"Incoming calls barred within CUG\00"
@.str.38 = [33 x i8] c"Bearer capability not authorized\00"
@.str.39 = [42 x i8] c"Bearer capability not presently available\00"
@.str.40 = [77 x i8] c"Inconsistency in designated outgoing access information and sudirriber class\00"
@.str.41 = [45 x i8] c"Service or option not available, unspecified\00"
@.str.42 = [34 x i8] c"Bearer capability not implemented\00"
@.str.43 = [29 x i8] c"Channel type not implemented\00"
@.str.44 = [35 x i8] c"Requested facility not implemented\00"
@.str.45 = [67 x i8] c"Only restricted digital information bearer capability is available\00"
@.str.46 = [47 x i8] c"Service or option not implemented, unspecified\00"
@.str.47 = [29 x i8] c"Invalid call reference value\00"
@.str.48 = [34 x i8] c"Identified channel does not exist\00"
@.str.49 = [57 x i8] c"A suspended call exists, but this call identity does not\00"
@.str.50 = [21 x i8] c"Call identity in use\00"
@.str.51 = [18 x i8] c"No call suspended\00"
@.str.52 = [57 x i8] c"Call having the requested call identity has been cleared\00"
@.str.53 = [23 x i8] c"User not member of CUG\00"
@.str.54 = [25 x i8] c"Incompatible destination\00"
@.str.55 = [17 x i8] c"Non-existent CUG\00"
@.str.56 = [34 x i8] c"Invalid transit network selection\00"
@.str.57 = [29 x i8] c"Invalid message, unspecified\00"
@.str.58 = [41 x i8] c"Mandatory information element is missing\00"
@.str.59 = [45 x i8] c"Message type non-existent or not implemented\00"
@.str.60 = [87 x i8] c"Message not compatible with call state or message type non-existent or not implemented\00"
@.str.61 = [63 x i8] c"Information element /parameter non-existent or not implemented\00"
@.str.62 = [37 x i8] c"Invalid information element contents\00"
@.str.63 = [39 x i8] c"Message not compatible with call state\00"
@.str.64 = [25 x i8] c"Recovery on timer expiry\00"
@.str.65 = [53 x i8] c"Parameter non-existent or not implemented, passed on\00"
@.str.66 = [47 x i8] c"Message with unrecognized parameter, discarded\00"
@.str.67 = [28 x i8] c"Protocol error, unspecified\00"
@.str.68 = [26 x i8] c"Interworking, unspecified\00"
@.str.69 = [8 x i8] c"Unknown\00"
@.str.70 = [24 x i8] c"\09\09\09Coding Standard: %d\0A\00"
@.str.71 = [17 x i8] c"\09\09\09Location: %d\0A\00"
@.str.72 = [20 x i8] c"\09\09\09Cause Class: %d\0A\00"
@.str.73 = [23 x i8] c"\09\09\09Cause Subclass: %d\0A\00"
@.str.74 = [19 x i8] c"\09\09\09Cause: %s (%d)\0A\00"
@reltable.cause_dump = [127 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @.str to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([38 x i8]* @.str.1 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.2 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @.str.3 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.4 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.5 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([59 x i8]* @.str.6 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.7 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([40 x i8]* @.str.8 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.9 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.10 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.11 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @.str.12 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.13 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.14 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.15 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([31 x i8]* @.str.16 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @.str.17 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @.str.18 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.19 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([43 x i8]* @.str.20 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.21 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @.str.22 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.23 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.24 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.25 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([47 x i8]* @.str.26 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @.str.27 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.28 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([31 x i8]* @.str.29 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.30 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([40 x i8]* @.str.31 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.32 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.33 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.34 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.35 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.36 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.37 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.38 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.39 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([77 x i8]* @.str.40 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @.str.41 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.42 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.43 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @.str.44 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([67 x i8]* @.str.45 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([47 x i8]* @.str.46 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.47 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.48 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([57 x i8]* @.str.49 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.50 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.51 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([57 x i8]* @.str.52 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @.str.53 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.54 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.55 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.56 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.57 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.58 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @.str.59 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([87 x i8]* @.str.60 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([63 x i8]* @.str.61 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([37 x i8]* @.str.62 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.63 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.64 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([53 x i8]* @.str.65 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([47 x i8]* @.str.66 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([28 x i8]* @.str.67 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.69 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @.str.68 to i64), i64 ptrtoint ([127 x i32]* @reltable.cause_dump to i64)) to i32)]
define i32 @cause_dump(%struct.ss7* %0, i32 %1, i8* nocapture %2, i32 returned %3) {
%5 = getelementptr inbounds i8, i8* %2, i64 1
%6 = load i8, i8* %5
%7 = and i8 %6, 127
%8 = zext i8 %7 to i32
%9 = add nsw i32 %8, -1
%10 = icmp ult i32 %9, 127
br i1 %10, label %11, label %15
11: ; preds = %4
%12 = sext i32 %9 to i64
%13 = shl i64 %12, 2
%14 = call i8* @llvm.load.relative.i64(i8* bitcast ([127 x i32]* @reltable.cause_dump to i8*), i64 %13)
br label %15
15: ; preds = %4, %11
%16 = phi i8* [ %14, %11 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.69, i64 0, i64 0), %4 ]
%17 = load i8, i8* %2
%18 = lshr i8 %17, 5
%19 = and i8 %18, 3
%20 = zext i8 %19 to i32
%21 = tail call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.70, i64 0, i64 0), i32 %20)
%22 = load i8, i8* %2
%23 = and i8 %22, 15
%24 = zext i8 %23 to i32
%25 = tail call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.71, i64 0, i64 0), i32 %24)
%26 = load i8, i8* %5
%27 = lshr i8 %26, 4
%28 = and i8 %27, 7
%29 = zext i8 %28 to i32
%30 = tail call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.72, i64 0, i64 0), i32 %29)
%31 = load i8, i8* %5
%32 = and i8 %31, 15
%33 = zext i8 %32 to i32
%34 = tail call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.73, i64 0, i64 0), i32 %33)
%35 = load i8, i8* %5
%36 = and i8 %35, 127
%37 = zext i8 %36 to i32
%38 = tail call i32 (%struct.ss7*, i8*, ...) @ss7_message(%struct.ss7* %0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.74, i64 0, i64 0), i8* %16, i32 %37)
ret i32 %3
}