// File: /workspace/github_cpp_makefile_star2_O1/karel-brinda[P]ococo/src/params.cpp
// Function: ococo::params_t::~params_t()
ococo::params_t::~params_t() {
    /*
     * Close files.
     */

    if (sam_file != nullptr) {
        int error_code = sam_close(sam_file);
        if (error_code != 0) {
            ococo::error("SAM file could not be closed.\n");
            return_code = -1;
        }
    }

    if (vcf_file != nullptr) {
        int error_code = fclose(vcf_file);
        if (error_code != 0) {
            ococo::error("VCF file could not be closed.\n");
            return_code = -1;
        }
    }

    if (pileup_file != nullptr) {
        int error_code = fclose(pileup_file);
        if (error_code != 0) {
            return_code = error_code;
            ococo::error("Pileup file could not be closed.\n");
            return_code = -1;
        }
    }

    if (fasta_out_file != nullptr) {
        int error_code = fclose(fasta_out_file);
        if (error_code != 0) {
            ococo::error("FASTA consensus file could not be closed.\n");
            return_code = -1;
        }
    }

    if (log_file != nullptr) {
        int error_code = fclose(log_file);
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x198(%rdi), %rdi
testq %rdi, %rdi
je 0xd472
callq 0xfdc1
testl %eax, %eax
je 0xd472
leaq 0x448fb(%rip), %rdi     # 0x51d5f
xorl %eax, %eax
callq 0x4b3a
movl $0xffffffff, 0x4(%rbx)  # imm = 0xFFFFFFFF
movq 0x180(%rbx), %rdi
testq %rdi, %rdi
je 0xd49c
callq 0x4530
testl %eax, %eax
je 0xd49c
leaq 0x448f0(%rip), %rdi     # 0x51d7e
xorl %eax, %eax
callq 0x4b3a
movl $0xffffffff, 0x4(%rbx)  # imm = 0xFFFFFFFF
movq 0x188(%rbx), %rdi
testq %rdi, %rdi
je 0xd4c9
callq 0x4530
testl %eax, %eax
je 0xd4c9
movl %eax, 0x4(%rbx)
leaq 0x448e2(%rip), %rdi     # 0x51d9d
xorl %eax, %eax
callq 0x4b3a
movl $0xffffffff, 0x4(%rbx)  # imm = 0xFFFFFFFF
movq 0x190(%rbx), %rdi
testq %rdi, %rdi
je 0xd4f3
callq 0x4530
testl %eax, %eax
je 0xd4f3
leaq 0x448da(%rip), %rdi     # 0x51dbf
xorl %eax, %eax
callq 0x4b3a
movl $0xffffffff, 0x4(%rbx)  # imm = 0xFFFFFFFF
movq 0x1a0(%rbx), %rdi
testq %rdi, %rdi
je 0xd504
callq 0x4530
movq 0x1e8(%rbx), %rdi
leaq 0x1f8(%rbx), %rax
cmpq %rax, %rdi
je 0xd522
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x1c8(%rbx), %rdi
leaq 0x1d8(%rbx), %rax
cmpq %rax, %rdi
je 0xd540
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x160(%rbx), %rdi
leaq 0x170(%rbx), %rax
cmpq %rax, %rdi
je 0xd55e
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x140(%rbx), %rdi
leaq 0x150(%rbx), %rax
cmpq %rax, %rdi
je 0xd57c
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x120(%rbx), %rdi
leaq 0x130(%rbx), %rax
cmpq %rax, %rdi
je 0xd59a
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x100(%rbx), %rdi
leaq 0x110(%rbx), %rax
cmpq %rax, %rdi
je 0xd5b8
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0xe0(%rbx), %rdi
leaq 0xf0(%rbx), %rax
cmpq %rax, %rdi
je 0xd5d6
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0xb8(%rbx), %rdi
leaq 0xc8(%rbx), %rax
cmpq %rax, %rdi
je 0xd5f4
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x98(%rbx), %rdi
leaq 0xa8(%rbx), %rax
cmpq %rax, %rdi
je 0xd612
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x78(%rbx), %rdi
leaq 0x88(%rbx), %rax
cmpq %rax, %rdi
je 0xd62d
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x50(%rbx), %rdi
leaq 0x60(%rbx), %rax
cmpq %rax, %rdi
je 0xd645
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x30(%rbx), %rdi
leaq 0x40(%rbx), %rax
cmpq %rax, %rdi
je 0xd65d
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0xd676
movq (%rbx), %rsi
incq %rsi
popq %rbx
jmp 0x4540
popq %rbx
retq
movq %rax, %rdi
callq 0x966e