// File: FabienBounoir[P]JustePrix-CLI/justePrix.cpp
// Function: JustePrix::ChoisirDifficulte()
void JustePrix::ChoisirDifficulte()
{
    char choix;
    do{
        choix = ihm->demanderDifficulte(joueur->getNom());
        if(choix == 'd' || choix == 'D')
        {
            this->setPrixMax(1000);
            meilleurScore->choisirFichierDifficulte(this->getPrixMax());
            this->creerPrixMystere();
        }
        else if(choix == 'm' || choix == 'M')
        {
            this->setPrixMax(500);
            meilleurScore->choisirFichierDifficulte(this->getPrixMax());
            this->creerPrixMystere();
        }
        else if(choix == 'f' || choix == 'F')
        {
            this->setPrixMax(100);
            meilleurScore->choisirFichierDifficulte(this->getPrixMax());
            this->creerPrixMystere();
        }
        else
        {
            cerr << "Désolé, cette difficulté n'existe pas" <<endl;
        }
    }
    while(choix != 'd' && choix != 'D' && choix != 'm' && choix != 'M' && choix != 'f' && choix != 'F');
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rcx
movq %rcx, -0x60(%rbp)
movq 0x18(%rax), %rsi
leaq -0x30(%rbp), %rdi
movq %rdi, -0x58(%rbp)
callq 0x5c30
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x5120
movb %al, -0x49(%rbp)
jmp 0x3cc6
movb -0x49(%rbp), %al
movb %al, -0x9(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x3130
movsbl -0x9(%rbp), %eax
cmpl $0x64, %eax
je 0x3ce7
movsbl -0x9(%rbp), %eax
cmpl $0x44, %eax
jne 0x3d39
movq -0x48(%rbp), %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x3a00
movq -0x48(%rbp), %rdi
movq 0x28(%rdi), %rax
movq %rax, -0x68(%rbp)
callq 0x39a0
movq -0x68(%rbp), %rdi
movl %eax, %esi
callq 0x7d10
movq -0x48(%rbp), %rdi
callq 0x3a20
jmp 0x3ded
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x3130
jmp 0x3e56
movsbl -0x9(%rbp), %eax
cmpl $0x6d, %eax
je 0x3d4b
movsbl -0x9(%rbp), %eax
cmpl $0x4d, %eax
jne 0x3d80
movq -0x48(%rbp), %rdi
movl $0x1f4, %esi            # imm = 0x1F4
callq 0x3a00
movq -0x48(%rbp), %rdi
movq 0x28(%rdi), %rax
movq %rax, -0x70(%rbp)
callq 0x39a0
movq -0x70(%rbp), %rdi
movl %eax, %esi
callq 0x7d10
movq -0x48(%rbp), %rdi
callq 0x3a20
jmp 0x3deb
movsbl -0x9(%rbp), %eax
cmpl $0x66, %eax
je 0x3d92
movsbl -0x9(%rbp), %eax
cmpl $0x46, %eax
jne 0x3dc7
movq -0x48(%rbp), %rdi
movl $0x64, %esi
callq 0x3a00
movq -0x48(%rbp), %rdi
movq 0x28(%rdi), %rax
movq %rax, -0x78(%rbp)
callq 0x39a0
movq -0x78(%rbp), %rdi
movl %eax, %esi
callq 0x7d10
movq -0x48(%rbp), %rdi
callq 0x3a20
jmp 0x3de9
movq 0xb222(%rip), %rdi      # 0xeff0
leaq 0x622f(%rip), %rsi      # 0xa004
callq 0x3240
movq %rax, %rdi
movq 0xb1d4(%rip), %rsi      # 0xefb8
callq 0x3270
jmp 0x3deb
jmp 0x3ded
jmp 0x3def
movsbl -0x9(%rbp), %ecx
xorl %eax, %eax
cmpl $0x64, %ecx
movb %al, -0x79(%rbp)
je 0x3e42
movsbl -0x9(%rbp), %ecx
xorl %eax, %eax
cmpl $0x44, %ecx
movb %al, -0x79(%rbp)
je 0x3e42
movsbl -0x9(%rbp), %ecx
xorl %eax, %eax
cmpl $0x6d, %ecx
movb %al, -0x79(%rbp)
je 0x3e42
movsbl -0x9(%rbp), %ecx
xorl %eax, %eax
cmpl $0x4d, %ecx
movb %al, -0x79(%rbp)
je 0x3e42
movsbl -0x9(%rbp), %ecx
xorl %eax, %eax
cmpl $0x66, %ecx
movb %al, -0x79(%rbp)
je 0x3e42
movsbl -0x9(%rbp), %eax
cmpl $0x46, %eax
setne %al
movb %al, -0x79(%rbp)
movb -0x79(%rbp), %al
testb $0x1, %al
jne 0x3c97
addq $0x80, %rsp
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x33e0
nop