// File: walker-xian[P]teisye/heapperf/heapperf.cpp
// Function: application::parse_args(int, char**)
void parse_args(int argc, char *args[])
    {
        for (int i = 1; i < argc; i++)
        {
            string arg(args[i]);

            if (arg == "-h")
            {
                throw runtime_error(_usage);
            }
            else if (arg == "-c")
            {
                if (!args[++i]) throw runtime_error("-c missing a number");
                _case_mask = strtol(args[i], nullptr, 0);
                if (_case_mask <= 0) throw runtime_error("-c invalid number");
            }
            else if (arg == "-l")
            {
                if (!args[++i]) throw runtime_error("-l missing a number");
                _num_of_loops = stoi(args[i]);
                if (_num_of_loops <= 0) throw runtime_error("-l invalid number");
            }
            else if (arg == "-t")
            {
                if (!args[++i]) throw runtime_error("-t missing a number");
                _num_of_threads = stoi(args[i]);
                if (_num_of_threads <= 0) throw runtime_error("-t invalid number");
            }
            else
            {
                _allocator_id = static_cast<allocator_id>(stoi(args[i]));
                if (_allocator_id != _malloc && _allocator_id != _teisye) throw runtime_error("invalid allocator id");
            }
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movl $0x1, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x632f
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0xe8(%rbp)
leaq -0x41(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
callq 0x5690
movq -0xe8(%rbp), %rsi
movq -0xe0(%rbp), %rdx
leaq -0x40(%rbp), %rdi
callq 0x70c0
jmp 0x5c40
leaq -0x41(%rbp), %rdi
callq 0x5440
leaq 0x34539(%rip), %rsi     # 0x3a189
leaq -0x40(%rbp), %rdi
callq 0x7170
movb %al, -0xe9(%rbp)
jmp 0x5c61
movb -0xe9(%rbp), %al
testb $0x1, %al
jne 0x5c70
jmp 0x5cfc
movl $0x10, %edi
callq 0x51e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xf8(%rbp)
leaq 0x34fa2(%rip), %rsi     # 0x3ac30
callq 0x5150
jmp 0x5c95
movq -0xf8(%rbp), %rdi
movq 0x5134d(%rip), %rsi     # 0x56ff0
movq 0x512d6(%rip), %rdx     # 0x56f80
callq 0x5620
jmp 0x6341
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x41(%rbp), %rdi
callq 0x5440
jmp 0x6338
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x6324
movq -0xf8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x5330
jmp 0x6324
leaq 0x34489(%rip), %rsi     # 0x3a18c
leaq -0x40(%rbp), %rdi
callq 0x7170
movb %al, -0xf9(%rbp)
jmp 0x5d14
movb -0xf9(%rbp), %al
testb $0x1, %al
jne 0x5d23
jmp 0x5e31
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x1c(%rbp)
movslq %ecx, %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x5d9b
movl $0x10, %edi
callq 0x51e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x108(%rbp)
leaq 0x34437(%rip), %rsi     # 0x3a18f
callq 0x5150
jmp 0x5d5f
movq -0x108(%rbp), %rdi
movq 0x51283(%rip), %rsi     # 0x56ff0
movq 0x5120c(%rip), %rdx     # 0x56f80
callq 0x5620
jmp 0x6341
movq -0x108(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x5330
jmp 0x6324
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x5738
movq %rax, %rcx
movq -0xd8(%rbp), %rax
movl %ecx, 0x84(%rax)
cmpl $0x0, 0x84(%rax)
jg 0x5e2c
movl $0x10, %edi
callq 0x51e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x110(%rbp)
leaq 0x343ba(%rip), %rsi     # 0x3a1a3
callq 0x5150
jmp 0x5df0
movq -0x110(%rbp), %rdi
movq 0x511f2(%rip), %rsi     # 0x56ff0
movq 0x5117b(%rip), %rdx     # 0x56f80
callq 0x5620
jmp 0x6341
movq -0x110(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x5330
jmp 0x6324
jmp 0x630b
leaq 0x3437d(%rip), %rsi     # 0x3a1b5
leaq -0x40(%rbp), %rdi
callq 0x7170
movb %al, -0x111(%rbp)
jmp 0x5e49
movb -0x111(%rbp), %al
testb $0x1, %al
jne 0x5e58
jmp 0x5ff6
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x1c(%rbp)
movslq %ecx, %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x5ed0
movl $0x10, %edi
callq 0x51e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x120(%rbp)
leaq 0x3432b(%rip), %rsi     # 0x3a1b8
callq 0x5150
jmp 0x5e94
movq -0x120(%rbp), %rdi
movq 0x5114e(%rip), %rsi     # 0x56ff0
movq 0x510d7(%rip), %rdx     # 0x56f80
callq 0x5620
jmp 0x6341
movq -0x120(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x5330
jmp 0x6324
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x130(%rbp)
leaq -0x79(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x5690
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
leaq -0x78(%rbp), %rdi
callq 0x70c0
jmp 0x5f0c
xorl %eax, %eax
movl %eax, %esi
leaq -0x78(%rbp), %rdi
movl $0xa, %edx
callq 0x71a0
movl %eax, -0x134(%rbp)
jmp 0x5f26
movq -0xd8(%rbp), %rax
movl -0x134(%rbp), %ecx
movl %ecx, 0x80(%rax)
leaq -0x78(%rbp), %rdi
callq 0x5290
leaq -0x79(%rbp), %rdi
callq 0x5440
movq -0xd8(%rbp), %rax
cmpl $0x0, 0x80(%rax)
jg 0x5ff1
movl $0x10, %edi
callq 0x51e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x140(%rbp)
leaq 0x3424f(%rip), %rsi     # 0x3a1cc
callq 0x5150
jmp 0x5f84
movq -0x140(%rbp), %rdi
movq 0x5105e(%rip), %rsi     # 0x56ff0
movq 0x50fe7(%rip), %rdx     # 0x56f80
callq 0x5620
jmp 0x6341
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x5fc6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x5290
leaq -0x79(%rbp), %rdi
callq 0x5440
jmp 0x6324
movq -0x140(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x5330
jmp 0x6324
jmp 0x6309
leaq 0x341e1(%rip), %rsi     # 0x3a1de
leaq -0x40(%rbp), %rdi
callq 0x7170
movb %al, -0x141(%rbp)
jmp 0x600e
movb -0x141(%rbp), %al
testb $0x1, %al
jne 0x601d
jmp 0x61ca
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x1c(%rbp)
movslq %ecx, %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x6095
movl $0x10, %edi
callq 0x51e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x150(%rbp)
leaq 0x3418f(%rip), %rsi     # 0x3a1e1
callq 0x5150
jmp 0x6059
movq -0x150(%rbp), %rdi
movq 0x50f89(%rip), %rsi     # 0x56ff0
movq 0x50f12(%rip), %rdx     # 0x56f80
callq 0x5620
jmp 0x6341
movq -0x150(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x5330
jmp 0x6324
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x160(%rbp)
leaq -0xa1(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0x5690
movq -0x160(%rbp), %rsi
movq -0x158(%rbp), %rdx
leaq -0xa0(%rbp), %rdi
callq 0x70c0
jmp 0x60d7
xorl %eax, %eax
movl %eax, %esi
leaq -0xa0(%rbp), %rdi
movl $0xa, %edx
callq 0x71a0
movl %eax, -0x164(%rbp)
jmp 0x60f4
movq -0xd8(%rbp), %rax
movl -0x164(%rbp), %ecx
movl %ecx, 0x7c(%rax)
leaq -0xa0(%rbp), %rdi
callq 0x5290
leaq -0xa1(%rbp), %rdi
callq 0x5440
movq -0xd8(%rbp), %rax
cmpl $0x0, 0x7c(%rax)
jg 0x61c5
movl $0x10, %edi
callq 0x51e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x170(%rbp)
leaq 0x340aa(%rip), %rsi     # 0x3a1f5
callq 0x5150
jmp 0x6152
movq -0x170(%rbp), %rdi
movq 0x50e90(%rip), %rsi     # 0x56ff0
movq 0x50e19(%rip), %rdx     # 0x56f80
callq 0x5620
jmp 0x6341
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x6197
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x5290
leaq -0xa1(%rbp), %rdi
callq 0x5440
jmp 0x6324
movq -0x170(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x5330
jmp 0x6324
jmp 0x6307
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x180(%rbp)
leaq -0xc9(%rbp), %rdi
movq %rdi, -0x178(%rbp)
callq 0x5690
movq -0x180(%rbp), %rsi
movq -0x178(%rbp), %rdx
leaq -0xc8(%rbp), %rdi
callq 0x70c0
jmp 0x620c
xorl %eax, %eax
movl %eax, %esi
leaq -0xc8(%rbp), %rdi
movl $0xa, %edx
callq 0x71a0
movl %eax, -0x184(%rbp)
jmp 0x6229
movq -0xd8(%rbp), %rax
movl -0x184(%rbp), %ecx
movl %ecx, 0x78(%rax)
leaq -0xc8(%rbp), %rdi
callq 0x5290
leaq -0xc9(%rbp), %rdi
callq 0x5440
movq -0xd8(%rbp), %rax
cmpl $0x0, 0x78(%rax)
je 0x6305
movq -0xd8(%rbp), %rax
cmpl $0x1, 0x78(%rax)
je 0x6305
movl $0x10, %edi
callq 0x51e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x190(%rbp)
leaq 0x33f76(%rip), %rsi     # 0x3a207
callq 0x5150
jmp 0x6298
movq -0x190(%rbp), %rdi
movq 0x50d4a(%rip), %rsi     # 0x56ff0
movq 0x50cd3(%rip), %rdx     # 0x56f80
callq 0x5620
jmp 0x6341
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x62dd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x5290
leaq -0xc9(%rbp), %rdi
callq 0x5440
jmp 0x6324
movq -0x190(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x5330
jmp 0x6324
jmp 0x6307
jmp 0x6309
jmp 0x630b
jmp 0x630d
leaq -0x40(%rbp), %rdi
callq 0x5290
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x5bf8
leaq -0x40(%rbp), %rdi
callq 0x5290
jmp 0x6338
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x5680
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)