// File: /workspace/github_cpp_makefile_star2_O3/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rbp
movq %rbp, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq $-0x1, 0x20(%rdi)
leaq 0x10d5(%rip), %rsi      # 0x95f1
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x3480
cmpq $-0x1, %rax
je 0x861f
movq %rax, %r15
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x32e0
leaq 0x8(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3370
movq (%r12), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x8575
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32d0
leaq 0xbfc(%rip), %rsi       # 0x9178
movl $0x2, %ecx
movq %r14, %rdi
movq %r15, %rdx
callq 0x3480
movq %rax, %r12
leaq 0x10df(%rip), %rsi      # 0x9675
movl $0x1, %ecx
movq %r14, %rdi
movq %r15, %rdx
callq 0x3480
movq %rax, %r13
andq %r12, %rax
incq %r15
cmpq $-0x1, %rax
je 0x862f
cmpq $-0x1, %r13
je 0x867b
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq $-0x1, %rcx
callq 0x32e0
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3400
movl %eax, 0x20(%rbx)
leaq 0x18(%rsp), %rax
cmpq %rax, %r15
je 0x8600
movq 0x18(%rsp), %rsi
incq %rsi
movq %r15, %rdi
callq 0x32d0
incq %r13
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
movq $-0x1, %rcx
callq 0x32e0
jmp 0x86d7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3170
jmp 0x8701
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq $-0x1, %rcx
callq 0x32e0
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3400
movl %eax, 0x20(%rbx)
leaq 0x18(%rsp), %rcx
cmpq %rcx, %r14
je 0x8673
movq 0x18(%rsp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x32d0
movl 0x20(%rbx), %eax
movl %eax, 0x24(%rbx)
jmp 0x8701
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq $-0x1, %rcx
callq 0x32e0
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3400
movl %eax, 0x20(%rbx)
leaq 0x18(%rsp), %rax
cmpq %rax, %r15
je 0x86bc
movq 0x18(%rsp), %rsi
incq %rsi
movq %r15, %rdi
callq 0x32d0
addq $0x2, %r12
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq $-0x1, %rcx
callq 0x32e0
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3400
movl %eax, 0x24(%rbx)
leaq 0x18(%rsp), %rax
cmpq %rax, %r14
je 0x8701
movq 0x18(%rsp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x32d0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x871c
jmp 0x871c
jmp 0x871c
jmp 0x871c
jmp 0x871c
jmp 0x871c
movq %rax, %r14
movq (%rbx), %rdi
cmpq %rbp, %rdi
je 0x8733
movq (%rbp), %rsi
incq %rsi
callq 0x32d0
movq %r14, %rdi
callq 0x3490
nop