// File: BGI-Qingdao[P]metaSLR/classify.cpp
// Function: MultiThread::MultiThread(int)
MultiThread(int t_num){
        t_nums = t_num ;
        barcode_caches = new BarcodeCache[t_num];
        locks = new std::mutex[t_num];
        threads = new std::thread*[t_num];
        busy = false;
        end=false;
        for(int i = 0 ; i< t_num ; i++){
            caches.push_back(std::stack<Buffer>());
            threads[i] = new std::thread([this,i](){int index=i ;Worker(index); });
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x98(%rbp)
addq $0x8, %rdi
movq %rdi, -0xa8(%rbp)
callq 0x9f60
movq -0x98(%rbp), %rdi
addq $0x38, %rdi
movq %rdi, -0xa0(%rbp)
callq 0x84d0
movq -0x98(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, (%rax)
movslq -0xc(%rbp), %rax
movq %rax, -0x90(%rbp)
movl $0x30, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
addq $0x8, %rdi
movq $-0x1, %rax
cmovbq %rax, %rdi
testb %cl, %cl
cmovneq %rax, %rdi
callq 0x4030
movq %rax, -0x88(%rbp)
jmp 0x764c
movq -0x90(%rbp), %rax
movq -0x88(%rbp), %rcx
movq %rax, (%rcx)
addq $0x8, %rcx
movq %rcx, -0xb0(%rbp)
cmpq $0x0, %rax
je 0x76c5
movq -0xb0(%rbp), %rax
movq -0x90(%rbp), %rcx
imulq $0x30, %rcx, %rdx
movq %rax, %rcx
addq %rdx, %rcx
movq %rcx, -0xc0(%rbp)
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x84d0
movq -0xc8(%rbp), %rax
movq -0xc0(%rbp), %rcx
addq $0x30, %rax
cmpq %rcx, %rax
movq %rax, -0xb8(%rbp)
jne 0x7694
movq -0x98(%rbp), %rax
movq -0xb0(%rbp), %rcx
movq %rcx, 0x30(%rax)
movslq -0xc(%rbp), %rax
movq %rax, -0xd8(%rbp)
movl $0x28, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x4030
movq %rax, -0xd0(%rbp)
jmp 0x7706
movq -0xd8(%rbp), %rax
cmpq $0x0, %rax
je 0x776a
movq -0xd0(%rbp), %rax
movq -0xd8(%rbp), %rcx
imulq $0x28, %rcx, %rdx
movq %rax, %rcx
addq %rdx, %rcx
movq %rcx, -0xe8(%rbp)
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x9f80
movq -0xf0(%rbp), %rax
movq -0xe8(%rbp), %rcx
addq $0x28, %rax
cmpq %rcx, %rax
movq %rax, -0xe0(%rbp)
jne 0x7739
movq -0x98(%rbp), %rax
movq -0xd0(%rbp), %rcx
movq %rcx, 0x20(%rax)
movslq -0xc(%rbp), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x4030
movq %rax, -0xf8(%rbp)
jmp 0x77a4
movq -0x98(%rbp), %rax
movq -0xf8(%rbp), %rcx
movq %rcx, 0x28(%rax)
movb $0x0, 0x5(%rax)
movb $0x0, 0x4(%rax)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x78a6
movq -0x98(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x100(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x9fd0
jmp 0x77ee
movq -0x100(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x9fa0
jmp 0x7800
leaq -0x70(%rbp), %rdi
callq 0xa000
movl $0x8, %edi
callq 0x42d0
movq %rax, -0x108(%rbp)
jmp 0x781c
movq -0x108(%rbp), %rdi
movq -0x98(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x78(%rbp)
leaq -0x80(%rbp), %rsi
callq 0xa020
jmp 0x783f
movq -0x108(%rbp), %rdx
movq -0x98(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x20(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x77c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x78af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xa000
jmp 0x78af
movq -0x108(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x42a0
jmp 0x78af
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
movq -0xa0(%rbp), %rdi
callq 0x85d0
movq -0xa8(%rbp), %rdi
callq 0xa0d0
movq -0x18(%rbp), %rdi
callq 0x4550