// File: /workspace/github_cpp_makefile_star2_O1/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 -0x78(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x58(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movl $0x10, %eax
leaq (%rax,%rbp), %rcx
addq $-0x10090, %rcx         # imm = 0xFFFEFF70
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x8010, %rax           # imm = 0x8010
jne 0x7072
movl $0x8010, %eax           # imm = 0x8010
leaq (%rax,%rbp), %rcx
addq $-0x10090, %rcx         # imm = 0xFFFEFF70
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x10010, %rax          # imm = 0x10010
jne 0x709d
movslq %ebx, %rax
leaq (%rax,%rax,4), %r12
leaq (,%r12,8), %r13
movq 0x20(%r14), %rdi
addq %r13, %rdi
callq 0x3330
testl %eax, %eax
jne 0x725d
shlq $0x4, %r12
leaq -0x48(%rbp), %r15
movq %r12, -0x38(%rbp)
movq %r13, -0x30(%rbp)
movq 0x8(%r14), %rcx
movq 0x10(%rcx,%r12), %rdx
movq 0x30(%rcx,%r12), %rsi
cmpq %rdx, %rsi
je 0x7164
addq %r12, %rcx
movq 0x48(%rcx), %rax
movq %rax, %r8
subq 0x28(%rcx), %r8
sarq $0x3, %r8
cmpq $0x1, %rax
adcq $-0x1, %r8
movq 0x20(%rcx), %rdi
movq 0x38(%rcx), %rcx
movq %rsi, %r9
subq %rcx, %r9
sarq $0x3, %r9
movabsq $0xfff8003ffe001, %r10  # imm = 0xFFF8003FFE001
imulq %r10, %r9
addq %r8, %r9
subq %rdx, %rdi
sarq $0x3, %rdi
imulq %r10, %rdi
addq %r9, %rdi
cmpq $0x12d, %rdi            # imm = 0x12D
jb 0x71b3
movb $0x1, 0x5(%r14)
jmp 0x71be
movb $0x0, 0x5(%r14)
movq 0x20(%r14), %rdi
addq %r13, %rdi
callq 0x31d0
cmpb $0x1, 0x4(%r14)
je 0x7264
movq $0x0, -0x48(%rbp)
movq $0x2710, -0x40(%rbp)    # imm = 0x2710
movq %r15, %rdi
movq %r15, %rsi
callq 0x30c0
cmpl $-0x1, %eax
jne 0x7241
callq 0x3060
cmpl $0x4, (%rax)
je 0x7190
jmp 0x7241
cmpq $0x31, %rdi
ja 0x71be
movb $0x0, 0x5(%r14)
cmpq %rcx, %rsi
jne 0x71cf
movq -0x8(%rax), %rsi
movl $0x10008, %eax          # imm = 0x10008
addq %rax, %rsi
addq $-0x10008, %rsi         # imm = 0xFFFEFFF8
leaq -0x10090(%rbp), %rdi
callq 0x7338
movq 0x8(%r14), %rdi
addq %r12, %rdi
callq 0x78b4
movq 0x20(%r14), %rdi
addq %r13, %rdi
callq 0x31d0
cmpl $0x0, -0x90(%rbp)
jle 0x7241
leaq -0x10090(%rbp), %r13
xorl %r12d, %r12d
cmpq $0x400, %r12            # imm = 0x400
je 0x72f7
leaq 0x8000(%r13), %rdx
movq %r14, %rdi
movq %r13, %rsi
movl %ebx, %ecx
callq 0x752c
incq %r12
movslq -0x90(%rbp), %rax
addq $0x20, %r13
cmpq %rax, %r12
jl 0x720d
movq 0x20(%r14), %rdi
movq -0x30(%rbp), %r13
addq %r13, %rdi
callq 0x3330
testl %eax, %eax
movq -0x38(%rbp), %r12
je 0x70f6
movl %eax, %edi
callq 0x3190
leaq -0xa0(%rbp), %rbx
xorl %r14d, %r14d
movq -0xb0(%rbp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0x7284
callq 0x3230
addq $-0x20, %r14
cmpq $-0x8000, %r14          # imm = 0x8000
jne 0x726e
leaq -0x80a0(%rbp), %rbx
xorl %r14d, %r14d
movq -0x80b0(%rbp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0x72b1
callq 0x3230
addq $-0x20, %r14
cmpq $-0x8000, %r14          # imm = 0x8000
jne 0x729b
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x72d0
callq 0x3230
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x72e5
callq 0x3230
addq $0x10068, %rsp          # imm = 0x10068
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3392(%rip), %rdi      # 0xa690
movl $0x400, %esi            # imm = 0x400
movl $0x400, %edx            # imm = 0x400
xorl %eax, %eax
callq 0x3350
jmp 0x7315
jmp 0x7315
jmp 0x7315
movq %rax, %rbx
leaq -0x10090(%rbp), %rdi
callq 0x5ca0
leaq -0x88(%rbp), %rdi
callq 0x787e
movq %rbx, %rdi
callq 0x3400