#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*/ printf(char *, char const *, char const *);
void stampaCarte(const char *wFace[], const char *wSuit[],
                 unsigned int mano[][5]) {
  unsigned int card;
  card = 0;
  do {
    printf("%7s di %-6s\n", wFace[mano[0][card]], wSuit[mano[1][card]]);
    card++;
  } while (card < 5);
  return;
}


x86 assembly (clang, -O0):
<stampaCarte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%edx
mov    (%rcx,%rdx,4),%ecx
mov    (%rax,%rcx,8),%rsi
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%edx
mov    0x14(%rcx,%rdx,4),%ecx
mov    (%rax,%rcx,8),%rdx
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x5,-0x1c(%rbp)
jb     112b <stampaCarte+0x1b>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stampaCarte>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
mov    (%rdx),%eax
mov    0x14(%rdx),%ecx
mov    (%rdi,%rax,8),%rsi
mov    (%r14,%rcx,8),%rdx
lea    0xecb(%rip),%r12
mov    %r12,%rdi
call   1030 <printf@plt>
mov    0x4(%rbx),%eax
mov    0x18(%rbx),%ecx
mov    (%r15,%rax,8),%rsi
mov    (%r14,%rcx,8),%rdx
mov    %r12,%rdi
call   1030 <printf@plt>
mov    0x8(%rbx),%eax
mov    0x1c(%rbx),%ecx
mov    (%r15,%rax,8),%rsi
mov    (%r14,%rcx,8),%rdx
mov    %r12,%rdi
call   1030 <printf@plt>
mov    0xc(%rbx),%eax
mov    0x20(%rbx),%ecx
mov    (%r15,%rax,8),%rsi
mov    (%r14,%rcx,8),%rdx
mov    %r12,%rdi
call   1030 <printf@plt>
mov    0x10(%rbx),%eax
mov    0x24(%rbx),%ecx
mov    (%r15,%rax,8),%rsi
mov    (%r14,%rcx,8),%rdx
mov    %r12,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"%7s di %-6s\0A\00"
define void @stampaCarte(i8** %0, i8** %1, [5 x i32]* %2) {
%4 = alloca i8**
%5 = alloca i8**
%6 = alloca [5 x i32]*
%7 = alloca i32
store i8** %0, i8*** %4
store i8** %1, i8*** %5
store [5 x i32]* %2, [5 x i32]** %6
store i32 0, i32* %7
br label %8
8: ; preds = %32, %3
%9 = load i8**, i8*** %4
%10 = load [5 x i32]*, [5 x i32]** %6
%11 = getelementptr inbounds [5 x i32], [5 x i32]* %10, i64 0
%12 = load i32, i32* %7
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds [5 x i32], [5 x i32]* %11, i64 0, i64 %13
%15 = load i32, i32* %14
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds i8*, i8** %9, i64 %16
%18 = load i8*, i8** %17
%19 = load i8**, i8*** %5
%20 = load [5 x i32]*, [5 x i32]** %6
%21 = getelementptr inbounds [5 x i32], [5 x i32]* %20, i64 1
%22 = load i32, i32* %7
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds [5 x i32], [5 x i32]* %21, i64 0, i64 %23
%25 = load i32, i32* %24
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i8*, i8** %19, i64 %26
%28 = load i8*, i8** %27
%29 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %18, i8* %28)
%30 = load i32, i32* %7
%31 = add i32 %30, 1
store i32 %31, i32* %7
br label %32
32: ; preds = %8
%33 = load i32, i32* %7
%34 = icmp ult i32 %33, 5
br i1 %34, label %8, label %35
35: ; preds = %32
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"%7s di %-6s\0A\00"
define void @stampaCarte(i8** nocapture %0, i8** nocapture %1, [5 x i32]* nocapture %2) {
%4 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 0
%5 = load i32, i32* %4
%6 = zext i32 %5 to i64
%7 = getelementptr inbounds i8*, i8** %0, i64 %6
%8 = load i8*, i8** %7
%9 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 1, i64 0
%10 = load i32, i32* %9
%11 = zext i32 %10 to i64
%12 = getelementptr inbounds i8*, i8** %1, i64 %11
%13 = load i8*, i8** %12
%14 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %8, i8* %13)
%15 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 1
%16 = load i32, i32* %15
%17 = zext i32 %16 to i64
%18 = getelementptr inbounds i8*, i8** %0, i64 %17
%19 = load i8*, i8** %18
%20 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 1, i64 1
%21 = load i32, i32* %20
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds i8*, i8** %1, i64 %22
%24 = load i8*, i8** %23
%25 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %19, i8* %24)
%26 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 2
%27 = load i32, i32* %26
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds i8*, i8** %0, i64 %28
%30 = load i8*, i8** %29
%31 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 1, i64 2
%32 = load i32, i32* %31
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i8*, i8** %1, i64 %33
%35 = load i8*, i8** %34
%36 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %30, i8* %35)
%37 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 3
%38 = load i32, i32* %37
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds i8*, i8** %0, i64 %39
%41 = load i8*, i8** %40
%42 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 1, i64 3
%43 = load i32, i32* %42
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds i8*, i8** %1, i64 %44
%46 = load i8*, i8** %45
%47 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %41, i8* %46)
%48 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 4
%49 = load i32, i32* %48
%50 = zext i32 %49 to i64
%51 = getelementptr inbounds i8*, i8** %0, i64 %50
%52 = load i8*, i8** %51
%53 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 1, i64 4
%54 = load i32, i32* %53
%55 = zext i32 %54 to i64
%56 = getelementptr inbounds i8*, i8** %1, i64 %55
%57 = load i8*, i8** %56
%58 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %52, i8* %57)
ret void
}