#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*/ appelerFonctionJeux(int, int);
int /*<<< orphan*/ asciiArtDebut();
int /*<<< orphan*/ menuSolo();
int /*<<< orphan*/ quitter();
void actionJeux(int choix, int modeDeJeux) {
  switch (choix) {
  case 0:
    quitter();
    break;
  case -1:
    if (modeDeJeux == 0)
      menuSolo();
    else if (modeDeJeux == 1)
      asciiArtDebut();
    break;
  default:
    appelerFonctionJeux(choix, modeDeJeux);
    break;
  }
}


x86 assembly (clang, -O0):
<actionJeux>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0xffffffff,%eax
je     117e <actionJeux+0x3e>
jmp    1162 <actionJeux+0x22>
mov    -0xc(%rbp),%eax
test   %eax,%eax
jne    11af <actionJeux+0x6f>
jmp    1172 <actionJeux+0x32>
mov    $0x0,%al
call   1030 <quitter@plt>
jmp    11ba <actionJeux+0x7a>
cmpl   $0x0,-0x8(%rbp)
jne    1194 <actionJeux+0x54>
mov    $0x0,%al
call   1060 <menuSolo@plt>
jmp    11aa <actionJeux+0x6a>
cmpl   $0x1,-0x8(%rbp)
jne    11a5 <actionJeux+0x65>
mov    $0x0,%al
call   1040 <asciiArtDebut@plt>
jmp    11aa <actionJeux+0x6a>
jmp    11ba <actionJeux+0x7a>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <appelerFonctionJeux@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<actionJeux>:
cmp    $0xffffffff,%edi
je     1150 <actionJeux+0x10>
test   %edi,%edi
jne    1160 <actionJeux+0x20>
xor    %eax,%eax
jmp    1030 <quitter@plt>
cmp    $0x1,%esi
je     1165 <actionJeux+0x25>
test   %esi,%esi
jne    116c <actionJeux+0x2c>
xor    %eax,%eax
jmp    1060 <menuSolo@plt>
jmp    1050 <appelerFonctionJeux@plt>
xor    %eax,%eax
jmp    1040 <asciiArtDebut@plt>
ret

LLVM IR (-O0):
define void @actionJeux(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
switch i32 %5, label %20 [
i32 0, label %6
i32 -1, label %8
]
6: ; preds = %2
%7 = call i32 (...) @quitter()
br label %24
8: ; preds = %2
%9 = load i32, i32* %4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 (...) @menuSolo()
br label %19
13: ; preds = %8
%14 = load i32, i32* %4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 (...) @asciiArtDebut()
br label %18
18: ; preds = %16, %13
br label %19
19: ; preds = %18, %11
br label %24
20: ; preds = %2
%21 = load i32, i32* %3
%22 = load i32, i32* %4
%23 = call i32 @appelerFonctionJeux(i32 %21, i32 %22)
br label %24
24: ; preds = %20, %19, %6
ret void
}

LLVM IR (-O2):
define void @actionJeux(i32 %0, i32 %1) {
switch i32 %0, label %10 [
i32 0, label %3
i32 -1, label %5
]
3: ; preds = %2
%4 = tail call i32 (...) @quitter()
br label %12
5: ; preds = %2
switch i32 %1, label %12 [
i32 0, label %6
i32 1, label %8
]
6: ; preds = %5
%7 = tail call i32 (...) @menuSolo()
br label %12
8: ; preds = %5
%9 = tail call i32 (...) @asciiArtDebut()
br label %12
10: ; preds = %2
%11 = tail call i32 @appelerFonctionJeux(i32 %0, i32 %1)
br label %12
12: ; preds = %5, %6, %8, %10, %3
ret void
}