// File: /workspace/github_cpp_makefile_star2_O1/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 0x648c
movq %r14, %rdi
callq 0x64ea
leaq 0x366a(%rip), %rsi      # 0x93e8
leaq 0x78(%rsp), %rdi
callq 0x30b0
testl %eax, %eax
je 0x5dee
movq 0x8(%rsp), %rax
movq 0x8(%rax), %r14
leaq 0x74cc(%rip), %rdi      # 0xd268
leaq 0x78(%rsp), %rsi
callq 0x8142
testq %rax, %rax
je 0x5fe4
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 0x5fbc
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x7472(%rip), %rbx      # 0xd278
testq %rbx, %rbx
je 0x5eb0
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 0x72a4
movq %r12, %rdi
movq %r15, %rsi
leaq 0x58(%rsp), %rdx
callq 0x7594
movq %r13, %rdi
movq %r12, %rsi
callq 0x8234
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x5e6c
callq 0x3240
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x5e86
callq 0x3240
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x5e95
callq 0x3240
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5ea4
callq 0x3240
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x5e2b
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %r15
cmpq %r15, %r14
je 0x5eec
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 0x847c
movq %r14, %rdi
movq %r15, %rsi
callq 0x8560
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %rbp
cmpq %rbp, %r14
je 0x5fb2
leaq 0x38(%rsp), %rbx
leaq 0x28(%rsp), %r15
leaq 0x3510(%rip), %r12      # 0x9420
movq %r15, %rdi
movq %r14, %rsi
callq 0x735c
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 0x5f96
callq 0x3240
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5fa5
callq 0x3240
addq $0x40, %r14
cmpq %rbp, %r14
jne 0x5f10
leaq 0x10(%rsp), %rdi
callq 0x73b8
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5fd2
callq 0x3240
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x345f(%rip), %rdi      # 0x944a
callq 0x3310
jmp 0x6050
movq %rax, %r14
jmp 0x608d
movq %rax, %r14
cmpl $0x1, %edx
jne 0x608d
movq %r14, %rdi
callq 0x3100
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rbx
leaq 0x33f2(%rip), %rsi      # 0x9410
movl $0xf, %edx
movq %rbx, %rdi
callq 0x32a0
movq %rbx, %rdi
callq 0x3120
callq 0x33a0
jmp 0x5fbc
jmp 0x5ff2
movq %rax, %r14
callq 0x33a0
jmp 0x608d
movq %rax, %rdi
callq 0x4684
jmp 0x6050
movq %rax, %r14
jmp 0x6083
movq %rax, %r14
jmp 0x606a
movq %rax, %r14
leaq 0x98(%rsp), %rdi
callq 0x7308
leaq 0x28(%rsp), %rdi
callq 0x7332
jmp 0x6083
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x7308
leaq 0x10(%rsp), %rdi
callq 0x73b8
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x60a3
callq 0x3240
movq %r14, %rdi
callq 0x3410
nop