// File: zeeev[P]DASVC/bamtools/src/api/internal/bam/BamMultiReader_p.cpp
// Function: BamTools::Internal::BamMultiReaderPrivate::CloseFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool BamMultiReaderPrivate::CloseFile(const string& filename) {

    m_errorString.clear();

    vector<string> filenames(1, filename);
    if ( CloseFiles(filenames) )
        return true;
    else {
        const string currentError = m_errorString;
        const string message = string("error while closing file: ") + filename + "\n" + currentError;
        SetErrorString("BamMultiReader::CloseFile", message);
        return false;
    }
}

// Assembly:
subq $0x148, %rsp            # imm = 0x148
movq %rdi, 0x138(%rsp)
movq %rsi, 0x130(%rsp)
movq 0x138(%rsp), %rdi
movq %rdi, 0x18(%rsp)
addq $0x28, %rdi
callq 0x78800
movq 0x130(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x117(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x72070
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x118(%rsp), %rdi
movl $0x1, %esi
callq 0x7bee0
jmp 0x9e67a
leaq 0x117(%rsp), %rdi
callq 0x71d80
movq 0x18(%rsp), %rdi
leaq 0x118(%rsp), %rsi
callq 0x7bf80
movb %al, 0x17(%rsp)
jmp 0x9e69f
movb 0x17(%rsp), %al
testb $0x1, %al
jne 0x9e6a9
jmp 0x9e700
movb $0x1, 0x147(%rsp)
movl $0x1, 0x100(%rsp)
jmp 0x9e962
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
leaq 0x117(%rsp), %rdi
callq 0x71d80
jmp 0x9e991
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0x9e980
movq 0x18(%rsp), %rsi
addq $0x28, %rsi
leaq 0xe0(%rsp), %rdi
callq 0x73370
jmp 0x9e718
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x7b5f0
movq 0x8(%rsp), %rdx
leaq 0x4bf3b(%rip), %rsi     # 0xea66e
leaq 0x60(%rsp), %rdi
callq 0x78e70
jmp 0x9e73f
movq 0x130(%rsp), %rdx
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x7c720
jmp 0x9e75b
leaq 0x4c031(%rip), %rdx     # 0xea793
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x785a0
jmp 0x9e779
leaq 0xc0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xe0(%rsp), %rdx
callq 0x7c720
jmp 0x9e798
leaq 0xa0(%rsp), %rdi
callq 0x7cce8
jmp 0x9e7a7
leaq 0x80(%rsp), %rdi
callq 0x7cce8
jmp 0x9e7b6
leaq 0x60(%rsp), %rdi
callq 0x7cce8
jmp 0x9e7c2
leaq 0x5f(%rsp), %rdi
callq 0x76f80
leaq 0x37(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x7b5f0
movq (%rsp), %rdx
leaq 0x4bea4(%rip), %rsi     # 0xea689
leaq 0x38(%rsp), %rdi
callq 0x78e70
jmp 0x9e7f1
movq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x77c30
jmp 0x9e80a
leaq 0x38(%rsp), %rdi
callq 0x7cce8
jmp 0x9e816
leaq 0x37(%rsp), %rdi
callq 0x76f80
movb $0x0, 0x147(%rsp)
movl $0x1, 0x100(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x7cce8
jmp 0x9e928
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0x9e8cb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0x9e8bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0x9e8ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x7cce8
jmp 0x9e8aa
jmp 0x9e8ac
leaq 0x80(%rsp), %rdi
callq 0x7cce8
jmp 0x9e8bb
jmp 0x9e8bd
leaq 0x60(%rsp), %rdi
callq 0x7cce8
jmp 0x9e8c9
jmp 0x9e8cb
leaq 0x5f(%rsp), %rdi
callq 0x76f80
jmp 0x9e951
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0x9e90f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x7cce8
jmp 0x9e90d
jmp 0x9e90f
leaq 0x37(%rsp), %rdi
callq 0x76f80
leaq 0xc0(%rsp), %rdi
callq 0x7cce8
jmp 0x9e94d
leaq 0xe0(%rsp), %rdi
callq 0x7cce8
jmp 0x9e94f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0x9e951
jmp 0x9e951
jmp 0x9e962
leaq 0xe0(%rsp), %rdi
callq 0x7cce8
jmp 0x9e960
jmp 0x9e980
leaq 0x118(%rsp), %rdi
callq 0x74e60
movb 0x147(%rsp), %al
andb $0x1, %al
addq $0x148, %rsp            # imm = 0x148
retq
leaq 0x118(%rsp), %rdi
callq 0x74e60
jmp 0x9e98f
jmp 0x9e991
movq 0x108(%rsp), %rdi
callq 0x7b550
movq %rax, %rdi
callq 0x88ef0
nopw %cs:(%rax,%rax)