// File: /workspace/github_cpp_makefile_star2_O2/evincarofautumn[P]protodata/arguments.cpp
// Function: parse_arguments(int, char const* const*)
std::tuple<std::vector<Input>, unique_ostream>
  parse_arguments(int count, const char* const* begin) {
  using namespace std;
  const char* const stdin_name = "STDIN";
  --count;
  ++begin;
  vector<Input> inputs;
  unique_ostream output;
  bool enable_parsing = true;
  const auto end = begin + count;
  for (auto argument = begin; argument != end; ++argument) {
    if (!enable_parsing) {
      inputs.push_back(Input(*argument,
        unique_istream(new ifstream(*argument, ios::binary))));
      continue;
    }
    if (match_argument(*argument, "-h", "--help")) {
      throw print_usage();
    } else if (match_argument(*argument, "-e", "--eval")) {
      if (argument + 1 == end)
        throw missing_value(*argument);
      ++argument;
      inputs.push_back(Input(*argument,
        unique_istream(new istringstream(*argument))));
    } else if (match_argument(*argument, "-o", "--output")) {
      if (output)
        throw excessive_value(*argument);
      if (argument + 1 == end)
        throw missing_value(*argument);
      ++argument;
      output.reset(new ofstream(*argument, ios::binary));
    } else if (streq(*argument, "-")) {
      inputs.push_back(Input(stdin_name, unique_istream(&cin)));
    } else if (streq(*argument, "--")) {
      enable_parsing = false;
    } else if (**argument == '-') {
      throw unknown_option(*argument);
    } else {
      inputs.push_back(Input(*argument,
        unique_istream(new ifstream(*argument, ios::binary))));
    }
  }
  if (inputs.empty())
    inputs.push_back(Input(stdin_name, unique_istream(&cin)));
  if (!output)
    output.reset(&cout);
  return make_tuple(move(inputs), move(output));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r15
movq %rdi, 0x70(%rsp)
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %r14
movaps %xmm0, (%r14)
andq $0x0, 0x10(%r14)
leaq 0x40(%rsp), %rax
andq $0x0, (%rax)
movslq %esi, %rax
leaq (%rdx,%rax,8), %rbp
addq $0x8, %r15
movb $0x1, %al
leaq 0x20(%rsp), %r12
cmpq %rbp, %r15
je 0x6905
testb $0x1, %al
je 0x6797
movq (%r15), %r13
movq %r13, %rdi
leaq 0x4bdc(%rip), %rsi      # 0xb2c8
leaq 0x4bd8(%rip), %rdx      # 0xb2cb
callq 0x665d
testb %al, %al
jne 0x69aa
movq %r13, %rdi
leaq 0x4bc8(%rip), %rsi      # 0xb2d2
leaq 0x4bc4(%rip), %rdx      # 0xb2d5
callq 0x665d
testb %al, %al
je 0x67eb
leaq 0x8(%r15), %rbx
cmpq %rbp, %rbx
je 0x69d8
movq (%rbx), %r13
movl $0x180, %edi            # imm = 0x180
callq 0x3220
movq %rax, %r15
movq (%rbx), %rsi
movq %r12, %rdi
leaq 0x1f(%rsp), %rdx
callq 0x6c28
movq %r15, %rdi
movq %r12, %rsi
pushq $0x8
popq %rdx
callq 0x3380
movq %r13, 0x8(%rsp)
movq %r15, 0x10(%rsp)
andq $0x0, 0x48(%rsp)
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x7154
leaq 0x10(%rsp), %rdi
callq 0x6bea
leaq 0x48(%rsp), %rdi
callq 0x6bea
movq %r12, %rdi
callq 0x3110
jmp 0x6846
movq (%r15), %rbx
movl $0x208, %edi            # imm = 0x208
callq 0x3220
movq %rax, %r13
movq (%r15), %rsi
movq %rax, %rdi
pushq $0x4
popq %rdx
callq 0x33d0
movq %rbx, 0x20(%rsp)
movq %r13, 0x28(%rsp)
andq $0x0, 0x8(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x7154
leaq 0x28(%rsp), %rdi
callq 0x6bea
leaq 0x8(%rsp), %rdi
callq 0x6bea
xorl %eax, %eax
jmp 0x68fc
movq %r13, %rdi
leaq 0x4ae7(%rip), %rsi      # 0xb2dc
leaq 0x4ae3(%rip), %rdx      # 0xb2df
callq 0x665d
testb %al, %al
je 0x6850
cmpq $0x0, 0x40(%rsp)
jne 0x6a6a
leaq 0x8(%r15), %rbx
cmpq %rbp, %rbx
je 0x6a21
movl $0x200, %edi            # imm = 0x200
callq 0x3220
movq %rax, %r15
movq (%rbx), %rsi
movq %rax, %rdi
pushq $0x4
popq %rdx
callq 0x3260
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0x73d2
movb $0x1, %al
movq %rbx, %r15
jmp 0x68fc
movq %r13, %rdi
leaq 0x4a8f(%rip), %rsi      # 0xb2e9
callq 0x6650
testb %al, %al
je 0x688e
leaq 0x4a58(%rip), %rax      # 0xb2c2
movq %rax, 0x20(%rsp)
movq 0xb74a(%rip), %rax      # 0x11fc0
movq %rax, 0x28(%rsp)
andq $0x0, 0x8(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x7154
jmp 0x68e6
movq %r13, %rdi
leaq 0x4a50(%rip), %rsi      # 0xb2e8
callq 0x6650
testb %al, %al
jne 0x67e4
cmpb $0x2d, (%r13)
je 0x6ab0
movl $0x208, %edi            # imm = 0x208
callq 0x3220
movq %rax, %rbx
movq (%r15), %rsi
movq %rax, %rdi
pushq $0x4
popq %rdx
callq 0x33d0
movq %r13, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
andq $0x0, 0x8(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x7154
leaq 0x28(%rsp), %rdi
callq 0x6bea
leaq 0x8(%rsp), %rdi
callq 0x6bea
movb $0x1, %al
addq $0x8, %r15
jmp 0x66ce
movq 0x50(%rsp), %rax
cmpq 0x58(%rsp), %rax
jne 0x6952
leaq 0x28(%rsp), %rbx
leaq 0x49a5(%rip), %rax      # 0xb2c2
movq %rax, -0x8(%rbx)
movq 0xb698(%rip), %rax      # 0x11fc0
movq %rax, (%rbx)
andq $0x0, 0x8(%rsp)
leaq 0x50(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x7154
movq %rbx, %rdi
callq 0x6bea
leaq 0x8(%rsp), %rdi
callq 0x6bea
cmpq $0x0, 0x40(%rsp)
jne 0x696b
movq 0xb647(%rip), %rsi      # 0x11fa8
leaq 0x40(%rsp), %rdi
callq 0x73d2
leaq 0x50(%rsp), %rbx
leaq 0x40(%rsp), %r14
movq 0x70(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x70c4
movq %r14, %rdi
callq 0x6d90
movq %rbx, %rdi
callq 0x6db2
movq %r15, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x3120
movq %rax, %rbx
movq %rax, %rdi
callq 0x6c0c
leaq 0xb17c(%rip), %rsi      # 0x11b40
movq 0xb5cd(%rip), %rdx      # 0x11f98
movq %rbx, %rdi
callq 0x3390
jmp 0x6af4
pushq $0x10
popq %rdi
callq 0x3120
movq %rax, %r14
movq (%r15), %rsi
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x6c28
movb $0x1, %bl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x6c64
xorl %ebx, %ebx
leaq 0xb14b(%rip), %rsi      # 0x11b58
movq 0xb584(%rip), %rdx      # 0x11f98
movq %r14, %rdi
callq 0x3390
jmp 0x6af4
pushq $0x10
popq %rdi
callq 0x3120
movq %rax, %r14
movq (%r15), %rsi
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x6c28
movb $0x1, %bl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x6c64
xorl %ebx, %ebx
leaq 0xb102(%rip), %rsi      # 0x11b58
movq 0xb53b(%rip), %rdx      # 0x11f98
movq %r14, %rdi
callq 0x3390
jmp 0x6af4
pushq $0x10
popq %rdi
callq 0x3120
movq %rax, %r14
movq (%r15), %rsi
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x6c28
movb $0x1, %bl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x6cc8
xorl %ebx, %ebx
leaq 0xb0d1(%rip), %rsi      # 0x11b70
movq 0xb4f2(%rip), %rdx      # 0x11f98
movq %r14, %rdi
callq 0x3390
jmp 0x6af4
pushq $0x10
popq %rdi
callq 0x3120
movq %rax, %r14
movq (%r15), %rsi
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x6c28
movb $0x1, %bl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x6d2c
xorl %ebx, %ebx
leaq 0xb0a3(%rip), %rsi      # 0x11b88
movq 0xb4ac(%rip), %rdx      # 0x11f98
movq %r14, %rdi
callq 0x3390
movq %rax, %r12
movq %rbx, %rdi
jmp 0x6bac
jmp 0x6b27
jmp 0x6b3d
jmp 0x6ba4
movq %rax, %r12
movl $0x208, %esi            # imm = 0x208
movq %rbx, %rdi
jmp 0x6bc8
jmp 0x6b9f
jmp 0x6b27
jmp 0x6b3d
jmp 0x6b27
jmp 0x6b3d
jmp 0x6ba4
movq %rax, %r12
leaq 0x20(%rsp), %rdi
callq 0x3110
testb %bl, %bl
jne 0x6b40
jmp 0x6bcd
movq %rax, %r12
movq %r14, %rdi
jmp 0x6b67
movq %rax, %r12
movl $0x200, %esi            # imm = 0x200
jmp 0x6b9a
jmp 0x6b9f
movq %rax, %r12
movb $0x1, %bl
jmp 0x6b87
movq %rax, %r12
jmp 0x6b95
jmp 0x6b9f
jmp 0x6b9f
movq %rax, %r12
movq %rbx, %rdi
callq 0x3180
jmp 0x6bcd
movq %rax, %r12
leaq 0x10(%rsp), %rdi
callq 0x6bea
leaq 0x48(%rsp), %rdi
callq 0x6bea
xorl %ebx, %ebx
leaq 0x20(%rsp), %rdi
callq 0x3110
testb %bl, %bl
je 0x6bcd
movl $0x180, %esi            # imm = 0x180
movq %r15, %rdi
jmp 0x6bc8
movq %rax, %r12
jmp 0x6bcd
movq %rax, %r12
leaq 0x28(%rsp), %rdi
callq 0x6bea
leaq 0x8(%rsp), %rdi
callq 0x6bea
jmp 0x6bcd
movq %rax, %r12
movl $0x208, %esi            # imm = 0x208
movq %r13, %rdi
callq 0x3230
leaq 0x40(%rsp), %rdi
callq 0x6d90
leaq 0x50(%rsp), %rdi
callq 0x6db2
movq %r12, %rdi
callq 0x33b0
nop