// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/utils/fastq.cpp
// Function: BGIQD::FASTQ::stLFRHeader::Init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void stLFRHeader::Init( const std::string & line ) 
        {
            Reset() ;

            auto items = BGIQD::STRING::split(line ,'@');

            assert(!items.empty());

            auto items_1 = BGIQD::STRING::split(items[0]);

            assert(!items_1.empty());

            auto items_2 = BGIQD::STRING::split(items_1[0],'#');

            assert(items_2.size() == 2);

            readName = items_2[0] ;

            auto items_3 = BGIQD::STRING::split(items_2[1] , '/');

            assert( !items_3.empty());

            barcode_str = items_3[0] ;

            type = readName_barcodeStr ;

            if( items_3.size() == 2 && BGIQD::STRING::IsNum(items_3[1]) )
            {
                readIndex = std::stoi(items_3[1]);
                type = readName_barcodeStr_index ;
            }

            if( items_1.size() >1 && BGIQD::STRING::IsNum(items_1[1]) )
            {
                barcode_num = std::stoi(items_1[1]);
                type = readName_barcodeStr_index_barcodeNum ;
            }
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x79fa
leaq -0x58(%rbp), %rdx
movb $0x40, (%rdx)
leaq -0x90(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x9de0
movq (%r15), %rsi
cmpq 0x8(%r15), %rsi
je 0x87a4
leaq -0x58(%rbp), %rdi
callq 0xa034
movq -0x58(%rbp), %rsi
cmpq -0x50(%rbp), %rsi
je 0x87c3
leaq -0x40(%rbp), %rdx
movb $0x23, (%rdx)
leaq -0x78(%rbp), %rdi
callq 0x9de0
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rax
subq %rsi, %rax
cmpq $0x40, %rax
jne 0x87e2
leaq 0x30(%rbx), %rdi
callq 0x4160
movq -0x78(%rbp), %rsi
addq $0x20, %rsi
leaq -0x60(%rbp), %rdx
movb $0x2f, (%rdx)
leaq -0x40(%rbp), %rdi
callq 0x9de0
movq -0x40(%rbp), %rsi
cmpq -0x38(%rbp), %rsi
je 0x8801
leaq 0x10(%rbx), %rdi
callq 0x4160
movl $0x1, (%rbx)
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rax
subq %rdi, %rax
cmpq $0x40, %rax
jne 0x86f1
addq $0x20, %rdi
callq 0xa1ed
testb %al, %al
je 0x86f1
movq -0x40(%rbp), %rax
movq 0x20(%rax), %r15
callq 0x4050
movq %rax, %r14
movl (%rax), %r13d
movl $0x0, (%rax)
leaq -0x60(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x4350
cmpq %r15, (%r12)
je 0x8820
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x8838
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x8838
testl %ecx, %ecx
jne 0x86e8
movl %r13d, (%r14)
movl %eax, 0x4(%rbx)
movl $0x2, (%rbx)
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rax
subq %rdi, %rax
cmpq $0x21, %rax
jb 0x876e
addq $0x20, %rdi
callq 0xa1ed
testb %al, %al
je 0x876e
movq -0x58(%rbp), %rax
movq 0x20(%rax), %r15
callq 0x4050
movq %rax, %r14
movl (%rax), %r13d
movl $0x0, (%rax)
leaq -0x60(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x4350
cmpq %r15, (%r12)
je 0x882c
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x8844
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x8844
testl %ecx, %ecx
jne 0x8765
movl %r13d, (%r14)
movl %eax, 0x8(%rbx)
movl $0x3, (%rbx)
leaq -0x40(%rbp), %rdi
callq 0x7196
leaq -0x78(%rbp), %rdi
callq 0x7196
leaq -0x58(%rbp), %rdi
callq 0x7196
leaq -0x90(%rbp), %rdi
callq 0x7196
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x305f(%rip), %rdi      # 0xb80a
leaq 0x3067(%rip), %rsi      # 0xb819
leaq 0x3070(%rip), %rcx      # 0xb829
movl $0x11, %edx
callq 0x4190
leaq 0x3099(%rip), %rdi      # 0xb863
leaq 0x3048(%rip), %rsi      # 0xb819
leaq 0x3051(%rip), %rcx      # 0xb829
movl $0x15, %edx
callq 0x4190
leaq 0x308b(%rip), %rdi      # 0xb874
leaq 0x3029(%rip), %rsi      # 0xb819
leaq 0x3032(%rip), %rcx      # 0xb829
movl $0x19, %edx
callq 0x4190
leaq 0x3080(%rip), %rdi      # 0xb888
leaq 0x300a(%rip), %rsi      # 0xb819
leaq 0x3013(%rip), %rcx      # 0xb829
movl $0x1f, %edx
callq 0x4190
leaq 0x2ac0(%rip), %rdi      # 0xb2e7
callq 0x4180
leaq 0x2ab4(%rip), %rdi      # 0xb2e7
callq 0x4180
leaq 0x2aa8(%rip), %rdi      # 0xb2e7
callq 0x4370
leaq 0x2a9c(%rip), %rdi      # 0xb2e7
callq 0x4370
jmp 0x8852
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x8874
movl %r13d, (%r14)
jmp 0x8874
jmp 0x8862
movq %rax, %rbx
jmp 0x887d
movq %rax, %rbx
jmp 0x8886
movq %rax, %rbx
jmp 0x888f
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x7196
leaq -0x78(%rbp), %rdi
callq 0x7196
leaq -0x58(%rbp), %rdi
callq 0x7196
leaq -0x90(%rbp), %rdi
callq 0x7196
movq %rbx, %rdi
callq 0x4450
nop