#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 */
int /*<<< orphan*/ printf(char *);
void publisher_print(int publisher) {
  switch (publisher) {
  case 933346: {
    printf("\nBluebridge");
    break;
  }
  case 55583: {
    printf("\nAlyson Books");
    break;
  }
  case 4210: {
    printf("\nFUNimation Productions, Ltd.");
    break;
  }
  case 01: {
    printf("\nPyramid Books");
    break;
  }
  }
}


x86 assembly (clang, -O0):
<publisher_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
sub    $0x1,%eax
je     119b <publisher_print+0x8b>
jmp    112f <publisher_print+0x1f>
mov    -0x8(%rbp),%eax
sub    $0x1072,%eax
je     118a <publisher_print+0x7a>
jmp    1142 <publisher_print+0x32>
mov    -0x8(%rbp),%eax
sub    $0xd91f,%eax
je     1179 <publisher_print+0x69>
jmp    1155 <publisher_print+0x45>
mov    -0x8(%rbp),%eax
sub    $0xe3de2,%eax
jne    11a7 <publisher_print+0x97>
jmp    1168 <publisher_print+0x58>
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
jmp    11a7 <publisher_print+0x97>
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
jmp    11a7 <publisher_print+0x97>
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
jmp    11a7 <publisher_print+0x97>
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<publisher_print>:
cmp    $0xd91e,%edi
jg     1131 <publisher_print+0x21>
cmp    $0x1,%edi
je     114e <publisher_print+0x3e>
cmp    $0x1072,%edi
jne    114d <publisher_print+0x3d>
lea    0xeee(%rip),%rdi
jmp    1030 <printf@plt>
cmp    $0xe3de2,%edi
je     115a <publisher_print+0x4a>
cmp    $0xd91f,%edi
jne    114d <publisher_print+0x3d>
lea    0xec4(%rip),%rdi
jmp    1030 <printf@plt>
ret
lea    0xee3(%rip),%rdi
jmp    1030 <printf@plt>
lea    0xe9f(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"\0ABluebridge\00"
@.str.1 = [14 x i8] c"\0AAlyson Books\00"
@.str.2 = [30 x i8] c"\0AFUNimation Productions, Ltd.\00"
@.str.3 = [15 x i8] c"\0APyramid Books\00"
define void @publisher_print(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %12 [
i32 933346, label %4
i32 55583, label %6
i32 4210, label %8
i32 1, label %10
]
4: ; preds = %1
%5 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %12
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %12
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
br label %12
10: ; preds = %1
%11 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
br label %12
12: ; preds = %1, %10, %8, %6, %4
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"\0ABluebridge\00"
@.str.1 = [14 x i8] c"\0AAlyson Books\00"
@.str.2 = [30 x i8] c"\0AFUNimation Productions, Ltd.\00"
@.str.3 = [15 x i8] c"\0APyramid Books\00"
define void @publisher_print(i32 %0) {
switch i32 %0, label %8 [
i32 933346, label %5
i32 55583, label %2
i32 4210, label %3
i32 1, label %4
]
2: ; preds = %1
br label %5
3: ; preds = %1
br label %5
4: ; preds = %1
br label %5
5: ; preds = %1, %2, %3, %4
%6 = phi i8* [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), %1 ]
%7 = tail call i32 @printf(i8* dereferenceable(1) %6)
br label %8
8: ; preds = %5, %1
ret void
}