// File: /workspace/github_cpp_makefile_star2_O1/brashi[P]PetFera/src/./petshop.cpp
// Function: Petshop::criarTratador()
void Petshop::criarTratador() {
    string nome;
    shared_ptr<Tratador> tratador = make_shared<Tratador>();

    if(tratador->setNome())
        nome = tratador->getNome();
    else
        throw "Tratador deve ter um nome válido!";

    if(this->findTratador(nome) != nullptr)
        throw "Funcionário já existe!";

    if(!tratador->setTelefone())
        throw "Tratador não pode ficar sem telefone";

    if(!tratador->setEmail())
        throw "Tratador não pode ficar sem e-mail";

    if(!tratador->setUniforme())
        throw "Tratador não pode ficar sem nível de segurança";

    if(this->adicionarTratador(tratador))
        cout << "Tratador adicionado ao cadastro." << endl;
    else
        cout << "Houve um erro na operação" << endl << "Cancelando..." << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %r14
leaq 0x28(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movl $0x80, %edi
callq 0x62a0
movq %rax, %rbx
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x8(%rbx)
leaq 0x1eba3(%rip), %rax     # 0x2cfb0
movq %rax, (%rbx)
leaq 0x10(%rbx), %r15
leaq 0x28(%rbx), %rax
movq %rax, 0x18(%rbx)
xorl %eax, %eax
movq %rax, 0x20(%rbx)
movb %al, 0x28(%rbx)
leaq 0x48(%rbx), %rcx
movq %rcx, 0x38(%rbx)
movq %rax, 0x40(%rbx)
movb %al, 0x48(%rbx)
movq %rbx, %rcx
addq $0x68, %rcx
movq %rcx, 0x58(%rbx)
movq %rax, 0x60(%rbx)
movb %al, 0x68(%rbx)
leaq 0x1ed1b(%rip), %rax     # 0x2d168
addq $0x10, %rax
movq %rax, 0x10(%rbx)
movq %r15, %rdi
callq 0x159f6
testb %al, %al
je 0xe5e9
leaq 0x58(%rsp), %rdi
movq %r15, %rsi
callq 0x159d2
leaq 0x18(%rsp), %rdi
leaq 0x58(%rsp), %r12
movq %r12, %rsi
callq 0x6330
movq (%r12), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0xe49f
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x62b0
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0xb010
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rdx
movq %r14, %rsi
callq 0xe696
movq 0x58(%rsp), %rbp
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xe4e6
callq 0xafa0
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0xe4fd
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x62b0
testq %rbp, %rbp
jne 0xe5f2
movq %r15, %rdi
callq 0x15b76
testb %al, %al
je 0xe5fb
movq %r15, %rdi
callq 0x15cf6
testb %al, %al
je 0xe604
movq %r15, %rdi
callq 0x160d8
testb %al, %al
je 0xe60d
movq %r15, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq 0x1fa81(%rip), %rax     # 0x2dfc8
cmpb $0x0, (%rax)
je 0xe551
incl 0x8(%rbx)
jmp 0xe555
lock
incl 0x8(%rbx)
addq $0x18, %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x14baa
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xe575
callq 0xafa0
movq 0x1fa54(%rip), %r14     # 0x2dfd0
leaq 0x13abe(%rip), %rsi     # 0x22041
movl $0x20, %edx
movq %r14, %rdi
callq 0x6310
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x6280
movsbl %al, %esi
movq 0x1fa22(%rip), %rdi     # 0x2dfd0
callq 0x6030
movq %rax, %rdi
callq 0x61c0
movq %rbx, %rdi
callq 0xafa0
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0xe5da
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x62b0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x139b2(%rip), %r14     # 0x21fa2
jmp 0xe614
leaq 0x138f3(%rip), %r14     # 0x21eec
jmp 0xe614
leaq 0x139c3(%rip), %r14     # 0x21fc5
jmp 0xe614
leaq 0x139e0(%rip), %r14     # 0x21feb
jmp 0xe614
leaq 0x139fb(%rip), %r14     # 0x2200f
movl $0x8, %edi
callq 0x6170
movq %r14, (%rax)
movq 0x1f988(%rip), %rsi     # 0x2dfb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x6440
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xe66e
callq 0xafa0
jmp 0xe66e
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0xe66e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x62b0
jmp 0xe66e
jmp 0xe66b
jmp 0xe66b
movq %rax, %r14
jmp 0xe676
movq %rax, %r14
movq %rbx, %rdi
callq 0xafa0
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0xe68d
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x62b0
movq %r14, %rdi
callq 0x6460
nop