// File: /workspace/github_cpp_makefile_star2_O3/CoinXu[P]reviser-compiler/src/command_line_interface.cpp
// Function: reviser::CommandLineInterface::ParseArguments(int, char const* const*)
bool CommandLineInterface::ParseArguments(int argc, const char* const argv[]) {
    executable_name = argv[0];

    for (int i = 1; i < argc; i++) {
      string name, value;

      if (ParseArgument(argv[i], &name, &value)) {
        if (i + 1 == argc || argv[i + 1][0] == '-') {
          cerr << "missing value for flag: " << name << endl;
          return false;
        } else {
          i++;
          value = argv[i];
        }
      }

      if (!InterpretArgument(name, value)) {
        return false;
      }
    }

    if (input_files.empty()) {
      cerr << "missing input file." << endl;
      return false;
    }

    if (output_directives.empty()) {
      cerr << "missing output directives." << endl;
      return false;
    }

    return true;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %esi, %r15d
movq %rdx, -0x38(%rbp)
movq (%rdx), %r12
leaq 0xa0(%rdi), %r13
movq %rdi, -0x30(%rbp)
movq 0xa8(%rdi), %rbx
movq %r12, %rdi
callq 0x24180
movq %r13, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x24530
cmpl $0x2, %r15d
jl 0x285ce
movl $0x1, %ebx
xorl %r13d, %r13d
leaq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
movq %r13, -0x70(%rbp)
movb %r13b, -0x68(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq %r13, -0x50(%rbp)
movb %r13b, -0x48(%rbp)
movslq %ebx, %rax
movq -0x38(%rbp), %rcx
movq (%rcx,%rax,8), %rsi
leaq -0x78(%rbp), %rdx
leaq -0x58(%rbp), %rcx
callq 0x28880
testb %al, %al
je 0x28558
leal 0x1(%rbx), %r14d
cmpl %r15d, %r14d
je 0x284fd
movslq %r14d, %rax
movq -0x38(%rbp), %rcx
movq (%rcx,%rax,8), %r12
cmpb $0x2d, (%r12)
jne 0x285ac
movl $0x18, %edx
movq 0x37adf(%rip), %rdi     # 0x5ffe8
leaq 0x26b1f(%rip), %rsi     # 0x4f02f
callq 0x243c0
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
movq 0x37ac4(%rip), %rdi     # 0x5ffe8
callq 0x243c0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x24330
movsbl %al, %esi
movq %r12, %rdi
callq 0x24040
movq %rax, %rdi
callq 0x24270
xorl %r12d, %r12d
jmp 0x28572
movl %ebx, %r14d
movq -0x30(%rbp), %rdi
leaq -0x78(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x28a38
movl %eax, %r12d
movl %r14d, %ebx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x28584
callq 0x24320
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x28596
callq 0x24320
testb %r12b, %r12b
je 0x28643
incl %ebx
cmpl %r15d, %ebx
jl 0x284a2
jmp 0x285ce
movq -0x50(%rbp), %rbx
movq %r12, %rdi
callq 0x24180
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x24530
jmp 0x2855b
movq -0x30(%rbp), %rdx
movq 0x48(%rdx), %rax
cmpq 0x50(%rdx), %rax
je 0x285fd
movq 0x30(%rdx), %rcx
movb $0x1, %al
cmpq 0x38(%rdx), %rcx
jne 0x28645
movq 0x379f9(%rip), %rdi     # 0x5ffe8
leaq 0x26a66(%rip), %rsi     # 0x4f05c
movl $0x1a, %edx
jmp 0x28610
movq 0x379e4(%rip), %rdi     # 0x5ffe8
leaq 0x26a3d(%rip), %rsi     # 0x4f048
movl $0x13, %edx
callq 0x243c0
movq 0x379cc(%rip), %rbx     # 0x5ffe8
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x24330
movsbl %al, %esi
movq %rbx, %rdi
callq 0x24040
movq %rax, %rdi
callq 0x24270
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x28669
callq 0x24320
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x2867b
callq 0x24320
movq %rbx, %rdi
callq 0x245f0
nop