// File: /workspace/github_cpp_makefile_star2_O1/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 0x184407(%rip), %rsi    # 0x59612b
leaq 0x184402(%rip), %rdx    # 0x59612d
movq %rsp, %rdi
callq 0x40e294
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1843eb(%rip), %rsi    # 0x59612e
leaq 0x1843ea(%rip), %rdx    # 0x596134
leaq 0x20(%rsp), %rdi
callq 0x40e294
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
leaq 0x20(%rsp), %rdx
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x4125ec
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x411d85
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x416ca0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x411d9b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x416ca0
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0x18438d(%rip), %rsi    # 0x596135
leaq 0x184388(%rip), %rdx    # 0x596137
callq 0x40e294
leaq 0x20(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x184375(%rip), %rsi    # 0x596138
leaq 0x18437a(%rip), %rdx    # 0x596144
callq 0x40e294
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
leaq 0x20(%rsp), %rdx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x4125ec
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x411e03
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x416ca0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x411e19
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x416ca0
cmpl $0x2, %ebp
jle 0x411f40
movl %ebp, %esi
leaq 0x40(%rsp), %rdi
movq %rbx, %rdx
callq 0x412e00
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0x1a5f7a(%rip), %rsi    # 0x5b7db8
leaq 0x1a5f77(%rip), %rdx    # 0x5b7dbc
callq 0x40e294
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq 0x412e58
movq $0x60b740, %rdi         # imm = 0x60B740
movq %rax, %rsi
callq 0x4946b0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x411e7c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x416ca0
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0x1842b1(%rip), %rsi    # 0x59613a
leaq 0x1842b4(%rip), %rdx    # 0x596144
callq 0x40e294
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq 0x412f6e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x411ebb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x416ca0
cmpq $0x1, %rbx
movq $0x60b980, %rax         # imm = 0x60B980
sete (%rax)
callq 0x411fdc
leaq 0xc8(%rsp), %rbx
leaq 0xe0(%rsp), %r14
movq %r14, %rdi
callq 0x41579e
movq %rbx, %rdi
callq 0x4157e6
movq -0x38(%r14), %rdi
cmpq %r12, %rdi
je 0x411f07
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x416ca0
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x411f24
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x416ca0
leaq 0x40(%rsp), %rdi
callq 0x415816
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x412756
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq $0x60c900, %rdi         # imm = 0x60C900
callq 0x484270
movq %rax, %rdi
callq 0x484080
movq %rsp, %rdi
callq 0x494a80
movl $0x1, %edi
callq 0x4de3d0
jmp 0x411fb1
jmp 0x411fac
jmp 0x411fb1
jmp 0x411fac
jmp 0x411fac
jmp 0x411f8c
jmp 0x411fb1
jmp 0x411fac
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x411fb4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x416ca0
jmp 0x411fb4
jmp 0x411fb1
jmp 0x411fac
movq %rax, %rbx
jmp 0x411fca
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x411fca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x416ca0
leaq 0x40(%rsp), %rdi
callq 0x413152
movq %rbx, %rdi
callq 0x4c2960