// File: /workspace/github_cpp_makefile_star2_O3/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 0x52a0
movq %rax, %rbx
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x8(%rbx)
leaq 0x1cd03(%rip), %rax     # 0x29fb0
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 0x1ce7b(%rip), %rax     # 0x2a168
addq $0x10, %rax
movq %rax, 0x10(%rbx)
movq %r15, %rdi
callq 0x1475a
testb %al, %al
je 0xd489
leaq 0x58(%rsp), %rdi
movq %r15, %rsi
callq 0x14736
leaq 0x18(%rsp), %rdi
leaq 0x58(%rsp), %r12
movq %r12, %rsi
callq 0x5330
movq (%r12), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0xd33f
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x52b0
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x9fc2
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rdx
movq %r14, %rsi
callq 0xd536
movq 0x58(%rsp), %rbp
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xd386
callq 0x9f52
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0xd39d
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x52b0
testq %rbp, %rbp
jne 0xd492
movq %r15, %rdi
callq 0x148da
testb %al, %al
je 0xd49b
movq %r15, %rdi
callq 0x14a5a
testb %al, %al
je 0xd4a4
movq %r15, %rdi
callq 0x14e58
testb %al, %al
je 0xd4ad
movq %r15, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq 0x1dbe1(%rip), %rax     # 0x2afc8
cmpb $0x0, (%rax)
je 0xd3f1
incl 0x8(%rbx)
jmp 0xd3f5
lock
incl 0x8(%rbx)
addq $0x18, %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x139aa
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xd415
callq 0x9f52
movq 0x1dbb4(%rip), %r14     # 0x2afd0
leaq 0x12c1e(%rip), %rsi     # 0x20041
movl $0x20, %edx
movq %r14, %rdi
callq 0x5310
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %esi
movq 0x1db82(%rip), %rdi     # 0x2afd0
callq 0x5030
movq %rax, %rdi
callq 0x51c0
movq %rbx, %rdi
callq 0x9f52
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0xd47a
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x52b0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x12b12(%rip), %r14     # 0x1ffa2
jmp 0xd4b4
leaq 0x12a53(%rip), %r14     # 0x1feec
jmp 0xd4b4
leaq 0x12b23(%rip), %r14     # 0x1ffc5
jmp 0xd4b4
leaq 0x12b40(%rip), %r14     # 0x1ffeb
jmp 0xd4b4
leaq 0x12b5b(%rip), %r14     # 0x2000f
movl $0x8, %edi
callq 0x5170
movq %r14, (%rax)
movq 0x1dae8(%rip), %rsi     # 0x2afb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x5440
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xd50e
callq 0x9f52
jmp 0xd50e
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0xd50e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x52b0
jmp 0xd50e
jmp 0xd50b
jmp 0xd50b
movq %rax, %r14
jmp 0xd516
movq %rax, %r14
movq %rbx, %rdi
callq 0x9f52
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0xd52d
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x52b0
movq %r14, %rdi
callq 0x5460
nop