#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*/ deal(int /*<<< orphan*/, int /*<<< orphan*/,
                        int /*<<< orphan*/, int /*<<< orphan*/,
                        int /*<<< orphan*/, int /*<<< orphan*/, char *, int *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ scanf(char *, char *);
int main(int argc, char *argv[]) {
  char cards[53];
  int canWin;
  scanf("%s", cards);
  while (cards[1] != 'O') {
    canWin = 0;
    deal(0, 0, 0, 0, 0, 0, cards, &canWin);
    printf("%s\n", canWin ? "Yes" : "No");
    scanf("%s", cards);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x50(%rbp),%rsi
lea    0xeaf(%rip),%rdi
call   1050 <scanf@plt>
movsbl -0x4f(%rbp),%eax
cmp    $0x4f,%eax
je     11cb <main+0x9b>
movl   $0x0,-0x54(%rbp)
lea    -0x50(%rbp),%r10
xor    %r9d,%r9d
lea    -0x54(%rbp),%rax
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1040 <deal@plt>
mov    -0x54(%rbp),%ecx
lea    0xe6f(%rip),%rsi
lea    0xe64(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xe52(%rip),%rdi
call   1030 <printf@plt>
lea    -0x50(%rbp),%rsi
lea    0xe3f(%rip),%rdi
call   1050 <scanf@plt>
jmp    1156 <main+0x26>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0xebb(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
cmpb   $0x4f,0x11(%rsp)
je     11c8 <main+0x98>
lea    0xc(%rsp),%r12
lea    0xea6(%rip),%r13
lea    0xe9b(%rip),%rbp
lea    0xe90(%rip),%r14
lea    0xe86(%rip),%r15
nopw   0x0(%rax,%rax,1)
movl   $0x0,0xc(%rsp)
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   %r12
push   %rbx
call   1040 <deal@plt>
add    $0x10,%rsp
cmpl   $0x0,0xc(%rsp)
mov    %rbp,%rsi
cmove  %r13,%rsi
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
cmpb   $0x4f,0x11(%rsp)
jne    1180 <main+0x50>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [4 x i8] c"Yes\00"
@.str.3 = [3 x i8] c"No\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [53 x i8]
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = getelementptr inbounds [53 x i8], [53 x i8]* %6, i64 0, i64 0
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %8)
br label %10
10: ; preds = %15, %2
%11 = getelementptr inbounds [53 x i8], [53 x i8]* %6, i64 0, i64 1
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 79
br i1 %14, label %15, label %25
15: ; preds = %10
store i32 0, i32* %7
%16 = getelementptr inbounds [53 x i8], [53 x i8]* %6, i64 0, i64 0
%17 = call i32 @deal(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i8* %16, i32* %7)
%18 = load i32, i32* %7
%19 = icmp ne i32 %18, 0
%20 = zext i1 %19 to i64
%21 = select i1 %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0)
%22 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %21)
%23 = getelementptr inbounds [53 x i8], [53 x i8]* %6, i64 0, i64 0
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %23)
br label %10
25: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [4 x i8] c"Yes\00"
@.str.3 = [3 x i8] c"No\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [53 x i8]
%4 = alloca i32
%5 = getelementptr inbounds [53 x i8], [53 x i8]* %3, i64 0, i64 0
%6 = bitcast i32* %4 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %5)
%8 = getelementptr inbounds [53 x i8], [53 x i8]* %3, i64 0, i64 1
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 79
br i1 %10, label %20, label %11
11: ; preds = %2, %11
store i32 0, i32* %4
%12 = call i32 @deal(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i8* %5, i32* %4)
%13 = load i32, i32* %4
%14 = icmp eq i32 %13, 0
%15 = select i1 %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %15)
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %5)
%18 = load i8, i8* %8
%19 = icmp eq i8 %18, 79
br i1 %19, label %20, label %11
20: ; preds = %11, %2
ret i32 0
}