// File: /workspace/github_cpp_makefile_star2_O2/ekg[P]fastahack/./Region.h
// Function: FastaRegion::FastaRegion(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
FastaRegion(string& region) {
        startPos = -1;
        stopPos = -1;
        size_t foundFirstColon = region.find(":");
        // we only have a single string, use the whole sequence as the target
        if (foundFirstColon == string::npos) {
            startSeq = region;
        } else {
            startSeq = region.substr(0, foundFirstColon);
            size_t foundRangeDots = region.find("..", foundFirstColon);
	    size_t foundRangeDash = region.find("-", foundFirstColon);
            if (foundRangeDots == string::npos && foundRangeDash == string::npos) {
                startPos = atoi(region.substr(foundFirstColon + 1).c_str());
                stopPos = startPos; // just print one base if we don't give an end
            } else {
		if (foundRangeDash == string::npos) {
		    startPos = atoi(region.substr(foundFirstColon + 1, foundRangeDots - foundRangeDots - 1).c_str());
		    stopPos = atoi(region.substr(foundRangeDots + 2).c_str()); // to the start of this chromosome
		} else {
		    startPos = atoi(region.substr(foundFirstColon + 1, foundRangeDash - foundRangeDash - 1).c_str());
		    stopPos = atoi(region.substr(foundRangeDash + 1).c_str()); // to the start of this chromosome
		}
            }
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
orq $-0x1, 0x20(%rdi)
leaq 0x1b40(%rip), %rsi      # 0x85f1
movq %r14, %rdi
xorl %edx, %edx
callq 0x3490
cmpq $-0x1, %rax
je 0x6b67
movq %rax, %r15
movq %rsp, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x3290
movq %rsp, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3300
movq %r12, %rdi
callq 0x3120
leaq 0x1683(%rip), %rsi      # 0x8178
movq %r14, %rdi
movq %r15, %rdx
callq 0x3490
movq %rax, %r12
leaq 0x1b6b(%rip), %rsi      # 0x8675
movq %r14, %rdi
movq %r15, %rdx
callq 0x3490
movq %rax, %r13
andq %r12, %rax
incq %r15
cmpq $-0x1, %rax
je 0x6b77
cmpq $-0x1, %r13
je 0x6ba6
movq %rsp, %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
movq %r15, %rdx
callq 0x3290
movq %rsp, %r15
movq (%r15), %rdi
callq 0x33b0
movl %eax, 0x20(%rbx)
movq %r15, %rdi
callq 0x3120
incq %r13
movq %rsp, %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
movq %r13, %rdx
callq 0x3290
jmp 0x6be2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3150
jmp 0x6bf8
movq %rsp, %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
movq %r15, %rdx
callq 0x3290
movq %rsp, %r14
movq (%r14), %rdi
callq 0x33b0
movl %eax, 0x20(%rbx)
movq %r14, %rdi
callq 0x3120
movl 0x20(%rbx), %eax
movl %eax, 0x24(%rbx)
jmp 0x6bf8
movq %rsp, %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
movq %r15, %rdx
callq 0x3290
movq %rsp, %r15
movq (%r15), %rdi
callq 0x33b0
movl %eax, 0x20(%rbx)
movq %r15, %rdi
callq 0x3120
addq $0x2, %r12
movq %rsp, %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
movq %r12, %rdx
callq 0x3290
movq %rsp, %r14
movq (%r14), %rdi
callq 0x33b0
movl %eax, 0x24(%rbx)
movq %r14, %rdi
callq 0x3120
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x6c12
jmp 0x6c12
jmp 0x6c12
jmp 0x6c12
jmp 0x6c12
jmp 0x6c12
movq %rax, %r14
movq %rbx, %rdi
callq 0x3120
movq %r14, %rdi
callq 0x3430
nopl (%rax)