#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*/ getchar();
int /*<<< orphan*/ printf(char *);
int main() {
  int carta = 1;
  int baraja[4][10];
  int jugador1[4][10];
  int jugador2[4][10];
  int fila = 0;
  int columna = 0;
  int turno = 0;
  int empieza();
  int menu();
  int crearbaraja();
  int repartir();
  turno = empieza();
  crearbaraja(baraja, jugador1, jugador2, columna, fila, carta);
  repartir(baraja, jugador1, jugador2, fila, columna);
  menu(jugador1, jugador2, fila, columna, turno, baraja);
  printf("\nCreado por RW Labs S.I. - licenced GPLv3");
  printf("\nruvelro - edkalrio - fegarur");
  getchar();
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x200,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x0,-0x1f4(%rbp)
movl   $0x0,-0x1f8(%rbp)
movl   $0x0,-0x1fc(%rbp)
mov    $0x0,%al
call   1070 <empieza@plt>
mov    %eax,-0x1fc(%rbp)
lea    -0xb0(%rbp),%rdi
lea    -0x150(%rbp),%rsi
lea    -0x1f0(%rbp),%rdx
mov    -0x1f8(%rbp),%ecx
mov    -0x1f4(%rbp),%r8d
mov    -0x8(%rbp),%r9d
mov    $0x0,%al
call   1040 <crearbaraja@plt>
lea    -0xb0(%rbp),%rdi
lea    -0x150(%rbp),%rsi
lea    -0x1f0(%rbp),%rdx
mov    -0x1f4(%rbp),%ecx
mov    -0x1f8(%rbp),%r8d
mov    $0x0,%al
call   1030 <repartir@plt>
lea    -0x150(%rbp),%rdi
lea    -0x1f0(%rbp),%rsi
mov    -0x1f4(%rbp),%edx
mov    -0x1f8(%rbp),%ecx
mov    -0x1fc(%rbp),%r8d
lea    -0xb0(%rbp),%r9
mov    $0x0,%al
call   1050 <menu@plt>
lea    0xdd0(%rip),%rdi
call   1060 <printf@plt>
lea    0xdee(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1080 <getchar@plt>
mov    $0x0,%al
call   1080 <getchar@plt>
xor    %eax,%eax
add    $0x200,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x1e8,%rsp
xor    %eax,%eax
call   1070 <empieza@plt>
mov    %eax,%r14d
lea    0x140(%rsp),%r15
lea    0xa0(%rsp),%rbp
mov    %rsp,%rbx
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
xor    %eax,%eax
call   1040 <crearbaraja@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1030 <repartir@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
mov    %r14d,%r8d
mov    %r15,%r9
xor    %eax,%eax
call   1050 <menu@plt>
lea    0xe28(%rip),%rdi
call   1060 <printf@plt>
lea    0xe46(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
call   1080 <getchar@plt>
xor    %eax,%eax
call   1080 <getchar@plt>
xor    %eax,%eax
add    $0x1e8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [42 x i8] c"\0ACreado por RW Labs S.I. - licenced GPLv3\00"
@.str.1 = [30 x i8] c"\0Aruvelro - edkalrio - fegarur\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [4 x [10 x i32]]
%4 = alloca [4 x [10 x i32]]
%5 = alloca [4 x [10 x i32]]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
%9 = call i32 (...) @empieza()
store i32 %9, i32* %8
%10 = getelementptr inbounds [4 x [10 x i32]], [4 x [10 x i32]]* %3, i64 0, i64 0
%11 = getelementptr inbounds [4 x [10 x i32]], [4 x [10 x i32]]* %4, i64 0, i64 0
%12 = getelementptr inbounds [4 x [10 x i32]], [4 x [10 x i32]]* %5, i64 0, i64 0
%13 = load i32, i32* %7
%14 = load i32, i32* %6
%15 = load i32, i32* %2
%16 = call i32 ([10 x i32]*, [10 x i32]*, [10 x i32]*, i32, i32, i32, ...) bitcast (i32 (...)* @crearbaraja to i32 ([10 x i32]*, [10 x i32]*, [10 x i32]*, i32, i32, i32, ...)*)([10 x i32]* %10, [10 x i32]* %11, [10 x i32]* %12, i32 %13, i32 %14, i32 %15)
%17 = getelementptr inbounds [4 x [10 x i32]], [4 x [10 x i32]]* %3, i64 0, i64 0
%18 = getelementptr inbounds [4 x [10 x i32]], [4 x [10 x i32]]* %4, i64 0, i64 0
%19 = getelementptr inbounds [4 x [10 x i32]], [4 x [10 x i32]]* %5, i64 0, i64 0
%20 = load i32, i32* %6
%21 = load i32, i32* %7
%22 = call i32 ([10 x i32]*, [10 x i32]*, [10 x i32]*, i32, i32, ...) bitcast (i32 (...)* @repartir to i32 ([10 x i32]*, [10 x i32]*, [10 x i32]*, i32, i32, ...)*)([10 x i32]* %17, [10 x i32]* %18, [10 x i32]* %19, i32 %20, i32 %21)
%23 = getelementptr inbounds [4 x [10 x i32]], [4 x [10 x i32]]* %4, i64 0, i64 0
%24 = getelementptr inbounds [4 x [10 x i32]], [4 x [10 x i32]]* %5, i64 0, i64 0
%25 = load i32, i32* %6
%26 = load i32, i32* %7
%27 = load i32, i32* %8
%28 = getelementptr inbounds [4 x [10 x i32]], [4 x [10 x i32]]* %3, i64 0, i64 0
%29 = call i32 ([10 x i32]*, [10 x i32]*, i32, i32, i32, [10 x i32]*, ...) bitcast (i32 (...)* @menu to i32 ([10 x i32]*, [10 x i32]*, i32, i32, i32, [10 x i32]*, ...)*)([10 x i32]* %23, [10 x i32]* %24, i32 %25, i32 %26, i32 %27, [10 x i32]* %28)
%30 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%32 = call i32 (...) @getchar()
%33 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [42 x i8] c"\0ACreado por RW Labs S.I. - licenced GPLv3\00"
@.str.1 = [30 x i8] c"\0Aruvelro - edkalrio - fegarur\00"
define i32 @main() {
%1 = alloca [4 x [10 x i32]]
%2 = alloca [4 x [10 x i32]]
%3 = alloca [4 x [10 x i32]]
%4 = bitcast [4 x [10 x i32]]* %1 to i8*
%5 = bitcast [4 x [10 x i32]]* %2 to i8*
%6 = bitcast [4 x [10 x i32]]* %3 to i8*
%7 = tail call i32 (...) @empieza()
%8 = getelementptr inbounds [4 x [10 x i32]], [4 x [10 x i32]]* %1, i64 0, i64 0
%9 = getelementptr inbounds [4 x [10 x i32]], [4 x [10 x i32]]* %2, i64 0, i64 0
%10 = getelementptr inbounds [4 x [10 x i32]], [4 x [10 x i32]]* %3, i64 0, i64 0
%11 = call i32 ([10 x i32]*, [10 x i32]*, [10 x i32]*, i32, i32, i32, ...) bitcast (i32 (...)* @crearbaraja to i32 ([10 x i32]*, [10 x i32]*, [10 x i32]*, i32, i32, i32, ...)*)([10 x i32]* %8, [10 x i32]* %9, [10 x i32]* %10, i32 0, i32 0, i32 1)
%12 = call i32 ([10 x i32]*, [10 x i32]*, [10 x i32]*, i32, i32, ...) bitcast (i32 (...)* @repartir to i32 ([10 x i32]*, [10 x i32]*, [10 x i32]*, i32, i32, ...)*)([10 x i32]* %8, [10 x i32]* %9, [10 x i32]* %10, i32 0, i32 0)
%13 = call i32 ([10 x i32]*, [10 x i32]*, i32, i32, i32, [10 x i32]*, ...) bitcast (i32 (...)* @menu to i32 ([10 x i32]*, [10 x i32]*, i32, i32, i32, [10 x i32]*, ...)*)([10 x i32]* %9, [10 x i32]* %10, i32 0, i32 0, i32 %7, [10 x i32]* %8)
%14 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 (...) @getchar()
%17 = call i32 (...) @getchar()
ret i32 0
}