// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/parse.cc
// Function: parse_arguments(int, char const**)
void parse_arguments(int argc, const char** argv)
{
  // make a new ArgumentParser
  // Argument format: short_name, long_name, total_arg_vals, is_optional
  ArgumentParser parser;

  // Argument that sets the path of the test directory
  parser.addArgument("-p", "--path", 1, false);
  parser.addArgument("-c", "--cmp-golden", 1, true);

  // parse the command-line arguments - throws error if invalid format
  if(argc < 3)
  {
    std::cout << parser.usage() << std::endl;
    exit (EXIT_FAILURE);
  }

  parser.parse(argc, argv);

  // Arguments are successfully parsed through command-line.
  // Use them to set necessary variables.
  dir_test = parser.retrieve<std::string>("path");

  if(parser.count("cmp-golden") == 1)
    compare_golden = true;
  else
    compare_golden = false;

  setup_file_paths();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x70(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
movw $0x1, 0x8(%rax)
xorl %ecx, %ecx
movq %rcx, 0x10(%rax)
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movq %rcx, -0x8(%r15)
movb %cl, (%r15)
leaq 0xb8(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rcx, -0x8(%r12)
movb %cl, (%r12)
movups %xmm0, 0x10(%r12)
movups %xmm0, 0x20(%r12)
movups %xmm0, 0x30(%r12)
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x183977(%rip), %rsi    # 0x5961c7
leaq 0x183972(%rip), %rdx    # 0x5961c9
movq %rsp, %rdi
callq 0x40e328
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x18395b(%rip), %rsi    # 0x5961ca
leaq 0x18395a(%rip), %rdx    # 0x5961d0
leaq 0x20(%rsp), %rdi
callq 0x40e328
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
leaq 0x20(%rsp), %rdx
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x413118
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x4128b1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x4128c7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0x1838fd(%rip), %rsi    # 0x5961d1
leaq 0x1838f8(%rip), %rdx    # 0x5961d3
callq 0x40e328
leaq 0x20(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x1838e5(%rip), %rsi    # 0x5961d4
leaq 0x1838ea(%rip), %rdx    # 0x5961e0
callq 0x40e328
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
leaq 0x20(%rsp), %rdx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x413118
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x41292f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x412945
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4177e0
cmpl $0x2, %ebp
jle 0x412a6c
movl %ebp, %esi
leaq 0x40(%rsp), %rdi
movq %rbx, %rdx
callq 0x41393a
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0x1a54ce(%rip), %rsi    # 0x5b7e38
leaq 0x1a54cb(%rip), %rdx    # 0x5b7e3c
callq 0x40e328
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq 0x413992
movq $0x60b740, %rdi         # imm = 0x60B740
movq %rax, %rsi
callq 0x4951f0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x4129a8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0x183821(%rip), %rsi    # 0x5961d6
leaq 0x183824(%rip), %rdx    # 0x5961e0
callq 0x40e328
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq 0x413aa8
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x4129e7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4177e0
cmpq $0x1, %rbx
movq $0x60b980, %rax         # imm = 0x60B980
sete (%rax)
callq 0x412b08
leaq 0xc8(%rsp), %rbx
leaq 0xe0(%rsp), %r14
movq %r14, %rdi
callq 0x4162e8
movq %rbx, %rdi
callq 0x416336
movq -0x38(%r14), %rdi
cmpq %r12, %rdi
je 0x412a33
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x412a50
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x4177e0
leaq 0x40(%rsp), %rdi
callq 0x416366
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x413282
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq $0x60c900, %rdi         # imm = 0x60C900
callq 0x484db0
movq %rax, %rdi
callq 0x484bc0
movq %rsp, %rdi
callq 0x4955c0
movl $0x1, %edi
callq 0x4def10
jmp 0x412add
jmp 0x412ad8
jmp 0x412add
jmp 0x412ad8
jmp 0x412ad8
jmp 0x412ab8
jmp 0x412add
jmp 0x412ad8
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x412ae0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4177e0
jmp 0x412ae0
jmp 0x412add
jmp 0x412ad8
movq %rax, %rbx
jmp 0x412af6
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x412af6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4177e0
leaq 0x40(%rsp), %rdi
callq 0x413c8c
movq %rbx, %rdi
callq 0x4c34a0