#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 */
typedef int uint32_t;
typedef int uint16_t;

/* Variables and functions */
#define ETH_P_ARP 133
#define ETH_P_IP 132
#define ETH_P_IPV6 131
#define ETH_P_PPP_DISC 130
#define ETH_P_PPP_SES 129
#define ETH_P_RARP 128
int /*<<< orphan*/ sprintf(char *, char *, int);
const char *EthProto2Str(uint32_t proto, char *cache) {
  uint16_t ipflag = (proto >> 16) & 0xff;
  uint16_t ethproto = proto & 0xffff;
  switch (ipflag) {
  case (0x40 + 1):
    return "FTPDATA";
    ;
  case (0x40 + 2):
    return "FTPCMD";
    ;
  case (0x40 + 3):
    return "SSH";
    ;
  case (0x40 + 4):
    return "TELNET";
    ;
  case (0x40 + 5):
    return "SMTP";
    ;
  case (0x40 + 10):
    return "DNS";
    ;
  case (0x40 + 11):
    return "BOOTPS";
    ;
  case (0x40 + 12):
    return "BOOTPC";
    ;
  case (0x40 + 20):
    return "HTTP";
    ;
  case (0x40 + 21):
    return "POP3";
    ;
  case (0x40 + 22):
    return "RPC";
    ;
  case (0x40 + 23):
    return "SFTP";
    ;
  case (0x40 + 24):
    return "NTP";
    ;
  case (0x40 + 25):
    return "NETBIOSNS";
    ;
  case (0x40 + 26):
    return "NETBIOSDGM";
    ;
  case (0x40 + 27):
    return "NETBIOSSSN";
    ;
  case (0x40 + 30):
    return "SNMP";
    ;
  case (0x40 + 35):
    return "BGP";
    ;
  case (0x40 + 36):
    return "IRC";
    ;
  case (0x40 + 37):
    return "IMAP3";
    ;
  case (0x40 + 38):
    return "HTTPS";
    ;
  case (0x40 + 80):
    return "VNC";
    ;
  case (0x0 + 11):
    return "DNS";
  case (0x0 + 12):
    return "QUIC";
  case (0x0 + 10):
    return "TFTP";
  case (0x0 + 1):
    return "UDP";
  case (0x40):
    return "TCP";
  default:
    break;
  }
  switch (ethproto) {
  case ETH_P_IP:
    return "IP";
  case ETH_P_IPV6:
    return "IPv6";
  case ETH_P_ARP:
    return "ARP";
  case ETH_P_RARP:
    return "RARP";
  case ETH_P_PPP_DISC:
    return "PPPOE_Discover";
  case ETH_P_PPP_SES:
    return "PPPOE_SESSION";
  default:
    sprintf(cache, "0x%4x", proto);
    break;
  }
  return cache;
}


