// File: /workspace/github_cpp_makefile_star2_O3/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
cmpq $0x0, 0x8(%rcx)
je 0x341e7
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x26061(%rip), %rsi     # 0x5a199
xorl %r15d, %r15d
movl $0x3, %ecx
movq %r12, %rdi
xorl %edx, %edx
callq 0x309a0
cmpq $-0x1, %rax
je 0x341ea
movq %rax, %r13
addq $0x3, %r13
leaq 0x26035(%rip), %rsi     # 0x5a197
movl $0x1, %ecx
movq %r12, %rdi
movq %r13, %rdx
callq 0x309a0
cmpq $-0x1, %rax
je 0x341e7
movq %rax, %r15
movq %rax, %rcx
subq %r13, %rcx
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2e330
leaq 0x4(%rsp), %rsi
movl $0x0, (%rsi)
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
addq %rax, %rcx
leaq 0x28(%rsp), %rdi
movq %rax, (%rdi)
movq %rcx, 0x8(%rdi)
callq 0x2f8f0
testb %al, %al
je 0x341fb
movl 0x4(%rsp), %eax
movl %eax, (%r14)
testl %eax, %eax
js 0x34229
incq %r15
movq %r15, (%rbx)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x341e2
callq 0x2f6c0
movb $0x1, %r15b
jmp 0x341ea
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x3cbfe(%rip), %rax     # 0x70e00
addq $0x10, %rax
leaq 0x28(%rsp), %rdi
movq %rax, (%rdi)
movq 0x3cadb(%rip), %rax     # 0x70cf0
movq %rax, 0x8(%rdi)
movq 0x3c9e8(%rip), %rax     # 0x70c08
movq %rax, 0x10(%rdi)
callq 0x2fd00
movl $0x28, %edi
callq 0x2eae0
movq 0x3cc86(%rip), %rcx     # 0x70ec0
addq $0x10, %rcx
movq %rcx, (%rax)
leaq 0x18(%rax), %rcx
movq %rcx, 0x8(%rax)
movq $0x0, 0x10(%rax)
movb $0x0, 0x18(%rax)
movq 0x3cc84(%rip), %rsi     # 0x70ee0
movq 0x3cc6d(%rip), %rdx     # 0x70ed0
movq %rax, %rdi
callq 0x308e0
jmp 0x342dd
movq %rdx, %r14
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x305b0
jmp 0x3428d
movq %rdx, %r14
movq %rax, %rbx
jmp 0x342fb
movq %rdx, %r14
movq %rax, %rbx
cmpl $0x2, %r14d
jne 0x342e8
movq %rbx, %rdi
callq 0x2e8b0
movl $0x28, %edi
callq 0x2eae0
movq 0x3cc14(%rip), %rcx     # 0x70ec0
addq $0x10, %rcx
movq %rcx, (%rax)
leaq 0x18(%rax), %rcx
movq %rcx, 0x8(%rax)
movq $0x0, 0x10(%rax)
movb $0x0, 0x18(%rax)
movq 0x3cc12(%rip), %rsi     # 0x70ee0
movq 0x3cbfb(%rip), %rdx     # 0x70ed0
movq %rax, %rdi
callq 0x308e0
movq %rdx, %r14
movq %rax, %rbx
callq 0x30740
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x342fb
callq 0x2f6c0
movq %rbx, %rdi
testl %r14d, %r14d
jns 0x34308
callq 0x2fea0
callq 0x30a10
movq %rax, %rdi
callq 0x320e8
nop