char *icmpv6_code(unsigned char type, unsigned char code) {
  switch (type) {
  case 0:
  case 2:
  case 128:
  case 129:
  case 130:
  case 131:
  case 132:
  case 133:
  case 134:
  case 135:
  case 136:
  case 137:
  case 141:
  case 142:
  case 143:
  case 144:
  case 145:
  case 146:
  case 147:
    if (code == 0)
      return ("No code");
    break;
  case 1:
    switch (code) {
    case 0:
      return ("no route to destination");
    case 1:
      return ("communication with destination administratively prohibited");
    case 2:
      return ("beyond scope of source address");
    case 3:
      return ("address unreachable");
    case 4:
      return ("port unreachable");
    case 5:
      return ("source address failed ingress/egress policy");
    case 6:
      return ("reject route to destination");
    case 7:
      return ("error in source routing header");
    }
    break;
  case 3:
    if (code == 0)
      return ("hop limit exceeded in transit");
    if (code == 1)
      return ("fragment reassembly time exceeded");
    break;
  case 4:
    if (code == 0)
      return ("erroneous header field encountered");
    if (code == 1)
      return ("unrecognized Next Header type encountered");
    if (code == 2)
      return ("unrecognized IPv6 option encountered");
    break;
  case 138:
    if (code == 0)
      return ("Router Renumbering Command");
    if (code == 1)
      return ("Router Renumbering Result");
    if (code == 255)
      return ("Sequence Number Reset");
    break;
  case 139:
    if (code == 0)
      return ("The Data field contains an IPv6 address which is the Subject of "
              "this Query.");
    if (code == 1)
      return ("The Data field contains a name which is the Subject of this "
              "Query, or is empty, as in the case of a NOOP.");
    if (code == 2)
      return ("The Data field contains an IPv4 address which is the Subject of "
              "this Query.");
    break;
  case 140:
    if (code == 0)
      return (
          "A successful reply. The Reply Data field may or may not be empty.");
    if (code == 1)
      return ("The Responder refuses to supply the answer. The Reply Data "
              "field will be empty.");
    if (code == 2)
      return ("The Qtype of the Query is unknown to the Responder. The Reply "
              "Data field will be empty.");
    break;
  case 154:
    switch (code) {
    case 0:
    case 1:
      return ("Reserved");
    case 2:
      return ("RtSolPr");
    case 3:
      return ("PrRtAdv");
    case 4:
      return ("HI - Deprecated");
    case 5:
      return ("HAck - Deprecated");
    }
    break;
  }
  return ("UNKNOWN");
}


