// File: /workspace/github_cpp_makefile_star2_O3/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 0x2ed4
movl %esi, %ebx
movq -0x50(%rbp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, -0x50(%rbp)
xorl %eax, %eax
leaq -0x68(%rbp), %r14
movq 0x8407(%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 0x7098
movq -0x60(%rbp), %r14
subq -0x68(%rbp), %r14
sarq $0x3, %r14
movabsq $0x4ec4ec4ec4ec4ec5, %rax # imm = 0x4EC4EC4EC4EC4EC5
imulq %rax, %r14
testl %r14d, %r14d
jle 0x2eb7
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
xorl %r13d, %r13d
movq -0x68(%rbp), %rdi
addq %r13, %rdi
callq 0x4106
cmpl %ebx, %eax
jne 0x2eaa
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 0x5479(%rip), %rsi      # 0x80d9
callq 0x2160
movq -0x70(%rbp), %rax
movq 0x20(%rax), %rsi
addq -0x80(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x7060
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 0x2ccd
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2130
movl $0x6, %edx
movq %r12, %rdi
leaq 0x543e(%rip), %rsi      # 0x811a
callq 0x2160
movq -0x68(%rbp), %rsi
addq %r13, %rsi
leaq -0x48(%rbp), %rdi
callq 0x40d8
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 0x2d44
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2130
movl $0x7, %edx
movq %r12, %rdi
leaq 0x538d(%rip), %rsi      # 0x80e0
callq 0x2160
movq -0x68(%rbp), %r15
addq %r13, %r15
movq %r15, %rdi
callq 0x410e
movq %r15, %rdi
movq %rax, %rsi
callq 0x43a4
movq %r12, %rdi
movl %eax, %esi
callq 0x21c0
movq %rax, %r15
movl $0x5, %edx
movq %rax, %rdi
leaq 0x535a(%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 0x5314(%rip), %rsi      # 0x80ee
callq 0x2160
movq -0x68(%rbp), %rdi
addq %r13, %rdi
callq 0x4154
cvtss2sd %xmm0, %xmm0
movq %r12, %rdi
callq 0x21a0
movq %rax, %r15
movl $0x3, %edx
movq %rax, %rdi
leaq 0x52f5(%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 0x52be(%rip), %rsi      # 0x8102
callq 0x2160
movq -0x68(%rbp), %r15
addq %r13, %r15
movq %r15, %rdi
callq 0x4154
movq %r15, %rdi
callq 0x41e0
cvtss2sd %xmm0, %xmm0
movq %r12, %rdi
callq 0x21a0
movq %rax, %r15
movl $0x3, %edx
movq %rax, %rdi
leaq 0x5280(%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 0x2c21
leaq -0x68(%rbp), %r14
movq %r14, %rdi
callq 0x38a8
movq -0x78(%rbp), %rax
incq %rax
cmpq -0x50(%rbp), %rax
jne 0x2bd1
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f07
jmp 0x2f07
jmp 0x2ee9
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2f0a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2130
jmp 0x2f0a
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x38a8
movq %rbx, %rdi
callq 0x21d0
nop