// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %esi, 0x44(%rsp)
cmpl $0x2, %esi
jl 0x4de5
movq %rdx, %rbx
movq %rdi, %r12
movl $0x1, %ebp
leaq 0x48(%rsp), %r15
leaq 0x10(%rsp), %r13
movq %rdi, 0x38(%rsp)
movslq %ebp, %r14
movq (%rbx,%r14,8), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x580e
movq %r15, %rdi
leaq 0x11606(%rip), %rsi     # 0x1611d
callq 0x4090
testl %eax, %eax
je 0x4df4
movq %r15, %rdi
leaq 0x115f2(%rip), %rsi     # 0x16120
callq 0x4090
testl %eax, %eax
je 0x4c1a
movq %r15, %rdi
leaq 0x11604(%rip), %rsi     # 0x16149
callq 0x4090
testl %eax, %eax
je 0x4c46
movq %r15, %rdi
leaq 0x11616(%rip), %rsi     # 0x16172
callq 0x4090
testl %eax, %eax
je 0x4d06
movq (%rbx,%r14,8), %rsi
movq %r13, %rdi
leaq 0xf(%rsp), %rdx
callq 0x580e
movq 0x10(%rsp), %r12
callq 0x4050
movq %rax, %r13
movl (%rax), %r14d
movl $0x0, (%rax)
movq %r12, %rdi
leaq 0x30(%rsp), %rsi
movl $0xa, %edx
callq 0x43e0
cmpq %r12, 0x30(%rsp)
je 0x4e84
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x4e78
movl (%r13), %ecx
cmpl $0x22, %ecx
je 0x4e78
testl %ecx, %ecx
jne 0x4bdc
movl %r14d, (%r13)
movq 0x38(%rsp), %r12
movl %eax, 0x78(%r12)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rcx
cmpq %rcx, %rdi
je 0x4c07
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4310
movl 0x78(%r12), %eax
cmpl $0x2, %eax
leaq 0x10(%rsp), %r13
jb 0x4dbd
jmp 0x4e57
movq 0x8(%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x4e15
xorl %esi, %esi
xorl %edx, %edx
callq 0x43e0
movl %eax, 0x84(%r12)
testl %eax, %eax
jg 0x4dbb
jmp 0x4e36
movq 0x8(%rbx,%r14,8), %rsi
testq %rsi, %rsi
je 0x4ec9
movq %r13, %rdi
leaq 0xf(%rsp), %rdx
callq 0x580e
movq 0x10(%rsp), %r12
callq 0x4050
movq %rax, %r13
movl (%rax), %r14d
movl $0x0, (%rax)
movq %r12, %rdi
leaq 0x30(%rsp), %rsi
movl $0xa, %edx
callq 0x43e0
cmpq %r12, 0x30(%rsp)
je 0x4ebd
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x4eb1
movl (%r13), %ecx
cmpl $0x22, %ecx
je 0x4eb1
testl %ecx, %ecx
jne 0x4cc3
movl %r14d, (%r13)
movq 0x38(%rsp), %r12
movl %eax, 0x80(%r12)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rcx
cmpq %rcx, %rdi
je 0x4cf4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4310
movl 0x80(%r12), %eax
testl %eax, %eax
leaq 0x10(%rsp), %r13
jg 0x4dbb
jmp 0x4e90
movq 0x8(%rbx,%r14,8), %rsi
testq %rsi, %rsi
je 0x4f1d
movq %r13, %rdi
leaq 0xf(%rsp), %rdx
callq 0x580e
movq 0x10(%rsp), %r12
callq 0x4050
movq %rax, %r13
movl (%rax), %r14d
movl $0x0, (%rax)
movq %r12, %rdi
leaq 0x30(%rsp), %rsi
movl $0xa, %edx
callq 0x43e0
cmpq %r12, 0x30(%rsp)
je 0x4f11
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x4f05
movl (%r13), %ecx
cmpl $0x22, %ecx
je 0x4f05
testl %ecx, %ecx
jne 0x4d83
movl %r14d, (%r13)
movq 0x38(%rsp), %r12
movl %eax, 0x7c(%r12)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rcx
cmpq %rcx, %rdi
je 0x4dae
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4310
movl 0x7c(%r12), %eax
testl %eax, %eax
leaq 0x10(%rsp), %r13
jle 0x4ee7
incl %ebp
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4dd9
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4310
incl %ebp
cmpl 0x44(%rsp), %ebp
jl 0x4afb
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x11db8(%rip), %rsi     # 0x16bc0
movq %rax, %rdi
callq 0x4100
jmp 0x4f39
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x112fa(%rip), %rsi     # 0x16123
movq %rax, %rdi
callq 0x4100
jmp 0x4f39
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x112ed(%rip), %rsi     # 0x16137
movq %rax, %rdi
callq 0x4100
jmp 0x4f39
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x11330(%rip), %rsi     # 0x1619b
movq %rax, %rdi
callq 0x4100
jmp 0x4f39
leaq 0x1135b(%rip), %rdi     # 0x161da
callq 0x4410
leaq 0x1134f(%rip), %rdi     # 0x161da
callq 0x41d0
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x112bc(%rip), %rsi     # 0x16160
movq %rax, %rdi
callq 0x4100
jmp 0x4f39
leaq 0x11322(%rip), %rdi     # 0x161da
callq 0x4410
leaq 0x11316(%rip), %rdi     # 0x161da
callq 0x41d0
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x1126f(%rip), %rsi     # 0x1614c
movq %rax, %rdi
callq 0x4100
jmp 0x4f39
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x1128e(%rip), %rsi     # 0x16189
movq %rax, %rdi
callq 0x4100
jmp 0x4f39
leaq 0x112ce(%rip), %rdi     # 0x161da
callq 0x4410
leaq 0x112c2(%rip), %rdi     # 0x161da
callq 0x41d0
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x11244(%rip), %rsi     # 0x16175
movq %rax, %rdi
callq 0x4100
movq 0x1b0b0(%rip), %rsi     # 0x1fff0
movq 0x1b041(%rip), %rdx     # 0x1ff88
movq %r14, %rdi
callq 0x4490
jmp 0x4f93
jmp 0x4f93
jmp 0x4f93
jmp 0x4f93
jmp 0x4f93
jmp 0x4fa0
jmp 0x4f93
jmp 0x4f93
jmp 0x4fa0
jmp 0x4fa0
jmp 0x4f67
jmp 0x4f67
movq %rax, %rbx
cmpl $0x0, (%r13)
jne 0x4f75
movl %r14d, (%r13)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4fa3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4310
jmp 0x4fa3
movq %rax, %rbx
movq %r14, %rdi
callq 0x4260
jmp 0x4fa3
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4fbf
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4310
movq %rbx, %rdi
callq 0x44d0
nop