x86 assembly (clang, -O0):
<icmpv6_code>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
movzbl -0x9(%rbp),%eax
mov    %rax,-0x18(%rbp)
sub    $0x9a,%rax
ja     1431 <icmpv6_code+0x331>
mov    -0x18(%rbp),%rax
lea    0xed1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movzbl -0xa(%rbp),%eax
cmp    $0x0,%eax
jne    1155 <icmpv6_code+0x55>
lea    0x1158(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
jmp    1431 <icmpv6_code+0x331>
movzbl -0xa(%rbp),%eax
mov    %rax,-0x20(%rbp)
sub    $0x7,%rax
ja     1200 <icmpv6_code+0x100>
mov    -0x20(%rbp),%rax
lea    0x110d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1125(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
lea    0x112d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
lea    0x1158(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
lea    0x1167(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
lea    0x116b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
lea    0x116c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
lea    0x1188(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
lea    0x1194(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
jmp    1431 <icmpv6_code+0x331>
movzbl -0xa(%rbp),%eax
cmp    $0x0,%eax
jne    1222 <icmpv6_code+0x122>
lea    0x1191(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
movzbl -0xa(%rbp),%eax
cmp    $0x1,%eax
jne    123f <icmpv6_code+0x13f>
lea    0x1192(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
jmp    1431 <icmpv6_code+0x331>
movzbl -0xa(%rbp),%eax
cmp    $0x0,%eax
jne    1261 <icmpv6_code+0x161>
lea    0x1192(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
movzbl -0xa(%rbp),%eax
cmp    $0x1,%eax
jne    127e <icmpv6_code+0x17e>
lea    0x1198(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
movzbl -0xa(%rbp),%eax
cmp    $0x2,%eax
jne    129b <icmpv6_code+0x19b>
lea    0x11a5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
jmp    1431 <icmpv6_code+0x331>
movzbl -0xa(%rbp),%eax
cmp    $0x0,%eax
jne    12bd <icmpv6_code+0x1bd>
lea    0x11a8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
movzbl -0xa(%rbp),%eax
cmp    $0x1,%eax
jne    12da <icmpv6_code+0x1da>
lea    0x11a6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
movzbl -0xa(%rbp),%eax
cmp    $0xff,%eax
jne    12f9 <icmpv6_code+0x1f9>
lea    0x11a1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
jmp    1431 <icmpv6_code+0x331>
movzbl -0xa(%rbp),%eax
cmp    $0x0,%eax
jne    131b <icmpv6_code+0x21b>
lea    0x1195(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
movzbl -0xa(%rbp),%eax
cmp    $0x1,%eax
jne    1338 <icmpv6_code+0x238>
lea    0x11c4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
movzbl -0xa(%rbp),%eax
cmp    $0x2,%eax
jne    1355 <icmpv6_code+0x255>
lea    0x1211(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
jmp    1431 <icmpv6_code+0x331>
movzbl -0xa(%rbp),%eax
cmp    $0x0,%eax
jne    1377 <icmpv6_code+0x277>
lea    0x123b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
movzbl -0xa(%rbp),%eax
cmp    $0x1,%eax
jne    1394 <icmpv6_code+0x294>
lea    0x1260(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
movzbl -0xa(%rbp),%eax
cmp    $0x2,%eax
jne    13b1 <icmpv6_code+0x2b1>
lea    0x1293(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
jmp    1431 <icmpv6_code+0x331>
movzbl -0xa(%rbp),%eax
mov    %rax,-0x28(%rbp)
sub    $0x5,%rax
ja     142c <icmpv6_code+0x32c>
mov    -0x28(%rbp),%rax
lea    0xe99(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x12b0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
lea    0x12a9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
lea    0x12a1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
lea    0x1299(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
lea    0x1299(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    143c <icmpv6_code+0x33c>
jmp    1431 <icmpv6_code+0x331>
lea    0x1296(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<icmpv6_code>:
add    $0x80,%dil
cmp    $0x84,%dil
ja     1123 <icmpv6_code+0x23>
movzbl %dil,%eax
lea    0xeeb(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
test   %sil,%sil
je     112b <icmpv6_code+0x2b>
lea    0x157c(%rip),%rax
ret
lea    0x114a(%rip),%rax
ret
add    $0x1,%sil
cmp    $0x3,%sil
jae    1123 <icmpv6_code+0x23>
movsbq %sil,%rax
lea    0x10f8(%rip),%rcx
jmp    11d3 <icmpv6_code+0xd3>
cmp    $0x3,%sil
jae    1123 <icmpv6_code+0x23>
movsbq %sil,%rax
lea    0x10ee(%rip),%rcx
jmp    11d3 <icmpv6_code+0xd3>
cmp    $0x3,%sil
jae    1123 <icmpv6_code+0x23>
movsbq %sil,%rax
lea    0x10e7(%rip),%rcx
jmp    11d3 <icmpv6_code+0xd3>
cmp    $0x6,%sil
jae    1123 <icmpv6_code+0x23>
movsbq %sil,%rax
lea    0x10e0(%rip),%rcx
jmp    11d3 <icmpv6_code+0xd3>
cmp    $0x8,%sil
jae    1123 <icmpv6_code+0x23>
movsbq %sil,%rax
lea    0x107d(%rip),%rcx
jmp    11d3 <icmpv6_code+0xd3>
cmp    $0x1,%sil
lea    0x11fc(%rip),%rax
lea    0x14fb(%rip),%rcx
cmove  %rax,%rcx
test   %sil,%sil
lea    0x11c9(%rip),%rax
cmovne %rcx,%rax
ret
cmp    $0x3,%sil
jae    1123 <icmpv6_code+0x23>
movsbq %sil,%rax
lea    0x1061(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
ret

LLVM IR (-O0):
@.str = [8 x i8] c"No code\00"
@.str.1 = [24 x i8] c"no route to destination\00"
@.str.2 = [59 x i8] c"communication with destination administratively prohibited\00"
@.str.3 = [31 x i8] c"beyond scope of source address\00"
@.str.4 = [20 x i8] c"address unreachable\00"
@.str.5 = [17 x i8] c"port unreachable\00"
@.str.6 = [44 x i8] c"source address failed ingress/egress policy\00"
@.str.7 = [28 x i8] c"reject route to destination\00"
@.str.8 = [31 x i8] c"error in source routing header\00"
@.str.9 = [30 x i8] c"hop limit exceeded in transit\00"
@.str.10 = [34 x i8] c"fragment reassembly time exceeded\00"
@.str.11 = [35 x i8] c"erroneous header field encountered\00"
@.str.12 = [42 x i8] c"unrecognized Next Header type encountered\00"
@.str.13 = [37 x i8] c"unrecognized IPv6 option encountered\00"
@.str.14 = [27 x i8] c"Router Renumbering Command\00"
@.str.15 = [26 x i8] c"Router Renumbering Result\00"
@.str.16 = [22 x i8] c"Sequence Number Reset\00"
@.str.17 = [76 x i8] c"The Data field contains an IPv6 address which is the Subject of this Query.\00"
@.str.18 = [106 x i8] c"The Data field contains a name which is the Subject of this Query, or is empty, as in the case of a NOOP.\00"
@.str.19 = [76 x i8] c"The Data field contains an IPv4 address which is the Subject of this Query.\00"
@.str.20 = [66 x i8] c"A successful reply. The Reply Data field may or may not be empty.\00"
@.str.21 = [80 x i8] c"The Responder refuses to supply the answer. The Reply Data field will be empty.\00"
@.str.22 = [88 x i8] c"The Qtype of the Query is unknown to the Responder. The Reply Data field will be empty.\00"
@.str.23 = [9 x i8] c"Reserved\00"
@.str.24 = [8 x i8] c"RtSolPr\00"
@.str.25 = [8 x i8] c"PrRtAdv\00"
@.str.26 = [16 x i8] c"HI - Deprecated\00"
@.str.27 = [18 x i8] c"HAck - Deprecated\00"
@.str.28 = [8 x i8] c"UNKNOWN\00"
define i8* @icmpv6_code(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8*
%4 = alloca i8
%5 = alloca i8
store i8 %0, i8* %4
store i8 %1, i8* %5
%6 = load i8, i8* %4
%7 = zext i8 %6 to i32
switch i32 %7, label %110 [
i32 0, label %8
i32 2, label %8
i32 128, label %8
i32 129, label %8
i32 130, label %8
i32 131, label %8
i32 132, label %8
i32 133, label %8
i32 134, label %8
i32 135, label %8
i32 136, label %8
i32 137, label %8
i32 141, label %8
i32 142, label %8
i32 143, label %8
i32 144, label %8
i32 145, label %8
i32 146, label %8
i32 147, label %8
i32 1, label %14
i32 3, label %26
i32 4, label %37
i32 138, label %53
i32 139, label %69
i32 140, label %85
i32 154, label %101
]
8: ; preds = %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2
%9 = load i8, i8* %5
%10 = zext i8 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %3
br label %111
13: ; preds = %8
br label %110
14: ; preds = %2
%15 = load i8, i8* %5
%16 = zext i8 %15 to i32
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 = %14
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8** %3
br label %111
18: ; preds = %14
store i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0), i8** %3
br label %111
19: ; preds = %14
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i8** %3
br label %111
20: ; preds = %14
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8** %3
br label %111
21: ; preds = %14
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i8** %3
br label %111
22: ; preds = %14
store i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0), i8** %3
br label %111
23: ; preds = %14
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i8** %3
br label %111
24: ; preds = %14
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i8** %3
br label %111
25: ; preds = %14
br label %110
26: ; preds = %2
%27 = load i8, i8* %5
%28 = zext i8 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %26
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), i8** %3
br label %111
31: ; preds = %26
%32 = load i8, i8* %5
%33 = zext i8 %32 to i32
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %36
35: ; preds = %31
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0), i8** %3
br label %111
36: ; preds = %31
br label %110
37: ; preds = %2
%38 = load i8, i8* %5
%39 = zext i8 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i8** %3
br label %111
42: ; preds = %37
%43 = load i8, i8* %5
%44 = zext i8 %43 to i32
%45 = icmp eq i32 %44, 1
br i1 %45, label %46, label %47
46: ; preds = %42
store i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.12, i64 0, i64 0), i8** %3
br label %111
47: ; preds = %42
%48 = load i8, i8* %5
%49 = zext i8 %48 to i32
%50 = icmp eq i32 %49, 2
br i1 %50, label %51, label %52
51: ; preds = %47
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0), i8** %3
br label %111
52: ; preds = %47
br label %110
53: ; preds = %2
%54 = load i8, i8* %5
%55 = zext i8 %54 to i32
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %53
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i8** %3
br label %111
58: ; preds = %53
%59 = load i8, i8* %5
%60 = zext i8 %59 to i32
%61 = icmp eq i32 %60, 1
br i1 %61, label %62, label %63
62: ; preds = %58
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i8** %3
br label %111
63: ; preds = %58
%64 = load i8, i8* %5
%65 = zext i8 %64 to i32
%66 = icmp eq i32 %65, 255
br i1 %66, label %67, label %68
67: ; preds = %63
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8** %3
br label %111
68: ; preds = %63
br label %110
69: ; preds = %2
%70 = load i8, i8* %5
%71 = zext i8 %70 to i32
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %69
store i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.17, i64 0, i64 0), i8** %3
br label %111
74: ; preds = %69
%75 = load i8, i8* %5
%76 = zext i8 %75 to i32
%77 = icmp eq i32 %76, 1
br i1 %77, label %78, label %79
78: ; preds = %74
store i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.18, i64 0, i64 0), i8** %3
br label %111
79: ; preds = %74
%80 = load i8, i8* %5
%81 = zext i8 %80 to i32
%82 = icmp eq i32 %81, 2
br i1 %82, label %83, label %84
83: ; preds = %79
store i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.19, i64 0, i64 0), i8** %3
br label %111
84: ; preds = %79
br label %110
85: ; preds = %2
%86 = load i8, i8* %5
%87 = zext i8 %86 to i32
%88 = icmp eq i32 %87, 0
br i1 %88, label %89, label %90
89: ; preds = %85
store i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.20, i64 0, i64 0), i8** %3
br label %111
90: ; preds = %85
%91 = load i8, i8* %5
%92 = zext i8 %91 to i32
%93 = icmp eq i32 %92, 1
br i1 %93, label %94, label %95
94: ; preds = %90
store i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.21, i64 0, i64 0), i8** %3
br label %111
95: ; preds = %90
%96 = load i8, i8* %5
%97 = zext i8 %96 to i32
%98 = icmp eq i32 %97, 2
br i1 %98, label %99, label %100
99: ; preds = %95
store i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.22, i64 0, i64 0), i8** %3
br label %111
100: ; preds = %95
br label %110
101: ; preds = %2
%102 = load i8, i8* %5
%103 = zext i8 %102 to i32
switch i32 %103, label %109 [
i32 0, label %104
i32 1, label %104
i32 2, label %105
i32 3, label %106
i32 4, label %107
i32 5, label %108
]
104: ; preds = %101, %101
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.23, i64 0, i64 0), i8** %3
br label %111
105: ; preds = %101
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0), i8** %3
br label %111
106: ; preds = %101
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i64 0, i64 0), i8** %3
br label %111
107: ; preds = %101
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i8** %3
br label %111
108: ; preds = %101
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0), i8** %3
br label %111
109: ; preds = %101
br label %110
110: ; preds = %2, %109, %100, %84, %68, %52, %36, %25, %13
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0), i8** %3
br label %111
111: ; preds = %110, %108, %107, %106, %105, %104, %99, %94, %89, %83, %78, %73, %67, %62, %57, %51, %46, %41, %35, %30, %24, %23, %22, %21, %20, %19, %18, %17, %12
%112 = load i8*, i8** %3
ret i8* %112
}

LLVM IR (-O2):
@.str = [8 x i8] c"No code\00"
@.str.1 = [24 x i8] c"no route to destination\00"
@.str.2 = [59 x i8] c"communication with destination administratively prohibited\00"
@.str.3 = [31 x i8] c"beyond scope of source address\00"
@.str.4 = [20 x i8] c"address unreachable\00"
@.str.5 = [17 x i8] c"port unreachable\00"
@.str.6 = [44 x i8] c"source address failed ingress/egress policy\00"
@.str.7 = [28 x i8] c"reject route to destination\00"
@.str.8 = [31 x i8] c"error in source routing header\00"
@.str.9 = [30 x i8] c"hop limit exceeded in transit\00"
@.str.10 = [34 x i8] c"fragment reassembly time exceeded\00"
@.str.11 = [35 x i8] c"erroneous header field encountered\00"
@.str.12 = [42 x i8] c"unrecognized Next Header type encountered\00"
@.str.13 = [37 x i8] c"unrecognized IPv6 option encountered\00"
@.str.14 = [27 x i8] c"Router Renumbering Command\00"
@.str.15 = [26 x i8] c"Router Renumbering Result\00"
@.str.16 = [22 x i8] c"Sequence Number Reset\00"
@.str.17 = [76 x i8] c"The Data field contains an IPv6 address which is the Subject of this Query.\00"
@.str.18 = [106 x i8] c"The Data field contains a name which is the Subject of this Query, or is empty, as in the case of a NOOP.\00"
@.str.19 = [76 x i8] c"The Data field contains an IPv4 address which is the Subject of this Query.\00"
@.str.20 = [66 x i8] c"A successful reply. The Reply Data field may or may not be empty.\00"
@.str.21 = [80 x i8] c"The Responder refuses to supply the answer. The Reply Data field will be empty.\00"
@.str.22 = [88 x i8] c"The Qtype of the Query is unknown to the Responder. The Reply Data field will be empty.\00"
@.str.23 = [9 x i8] c"Reserved\00"
@.str.24 = [8 x i8] c"RtSolPr\00"
@.str.25 = [8 x i8] c"PrRtAdv\00"
@.str.26 = [16 x i8] c"HI - Deprecated\00"
@.str.27 = [18 x i8] c"HAck - Deprecated\00"
@.str.28 = [8 x i8] c"UNKNOWN\00"
@reltable.icmpv6_code = [8 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.1 to i64), i64 ptrtoint ([8 x i32]* @reltable.icmpv6_code to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([59 x i8]* @.str.2 to i64), i64 ptrtoint ([8 x i32]* @reltable.icmpv6_code to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([31 x i8]* @.str.3 to i64), i64 ptrtoint ([8 x i32]* @reltable.icmpv6_code to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.4 to i64), i64 ptrtoint ([8 x i32]* @reltable.icmpv6_code to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.5 to i64), i64 ptrtoint ([8 x i32]* @reltable.icmpv6_code to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @.str.6 to i64), i64 ptrtoint ([8 x i32]* @reltable.icmpv6_code to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([28 x i8]* @.str.7 to i64), i64 ptrtoint ([8 x i32]* @reltable.icmpv6_code to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([31 x i8]* @.str.8 to i64), i64 ptrtoint ([8 x i32]* @reltable.icmpv6_code to i64)) to i32)]
@reltable.icmpv6_code.34 = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @.str.11 to i64), i64 ptrtoint ([3 x i32]* @reltable.icmpv6_code.34 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.12 to i64), i64 ptrtoint ([3 x i32]* @reltable.icmpv6_code.34 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([37 x i8]* @.str.13 to i64), i64 ptrtoint ([3 x i32]* @reltable.icmpv6_code.34 to i64)) to i32)]
@reltable.icmpv6_code.35 = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.16 to i64), i64 ptrtoint ([3 x i32]* @reltable.icmpv6_code.35 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @.str.14 to i64), i64 ptrtoint ([3 x i32]* @reltable.icmpv6_code.35 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @.str.15 to i64), i64 ptrtoint ([3 x i32]* @reltable.icmpv6_code.35 to i64)) to i32)]
@reltable.icmpv6_code.36 = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([76 x i8]* @.str.17 to i64), i64 ptrtoint ([3 x i32]* @reltable.icmpv6_code.36 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([106 x i8]* @.str.18 to i64), i64 ptrtoint ([3 x i32]* @reltable.icmpv6_code.36 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([76 x i8]* @.str.19 to i64), i64 ptrtoint ([3 x i32]* @reltable.icmpv6_code.36 to i64)) to i32)]
@reltable.icmpv6_code.37 = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([66 x i8]* @.str.20 to i64), i64 ptrtoint ([3 x i32]* @reltable.icmpv6_code.37 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([80 x i8]* @.str.21 to i64), i64 ptrtoint ([3 x i32]* @reltable.icmpv6_code.37 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([88 x i8]* @.str.22 to i64), i64 ptrtoint ([3 x i32]* @reltable.icmpv6_code.37 to i64)) to i32)]
@reltable.icmpv6_code.38 = [6 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.23 to i64), i64 ptrtoint ([6 x i32]* @reltable.icmpv6_code.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.23 to i64), i64 ptrtoint ([6 x i32]* @reltable.icmpv6_code.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.24 to i64), i64 ptrtoint ([6 x i32]* @reltable.icmpv6_code.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.25 to i64), i64 ptrtoint ([6 x i32]* @reltable.icmpv6_code.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.26 to i64), i64 ptrtoint ([6 x i32]* @reltable.icmpv6_code.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.27 to i64), i64 ptrtoint ([6 x i32]* @reltable.icmpv6_code.38 to i64)) to i32)]
define i8* @icmpv6_code(i8 zeroext %0, i8 zeroext %1) {
switch i8 %0, label %23 [
i8 0, label %3
i8 2, label %3
i8 -128, label %3
i8 -127, label %3
i8 -126, label %3
i8 -125, label %3
i8 -124, label %3
i8 -123, label %3
i8 -122, label %3
i8 -121, label %3
i8 -120, label %3
i8 -119, label %3
i8 -115, label %3
i8 -114, label %3
i8 -113, label %3
i8 -112, label %3
i8 -111, label %3
i8 -110, label %3
i8 -109, label %3
i8 1, label %5
i8 3, label %7
i8 4, label %12
i8 -118, label %14
i8 -117, label %17
i8 -116, label %19
i8 -102, label %21
]
3: ; preds = %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2
%4 = icmp eq i8 %1, 0
br i1 %4, label %48, label %23
5: ; preds = %2
%6 = icmp ult i8 %1, 8
br i1 %6, label %24, label %23
7: ; preds = %2
%8 = icmp eq i8 %1, 1
%9 = select i1 %8, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0)
%10 = icmp eq i8 %1, 0
%11 = select i1 %10, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), i8* %9
br label %48
12: ; preds = %2
%13 = icmp ult i8 %1, 3
br i1 %13, label %28, label %23
14: ; preds = %2
%15 = add i8 %1, 1
%16 = icmp ult i8 %15, 3
br i1 %16, label %32, label %23
17: ; preds = %2
%18 = icmp ult i8 %1, 3
br i1 %18, label %36, label %23
19: ; preds = %2
%20 = icmp ult i8 %1, 3
br i1 %20, label %40, label %23
21: ; preds = %2
%22 = icmp ult i8 %1, 6
br i1 %22, label %44, label %23
23: ; preds = %21, %19, %17, %14, %12, %5, %3, %2
br label %48
24: ; preds = %5
%25 = sext i8 %1 to i64
%26 = shl i64 %25, 2
%27 = call i8* @llvm.load.relative.i64(i8* bitcast ([8 x i32]* @reltable.icmpv6_code to i8*), i64 %26)
br label %48
28: ; preds = %12
%29 = sext i8 %1 to i64
%30 = shl i64 %29, 2
%31 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.icmpv6_code.34 to i8*), i64 %30)
br label %48
32: ; preds = %14
%33 = sext i8 %15 to i64
%34 = shl i64 %33, 2
%35 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.icmpv6_code.35 to i8*), i64 %34)
br label %48
36: ; preds = %17
%37 = sext i8 %1 to i64
%38 = shl i64 %37, 2
%39 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.icmpv6_code.36 to i8*), i64 %38)
br label %48
40: ; preds = %19
%41 = sext i8 %1 to i64
%42 = shl i64 %41, 2
%43 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.icmpv6_code.37 to i8*), i64 %42)
br label %48
44: ; preds = %21
%45 = sext i8 %1 to i64
%46 = shl i64 %45, 2
%47 = call i8* @llvm.load.relative.i64(i8* bitcast ([6 x i32]* @reltable.icmpv6_code.38 to i8*), i64 %46)
br label %48
48: ; preds = %44, %40, %36, %32, %28, %24, %7, %3, %23
%49 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0), %23 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), %3 ], [ %11, %7 ], [ %27, %24 ], [ %31, %28 ], [ %35, %32 ], [ %39, %36 ], [ %43, %40 ], [ %47, %44 ]
ret i8* %49
}