// File: /workspace/github_cpp_makefile_star2_O2/lega911[P]ijson/src/connect.cpp
// Function: Connect::send_help()
void Connect::send_help() {
    Buffer res(256);
    res.add("ijson ");
    res.add(ijson_version);
    res.add(help_msg);
    LOCK _l(server->global_lock);
    std::vector<QueueLine*> list;
    for(const auto &ql : server->_queue_list) {
        if(ql == NULL) continue;
        list.push_back(ql);
    }
    std::sort(list.begin(), list.end(), [](const auto& l,const auto& r) {
        return l->name.compare(r->name) < 0;
    });

    for(const auto &ql : list) {
        res.add(ql->name);

        int client_count = 0;
        int worker_count = 0;
        for(int i=0;i<server->threads;i++) {
            client_count += ql->queue[i].clients.size();
            worker_count += ql->queue[i].workers.size();
        }

        for(int i=ql->name.size();i<20;i++) res.add(" ", 1);
        res.add(" ", 1);
        res.add_number(client_count);
        res.add("/");
        res.add_number(worker_count);
        if(!ql->info.empty()) {
            res.add("  ");
            int start = res.size();
            res.add(ql->info);
        }
        res.add("\n");
    }
    send.status("200 OK")->done(res);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, -0x30(%rbp)
leaq -0x40(%rbp), %rbx
movq %rbx, %rdi
movl $0x100, %esi            # imm = 0x100
callq 0xd53a
leaq 0xbb63(%rip), %rsi      # 0x186a4
movq %rbx, %rdi
callq 0xd5ee
leaq 0xbf0c(%rip), %rsi      # 0x18a5c
leaq -0x40(%rbp), %rdi
callq 0xd5ee
movq 0x13718(%rip), %rsi     # 0x20278
leaq -0x40(%rbp), %rdi
callq 0xd5ee
movl $0x20058, %edi          # imm = 0x20058
movq -0x30(%rbp), %r14
addq 0x48(%r14), %rdi
movq %rdi, -0x48(%rbp)
callq 0xd764
xorps %xmm0, %xmm0
leaq -0x60(%rbp), %rbx
andq $0x0, 0x10(%rbx)
movaps %xmm0, (%rbx)
movq 0x48(%r14), %rax
movq 0x20110(%rax), %r15
movq 0x20118(%rax), %r14
cmpq %r14, %r15
je 0xcbbc
cmpq $0x0, (%r15)
je 0xcbb6
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd72a
addq $0x8, %r15
jmp 0xcba0
movq -0x60(%rbp), %r15
movq -0x58(%rbp), %rbx
cmpq %rbx, %r15
je 0xcc27
movq %rbx, %r14
subq %r15, %r14
movq %r14, %rax
sarq $0x3, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0xce14
cmpq $0x81, %r14
jl 0xcc1c
leaq 0x80(%r15), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xd114
cmpq %rbx, %r12
je 0xcc27
movq %r12, %rdi
callq 0xd187
addq $0x8, %r12
jmp 0xcc09
movq %r15, %rdi
movq %rbx, %rsi
callq 0xd114
movq -0x60(%rbp), %rbx
movq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x40(%rbp), %r15
cmpq -0x68(%rbp), %rbx
je 0xcd39
movq (%rbx), %rsi
movq %r15, %rdi
callq 0xd300
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %r13d, %r13d
xorl %r12d, %r12d
movq -0x30(%rbp), %rax
movq 0x48(%rax), %rax
movslq 0x28(%rax), %rcx
movq (%rbx), %rax
cmpq %rcx, %r15
jge 0xcc9e
movq 0x40(%rax), %rax
leaq (%rax,%r14), %rdi
addq $0x50, %rdi
callq 0xd714
addl %eax, %r13d
movq (%rbx), %rax
movq 0x40(%rax), %rdi
addq %r14, %rdi
callq 0xd74e
addl %eax, %r12d
incq %r15
addq $0xa0, %r14
jmp 0xcc58
movl 0x8(%rax), %r14d
leaq -0x40(%rbp), %r15
cmpl $0x14, %r14d
jge 0xccc3
movq %r15, %rdi
leaq 0xb9f6(%rip), %rsi      # 0x186ac
pushq $0x1
popq %rdx
callq 0xd24c
incl %r14d
jmp 0xcca6
movq %r15, %rdi
leaq 0xb9df(%rip), %rsi      # 0x186ac
pushq $0x1
popq %rdx
callq 0xd24c
movslq %r13d, %rsi
movq %r15, %rdi
callq 0xd54a
movq %r15, %rdi
leaq 0xb5be(%rip), %rsi      # 0x182a8
callq 0xd5ee
movslq %r12d, %rsi
movq %r15, %rdi
callq 0xd54a
movq (%rbx), %rax
cmpl $0x0, 0x50(%rax)
je 0xcd21
movq %r15, %rdi
leaq 0xb99e(%rip), %rsi      # 0x186ab
callq 0xd5ee
movq (%rbx), %rsi
addq $0x48, %rsi
movq %r15, %rdi
callq 0xd300
movq %r15, %rdi
leaq 0xb977(%rip), %rsi      # 0x186a2
callq 0xd5ee
addq $0x8, %rbx
jmp 0xcc37
movq -0x30(%rbp), %rbx
addq $0x18, %rbx
leaq 0xb4f1(%rip), %rsi      # 0x18239
movq %rbx, %rdi
callq 0xb93e
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0xbe84
leaq -0x60(%rbp), %rdi
callq 0xda28
movq -0x48(%rbp), %rdi
callq 0xa220
leaq -0x40(%rbp), %rdi
callq 0xd6dc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xcd8a
jmp 0xcd97
movq %rax, %rbx
jmp 0xcdac
jmp 0xcd97
jmp 0xcd97
jmp 0xcd97
jmp 0xcd97
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0xda28
movq -0x48(%rbp), %rdi
callq 0xa220
leaq -0x40(%rbp), %rdi
callq 0xd6dc
movq %rbx, %rdi
callq 0xa470
nop