// File: /workspace/github_cpp_makefile_star2_O1/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
movl %edx, %ebp
movq %rdi, %r14
xorl %ebx, %ebx
movq %rbx, 0x8(%rdi)
leaq 0x10(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0x20(%rdi), %rax
movq %rax, 0x18(%rsp)
movq %rax, 0x10(%rdi)
movq %rbx, 0x18(%rdi)
movb $0x0, 0x20(%rdi)
movl %esi, 0x30(%rdi)
movl %edx, 0x38(%rdi)
leaq 0x48(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x60(%rdi), %r12
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, 0x40(%rdi)
movl $0x400, %esi            # imm = 0x400
movq %r12, %rdi
vzeroupper
callq 0x21310
movq $0x0, 0xb8(%r14)
leaq 0xc0(%r14), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21f50
callq 0x21fe0
leaq 0x81dd(%rip), %rsi      # 0x40303
movq %rax, %rdi
callq 0x22530
xchgl %ebx, (%r14)
movl 0x30(%r14), %r13d
movl %r13d, %ebx
negl %ebx
cmovsl %r13d, %ebx
movl $0x1, %r15d
cmpl $0xa, %ebx
jb 0x38192
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x38189
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3818f
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x38192
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x38156
addl $-0x3, %r15d
jmp 0x38192
addl $-0x2, %r15d
jmp 0x38192
decl %r15d
movq %r12, 0x20(%rsp)
shrl $0x1f, %r13d
leal (%r15,%r13), %esi
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x28(%rsp), %rdi
movl $0x2d, %edx
callq 0x22520
leaq 0x28(%rsp), %r12
addq (%r12), %r13
movq %r13, %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0x22a70
leaq 0x8146(%rip), %rcx      # 0x4031a
movl $0x11, %r8d
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x22460
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3820d
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x38216
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x22620
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x3824c
callq 0x22130
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x38260
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 %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x382a7
callq 0x22130
jmp 0x382a7
jmp 0x382a4
movq %rax, %rbx
jmp 0x382b1
movq %rax, %rbx
movq 0x20(%rsp), %rdi
callq 0x216c0
addq $0x40, %r14
movq 0x10(%rsp), %rdi
callq 0x21140
cmpq $0x0, (%r14)
jne 0x382e1
movq 0x8(%rsp), %rax
movq (%rax), %rdi
cmpq 0x18(%rsp), %rdi
je 0x382d9
callq 0x22130
movq %rbx, %rdi
callq 0x23170
callq 0x213c0