// File: /workspace/github_cpp_makefile_star2_O3/DaCasBe[P]Gestion-de-asignaturas-mediante-arboles-binarios-ordenados/funcionesAuxiliares.cpp
// Function: ed::consultarAsignatura(ed::Asignatura&)
void ed::consultarAsignatura(ed::Asignatura  &asignatura){
	if(asignatura.estaVacia()){ //La asignatura está vacía
		std::cout << std::endl << BIRED << "Error: no hay ningún estudiante cargado" << RESET << std::endl;
	}

	else{ //La asignatura no está vacía
		//Mostramos la información de la asignatura
		std::cout << std::endl << BBLUE << "Código de la asignatura: " << BLUE << asignatura.getCodigo() << RESET << std::endl << std::endl;
		std::cout << BBLUE << "Nombre de la asignatura: " << BLUE << asignatura.getNombre() << RESET << std::endl << std::endl;
		std::cout << BBLUE << "Lista de estudiantes de la asignatura:" << BLUE << std::endl;

		asignatura.consultarEstudiantes();
		
		std::cout << RESET;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x10(%rax)
movl %eax, %r15d
movq 0x861f(%rip), %r14      # 0xcfd0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
movq %rax, %r14
testb %r15b, %r15b
je 0x4a4f
leaq 0x5041(%rip), %rsi      # 0x9a28
movl $0x7, %edx
movq %r14, %rdi
callq 0x2190
leaq 0x5081(%rip), %rsi      # 0x9a7c
movl $0x28, %edx
movq %r14, %rdi
callq 0x2190
leaq 0x53a0(%rip), %rsi      # 0x9daf
movl $0x4, %edx
movq %r14, %rdi
callq 0x2190
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2100
leaq 0x462a(%rip), %r15      # 0x9080
movl $0x7, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2190
leaq 0x509b(%rip), %rsi      # 0x9b08
movl $0x1a, %edx
movq %r14, %rdi
callq 0x2190
leaq 0x4610(%rip), %r12      # 0x9091
movl $0x7, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x2190
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2220
movq %rax, %r14
leaq 0x5302(%rip), %rsi      # 0x9daf
movl $0x4, %edx
movq %rax, %rdi
callq 0x2190
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
movq 0x84be(%rip), %r14      # 0xcfd0
movl $0x7, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2190
leaq 0x4ffa(%rip), %rsi      # 0x9b23
movl $0x19, %edx
movq %r14, %rdi
callq 0x2190
movl $0x7, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x2190
movq (%rbx), %rax
leaq -0x40(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq *0x8(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x2190
movq %rax, %r15
leaq 0x5240(%rip), %rsi      # 0x9daf
movl $0x4, %edx
movq %rax, %rdi
callq 0x2190
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4bdf
callq 0x2140
leaq 0x449a(%rip), %rsi      # 0x9080
movl $0x7, %edx
movq %r14, %rdi
callq 0x2190
leaq 0x4f43(%rip), %rsi      # 0x9b3d
movl $0x26, %edx
movq %r14, %rdi
callq 0x2190
leaq 0x4483(%rip), %rsi      # 0x9091
movl $0x7, %edx
movq %r14, %rdi
callq 0x2190
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
addq $0x30, %rbx
movq %rbx, %rdi
callq 0x3348
leaq 0x515a(%rip), %rsi      # 0x9daf
movl $0x4, %edx
movq %r14, %rdi
callq 0x2190
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c84
callq 0x2140
movq %rbx, %rdi
callq 0x2230