#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 */

/* Variables and functions */
char *translate_oregon(unsigned char *, unsigned char *, int *);
char *translate_gen_longdata(unsigned char *buff, unsigned char *sunchanged,
                             int *launchp) {
  if (buff[2] == 11 || buff[2] == 12 || buff[2] == 15) {
    return translate_oregon(buff, sunchanged, launchp);
  }
  return "";
}


x86 assembly (clang, -O0):
<translate_gen_longdata>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x2(%rax),%eax
cmp    $0xb,%eax
je     1157 <translate_gen_longdata+0x47>
mov    -0x10(%rbp),%rax
movzbl 0x2(%rax),%eax
cmp    $0xc,%eax
je     1157 <translate_gen_longdata+0x47>
mov    -0x10(%rbp),%rax
movzbl 0x2(%rax),%eax
cmp    $0xf,%eax
jne    1171 <translate_gen_longdata+0x61>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <translate_oregon@plt>
mov    %rax,-0x8(%rbp)
jmp    117c <translate_gen_longdata+0x6c>
lea    0xe88(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<translate_gen_longdata>:
movzbl 0x2(%rdi),%eax
cmp    $0xf,%rax
ja     112a <translate_gen_longdata+0x1a>
mov    $0x9800,%ecx
bt     %rax,%rcx
jae    112a <translate_gen_longdata+0x1a>
jmp    1030 <translate_oregon@plt>
lea    0xecf(%rip),%rax
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define i8* @translate_gen_longdata(i8* %0, i8* %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32* %2, i32** %7
%8 = load i8*, i8** %5
%9 = getelementptr inbounds i8, i8* %8, i64 2
%10 = load i8, i8* %9
%11 = zext i8 %10 to i32
%12 = icmp eq i32 %11, 11
br i1 %12, label %25, label %13
13: ; preds = %3
%14 = load i8*, i8** %5
%15 = getelementptr inbounds i8, i8* %14, i64 2
%16 = load i8, i8* %15
%17 = zext i8 %16 to i32
%18 = icmp eq i32 %17, 12
br i1 %18, label %25, label %19
19: ; preds = %13
%20 = load i8*, i8** %5
%21 = getelementptr inbounds i8, i8* %20, i64 2
%22 = load i8, i8* %21
%23 = zext i8 %22 to i32
%24 = icmp eq i32 %23, 15
br i1 %24, label %25, label %30
25: ; preds = %19, %13, %3
%26 = load i8*, i8** %5
%27 = load i8*, i8** %6
%28 = load i32*, i32** %7
%29 = call i8* @translate_oregon(i8* %26, i8* %27, i32* %28)
store i8* %29, i8** %4
br label %31
30: ; preds = %19
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %4
br label %31
31: ; preds = %30, %25
%32 = load i8*, i8** %4
ret i8* %32
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define i8* @translate_gen_longdata(i8* %0, i8* %1, i32* %2) {
%4 = getelementptr inbounds i8, i8* %0, i64 2
%5 = load i8, i8* %4
switch i8 %5, label %8 [
i8 11, label %6
i8 12, label %6
i8 15, label %6
]
6: ; preds = %3, %3, %3
%7 = tail call i8* @translate_oregon(i8* %0, i8* %1, i32* %2)
br label %8
8: ; preds = %3, %6
%9 = phi i8* [ %7, %6 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %3 ]
ret i8* %9
}