// File: /workspace/github_cpp_makefile_star2_O3/pokorj54[P]Pathfinder-utilities/src/CommandLine.cpp
// Function: CommandLine::HandleHelp(CommandLine::Arguments&)
void CommandLine::HandleHelp(Arguments & args)
{
    string cmd = args.PopFirstIfNotEmpty();
    args.ThrowIfNotEmpty();
    if(cmd == "")
    {
        vector<pair<string, string>> commands;
        for(const pair<string, pair<CommandLine::HandleCmd, string>> & c : cmdTranslation)
        {
            commands.push_back(make_pair(c.first, c.second.second));
        }
        sort(commands.begin(), commands.end());
        for(const pair<string,string> p : commands)
        {
            *output << p.first << " - " << p.second << endl;
        }
        return;
    }
    try
    {
        *output << cmdTranslation.at(cmd).second << endl;
    }
    catch(const out_of_range & e)
    {
        *output << "Unknown command" << endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x634c
movq %r14, %rdi
callq 0x63aa
leaq 0x37ae(%rip), %rsi      # 0x93e8
leaq 0x78(%rsp), %rdi
callq 0x30b0
testl %eax, %eax
je 0x5caa
movq 0x8(%rsp), %rax
movq 0x8(%rax), %r14
leaq 0x7610(%rip), %rdi      # 0xd268
leaq 0x78(%rsp), %rsi
callq 0x8000
testq %rax, %rax
je 0x5ea5
movq 0x38(%rax), %rsi
movq 0x40(%rax), %rdx
movq %r14, %rdi
callq 0x32a0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3250
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3190
jmp 0x5e7d
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x75b6(%rip), %rbx      # 0xd278
testq %rbx, %rbx
je 0x5daf
leaq 0x68(%rsp), %r14
leaq 0x38(%rsp), %rbp
leaq 0x28(%rsp), %r15
leaq 0x98(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x8(%rbx), %rsi
movq %r15, %rdi
callq 0x7166
movq %r12, %rdi
movq %r15, %rsi
leaq 0x58(%rsp), %rdx
callq 0x7456
movq %r13, %rdi
movq %r12, %rsi
callq 0x80f2
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x5d28
callq 0x3240
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x5d42
callq 0x3240
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x5d51
callq 0x3240
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5d60
callq 0x3240
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x5ce7
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %r15
cmpq %r15, %r14
je 0x5db2
movq %r15, %rax
subq %r14, %rax
sarq $0x6, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x833a
movq %r14, %rdi
movq %r15, %rsi
callq 0x840e
movq 0x10(%rsp), %r14
jmp 0x5db2
xorl %r14d, %r14d
movq 0x18(%rsp), %rbp
cmpq %rbp, %r14
je 0x5e73
leaq 0x38(%rsp), %rbx
leaq 0x28(%rsp), %r15
leaq 0x364f(%rip), %r12      # 0x9420
movq %r15, %rdi
movq %r14, %rsi
callq 0x721e
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x32a0
movq %rax, %r13
movl $0x3, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x32a0
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %r13, %rdi
callq 0x32a0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3250
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3190
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x5e57
callq 0x3240
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5e66
callq 0x3240
addq $0x40, %r14
cmpq %rbp, %r14
jne 0x5dd1
leaq 0x10(%rsp), %rdi
callq 0x727a
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e93
callq 0x3240
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x359e(%rip), %rdi      # 0x944a
callq 0x3310
jmp 0x5f11
movq %rax, %r14
jmp 0x5f4e
movq %rax, %r14
cmpl $0x1, %edx
jne 0x5f4e
movq %r14, %rdi
callq 0x3100
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rbx
leaq 0x3531(%rip), %rsi      # 0x9410
movl $0xf, %edx
movq %rbx, %rdi
callq 0x32a0
movq %rbx, %rdi
callq 0x3120
callq 0x33a0
jmp 0x5e7d
jmp 0x5eb3
movq %rax, %r14
callq 0x33a0
jmp 0x5f4e
movq %rax, %rdi
callq 0x4659
jmp 0x5f11
movq %rax, %r14
jmp 0x5f44
movq %rax, %r14
jmp 0x5f2b
movq %rax, %r14
leaq 0x98(%rsp), %rdi
callq 0x71ca
leaq 0x28(%rsp), %rdi
callq 0x71f4
jmp 0x5f44
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x71ca
leaq 0x10(%rsp), %rdi
callq 0x727a
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5f64
callq 0x3240
movq %r14, %rdi
callq 0x3410