// File: /workspace/github_cpp_makefile_star2_O3/zeeev[P]DASVC/bamtools/src/api/internal/io/BamFtp_p.cpp
// Function: BamTools::Internal::BamFtp::ReceiveReply()
bool BamFtp::ReceiveReply(void) {

    // failure if not connected
    if ( !m_commandSocket->IsConnected() ) {
        SetErrorString("BamFtp::ReceiveReply()", "command socket not connected");
        return false;
    }

    m_response.clear();

    // read header data (& discard for now)
    bool headerEnd = false;
    while ( !headerEnd ) {

        const string headerLine = m_commandSocket->ReadLine();
        m_response += headerLine;

        // if line is of form 'xyz ', quit reading lines
        if ( (headerLine.length() >= 4 ) &&
             isdigit(headerLine[0]) &&
             isdigit(headerLine[1]) &&
             isdigit(headerLine[2]) &&
             ( headerLine[3] != MULTILINE_CONTINUE )
           )
        {
            headerEnd = true;
        }
    }

    // return success, depending on response
    if ( m_response.empty() ) {
        SetErrorString("BamFtp::ReceiveReply", "error reading server reply");
        return false;
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x27370
testb %al, %al
je 0x462c1
leaq 0xf0(%rbx), %r14
movq $0x0, 0xf8(%rbx)
movq 0xf0(%rbx), %rax
movb $0x0, (%rax)
leaq 0x10(%rsp), %r12
movq %rsp, %r15
movq 0x30(%rbx), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x27020
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x265d0
movq (%rsp), %rdi
cmpq $0x4, 0x8(%rsp)
jb 0x4623c
movsbl (%rdi), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x4623c
movsbl 0x1(%rdi), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x4623c
movsbl 0x2(%rdi), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x4623c
cmpb $0x2d, 0x3(%rdi)
setne %bpl
jmp 0x4623e
xorl %ebp, %ebp
cmpq %r12, %rdi
je 0x46248
callq 0x27560
testb %bpl, %bpl
je 0x461e4
movb $0x1, %al
cmpq $0x0, 0xf8(%rbx)
jne 0x46330
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0x107de(%rip), %rsi     # 0x56a48
leaq 0x107eb(%rip), %rdx     # 0x56a5c
callq 0x26750
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x107d7(%rip), %rsi     # 0x56a5d
leaq 0x107ea(%rip), %rdx     # 0x56a77
leaq 0x20(%rsp), %rdi
callq 0x26750
movq %rsp, %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x288b0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x462b6
callq 0x27560
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0x46329
jmp 0x4632e
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x10743(%rip), %rsi     # 0x56a14
leaq 0x10752(%rip), %rdx     # 0x56a2a
movq %rsp, %rdi
callq 0x26750
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1073b(%rip), %rsi     # 0x56a2b
leaq 0x10750(%rip), %rdx     # 0x56a47
leaq 0x20(%rsp), %rdi
callq 0x26750
movq %rsp, %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x288b0
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x46320
callq 0x27560
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x4632e
callq 0x27560
xorl %eax, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x4637f
callq 0x27560
jmp 0x4637f
jmp 0x4637c
jmp 0x46377
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x4636c
callq 0x27560
jmp 0x4636c
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x46388
jmp 0x4638d
movq %rax, %rbx
jmp 0x4638d
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x4638d
callq 0x27560
movq %rbx, %rdi
callq 0x28c10
nop