x86 assembly (clang, -O0):
<EthProto2Str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
movzbl -0xa(%rbp),%eax
mov    %eax,-0x1c(%rbp)
movzwl -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x8f,%eax
ja     1308 <EthProto2Str+0x1f8>
mov    -0x28(%rbp),%rax
lea    0xeb1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x10f9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x10f1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x10e8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x10dc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x10d3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x10c8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x10bc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x10b3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x10aa(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x109f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x1094(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x1088(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x107d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x1071(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x106b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x1066(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x1061(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x1056(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x104a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x103e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x1034(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x102a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0xfb8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x100e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0x1003(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0xff8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0xfec(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
jmp    130d <EthProto2Str+0x1fd>
mov    -0x20(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x5,%eax
ja     1396 <EthProto2Str+0x286>
mov    -0x30(%rbp),%rax
lea    0xf13(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xfb2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0xfa5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0xf9b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0xf8a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0xf7f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
lea    0xf7e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b1 <EthProto2Str+0x2a1>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xf75(%rip),%rsi
call   1030 <sprintf@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EthProto2Str>:
push   %rbx
mov    %rsi,%rbx
mov    %edi,%edx
mov    %edi,%ecx
shr    $0x10,%ecx
add    $0x70,%cl
cmp    $0xd6,%cl
ja     1222 <EthProto2Str+0x112>
lea    0x1246(%rip),%rax
movzbl %cl,%ecx
lea    0xec8(%rip),%rsi
movslq (%rsi,%rcx,4),%rcx
add    %rsi,%rcx
jmp    *%rcx
lea    0x124b(%rip),%rax
pop    %rbx
ret
lea    0x12a4(%rip),%rax
pop    %rbx
ret
lea    0x12a9(%rip),%rax
pop    %rbx
ret
lea    0x129b(%rip),%rax
pop    %rbx
ret
lea    0x128d(%rip),%rax
pop    %rbx
ret
lea    0x1292(%rip),%rax
pop    %rbx
ret
lea    0x11fe(%rip),%rax
pop    %rbx
ret
lea    0x11fc(%rip),%rax
pop    %rbx
ret
lea    0x11f7(%rip),%rax
pop    %rbx
ret
lea    0x11f5(%rip),%rax
pop    %rbx
ret
lea    0x11f5(%rip),%rax
pop    %rbx
ret
lea    0x11f3(%rip),%rax
pop    %rbx
ret
lea    0x11f1(%rip),%rax
pop    %rbx
ret
lea    0x11ed(%rip),%rax
pop    %rbx
ret
lea    0x11e9(%rip),%rax
pop    %rbx
ret
lea    0x11e4(%rip),%rax
pop    %rbx
ret
lea    0x11e0(%rip),%rax
pop    %rbx
ret
lea    0x11db(%rip),%rax
pop    %rbx
ret
lea    0x11dc(%rip),%rax
pop    %rbx
ret
lea    0x11de(%rip),%rax
pop    %rbx
ret
lea    0x11e0(%rip),%rax
pop    %rbx
ret
lea    0x11dc(%rip),%rax
pop    %rbx
ret
lea    0x11d7(%rip),%rax
pop    %rbx
ret
lea    0x11d2(%rip),%rax
pop    %rbx
ret
lea    0x11cf(%rip),%rax
pop    %rbx
ret
lea    -0x80(%rdx),%eax
cmp    $0x6,%ax
jae    123f <EthProto2Str+0x12f>
movswq %ax,%rax
lea    0x1126(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
pop    %rbx
ret
lea    0x11ef(%rip),%rsi
mov    %rbx,%rdi
call   1030 <sprintf@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"FTPDATA\00"
@.str.1 = [7 x i8] c"FTPCMD\00"
@.str.2 = [4 x i8] c"SSH\00"
@.str.3 = [7 x i8] c"TELNET\00"
@.str.4 = [5 x i8] c"SMTP\00"
@.str.5 = [4 x i8] c"DNS\00"
@.str.6 = [7 x i8] c"BOOTPS\00"
@.str.7 = [7 x i8] c"BOOTPC\00"
@.str.8 = [5 x i8] c"HTTP\00"
@.str.9 = [5 x i8] c"POP3\00"
@.str.10 = [4 x i8] c"RPC\00"
@.str.11 = [5 x i8] c"SFTP\00"
@.str.12 = [4 x i8] c"NTP\00"
@.str.13 = [10 x i8] c"NETBIOSNS\00"
@.str.14 = [11 x i8] c"NETBIOSDGM\00"
@.str.15 = [11 x i8] c"NETBIOSSSN\00"
@.str.16 = [5 x i8] c"SNMP\00"
@.str.17 = [4 x i8] c"BGP\00"
@.str.18 = [4 x i8] c"IRC\00"
@.str.19 = [6 x i8] c"IMAP3\00"
@.str.20 = [6 x i8] c"HTTPS\00"
@.str.21 = [4 x i8] c"VNC\00"
@.str.22 = [5 x i8] c"QUIC\00"
@.str.23 = [5 x i8] c"TFTP\00"
@.str.24 = [4 x i8] c"UDP\00"
@.str.25 = [4 x i8] c"TCP\00"
@.str.26 = [3 x i8] c"IP\00"
@.str.27 = [5 x i8] c"IPv6\00"
@.str.28 = [4 x i8] c"ARP\00"
@.str.29 = [5 x i8] c"RARP\00"
@.str.30 = [15 x i8] c"PPPOE_Discover\00"
@.str.31 = [14 x i8] c"PPPOE_SESSION\00"
@.str.32 = [6 x i8] c"0x%4x\00"
define i8* @EthProto2Str(i32 %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
%8 = load i32, i32* %4
%9 = ashr i32 %8, 16
%10 = and i32 %9, 255
store i32 %10, i32* %6
%11 = load i32, i32* %4
%12 = and i32 %11, 65535
store i32 %12, i32* %7
%13 = load i32, i32* %6
switch i32 %13, label %41 [
i32 65, label %14
i32 66, label %15
i32 67, label %16
i32 68, label %17
i32 69, label %18
i32 74, label %19
i32 75, label %20
i32 76, label %21
i32 84, label %22
i32 85, label %23
i32 86, label %24
i32 87, label %25
i32 88, label %26
i32 89, label %27
i32 90, label %28
i32 91, label %29
i32 94, label %30
i32 99, label %31
i32 100, label %32
i32 101, label %33
i32 102, label %34
i32 144, label %35
i32 11, label %36
i32 12, label %37
i32 10, label %38
i32 1, label %39
i32 64, label %40
]
14: ; preds = %2
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %3
br label %56
15: ; preds = %2
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %3
br label %56
16: ; preds = %2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8** %3
br label %56
17: ; preds = %2
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %3
br label %56
18: ; preds = %2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8** %3
br label %56
19: ; preds = %2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8** %3
br label %56
20: ; preds = %2
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8** %3
br label %56
21: ; preds = %2
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8** %3
br label %56
22: ; preds = %2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8** %3
br label %56
23: ; preds = %2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8** %3
br label %56
24: ; preds = %2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8** %3
br label %56
25: ; preds = %2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8** %3
br label %56
26: ; preds = %2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8** %3
br label %56
27: ; preds = %2
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), i8** %3
br label %56
28: ; preds = %2
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i8** %3
br label %56
29: ; preds = %2
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), i8** %3
br label %56
30: ; preds = %2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i8** %3
br label %56
31: ; preds = %2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8** %3
br label %56
32: ; preds = %2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8** %3
br label %56
33: ; preds = %2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8** %3
br label %56
34: ; preds = %2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0), i8** %3
br label %56
35: ; preds = %2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i8** %3
br label %56
36: ; preds = %2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8** %3
br label %56
37: ; preds = %2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0), i8** %3
br label %56
38: ; preds = %2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), i8** %3
br label %56
39: ; preds = %2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0), i8** %3
br label %56
40: ; preds = %2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0), i8** %3
br label %56
41: ; preds = %2
br label %42
42: ; preds = %41
%43 = load i32, i32* %7
switch i32 %43, label %50 [
i32 132, label %44
i32 131, label %45
i32 133, label %46
i32 128, label %47
i32 130, label %48
i32 129, label %49
]
44: ; preds = %42
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0), i8** %3
br label %56
45: ; preds = %42
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i8** %3
br label %56
46: ; preds = %42
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0), i8** %3
br label %56
47: ; preds = %42
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0), i8** %3
br label %56
48: ; preds = %42
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.30, i64 0, i64 0), i8** %3
br label %56
49: ; preds = %42
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.31, i64 0, i64 0), i8** %3
br label %56
50: ; preds = %42
%51 = load i8*, i8** %5
%52 = load i32, i32* %4
%53 = call i32 @sprintf(i8* %51, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i64 0, i64 0), i32 %52)
br label %54
54: ; preds = %50
%55 = load i8*, i8** %5
store i8* %55, i8** %3
br label %56
56: ; preds = %54, %49, %48, %47, %46, %45, %44, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14
%57 = load i8*, i8** %3
ret i8* %57
}

