// File: /workspace/github_cpp_makefile_star2_O1/brashi[P]PetFera/src/./banco_dados.cpp
// Function: BancoDados::excluirArquivos()
void BancoDados::excluirArquivos() {
    if(fs::remove(funcArq))
        cout << "Arquivo de funcionarios foi removido." << endl;
    else
        cout << "Houve um erro ao tentar remover o arquivo de funcionarios." << endl;

    if(fs::remove(animalArq))
        cout << "Arquivo de animais foi removido." << endl;
    else
        cout << "Houve um erro ao tentar remover o arquivo de animais." << endl;

    for(auto& an : petshop->getAnimais())
        petshop->excluirAnimal(an);

    for(auto& vet : petshop->getVeterinarios())
        petshop->excluirVeterinario(vet);

    for(auto& trt : petshop->getTratadores())
        petshop->excluirTratador(trt);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rsi
movq %rsp, %r14
movq %r14, %rdi
movl $0x2, %edx
callq 0xaacc
movq %r14, %rdi
callq 0x6230
movl %eax, %ebp
movq %rsp, %rdi
callq 0xab4c
movq 0x237f9(%rip), %rdi     # 0x2dfd0
testb %bpl, %bpl
je 0xa7ea
leaq 0x16b1b(%rip), %rsi     # 0x212fe
movl $0x25, %edx
jmp 0xa7f6
leaq 0x16b33(%rip), %rsi     # 0x21324
movl $0x3a, %edx
callq 0x6310
movq 0x237ce(%rip), %r14     # 0x2dfd0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x6280
movsbl %al, %esi
movq %r14, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x61c0
leaq 0x30(%rbx), %rsi
movq %rsp, %r15
movq %r15, %rdi
movl $0x2, %edx
callq 0xaacc
movq %r15, %rdi
callq 0x6230
movl %eax, %ebp
movq %rsp, %rdi
callq 0xab4c
movq 0x2377a(%rip), %rdi     # 0x2dfd0
testb %bpl, %bpl
je 0xa869
leaq 0x16afd(%rip), %rsi     # 0x2135f
movl $0x20, %edx
jmp 0xa875
leaq 0x16b10(%rip), %rsi     # 0x21380
movl $0x35, %edx
callq 0x6310
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x6280
movsbl %al, %esi
movq %r14, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x61c0
movq (%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x14b58
movq (%r14), %r12
movq 0x8(%r14), %r13
cmpq %r13, %r12
je 0xa92b
leaq 0x78(%rsp), %r14
leaq 0x48(%rsp), %r15
movq 0x236fc(%rip), %rbp     # 0x2dfc8
movq (%rbx), %rsi
movq (%r12), %rax
movq %rax, 0x48(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0xa8f6
cmpb $0x0, (%rbp)
je 0xa8f2
incl 0x8(%rax)
jmp 0xa8f6
lock
incl 0x8(%rax)
movq %r14, %rdi
movq %r15, %rdx
callq 0x13628
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xa913
callq 0xafa0
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xa922
callq 0xafa0
addq $0x10, %r12
cmpq %r13, %r12
jne 0xa8cc
movq %rsp, %rdi
callq 0xac14
movq (%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x14b38
movq (%r14), %r12
movq 0x8(%r14), %r13
cmpq %r13, %r12
je 0xa9ba
leaq 0x68(%rsp), %r14
leaq 0x38(%rsp), %r15
movq 0x2366a(%rip), %rbp     # 0x2dfc8
movq (%rbx), %rsi
movq (%r12), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0xa988
cmpb $0x0, (%rbp)
je 0xa984
incl 0x8(%rax)
jmp 0xa988
lock
incl 0x8(%rax)
movq %r14, %rdi
movq %r15, %rdx
callq 0x13e20
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xa9a2
callq 0xafa0
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xa9b1
callq 0xafa0
addq $0x10, %r12
cmpq %r13, %r12
jne 0xa95e
movq %rsp, %rdi
callq 0xab84
movq (%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x14b46
movq (%r14), %r12
movq 0x8(%r14), %r13
cmpq %r13, %r12
je 0xaa49
leaq 0x58(%rsp), %r14
leaq 0x28(%rsp), %r15
movq 0x235db(%rip), %rbp     # 0x2dfc8
movq (%rbx), %rsi
movq (%r12), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0xaa17
cmpb $0x0, (%rbp)
je 0xaa13
incl 0x8(%rax)
jmp 0xaa17
lock
incl 0x8(%rax)
movq %r14, %rdi
movq %r15, %rdx
callq 0x14614
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xaa31
callq 0xafa0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xaa40
callq 0xafa0
addq $0x10, %r12
cmpq %r13, %r12
jne 0xa9ed
movq %rsp, %rdi
callq 0xabcc
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xaa65
movq %rax, %rbx
movq %rsp, %rdi
callq 0xab4c
jmp 0xaac4
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xaa84
callq 0xafa0
movq %rsp, %rdi
callq 0xabcc
jmp 0xaac4
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xaaa0
callq 0xafa0
movq %rsp, %rdi
callq 0xab84
jmp 0xaac4
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xaabc
callq 0xafa0
movq %rsp, %rdi
callq 0xac14
movq %rbx, %rdi
callq 0x6460