#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 */
scalar_t__ notak1(char *, char, char, char, int, int, int, int);
char notake(char b[64], char p, char o, char e, int x, int y) {
  return notak1(b, p, o, e, x, y, 0, 1) && notak1(b, p, o, e, x, y, 1, 1) &&
         notak1(b, p, o, e, x, y, 1, 0) && notak1(b, p, o, e, x, y, 1, -1);
}


x86 assembly (clang, -O0):
<notake>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %cl,%al
mov    %dl,%cl
mov    %sil,%dl
mov    %rdi,-0x8(%rbp)
mov    %dl,-0x9(%rbp)
mov    %cl,-0xa(%rbp)
mov    %al,-0xb(%rbp)
mov    %r8d,-0x10(%rbp)
mov    %r9d,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x9(%rbp),%dl
mov    -0xa(%rbp),%cl
mov    -0xb(%rbp),%al
mov    -0x10(%rbp),%r8d
mov    -0x14(%rbp),%r9d
xor    %esi,%esi
movsbl %dl,%esi
movsbl %cl,%edx
movsbl %al,%ecx
movl   $0x0,(%rsp)
movl   $0x1,0x8(%rsp)
call   1030 <notak1@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x15(%rbp)
je     1240 <notake+0x130>
mov    -0x8(%rbp),%rdi
mov    -0x9(%rbp),%dl
mov    -0xa(%rbp),%cl
mov    -0xb(%rbp),%al
mov    -0x10(%rbp),%r8d
mov    -0x14(%rbp),%r9d
movsbl %dl,%esi
movsbl %cl,%edx
movsbl %al,%ecx
movl   $0x1,(%rsp)
movl   $0x1,0x8(%rsp)
call   1030 <notak1@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x15(%rbp)
je     1240 <notake+0x130>
mov    -0x8(%rbp),%rdi
mov    -0x9(%rbp),%dl
mov    -0xa(%rbp),%cl
mov    -0xb(%rbp),%al
mov    -0x10(%rbp),%r8d
mov    -0x14(%rbp),%r9d
xor    %esi,%esi
movsbl %dl,%esi
movsbl %cl,%edx
movsbl %al,%ecx
movl   $0x1,(%rsp)
movl   $0x0,0x8(%rsp)
call   1030 <notak1@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x15(%rbp)
je     1240 <notake+0x130>
mov    -0x8(%rbp),%rdi
mov    -0x9(%rbp),%dl
mov    -0xa(%rbp),%cl
mov    -0xb(%rbp),%al
mov    -0x10(%rbp),%r8d
mov    -0x14(%rbp),%r9d
movsbl %dl,%esi
movsbl %cl,%edx
movsbl %al,%ecx
movl   $0x1,(%rsp)
movl   $0xffffffff,0x8(%rsp)
ff
call   1030 <notak1@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
movsbl %al,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<notake>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r14d
mov    %r8d,%r15d
mov    %ecx,%r13d
mov    %edx,%ebx
mov    %esi,%ebp
mov    %rdi,%r12
push   $0x1
push   $0x0
call   1030 <notak1@plt>
add    $0x10,%rsp
test   %rax,%rax
je     11b1 <notake+0xa1>
movsbl %bpl,%ebp
movsbl %bl,%ebx
movsbl %r13b,%r13d
mov    %r12,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %r13d,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
push   $0x1
push   $0x1
call   1030 <notak1@plt>
add    $0x10,%rsp
test   %rax,%rax
je     11b1 <notake+0xa1>
mov    %r12,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %r13d,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
push   $0x0
push   $0x1
call   1030 <notak1@plt>
add    $0x10,%rsp
test   %rax,%rax
je     11b1 <notake+0xa1>
mov    %r12,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %r13d,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
push   $0xffffffffffffffff
push   $0x1
call   1030 <notak1@plt>
add    $0x10,%rsp
test   %rax,%rax
setne  %al
jmp    11b3 <notake+0xa3>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define signext i8 @notake(i8* %0, i8 signext %1, i8 signext %2, i8 signext %3, i32 %4, i32 %5) {
%7 = alloca i8*
%8 = alloca i8
%9 = alloca i8
%10 = alloca i8
%11 = alloca i32
%12 = alloca i32
store i8* %0, i8** %7
store i8 %1, i8* %8
store i8 %2, i8* %9
store i8 %3, i8* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = load i8*, i8** %7
%14 = load i8, i8* %8
%15 = load i8, i8* %9
%16 = load i8, i8* %10
%17 = load i32, i32* %11
%18 = load i32, i32* %12
%19 = call i64 @notak1(i8* %13, i8 signext %14, i8 signext %15, i8 signext %16, i32 %17, i32 %18, i32 0, i32 1)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %48
21: ; preds = %6
%22 = load i8*, i8** %7
%23 = load i8, i8* %8
%24 = load i8, i8* %9
%25 = load i8, i8* %10
%26 = load i32, i32* %11
%27 = load i32, i32* %12
%28 = call i64 @notak1(i8* %22, i8 signext %23, i8 signext %24, i8 signext %25, i32 %26, i32 %27, i32 1, i32 1)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %48
30: ; preds = %21
%31 = load i8*, i8** %7
%32 = load i8, i8* %8
%33 = load i8, i8* %9
%34 = load i8, i8* %10
%35 = load i32, i32* %11
%36 = load i32, i32* %12
%37 = call i64 @notak1(i8* %31, i8 signext %32, i8 signext %33, i8 signext %34, i32 %35, i32 %36, i32 1, i32 0)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %48
39: ; preds = %30
%40 = load i8*, i8** %7
%41 = load i8, i8* %8
%42 = load i8, i8* %9
%43 = load i8, i8* %10
%44 = load i32, i32* %11
%45 = load i32, i32* %12
%46 = call i64 @notak1(i8* %40, i8 signext %41, i8 signext %42, i8 signext %43, i32 %44, i32 %45, i32 1, i32 -1)
%47 = icmp ne i64 %46, 0
br label %48
48: ; preds = %39, %30, %21, %6
%49 = phi i1 [ false, %30 ], [ false, %21 ], [ false, %6 ], [ %47, %39 ]
%50 = zext i1 %49 to i32
%51 = trunc i32 %50 to i8
ret i8 %51
}

LLVM IR (-O2):
define signext i8 @notake(i8* %0, i8 signext %1, i8 signext %2, i8 signext %3, i32 %4, i32 %5) {
%7 = tail call i64 @notak1(i8* %0, i8 signext %1, i8 signext %2, i8 signext %3, i32 %4, i32 %5, i32 0, i32 1)
%8 = icmp eq i64 %7, 0
br i1 %8, label %19, label %9
9: ; preds = %6
%10 = tail call i64 @notak1(i8* %0, i8 signext %1, i8 signext %2, i8 signext %3, i32 %4, i32 %5, i32 1, i32 1)
%11 = icmp eq i64 %10, 0
br i1 %11, label %19, label %12
12: ; preds = %9
%13 = tail call i64 @notak1(i8* %0, i8 signext %1, i8 signext %2, i8 signext %3, i32 %4, i32 %5, i32 1, i32 0)
%14 = icmp eq i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %12
%16 = tail call i64 @notak1(i8* %0, i8 signext %1, i8 signext %2, i8 signext %3, i32 %4, i32 %5, i32 1, i32 -1)
%17 = icmp ne i64 %16, 0
%18 = zext i1 %17 to i8
br label %19
19: ; preds = %15, %12, %9, %6
%20 = phi i8 [ 0, %12 ], [ 0, %9 ], [ 0, %6 ], [ %18, %15 ]
ret i8 %20
}