LLVM IR (-O2):
@.str = [8 x i8] c"FTPDATA\00"
@.str.1 = [7 x i8] c"FTPCMD\00"
@.str.2 = [4 x i8] c"SSH\00"
@.str.3 = [7 x i8] c"TELNET\00"
@.str.4 = [5 x i8] c"SMTP\00"
@.str.5 = [4 x i8] c"DNS\00"
@.str.6 = [7 x i8] c"BOOTPS\00"
@.str.7 = [7 x i8] c"BOOTPC\00"
@.str.8 = [5 x i8] c"HTTP\00"
@.str.9 = [5 x i8] c"POP3\00"
@.str.10 = [4 x i8] c"RPC\00"
@.str.11 = [5 x i8] c"SFTP\00"
@.str.12 = [4 x i8] c"NTP\00"
@.str.13 = [10 x i8] c"NETBIOSNS\00"
@.str.14 = [11 x i8] c"NETBIOSDGM\00"
@.str.15 = [11 x i8] c"NETBIOSSSN\00"
@.str.16 = [5 x i8] c"SNMP\00"
@.str.17 = [4 x i8] c"BGP\00"
@.str.18 = [4 x i8] c"IRC\00"
@.str.19 = [6 x i8] c"IMAP3\00"
@.str.20 = [6 x i8] c"HTTPS\00"
@.str.21 = [4 x i8] c"VNC\00"
@.str.22 = [5 x i8] c"QUIC\00"
@.str.23 = [5 x i8] c"TFTP\00"
@.str.24 = [4 x i8] c"UDP\00"
@.str.25 = [4 x i8] c"TCP\00"
@.str.26 = [3 x i8] c"IP\00"
@.str.27 = [5 x i8] c"IPv6\00"
@.str.28 = [4 x i8] c"ARP\00"
@.str.29 = [5 x i8] c"RARP\00"
@.str.30 = [15 x i8] c"PPPOE_Discover\00"
@.str.31 = [14 x i8] c"PPPOE_SESSION\00"
@.str.32 = [6 x i8] c"0x%4x\00"
@reltable.EthProto2Str = [6 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.29 to i64), i64 ptrtoint ([6 x i32]* @reltable.EthProto2Str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.31 to i64), i64 ptrtoint ([6 x i32]* @reltable.EthProto2Str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.30 to i64), i64 ptrtoint ([6 x i32]* @reltable.EthProto2Str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.27 to i64), i64 ptrtoint ([6 x i32]* @reltable.EthProto2Str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.26 to i64), i64 ptrtoint ([6 x i32]* @reltable.EthProto2Str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.28 to i64), i64 ptrtoint ([6 x i32]* @reltable.EthProto2Str to i64)) to i32)]
define i8* @EthProto2Str(i32 %0, i8* writeonly %1) {
%3 = lshr i32 %0, 16
%4 = trunc i32 %3 to i8
switch i8 %4, label %31 [
i8 65, label %41
i8 66, label %5
i8 67, label %6
i8 68, label %7
i8 69, label %8
i8 74, label %9
i8 75, label %10
i8 76, label %11
i8 84, label %12
i8 85, label %13
i8 86, label %14
i8 87, label %15
i8 88, label %16
i8 89, label %17
i8 90, label %18
i8 91, label %19
i8 94, label %20
i8 99, label %21
i8 100, label %22
i8 101, label %23
i8 102, label %24
i8 -112, label %25
i8 11, label %26
i8 12, label %27
i8 10, label %28
i8 1, label %29
i8 64, label %30
]
5: ; preds = %2
br label %41
6: ; preds = %2
br label %41
7: ; preds = %2
br label %41
8: ; preds = %2
br label %41
9: ; preds = %2
br label %41
10: ; preds = %2
br label %41
11: ; preds = %2
br label %41
12: ; preds = %2
br label %41
13: ; preds = %2
br label %41
14: ; preds = %2
br label %41
15: ; preds = %2
br label %41
16: ; preds = %2
br label %41
17: ; preds = %2
br label %41
18: ; preds = %2
br label %41
19: ; preds = %2
br label %41
20: ; preds = %2
br label %41
21: ; preds = %2
br label %41
22: ; preds = %2
br label %41
23: ; preds = %2
br label %41
24: ; preds = %2
br label %41
25: ; preds = %2
br label %41
26: ; preds = %2
br label %41
27: ; preds = %2
br label %41
28: ; preds = %2
br label %41
29: ; preds = %2
br label %41
30: ; preds = %2
br label %41
31: ; preds = %2
%32 = trunc i32 %0 to i16
%33 = add i16 %32, -128
%34 = icmp ult i16 %33, 6
br i1 %34, label %37, label %35
35: ; preds = %31
%36 = tail call i32 @sprintf(i8* dereferenceable(1) %1, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i64 0, i64 0), i32 %0)
br label %41
37: ; preds = %31
%38 = sext i16 %33 to i64
%39 = shl i64 %38, 2
%40 = call i8* @llvm.load.relative.i64(i8* bitcast ([6 x i32]* @reltable.EthProto2Str to i8*), i64 %39)
br label %41
41: ; preds = %37, %2, %35, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%42 = phi i8* [ %1, %35 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0), %30 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0), %29 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), %28 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0), %27 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), %26 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), %25 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0), %24 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), %23 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), %22 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), %21 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), %20 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), %19 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), %18 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), %17 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), %16 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), %15 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), %14 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), %13 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), %12 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), %11 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), %10 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), %9 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), %8 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), %7 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), %6 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), %5 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), %2 ], [ %40, %37 ]
ret i8* %42
}