// File: /workspace/github_cpp_makefile_star2_O3/alfanick[P]rest-cpp/src/rest/worker.cpp
// Function: REST::Worker::Worker(int, int)
Worker::Worker(int i, int sc) :
 id(i), streamers_count(sc), clients_queue(1024) {
  THREAD_NAME("rest-cpp - main thread");
  clients_count.store(0);
  server_header = "rest-cpp, worker " + std::to_string(id);
  streamers.reserve(sc);
  run();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
leaq 0x10(%rdi), %rax
leaq 0x20(%rdi), %r8
leaq 0x48(%rdi), %rcx
leaq 0x60(%rdi), %r12
vxorps %xmm0, %xmm0, %xmm0
xorl %ebx, %ebx
movq %rbx, 0x8(%rdi)
movl %edx, %ebp
movq %rdi, %r14
movq %r8, 0x10(%rdi)
movq %rbx, 0x18(%rdi)
movb $0x0, 0x20(%rdi)
movl %esi, 0x30(%rdi)
movl %edx, 0x38(%rdi)
movq %rax, 0x8(%rsp)
movq %r8, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
vmovups %ymm0, 0x40(%rdi)
movl $0x400, %esi            # imm = 0x400
movq %r12, %rdi
vzeroupper
callq 0x21310
leaq 0xc0(%r14), %rdi
movq $0x0, 0xb8(%r14)
xorl %esi, %esi
xorl %edx, %edx
callq 0x21f50
callq 0x21fe0
leaq 0x7309(%rip), %rsi      # 0x3f303
movq %rax, %rdi
callq 0x22530
xchgl %ebx, (%r14)
movl $0x1, %r15d
movl 0x30(%r14), %r13d
movl %r13d, %ebx
negl %ebx
cmovsl %r13d, %ebx
cmpl $0xa, %ebx
jb 0x38066
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x3805d
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x38063
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x38066
movl %ecx, %edx
imulq %rax, %rdx
addl $0x4, %r15d
shrq $0x2d, %rdx
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3802a
addl $-0x3, %r15d
jmp 0x38066
addl $-0x2, %r15d
jmp 0x38066
decl %r15d
shrl $0x1f, %r13d
leaq 0x38(%rsp), %rax
movq %r12, 0x20(%rsp)
leal (%r15,%r13), %esi
movq %rax, -0x10(%rax)
leaq 0x28(%rsp), %rdi
movl $0x2d, %edx
callq 0x22520
leaq 0x28(%rsp), %r12
movl %r15d, %esi
movl %ebx, %edx
addq (%r12), %r13
movq %r13, %rdi
callq 0x22a70
leaq 0x7272(%rip), %rcx      # 0x3f31a
movl $0x11, %r8d
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22460
leaq 0x58(%rsp), %r15
movq %rax, %rcx
addq $0x10, %rcx
movq %r15, -0x10(%r15)
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x380e1
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x380ea
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rbx
movq %rbx, %rsi
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x22620
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x38120
callq 0x22130
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x38134
callq 0x22130
movslq %ebp, %rsi
movq 0x10(%rsp), %rdi
callq 0x22800
movq %r14, %rdi
callq 0x21970
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28(%rsp), %rdi
movq %rax, %rbx
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3817b
callq 0x22130
jmp 0x3817b
jmp 0x38178
movq %rax, %rbx
jmp 0x38185
movq %rax, %rbx
movq 0x20(%rsp), %rdi
callq 0x216c0
movq 0x10(%rsp), %rdi
addq $0x40, %r14
callq 0x21140
cmpq $0x0, (%r14)
jne 0x381b5
movq 0x8(%rsp), %rax
movq (%rax), %rdi
cmpq 0x18(%rsp), %rdi
je 0x381ad
callq 0x22130
movq %rbx, %rdi
callq 0x23160
callq 0x213c0