// File: jovermann[P]streplace/src/CommandLineParser.cpp
// Function: ut1::CommandLineParser::parseShortOptions(int, char const**, int&)
void CommandLineParser::parseShortOptions(int argc, const char* argv[], int& i)
{
    for (int j = 1; argv[i][j]; j++)
    {
        char    opt    = argv[i][j];
        Option* option = getShortOption(opt);
        if (option)
        {
            if (option->hasArg())
            {
                if (argv[i][j + 1])
                {
                    // -fvalue
                    option->setValue(argv[i] + j + 1, listSepChar);
                    break;
                }
                else
                {
                    // -f value
                    if (++i < argc)
                    {
                        option->setValue(argv[i], listSepChar);
                    }
                    else
                    {
                        error("Option --" + option->longOption + " requires an argument.");
                    }
                }
            }
            else
            {
                // -f
                option->setValue("", 0);
            }
        }
        else
        {
            error("Unknown option -" + std::string(1, opt) + "!");
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1c0, %rsp            # imm = 0x1C0
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x168(%rbp)
movl $0x1, -0x24(%rbp)
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x99ff
movq -0x168(%rbp), %rdi
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x25(%rbp)
movsbl -0x25(%rbp), %esi
callq 0x8880
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x98f8
movq -0x30(%rbp), %rdi
callq 0xc5b0
testb $0x1, %al
jne 0x9603
jmp 0x9851
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movl -0x24(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
cmpb $0x0, (%rax,%rcx)
je 0x96e0
movq -0x30(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
leaq 0x1(%rax,%rcx), %rax
movq %rax, -0x178(%rbp)
leaq -0x51(%rbp), %rdi
movq %rdi, -0x170(%rbp)
callq 0x7a50
movq -0x178(%rbp), %rsi
movq -0x170(%rbp), %rdx
leaq -0x50(%rbp), %rdi
callq 0xb310
jmp 0x9678
movq -0x180(%rbp), %rdi
movq -0x168(%rbp), %rax
movsbl 0x90(%rax), %edx
leaq -0x50(%rbp), %rsi
callq 0x7d40
jmp 0x9698
leaq -0x50(%rbp), %rdi
callq 0x73c0
leaq -0x51(%rbp), %rdi
callq 0x7670
jmp 0x99ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x96d2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x73c0
leaq -0x51(%rbp), %rdi
callq 0x7670
jmp 0x9a08
movq -0x20(%rbp), %rcx
movl (%rcx), %eax
addl $0x1, %eax
movl %eax, (%rcx)
cmpl -0xc(%rbp), %eax
jge 0x97bb
movq -0x30(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x190(%rbp)
leaq -0x89(%rbp), %rdi
movq %rdi, -0x188(%rbp)
callq 0x7a50
movq -0x190(%rbp), %rsi
movq -0x188(%rbp), %rdx
leaq -0x88(%rbp), %rdi
callq 0xb310
jmp 0x9744
movq -0x198(%rbp), %rdi
movq -0x168(%rbp), %rax
movsbl 0x90(%rax), %edx
leaq -0x88(%rbp), %rsi
callq 0x7d40
jmp 0x9767
leaq -0x88(%rbp), %rdi
callq 0x73c0
leaq -0x89(%rbp), %rdi
callq 0x7670
jmp 0x984a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x97aa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x73c0
leaq -0x89(%rbp), %rdi
callq 0x7670
jmp 0x9a08
movq -0x30(%rbp), %rdx
addq $0x8, %rdx
leaq 0x40a84(%rip), %rsi     # 0x4a24e
leaq -0xd0(%rbp), %rdi
movq %rdi, -0x1a0(%rbp)
callq 0xb5b0
movq -0x1a0(%rbp), %rsi
leaq 0x40a6d(%rip), %rdx     # 0x4a258
leaq -0xb0(%rbp), %rdi
callq 0xb720
jmp 0x97f9
movq -0x168(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
movl $0x1, %edx
callq 0xb0f0
jmp 0x9813
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x9839
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x73c0
leaq -0xd0(%rbp), %rdi
callq 0x73c0
jmp 0x9a08
jmp 0x984c
jmp 0x98f3
movq -0x30(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq -0xf1(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
callq 0x7a50
movq -0x1a8(%rbp), %rdx
leaq 0x40811(%rip), %rsi     # 0x4a08e
leaq -0xf0(%rbp), %rdi
callq 0xb310
jmp 0x988b
movq -0x1b0(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
xorl %edx, %edx
callq 0x7d40
jmp 0x98a2
leaq -0xf0(%rbp), %rdi
callq 0x73c0
leaq -0xf1(%rbp), %rdi
callq 0x7670
jmp 0x98f3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x98e2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x73c0
leaq -0xf1(%rbp), %rdi
callq 0x7670
jmp 0x9a08
jmp 0x99ef
movsbl -0x25(%rbp), %eax
movl %eax, -0x1bc(%rbp)
leaq -0x159(%rbp), %rdi
movq %rdi, -0x1b8(%rbp)
callq 0x7a50
movl -0x1bc(%rbp), %edx
movq -0x1b8(%rbp), %rcx
leaq -0x158(%rbp), %rdi
movl $0x1, %esi
callq 0xb7c0
jmp 0x9935
leaq 0x4094f(%rip), %rsi     # 0x4a28b
leaq -0x138(%rbp), %rdi
leaq -0x158(%rbp), %rdx
callq 0xb770
jmp 0x9951
leaq 0x4079b(%rip), %rdx     # 0x4a0f3
leaq -0x118(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0xb720
jmp 0x996d
movq -0x168(%rbp), %rdi
leaq -0x118(%rbp), %rsi
movl $0x1, %edx
callq 0xb0f0
jmp 0x9987
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x99e1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x99d5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x99c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x73c0
leaq -0x138(%rbp), %rdi
callq 0x73c0
leaq -0x158(%rbp), %rdi
callq 0x73c0
leaq -0x159(%rbp), %rdi
callq 0x7670
jmp 0x9a08
jmp 0x99f1
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x959c
addq $0x1c0, %rsp            # imm = 0x1C0
popq %rbp
retq
movq -0x60(%rbp), %rdi
callq 0x7a30
nopw %cs:(%rax,%rax)