// File: /workspace/github_cpp_makefile_star2_O1/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 0x4e11
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 0x584e
movq %r15, %rdi
leaq 0x115d6(%rip), %rsi     # 0x1611d
callq 0x4090
testl %eax, %eax
je 0x4e20
movq %r15, %rdi
leaq 0x115c2(%rip), %rsi     # 0x16120
callq 0x4090
testl %eax, %eax
je 0x4c48
movq %r15, %rdi
leaq 0x115d4(%rip), %rsi     # 0x16149
callq 0x4090
testl %eax, %eax
je 0x4c74
movq %r15, %rdi
leaq 0x115e6(%rip), %rsi     # 0x16172
callq 0x4090
testl %eax, %eax
je 0x4d33
movq (%rbx,%r14,8), %rsi
movq %r13, %rdi
leaq 0xf(%rsp), %rdx
callq 0x584e
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 0x4eb0
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x4ea4
movl (%r13), %ecx
cmpl $0x22, %ecx
je 0x4ea4
testl %ecx, %ecx
jne 0x4c0c
movl %r14d, (%r13)
movq 0x38(%rsp), %r12
movl %eax, 0x78(%r12)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4c32
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4310
cmpl $0x2, 0x78(%r12)
leaq 0x10(%rsp), %r13
jb 0x4de9
jmp 0x4e83
movq 0x8(%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x4e41
xorl %esi, %esi
xorl %edx, %edx
callq 0x43e0
movl %eax, 0x84(%r12)
testl %eax, %eax
jg 0x4de7
jmp 0x4e62
movq 0x8(%rbx,%r14,8), %rsi
testq %rsi, %rsi
je 0x4ef5
movq %r13, %rdi
leaq 0xf(%rsp), %rdx
callq 0x584e
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 0x4ee9
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x4edd
movl (%r13), %ecx
cmpl $0x22, %ecx
je 0x4edd
testl %ecx, %ecx
jne 0x4cf1
movl %r14d, (%r13)
movq 0x38(%rsp), %r12
movl %eax, 0x80(%r12)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4d1a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4310
cmpl $0x0, 0x80(%r12)
leaq 0x10(%rsp), %r13
jg 0x4de7
jmp 0x4ebc
movq 0x8(%rbx,%r14,8), %rsi
testq %rsi, %rsi
je 0x4f49
movq %r13, %rdi
leaq 0xf(%rsp), %rdx
callq 0x584e
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 0x4f3d
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x4f31
movl (%r13), %ecx
cmpl $0x22, %ecx
je 0x4f31
testl %ecx, %ecx
jne 0x4db0
movl %r14d, (%r13)
movq 0x38(%rsp), %r12
movl %eax, 0x7c(%r12)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4dd6
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4310
cmpl $0x0, 0x7c(%r12)
leaq 0x10(%rsp), %r13
jle 0x4f13
incl %ebp
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4e05
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4310
incl %ebp
cmpl 0x44(%rsp), %ebp
jl 0x4b2b
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 0x11d8c(%rip), %rsi     # 0x16bc0
movq %rax, %rdi
callq 0x4100
jmp 0x4f65
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x112ce(%rip), %rsi     # 0x16123
movq %rax, %rdi
callq 0x4100
jmp 0x4f65
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x112c1(%rip), %rsi     # 0x16137
movq %rax, %rdi
callq 0x4100
jmp 0x4f65
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x11304(%rip), %rsi     # 0x1619b
movq %rax, %rdi
callq 0x4100
jmp 0x4f65
leaq 0x1132f(%rip), %rdi     # 0x161da
callq 0x4410
leaq 0x11323(%rip), %rdi     # 0x161da
callq 0x41d0
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x11290(%rip), %rsi     # 0x16160
movq %rax, %rdi
callq 0x4100
jmp 0x4f65
leaq 0x112f6(%rip), %rdi     # 0x161da
callq 0x4410
leaq 0x112ea(%rip), %rdi     # 0x161da
callq 0x41d0
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x11243(%rip), %rsi     # 0x1614c
movq %rax, %rdi
callq 0x4100
jmp 0x4f65
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x11262(%rip), %rsi     # 0x16189
movq %rax, %rdi
callq 0x4100
jmp 0x4f65
leaq 0x112a2(%rip), %rdi     # 0x161da
callq 0x4410
leaq 0x11296(%rip), %rdi     # 0x161da
callq 0x41d0
movl $0x10, %edi
callq 0x4170
movq %rax, %r14
leaq 0x11218(%rip), %rsi     # 0x16175
movq %rax, %rdi
callq 0x4100
movq 0x1b084(%rip), %rsi     # 0x1fff0
movq 0x1b015(%rip), %rdx     # 0x1ff88
movq %r14, %rdi
callq 0x4490
jmp 0x4fbf
jmp 0x4fbf
jmp 0x4fbf
jmp 0x4fbf
jmp 0x4fbf
jmp 0x4fcc
jmp 0x4fbf
jmp 0x4fbf
jmp 0x4fcc
jmp 0x4fcc
jmp 0x4f93
jmp 0x4f93
movq %rax, %rbx
cmpl $0x0, (%r13)
jne 0x4fa1
movl %r14d, (%r13)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4fcf
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4310
jmp 0x4fcf
movq %rax, %rbx
movq %r14, %rdi
callq 0x4260
jmp 0x4fcf
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4feb
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4310
movq %rbx, %rdi
callq 0x44d0
nop