// File: /workspace/github_cpp_makefile_star2_O3/brashi[P]PetFera/src/./petshop.cpp
// Function: Petshop::atualizarVeterinario()
void Petshop::atualizarVeterinario() {
    string nome;
    
    shared_ptr<Veterinario> veterinario;
    //Veterinario antigovet;
    long unsigned int num;

    // Configuração do texto acima dos campos de alteração
    string updateText = "Alterar: (para não alterar mantenha em branco)";

    if(this->veterinarios.size() == 0)
        throw "Não há veterinários para remover no sistema!";

    cout << endl << "Veterinários registrados: " << endl;
    this->listarVeterinarios();
    cout << endl << "Digite o ID do veterinário a ser alterado: ";
    getline(cin, nome);
    num = stoi(nome);
    if(num >= 0 && num < this->veterinarios.size())
        veterinario = this->veterinarios[num];
    else
        throw "Veterinário não existe!";

    //antigovet = *veterinario;

    cout << endl << updateText;
    veterinario->setNome();

    cout << endl << updateText;
    veterinario->setEmail();

    cout << endl << updateText;
    veterinario->setTelefone();

    cout << endl << updateText;
    veterinario->setCRMV();

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x11659(%rip), %rsi     # 0x20535
leaq 0x11681(%rip), %rdx     # 0x20564
leaq 0x10(%rsp), %rdi
callq 0x9d84
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0xf1df
movq 0x1c0cf(%rip), %rdi     # 0x2afd0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %esi
movq 0x1c0b4(%rip), %r14     # 0x2afd0
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51c0
movq %rax, %r15
leaq 0x1165f(%rip), %rsi     # 0x20595
movl $0x1b, %edx
movq %rax, %rdi
callq 0x5310
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51c0
movq %rbx, %rdi
callq 0xe7d2
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %esi
movq 0x1c040(%rip), %r14     # 0x2afd0
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51c0
leaq 0x1160a(%rip), %rsi     # 0x205b1
movl $0x2c, %edx
movq %rax, %rdi
callq 0x5310
movq 0x1c025(%rip), %rdi     # 0x2afe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %edx
movq 0x1c00a(%rip), %rdi     # 0x2afe0
leaq 0x30(%rsp), %rsi
callq 0x5480
movq 0x30(%rsp), %r12
callq 0x5050
movq %rax, %r15
movl (%rax), %ebp
movl $0x0, (%rax)
leaq 0x50(%rsp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x5380
cmpq %r12, (%r13)
je 0xf1e8
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0xf1f4
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0xf1f4
testl %ecx, %ecx
jne 0xf033
movl %ebp, (%r15)
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
subq %rcx, %rdx
sarq $0x4, %rdx
cmpq %rax, %rdx
jbe 0xf200
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $0x8, %rsi
movq -0x8(%rsi), %rax
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
callq 0x13cf6
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %esi
movq 0x1bf4a(%rip), %rbx     # 0x2afd0
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x5310
movq (%rsp), %rdi
callq 0x1475a
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %esi
movq 0x1bf01(%rip), %rbx     # 0x2afd0
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x5310
movq (%rsp), %rdi
callq 0x14a5a
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %esi
movq 0x1beb8(%rip), %rbx     # 0x2afd0
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x5310
movq (%rsp), %rdi
callq 0x148da
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x5280
movsbl %al, %esi
movq 0x1be6f(%rip), %rdi     # 0x2afd0
callq 0x5030
movq %rax, %rdi
callq 0x51c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x5310
movq (%rsp), %rdi
callq 0x159be
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xf1a5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xf1b4
callq 0x9f52
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xf1d0
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x52b0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1137f(%rip), %rbx     # 0x20565
jmp 0xf207
leaq 0x101f1(%rip), %rdi     # 0x1f3e0
callq 0x51b0
leaq 0x101e5(%rip), %rdi     # 0x1f3e0
callq 0x53a0
leaq 0x10f9e(%rip), %rbx     # 0x201a5
movl $0x8, %edi
callq 0x5170
movq %rbx, (%rax)
movq 0x1bd95(%rip), %rsi     # 0x2afb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x5440
movq %rax, %rbx
jmp 0xf257
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0xf23b
movl %ebp, (%r15)
jmp 0xf23b
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xf257
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x52b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xf266
callq 0x9f52
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xf282
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x52b0
movq %rbx, %rdi
callq 0x5460