// File: /workspace/github_cpp_makefile_star2_O1/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 0x12499(%rip), %rsi     # 0x22535
leaq 0x124c1(%rip), %rdx     # 0x22564
leaq 0x10(%rsp), %rdi
callq 0xadd8
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0x103a1
movq 0x1df0f(%rip), %rdi     # 0x2dfd0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x6280
movsbl %al, %esi
movq 0x1def4(%rip), %r14     # 0x2dfd0
movq %r14, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x61c0
movq %rax, %r15
leaq 0x1249f(%rip), %rsi     # 0x22595
movl $0x1b, %edx
movq %rax, %rdi
callq 0x6310
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x6280
movsbl %al, %esi
movq %r15, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x61c0
movq %rbx, %rdi
callq 0xf93e
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x6280
movsbl %al, %esi
movq 0x1de80(%rip), %r14     # 0x2dfd0
movq %r14, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x61c0
leaq 0x1244a(%rip), %rsi     # 0x225b1
movl $0x2c, %edx
movq %rax, %rdi
callq 0x6310
movq 0x1de65(%rip), %rdi     # 0x2dfe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x6280
movsbl %al, %edx
movq 0x1de4a(%rip), %rdi     # 0x2dfe0
leaq 0x30(%rsp), %rsi
callq 0x6480
movq 0x30(%rsp), %r12
callq 0x6050
movq %rax, %r15
movl (%rax), %ebp
movl $0x0, (%rax)
leaq 0x50(%rsp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x6380
cmpq %r12, (%r13)
je 0x103aa
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x103b6
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x103b6
testl %ecx, %ecx
jne 0x101f3
movl %ebp, (%r15)
cltq
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
subq %rcx, %rdx
sarq $0x4, %rdx
cmpq %rax, %rdx
jbe 0x103c2
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $0x8, %rsi
movq -0x8(%rsi), %rax
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
callq 0x14ee8
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x6280
movsbl %al, %esi
movq 0x1dd88(%rip), %rbx     # 0x2dfd0
movq %rbx, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x61c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x6310
movq (%rsp), %rdi
callq 0x159f6
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x6280
movsbl %al, %esi
movq 0x1dd3f(%rip), %rbx     # 0x2dfd0
movq %rbx, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x61c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x6310
movq (%rsp), %rdi
callq 0x15cf6
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x6280
movsbl %al, %esi
movq 0x1dcf6(%rip), %rbx     # 0x2dfd0
movq %rbx, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x61c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x6310
movq (%rsp), %rdi
callq 0x15b76
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x6280
movsbl %al, %esi
movq 0x1dcad(%rip), %rdi     # 0x2dfd0
callq 0x6030
movq %rax, %rdi
callq 0x61c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x6310
movq (%rsp), %rdi
callq 0x16cce
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x10367
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x62b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x10376
callq 0xafa0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x10392
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x62b0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x121bd(%rip), %rbx     # 0x22565
jmp 0x103c9
leaq 0x1102f(%rip), %rdi     # 0x213e0
callq 0x61b0
leaq 0x11023(%rip), %rdi     # 0x213e0
callq 0x63a0
leaq 0x11ddc(%rip), %rbx     # 0x221a5
movl $0x8, %edi
callq 0x6170
movq %rbx, (%rax)
movq 0x1dbd3(%rip), %rsi     # 0x2dfb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x6440
movq %rax, %rbx
jmp 0x10419
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x103fd
movl %ebp, (%r15)
jmp 0x103fd
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x10419
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x62b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x10428
callq 0xafa0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x10444
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x62b0
movq %rbx, %rdi
callq 0x6460