// File: /workspace/github_cpp_makefile_star2_O3/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 0xd3e6
callq 0xfd29
testl %eax, %eax
je 0xd3e6
leaq 0x42987(%rip), %rdi     # 0x4fd5f
xorl %eax, %eax
callq 0x4b3a
movl $0xffffffff, 0x4(%rbx)  # imm = 0xFFFFFFFF
movq 0x180(%rbx), %rdi
testq %rdi, %rdi
je 0xd410
callq 0x4530
testl %eax, %eax
je 0xd410
leaq 0x4297c(%rip), %rdi     # 0x4fd7e
xorl %eax, %eax
callq 0x4b3a
movl $0xffffffff, 0x4(%rbx)  # imm = 0xFFFFFFFF
movq 0x188(%rbx), %rdi
testq %rdi, %rdi
je 0xd43d
callq 0x4530
testl %eax, %eax
je 0xd43d
movl %eax, 0x4(%rbx)
leaq 0x4296e(%rip), %rdi     # 0x4fd9d
xorl %eax, %eax
callq 0x4b3a
movl $0xffffffff, 0x4(%rbx)  # imm = 0xFFFFFFFF
movq 0x190(%rbx), %rdi
testq %rdi, %rdi
je 0xd467
callq 0x4530
testl %eax, %eax
je 0xd467
leaq 0x42966(%rip), %rdi     # 0x4fdbf
xorl %eax, %eax
callq 0x4b3a
movl $0xffffffff, 0x4(%rbx)  # imm = 0xFFFFFFFF
movq 0x1a0(%rbx), %rdi
testq %rdi, %rdi
je 0xd478
callq 0x4530
movq 0x1e8(%rbx), %rdi
leaq 0x1f8(%rbx), %rax
cmpq %rax, %rdi
je 0xd496
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x1c8(%rbx), %rdi
leaq 0x1d8(%rbx), %rax
cmpq %rax, %rdi
je 0xd4b4
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x160(%rbx), %rdi
leaq 0x170(%rbx), %rax
cmpq %rax, %rdi
je 0xd4d2
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x140(%rbx), %rdi
leaq 0x150(%rbx), %rax
cmpq %rax, %rdi
je 0xd4f0
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x120(%rbx), %rdi
leaq 0x130(%rbx), %rax
cmpq %rax, %rdi
je 0xd50e
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x100(%rbx), %rdi
leaq 0x110(%rbx), %rax
cmpq %rax, %rdi
je 0xd52c
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0xe0(%rbx), %rdi
leaq 0xf0(%rbx), %rax
cmpq %rax, %rdi
je 0xd54a
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0xb8(%rbx), %rdi
leaq 0xc8(%rbx), %rax
cmpq %rax, %rdi
je 0xd568
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x98(%rbx), %rdi
leaq 0xa8(%rbx), %rax
cmpq %rax, %rdi
je 0xd586
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x78(%rbx), %rdi
leaq 0x88(%rbx), %rax
cmpq %rax, %rdi
je 0xd5a1
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x50(%rbx), %rdi
leaq 0x60(%rbx), %rax
cmpq %rax, %rdi
je 0xd5b9
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x30(%rbx), %rdi
leaq 0x40(%rbx), %rax
cmpq %rax, %rdi
je 0xd5d1
movq (%rax), %rsi
incq %rsi
callq 0x4540
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0xd5ea
movq (%rbx), %rsi
incq %rsi
popq %rbx
jmp 0x4540
popq %rbx
retq
movq %rax, %rdi
callq 0x95a2