#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*/ setPlaymodeArgs(int, int, int, int, int, int /*<<< orphan*/,
                                   int, int);
void setPlaymode(int newmode) {
  if (newmode == 0) {
    setPlaymodeArgs(0, 0, 0, 0, 0, 0, 0, 0);
  } else if (newmode == 1) {
    setPlaymodeArgs(1, 14, 5, 20, 18, 0, 16, 4);
  } else
    setPlaymodeArgs(0, 0, 0, 0, 0, 0, 0, 0);
}


x86 assembly (clang, -O0):
<setPlaymode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1150 <setPlaymode+0x40>
xor    %r9d,%r9d
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1030 <setPlaymodeArgs@plt>
jmp    11bb <setPlaymode+0xab>
cmpl   $0x1,-0x4(%rbp)
jne    1190 <setPlaymode+0x80>
mov    $0x1,%edi
mov    $0xe,%esi
mov    $0x5,%edx
mov    $0x14,%ecx
mov    $0x12,%r8d
xor    %r9d,%r9d
movl   $0x10,(%rsp)
movl   $0x4,0x8(%rsp)
call   1030 <setPlaymodeArgs@plt>
jmp    11b6 <setPlaymode+0xa6>
xor    %r9d,%r9d
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1030 <setPlaymodeArgs@plt>
jmp    11bb <setPlaymode+0xab>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setPlaymode>:
push   %rax
cmp    $0x1,%edi
je     112c <setPlaymode+0x1c>
test   %edi,%edi
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x0
jmp    114d <setPlaymode+0x3d>
mov    $0x1,%edi
mov    $0xe,%esi
mov    $0x5,%edx
mov    $0x14,%ecx
mov    $0x12,%r8d
xor    %r9d,%r9d
push   $0x4
push   $0x10
call   1030 <setPlaymodeArgs@plt>
add    $0x10,%rsp
pop    %rax
ret

LLVM IR (-O0):
define void @setPlaymode(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @setPlaymodeArgs(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
br label %15
7: ; preds = %1
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @setPlaymodeArgs(i32 1, i32 14, i32 5, i32 20, i32 18, i32 0, i32 16, i32 4)
br label %14
12: ; preds = %7
%13 = call i32 @setPlaymodeArgs(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
br label %14
14: ; preds = %12, %10
br label %15
15: ; preds = %14, %5
ret void
}

LLVM IR (-O2):
define void @setPlaymode(i32 %0) {
switch i32 %0, label %6 [
i32 0, label %2
i32 1, label %4
]
2: ; preds = %1
%3 = tail call i32 @setPlaymodeArgs(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
br label %8
4: ; preds = %1
%5 = tail call i32 @setPlaymodeArgs(i32 1, i32 14, i32 5, i32 20, i32 18, i32 0, i32 16, i32 4)
br label %8
6: ; preds = %1
%7 = tail call i32 @setPlaymodeArgs(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
br label %8
8: ; preds = %4, %6, %2
ret void
}