// File: /workspace/github_cpp_makefile_star2_O3/yangwanyuan[P]HLKVDS/src/DS_MultiVolume_Impl.cc
// Function: hlkvds::DS_MultiVolume_Impl::StartThds()
void DS_MultiVolume_Impl::StartThds() {
    for (int i = 0; i < shardsNum_; i++) {
        ReqsMergeWQ *req_wq = new ReqsMergeWQ(this, 1);
        req_wq->Start();
        reqWQVec_.push_back(req_wq);
    }

    segWteWQ_ = new SegmentWriteWQ(this, options_.seg_write_thread);
    segWteWQ_->Start();

    segTimeoutT_stop_.store(false);
    segTimeoutT_ = std::thread(&DS_MultiVolume_Impl::SegTimeoutThdEntry, this);

    for (uint32_t i = 0; i < volNum_; i++) {
        volMap_[i]->StartThds();
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
cmpl $0x0, 0x58(%rdi)
jle 0xc8b9
leaq 0x140(%rbx), %rax
movq %rax, 0x10(%rsp)
xorl %r13d, %r13d
leaq 0x26af7(%rip), %rbp     # 0x332d0
addq $0x10, %rbp
leaq 0x26a9c(%rip), %r15     # 0x33280
addq $0x10, %r15
xorl %r14d, %r14d
movl $0xd8, %edi
callq 0x6410
movq %rax, %r12
movq %rbp, (%rax)
leaq 0x8(%rax), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x38(%rax)
movups %xmm0, 0x48(%rax)
xorl %esi, %esi
callq 0xe776
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%r12)
movups %xmm0, 0x58(%r12)
movq %r13, 0x78(%r12)
movq %r12, %rdi
subq $-0x80, %rdi
callq 0x6530
movq %r13, 0xc0(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0xb0(%r12)
movl $0x1, 0xc8(%r12)
movb $0x0, 0xcc(%r12)
movq %r15, (%r12)
movq %rbx, 0xd0(%r12)
movq %r12, (%rsp)
movq %r12, %rdi
callq 0xe124
movq 0x148(%rbx), %rsi
cmpq 0x150(%rbx), %rsi
je 0xc89f
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x148(%rbx)
jmp 0xc8ac
movq 0x10(%rsp), %rdi
movq %rsp, %rdx
callq 0xf3f8
incl %r14d
cmpl 0x58(%rbx), %r14d
jl 0xc7eb
movl $0xd8, %edi
callq 0x6410
movq %rax, %r14
movq 0x8(%rbx), %rax
movl 0x14(%rax), %ebp
leaq 0x26a74(%rip), %rax     # 0x33348
addq $0x10, %rax
movq %rax, (%r14)
leaq 0x8(%r14), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
movups %xmm0, 0x18(%r14)
movups %xmm0, 0x28(%r14)
movups %xmm0, 0x38(%r14)
movups %xmm0, 0x48(%r14)
xorl %esi, %esi
callq 0xe9ac
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%r14)
movups %xmm0, 0x58(%r14)
xorl %r15d, %r15d
movq %r15, 0x78(%r14)
movq %r14, %rdi
subq $-0x80, %rdi
callq 0x6530
movq %r15, 0xc0(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0xb0(%r14)
movl %ebp, 0xc8(%r14)
movb %r15b, 0xcc(%r14)
leaq 0x269af(%rip), %rax     # 0x332f8
addq $0x10, %rax
movq %rax, (%r14)
movq %rbx, 0xd0(%r14)
movq %r14, 0x158(%rbx)
movq %r14, %rdi
callq 0xe1c0
xorl %eax, %eax
xchgb %al, 0x168(%rbx)
leaq 0x93(%rip), %rax        # 0xca08
movq %rsp, %rsi
movq %rax, (%rsi)
movq %r15, 0x8(%rsi)
leaq 0x20(%rsp), %rdx
movq %rbx, (%rdx)
leaq 0x18(%rsp), %rdi
callq 0xe25c
cmpq %r15, 0x160(%rbx)
jne 0xc9e7
movq 0x18(%rsp), %rax
movq %rax, 0x160(%rbx)
cmpl $0x0, 0xe0(%rbx)
je 0xc9d8
leaq 0x28(%rbx), %r14
xorl %ebp, %ebp
movq %rsp, %r15
movl %ebp, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0xe2e4
movq (%rax), %rdi
callq 0x20c0e
incl %ebp
cmpl 0xe0(%rbx), %ebp
jb 0xc9b8
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x60f0
movq %rax, %rbx
movq %r14, %rdi
jmp 0xc9fa
movq %rax, %rbx
movq %r12, %rdi
callq 0x63f0
movq %rbx, %rdi
callq 0x6670
nop