// File: /workspace/github_cpp_makefile_star2_O2/VitorCorreaSilva[P]sistemaControle/source/empresa.cpp
// Function: Empresa::consultarJogador(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Empresa::consultarJogador(string nome){
	int numTimes = times.size();
	for (int i = 0; i < numTimes; ++i)
	{
		vector<Jogador> jogadores = times[i].getJogadores();
		int numJogadores = jogadores.size();
		for (int j = 0; j < numJogadores; ++j)
		{
			if(jogadores[j].getNome() == nome){
				cout << fixed;
				cout << "Time: " << times[i].getNome() << endl;
				cout << "Nome: " << jogadores[j].getNome() << endl;
				cout << "Idade: " << jogadores[j].calcularIdade(jogadores[j].getDataNascimento()) << " anos" << endl;
				cout.precision(2);
				cout << "Salario Bruto: " << jogadores[j].getSalarioBruto() << " R$" << endl;
				cout << "Salario Liquido: " << jogadores[j].calcularSalarioLiquido(jogadores[j].getSalarioBruto()) << " R$" << endl;
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, -0x68(%rbp)
movq 0x28(%rdi), %rax
movq %rdi, -0x48(%rbp)
subq 0x20(%rdi), %rax
pushq $0x48
popq %rcx
cqto
idivq %rcx
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
movq %rax, -0x50(%rbp)
leaq -0x40(%rbp), %rbx
leaq -0x90(%rbp), %r13
movq 0x64f6(%rip), %r12      # 0x8fd8
xorl %eax, %eax
cmpq -0x50(%rbp), %rax
je 0x2d07
movq %rax, -0x58(%rbp)
imulq $0x48, %rax, %rcx
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rsi
movq %rcx, -0x60(%rbp)
addq %rcx, %rsi
movq %rbx, %rdi
callq 0x5158
movq -0x38(%rbp), %rax
subq -0x40(%rbp), %rax
cqto
pushq $0x68
popq %rcx
idivq %rcx
testl %eax, %eax
movl $0x0, %ecx
cmovlel %ecx, %eax
imulq $0x68, %rax, %rax
movq %rax, -0x70(%rbp)
xorl %ebx, %ebx
cmpq %rbx, -0x70(%rbp)
je 0x2cef
movq -0x40(%rbp), %rsi
addq %rbx, %rsi
movq %r13, %rdi
callq 0x38a6
movq %r13, %rdi
movq -0x68(%rbp), %rsi
callq 0x3147
movl %eax, %r14d
movq %r13, %rdi
callq 0x2080
testb %r14b, %r14b
je 0x2ce6
movq (%r12), %rax
movq -0x18(%rax), %rax
movl 0x18(%r12,%rax), %ecx
movl $0xfffffefb, %edx       # imm = 0xFFFFFEFB
andl %edx, %ecx
orl $0x4, %ecx
movl %ecx, 0x18(%r12,%rax)
movq %r12, %rdi
leaq 0x3549(%rip), %rsi      # 0x60d9
callq 0x2140
movq %rax, %r14
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rsi
addq -0x60(%rbp), %rsi
movq %r13, %rdi
callq 0x5132
movq %r14, %rdi
movq %r13, %rsi
callq 0x2120
movq %rax, %rdi
callq 0x2090
movq %r13, %rdi
callq 0x2080
movq %r12, %rdi
leaq 0x3549(%rip), %rsi      # 0x611a
callq 0x2140
movq %rax, %r14
movq -0x40(%rbp), %rsi
addq %rbx, %rsi
movq %r13, %rdi
callq 0x38a6
movq %r14, %rdi
movq %r13, %rsi
callq 0x2120
movq %rax, %rdi
callq 0x2090
movq %r13, %rdi
callq 0x2080
movq %r12, %rdi
leaq 0x34d3(%rip), %rsi      # 0x60e0
callq 0x2140
movq %rax, %r14
movq -0x40(%rbp), %r15
addq %rbx, %r15
movq %r15, %rdi
callq 0x38ca
movq %r15, %rdi
movq %rax, %rsi
callq 0x3b02
movq %r14, %rdi
movl %eax, %esi
callq 0x21f0
movq %rax, %rdi
leaq 0x34a5(%rip), %rsi      # 0x60e8
callq 0x2140
movq %rax, %rdi
callq 0x2090
movq (%r12), %rax
movq -0x18(%rax), %rax
movq $0x2, 0x8(%r12,%rax)
movq %r12, %rdi
leaq 0x3483(%rip), %rsi      # 0x60ee
callq 0x2140
movq %rax, %r14
movq -0x40(%rbp), %rdi
addq %rbx, %rdi
callq 0x38fe
movq %r14, %rdi
callq 0x20e0
movq %rax, %rdi
leaq 0x346d(%rip), %rsi      # 0x60fe
callq 0x2140
movq %rax, %rdi
callq 0x2090
movq %r12, %rdi
leaq 0x345a(%rip), %rsi      # 0x6102
callq 0x2140
movq %rax, %r14
movq -0x40(%rbp), %r15
addq %rbx, %r15
movq %r15, %rdi
callq 0x38fe
movq %r15, %rdi
callq 0x398a
movq %r14, %rdi
callq 0x20e0
movq %rax, %rdi
leaq 0x3425(%rip), %rsi      # 0x60fe
callq 0x2140
movq %rax, %rdi
callq 0x2090
addq $0x68, %rbx
jmp 0x2b31
leaq -0x40(%rbp), %rbx
movq %rbx, %rdi
callq 0x311c
movq -0x58(%rbp), %rax
incq %rax
jmp 0x2ae4
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d2f
jmp 0x2d2f
jmp 0x2d1c
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x2080
jmp 0x2d32
jmp 0x2d2f
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x311c
movq %rbx, %rdi
callq 0x2200
nop