// File: /workspace/github_cpp_makefile_star2_O1/xjrueda[P]fixprime/include/Session.h
// Function: fprime::Session::getLength(int&, unsigned long&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool getLength(int& length, std::string::size_type& pos,
                const std::string& buffer) throw ( RawMessageException) {
            if (!buffer.size()) return false;

            std::string::size_type startPos = buffer.find("\0019=", 0);
            if (startPos == std::string::npos) return false;
            startPos += 3;
            std::string::size_type endPos = buffer.find("\001", startPos);
            if (endPos == std::string::npos) return false;

            std::string strLength(buffer, startPos, endPos - startPos);

            try {
                length = boost::lexical_cast<int>(strLength);
                if (length < 0) throw RawMessageException();
            } catch (exception&) {
                throw RawMessageException();
            }

            pos = endPos + 1;
            return true;
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
cmpq $0x0, 0x8(%rcx)
je 0x34267
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x26fee(%rip), %rsi     # 0x5b199
xorl %ebp, %ebp
movl $0x3, %ecx
movq %r12, %rdi
xorl %edx, %edx
callq 0x309b0
cmpq $-0x1, %rax
je 0x34269
movq %rax, %r13
addq $0x3, %r13
leaq 0x26fc3(%rip), %rsi     # 0x5b197
movl $0x1, %ecx
movq %r12, %rdi
movq %r13, %rdx
callq 0x309b0
cmpq $-0x1, %rax
setne %bpl
je 0x34269
movq %rax, %r15
movq %rax, %rcx
subq %r13, %rcx
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2e330
leaq 0xc(%rsp), %rsi
movl $0x0, (%rsi)
movq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rcx
addq %rax, %rcx
movq %rcx, 0x20(%rsp)
leaq 0x48(%rsp), %rdi
movq %rax, (%rdi)
movq %rcx, 0x8(%rdi)
callq 0x2f8f0
testb %al, %al
je 0x3427a
movl 0xc(%rsp), %eax
movl %eax, (%r14)
testl %eax, %eax
js 0x342a8
incq %r15
movq %r15, (%rbx)
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x34262
callq 0x2f6c0
movb $0x1, %bpl
jmp 0x34269
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3db7f(%rip), %rax     # 0x71e00
addq $0x10, %rax
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
movq 0x3da5c(%rip), %rax     # 0x71cf0
movq %rax, 0x8(%rdi)
movq 0x3d969(%rip), %rax     # 0x71c08
movq %rax, 0x10(%rdi)
callq 0x2fd10
movl $0x28, %edi
callq 0x2eae0
movq 0x3dc07(%rip), %rcx     # 0x71ec0
addq $0x10, %rcx
movq %rcx, (%rax)
leaq 0x18(%rax), %rcx
movq %rcx, 0x8(%rax)
movq $0x0, 0x10(%rax)
movb $0x0, 0x18(%rax)
movq 0x3dc05(%rip), %rsi     # 0x71ee0
movq 0x3dbee(%rip), %rdx     # 0x71ed0
movq %rax, %rdi
callq 0x308f0
jmp 0x3435c
movq %rdx, %r14
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x305c0
jmp 0x3430c
movq %rdx, %r14
movq %rax, %rbx
jmp 0x3437a
movq %rdx, %r14
movq %rax, %rbx
cmpl $0x2, %r14d
jne 0x34367
movq %rbx, %rdi
callq 0x2e8b0
movl $0x28, %edi
callq 0x2eae0
movq 0x3db95(%rip), %rcx     # 0x71ec0
addq $0x10, %rcx
movq %rcx, (%rax)
leaq 0x18(%rax), %rcx
movq %rcx, 0x8(%rax)
movq $0x0, 0x10(%rax)
movb $0x0, 0x18(%rax)
movq 0x3db93(%rip), %rsi     # 0x71ee0
movq 0x3db7c(%rip), %rdx     # 0x71ed0
movq %rax, %rdi
callq 0x308f0
movq %rdx, %r14
movq %rax, %rbx
callq 0x30750
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3437a
callq 0x2f6c0
movq %rbx, %rdi
testl %r14d, %r14d
jns 0x34387
callq 0x2feb0
callq 0x30a20
movq %rax, %rdi
callq 0x32108