// File: /workspace/github_cpp_makefile_star2_O2/BGI-Qingdao[P]metaSLR/classify.cpp
// Function: MultiThread::Worker(int)
void Worker(int index){
        std::pair<std::string,std::string> job;
        Buffer buffer;
        while(true){
            locks[index].lock();
            if( caches[index].empty() ){
                busy = false ;
                locks[index].unlock();
                if(end) return ;
                std::this_thread::sleep_for(std::chrono::microseconds(10));
                continue;
            }
            if( ! caches[index].empty() ){
                //job=caches[index].top();
                if( caches[index].size() > 300 ) busy = true ;
                else if ( caches[index].size() < 50 ) busy = false ;
                std::swap(buffer,caches[index].top());
                caches[index].pop();
                locks[index].unlock();
                for( int i = 0 ; i < buffer.size ; i ++ )
                    process_reads(buffer.heads.at(i),buffer.seqs.at(i),index);
            } else 
                locks[index].unlock();
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10068, %rsp          # imm = 0x10068
movl %esi, %ebx
movq %rdi, %r14
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq -0x50(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
leaq -0x10088(%rbp), %r15
movq %r15, %rdi
callq 0x50c0
movslq %ebx, %rax
imulq $0x28, %rax, %rcx
movq %rcx, -0x38(%rbp)
imulq $0x50, %rax, %rax
movq %rax, -0x30(%rbp)
movq 0x20(%r14), %rdi
addq -0x38(%rbp), %rdi
callq 0x68f2
movq 0x8(%r14), %rdi
movq -0x30(%rbp), %rcx
movq 0x30(%rdi,%rcx), %rax
cmpq 0x10(%rdi,%rcx), %rax
je 0x6877
addq %rcx, %rdi
callq 0x6116
movb $0x1, %cl
cmpq $0x12c, %rax            # imm = 0x12C
ja 0x67df
movq 0x8(%r14), %rdi
addq -0x30(%rbp), %rdi
callq 0x6116
cmpq $0x31, %rax
ja 0x67e3
xorl %ecx, %ecx
movb %cl, 0x5(%r14)
movq 0x8(%r14), %rax
movq -0x30(%rbp), %r12
movq 0x30(%rax,%r12), %rsi
cmpq 0x38(%rax,%r12), %rsi
jne 0x680a
addq %r12, %rax
movq 0x48(%rax), %rax
movq -0x8(%rax), %rsi
movl $0x10008, %eax          # imm = 0x10008
addq %rax, %rsi
addq $-0x10008, %rsi         # imm = 0xFFFEFFF8
movq %r15, %rdi
callq 0x6963
movq 0x8(%r14), %rdi
addq %r12, %rdi
callq 0x6cfe
movq 0x20(%r14), %rdi
addq -0x38(%rbp), %rdi
callq 0x31c0
xorl %r13d, %r13d
movslq -0x88(%rbp), %rax
cmpq %rax, %r13
jge 0x6793
movq %r15, %rdi
movq %r13, %rsi
callq 0x50e4
movq %rax, %r12
leaq -0x8088(%rbp), %rdi
movq %r13, %rsi
callq 0x50e4
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rdx
movl %ebx, %ecx
callq 0x69b8
incq %r13
jmp 0x6835
movb $0x0, 0x5(%r14)
movq 0x20(%r14), %rdi
addq -0x38(%rbp), %rdi
callq 0x31c0
cmpb $0x1, 0x4(%r14)
je 0x68a6
movq $0xa, -0x40(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x6908
jmp 0x6793
leaq -0x10088(%rbp), %rdi
callq 0x529a
leaq -0x80(%rbp), %rdi
callq 0x6bfa
addq $0x10068, %rsp          # imm = 0x10068
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x68d1
jmp 0x68d1
movq %rax, %rbx
leaq -0x10088(%rbp), %rdi
callq 0x529a
leaq -0x80(%rbp), %rdi
callq 0x6bfa
movq %rbx, %rdi
callq 0x3440
nop