// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x27370
testb %al, %al
je 0x46309
leaq 0xf0(%rbx), %r14
movq $0x0, 0xf8(%rbx)
movq 0xf0(%rbx), %rax
movb $0x0, (%rax)
leaq 0x18(%rsp), %r12
xorl %r13d, %r13d
leaq 0x8(%rsp), %r15
movl $0x1, %ebp
movq 0x30(%rbx), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x27020
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x265d0
cmpq $0x4, 0x10(%rsp)
jb 0x46274
movq 0x8(%rsp), %rax
movsbl (%rax), %ecx
addl $-0x30, %ecx
cmpl $0x9, %ecx
ja 0x46274
movsbl 0x1(%rax), %ecx
addl $-0x30, %ecx
cmpl $0x9, %ecx
ja 0x46274
movsbl 0x2(%rax), %ecx
addl $-0x30, %ecx
cmpl $0x9, %ecx
ja 0x46274
cmpb $0x2d, 0x3(%rax)
movzbl %r13b, %r13d
cmovnel %ebp, %r13d
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x46283
callq 0x27560
testb $0x1, %r13b
je 0x46218
cmpq $0x0, 0xf8(%rbx)
setne %bpl
jne 0x4637d
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x1079e(%rip), %rsi     # 0x56a48
leaq 0x107ab(%rip), %rdx     # 0x56a5c
callq 0x26750
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x10797(%rip), %rsi     # 0x56a5d
leaq 0x107aa(%rip), %rdx     # 0x56a77
leaq 0x28(%rsp), %rdi
callq 0x26750
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x288c0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x462f8
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4637d
callq 0x27560
jmp 0x4637d
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x106fb(%rip), %rsi     # 0x56a14
leaq 0x1070a(%rip), %rdx     # 0x56a2a
leaq 0x8(%rsp), %rdi
callq 0x26750
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x106f1(%rip), %rsi     # 0x56a2b
leaq 0x10706(%rip), %rdx     # 0x56a47
leaq 0x28(%rsp), %rdi
callq 0x26750
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x288c0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x4636c
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4637b
callq 0x27560
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x463d1
callq 0x27560
jmp 0x463d1
jmp 0x463ce
jmp 0x463c9
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x463bd
callq 0x27560
jmp 0x463bd
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
jne 0x463db
jmp 0x463e0
movq %rax, %rbx
jmp 0x463e0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x463e0
callq 0x27560
movq %rbx, %rdi
callq 0x28c20