// File: /workspace/github_cpp_makefile_star2_O1/VitorCorreaSilva[P]sistemaControle/source/empresa.cpp
// Function: Empresa::consultarJogador(int)
void Empresa::consultarJogador(int id){
	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].getId() == id){
				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 $0x58, %rsp
movq 0x28(%rdi), %rax
movq %rdi, -0x70(%rbp)
subq 0x20(%rdi), %rax
sarq $0x3, %rax
movabsq $-0x71c71c71c71c71c7, %rcx # imm = 0x8E38E38E38E38E39
imulq %rax, %rcx
movq %rcx, -0x50(%rbp)
testl %ecx, %ecx
jle 0x2ed8
movl %esi, %ebx
movq -0x50(%rbp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, -0x50(%rbp)
xorl %eax, %eax
leaq -0x68(%rbp), %r14
movq 0x8403(%rip), %r12      # 0xafd8
movq %rax, -0x78(%rbp)
leaq (%rax,%rax,8), %rcx
shlq $0x3, %rcx
movq -0x70(%rbp), %rax
movq 0x20(%rax), %rsi
movq %rcx, -0x80(%rbp)
addq %rcx, %rsi
movq %r14, %rdi
callq 0x7084
movq -0x60(%rbp), %r14
subq -0x68(%rbp), %r14
sarq $0x3, %r14
movabsq $0x4ec4ec4ec4ec4ec5, %rax # imm = 0x4EC4EC4EC4EC4EC5
imulq %rax, %r14
testl %r14d, %r14d
jle 0x2ebb
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
xorl %r13d, %r13d
movq -0x68(%rbp), %rdi
addq %r13, %rdi
callq 0x40f6
cmpl %ebx, %eax
jne 0x2eae
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)
movl $0x6, %edx
movq %r12, %rdi
leaq 0x5475(%rip), %rsi      # 0x80d9
callq 0x2160
movq -0x70(%rbp), %rax
movq 0x20(%rax), %rsi
addq -0x80(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x704c
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x2160
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20a0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2cd1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2130
movl $0x6, %edx
movq %r12, %rdi
leaq 0x543a(%rip), %rsi      # 0x811a
callq 0x2160
movq -0x68(%rbp), %rsi
addq %r13, %rsi
leaq -0x48(%rbp), %rdi
callq 0x40c8
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x2160
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20a0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2d48
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2130
movl $0x7, %edx
movq %r12, %rdi
leaq 0x5389(%rip), %rsi      # 0x80e0
callq 0x2160
movq -0x68(%rbp), %r15
addq %r13, %r15
movq %r15, %rdi
callq 0x40fe
movq %r15, %rdi
movq %rax, %rsi
callq 0x4394
movq %r12, %rdi
movl %eax, %esi
callq 0x21c0
movq %rax, %r15
movl $0x5, %edx
movq %rax, %rdi
leaq 0x5356(%rip), %rsi      # 0x80e8
callq 0x2160
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20a0
movq (%r12), %rax
movq -0x18(%rax), %rax
movq $0x2, 0x8(%r12,%rax)
movl $0xf, %edx
movq %r12, %rdi
leaq 0x5310(%rip), %rsi      # 0x80ee
callq 0x2160
movq -0x68(%rbp), %rdi
addq %r13, %rdi
callq 0x4144
cvtss2sd %xmm0, %xmm0
movq %r12, %rdi
callq 0x21a0
movq %rax, %r15
movl $0x3, %edx
movq %rax, %rdi
leaq 0x52f1(%rip), %rsi      # 0x80fe
callq 0x2160
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20a0
movl $0x11, %edx
movq %r12, %rdi
leaq 0x52ba(%rip), %rsi      # 0x8102
callq 0x2160
movq -0x68(%rbp), %r15
addq %r13, %r15
movq %r15, %rdi
callq 0x4144
movq %r15, %rdi
callq 0x41d0
cvtss2sd %xmm0, %xmm0
movq %r12, %rdi
callq 0x21a0
movq %rax, %r15
movl $0x3, %edx
movq %rax, %rdi
leaq 0x527c(%rip), %rsi      # 0x80fe
callq 0x2160
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20a0
addq $0x68, %r13
decq %r14
jne 0x2c25
leaq -0x68(%rbp), %r14
movq %r14, %rdi
callq 0x389c
movq -0x78(%rbp), %rax
incq %rax
cmpq -0x50(%rbp), %rax
jne 0x2bd5
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f0b
jmp 0x2f0b
jmp 0x2eed
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2f0e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2130
jmp 0x2f0e
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x389c
movq %rbx, %rdi
callq 0x21d0
nop