#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*/ getToken(char *, int, int, char *);
scalar_t__ strcmp(char *, char *);
int maoDe11(char *placarJogo) {
  char a[3], b[3];
  getToken(placarJogo, 0, 1, a);
  getToken(placarJogo, 2, 3, b);
  if ((strcmp(a, "11") == 0) || (strcmp(b, "11") == 0))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<maoDe11>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x13(%rbp),%rcx
xor    %esi,%esi
mov    $0x1,%edx
call   1030 <getToken@plt>
mov    -0x10(%rbp),%rdi
lea    -0x16(%rbp),%rcx
mov    $0x2,%esi
mov    $0x3,%edx
call   1030 <getToken@plt>
lea    -0x13(%rbp),%rdi
lea    0xe9e(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     118b <maoDe11+0x6b>
lea    -0x16(%rbp),%rdi
lea    0xe84(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1197 <maoDe11+0x77>
movl   $0x1,-0x4(%rbp)
jmp    119e <maoDe11+0x7e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<maoDe11>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
mov    $0x1,%ebp
lea    0xd(%rsp),%r14
xor    %esi,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1030 <getToken@plt>
lea    0xa(%rsp),%rcx
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x3,%edx
call   1030 <getToken@plt>
lea    0xe9e(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1189 <maoDe11+0x69>
lea    0xe8a(%rip),%rsi
lea    0xa(%rsp),%rdi
call   1040 <strcmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
sete   %bpl
mov    %ebp,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"11\00"
define i32 @maoDe11(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca [3 x i8]
%5 = alloca [3 x i8]
store i8* %0, i8** %3
%6 = load i8*, i8** %3
%7 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 0
%8 = call i32 @getToken(i8* %6, i32 0, i32 1, i8* %7)
%9 = load i8*, i8** %3
%10 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%11 = call i32 @getToken(i8* %9, i32 2, i32 3, i8* %10)
%12 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 0
%13 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %1
%16 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%17 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15, %1
store i32 1, i32* %2
br label %21
20: ; preds = %15
store i32 0, i32* %2
br label %21
21: ; preds = %20, %19
%22 = load i32, i32* %2
ret i32 %22
}

LLVM IR (-O2):
@.str = [3 x i8] c"11\00"
define i32 @maoDe11(i8* %0) {
%2 = alloca [3 x i8]
%3 = alloca [3 x i8]
%4 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%5 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%6 = call i32 @getToken(i8* %0, i32 0, i32 1, i8* %4)
%7 = call i32 @getToken(i8* %0, i32 2, i32 3, i8* %5)
%8 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %1
%11 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
%13 = zext i1 %12 to i32
br label %14
14: ; preds = %10, %1
%15 = phi i32 [ 1, %1 ], [ %13, %10 ]
ret i32 %15
}