// File: brandoncanaday[P]1730sh/Input.cpp
// Function: processArgv(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
vector<string> processArgv(vector<string> argv) {
  vector<string> processed_argv;
  int quote_count = 0;
  string arg = "";
  for(unsigned int i = 0; i < argv.size(); i++) { 
    if(hasQuotes(argv[i])) { 
      if(quote_count == 0) { arg = ""; } // if
      quote_count++;
      arg = arg + " " + argv[i];
      unsigned int q_pos = pos_of_first_quote(argv[i]);
      if(argv[i].length() > 1 && q_pos != argv[i].length()-1 && hasQuotes(argv[i].substr(q_pos+1))) quote_count++;
      if(quote_count == 2) {
	quote_count = 0;
      } else {
	continue;
      } // if/else
    } else {
      if(quote_count % 2 == 0) {
	arg = argv[i];
      } else {
	arg = arg + " " + argv[i];
	continue;
      } // if/else
    } // if/else
    arg = trim(arg);
    // remove beginning/end quotes
    string proc_arg = "";
    for(unsigned int i = 0; i < arg.length(); i++) {
      if(arg[i] == '"') {
	if(i > 0) {
	  if(arg[i-1] == '\\') proc_arg += arg[i];
	} // if
      } else {
	proc_arg += arg[i];
      } // if/else
    } // for
    proc_arg = sanitize(proc_arg,"\\");
    processed_argv.push_back(proc_arg);
  } // for
  return processed_argv;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2b0, %rsp            # imm = 0x2B0
movq %rsi, -0x230(%rbp)
movq %rdi, -0x228(%rbp)
movq %rdi, %rax
movq %rax, -0x220(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb $0x0, -0x11(%rbp)
callq 0xb710
movl $0x0, -0x18(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0x218(%rbp)
callq 0x3590
movq -0x218(%rbp), %rdx
leaq 0x4715(%rip), %rsi      # 0x15ace
leaq -0x38(%rbp), %rdi
callq 0x3440
jmp 0x113c4
leaq -0x39(%rbp), %rdi
callq 0x3340
movl $0x0, -0x50(%rbp)
movq -0x230(%rbp), %rdi
movl -0x50(%rbp), %eax
movq %rax, -0x238(%rbp)
callq 0xb7a0
movq %rax, %rcx
movq -0x238(%rbp), %rax
cmpq %rcx, %rax
jae 0x11ad6
movq -0x230(%rbp), %rdi
movl -0x50(%rbp), %eax
movl %eax, %esi
callq 0xb4b0
movq %rax, %rsi
leaq -0x70(%rbp), %rdi
callq 0x3140
jmp 0x1141c
leaq -0x70(%rbp), %rdi
callq 0x12240
movb %al, -0x239(%rbp)
jmp 0x1142d
leaq -0x70(%rbp), %rdi
callq 0x31e0
movb -0x239(%rbp), %al
testb $0x1, %al
jne 0x11445
jmp 0x116f2
cmpl $0x0, -0x18(%rbp)
jne 0x114a4
leaq 0x467c(%rip), %rsi      # 0x15ace
leaq -0x38(%rbp), %rdi
callq 0x3420
jmp 0x1145d
jmp 0x114a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x39(%rbp), %rdi
callq 0x3340
jmp 0x11b12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x11aeb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x31e0
jmp 0x11aeb
movl -0x18(%rbp), %eax
incl %eax
movl %eax, -0x18(%rbp)
leaq 0x326f(%rip), %rdx      # 0x14722
leaq -0xb0(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xb310
jmp 0x114c5
movq -0x230(%rbp), %rdi
movl -0x50(%rbp), %eax
movl %eax, %esi
callq 0xb4b0
movq %rax, %rdx
leaq -0x90(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0xb2c0
jmp 0x114ee
leaq -0x38(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movq %rsi, -0x248(%rbp)
callq 0x33b0
movq -0x248(%rbp), %rdi
callq 0x31e0
leaq -0xb0(%rbp), %rdi
callq 0x31e0
movq -0x230(%rbp), %rdi
movl -0x50(%rbp), %eax
movl %eax, %esi
callq 0xb4b0
movq %rax, %rsi
leaq -0xd8(%rbp), %rdi
callq 0x3140
jmp 0x1153f
leaq -0xd8(%rbp), %rdi
callq 0x122f0
movl %eax, -0x24c(%rbp)
jmp 0x11553
leaq -0xd8(%rbp), %rdi
callq 0x31e0
movl -0x24c(%rbp), %eax
movq -0x230(%rbp), %rdi
movl %eax, -0xb4(%rbp)
movl -0x50(%rbp), %eax
movl %eax, %esi
callq 0xb4b0
movq %rax, %rdi
callq 0x34d0
movq %rax, %rcx
movb $0x0, -0xf9(%rbp)
xorl %eax, %eax
cmpq $0x1, %rcx
movb %al, -0x24d(%rbp)
jbe 0x1163d
movq -0x230(%rbp), %rdi
movl -0xb4(%rbp), %eax
movq %rax, -0x258(%rbp)
movl -0x50(%rbp), %eax
movl %eax, %esi
callq 0xb4b0
movq %rax, %rdi
callq 0x34d0
movq -0x258(%rbp), %rcx
movq %rax, %rdx
subq $0x1, %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x24d(%rbp)
je 0x1163d
movq -0x230(%rbp), %rdi
movl -0x50(%rbp), %eax
movl %eax, %esi
callq 0xb4b0
movq %rax, %rsi
movl -0xb4(%rbp), %eax
incl %eax
movl %eax, %edx
leaq -0xf8(%rbp), %rdi
movq $-0x1, %rcx
callq 0x3310
jmp 0x11614
movb $0x1, -0xf9(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0x12240
movb %al, -0x259(%rbp)
jmp 0x1162f
movb -0x259(%rbp), %al
movb %al, -0x24d(%rbp)
jmp 0x1163d
movb -0x24d(%rbp), %al
movb %al, -0x25a(%rbp)
testb $0x1, -0xf9(%rbp)
jne 0x11654
jmp 0x11660
leaq -0xf8(%rbp), %rdi
callq 0x31e0
movb -0x25a(%rbp), %al
testb $0x1, %al
jne 0x1166c
jmp 0x116d9
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x116d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x31e0
jmp 0x11aeb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x31e0
jmp 0x11aeb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
testb $0x1, -0xf9(%rbp)
jne 0x116c8
jmp 0x116d4
leaq -0xf8(%rbp), %rdi
callq 0x31e0
jmp 0x11aeb
cmpl $0x2, -0x18(%rbp)
jne 0x116e8
movl $0x0, -0x18(%rbp)
jmp 0x116ed
jmp 0x11a7c
jmp 0x117b4
movl -0x18(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x11726
movq -0x230(%rbp), %rdi
movl -0x50(%rbp), %eax
movl %eax, %esi
callq 0xb4b0
movq %rax, %rsi
leaq -0x38(%rbp), %rdi
callq 0x3050
jmp 0x11721
jmp 0x117b2
leaq 0x2ff5(%rip), %rdx      # 0x14722
leaq -0x140(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xb310
jmp 0x1173f
movq -0x230(%rbp), %rdi
movl -0x50(%rbp), %eax
movl %eax, %esi
callq 0xb4b0
movq %rax, %rdx
leaq -0x120(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0xb2c0
jmp 0x11768
leaq -0x38(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x33b0
leaq -0x120(%rbp), %rdi
callq 0x31e0
leaq -0x140(%rbp), %rdi
callq 0x31e0
jmp 0x11a7c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x31e0
jmp 0x11aeb
jmp 0x117b4
leaq -0x180(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3140
jmp 0x117c6
leaq -0x160(%rbp), %rdi
leaq -0x180(%rbp), %rsi
callq 0x11ff0
jmp 0x117db
leaq -0x38(%rbp), %rdi
leaq -0x160(%rbp), %rsi
movq %rsi, -0x270(%rbp)
callq 0x33b0
movq -0x270(%rbp), %rdi
callq 0x31e0
leaq -0x180(%rbp), %rdi
callq 0x31e0
leaq -0x1a1(%rbp), %rdi
movq %rdi, -0x268(%rbp)
callq 0x3590
movq -0x268(%rbp), %rdx
leaq 0x42a3(%rip), %rsi      # 0x15ace
leaq -0x1a0(%rbp), %rdi
callq 0x3440
jmp 0x11839
leaq -0x1a1(%rbp), %rdi
callq 0x3340
movl $0x0, -0x1a8(%rbp)
movl -0x1a8(%rbp), %eax
movq %rax, -0x278(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x34d0
movq %rax, %rcx
movq -0x278(%rbp), %rax
cmpq %rcx, %rax
jae 0x119aa
movl -0x1a8(%rbp), %eax
movl %eax, %esi
leaq -0x38(%rbp), %rdi
callq 0x3610
movq %rax, -0x280(%rbp)
jmp 0x11892
movq -0x280(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x22, %eax
jne 0x11960
cmpl $0x0, -0x1a8(%rbp)
jbe 0x1195e
movl -0x1a8(%rbp), %eax
decl %eax
movl %eax, %esi
leaq -0x38(%rbp), %rdi
callq 0x3610
movq %rax, -0x288(%rbp)
jmp 0x118ce
movq -0x288(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x5c, %eax
jne 0x1195c
movl -0x1a8(%rbp), %eax
movl %eax, %esi
leaq -0x38(%rbp), %rdi
callq 0x3610
movq %rax, -0x290(%rbp)
jmp 0x118f7
movq -0x290(%rbp), %rax
movsbl (%rax), %esi
leaq -0x1a0(%rbp), %rdi
callq 0x31f0
jmp 0x1190f
jmp 0x1195c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x180(%rbp), %rdi
callq 0x31e0
jmp 0x11aeb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x1a1(%rbp), %rdi
callq 0x3340
jmp 0x11aeb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x11ac8
jmp 0x1195e
jmp 0x11994
movl -0x1a8(%rbp), %eax
movl %eax, %esi
leaq -0x38(%rbp), %rdi
callq 0x3610
movq %rax, -0x298(%rbp)
jmp 0x1197a
movq -0x298(%rbp), %rax
movsbl (%rax), %esi
leaq -0x1a0(%rbp), %rdi
callq 0x31f0
jmp 0x11992
jmp 0x11994
jmp 0x11996
movl -0x1a8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1a8(%rbp)
jmp 0x1184f
leaq -0x1e8(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x3140
jmp 0x119bf
leaq -0x209(%rbp), %rdi
movq %rdi, -0x2a0(%rbp)
callq 0x3590
movq -0x2a0(%rbp), %rdx
leaq 0x4128(%rip), %rsi      # 0x15b08
leaq -0x208(%rbp), %rdi
callq 0x3440
jmp 0x119ee
leaq -0x1c8(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
leaq -0x208(%rbp), %rdx
callq 0x120e0
jmp 0x11a0a
leaq -0x1a0(%rbp), %rdi
movq %rdi, -0x2a8(%rbp)
leaq -0x1c8(%rbp), %rsi
movq %rsi, -0x2b0(%rbp)
callq 0x33b0
movq -0x2b0(%rbp), %rdi
callq 0x31e0
leaq -0x208(%rbp), %rdi
callq 0x31e0
leaq -0x209(%rbp), %rdi
callq 0x3340
leaq -0x1e8(%rbp), %rdi
callq 0x31e0
movq -0x228(%rbp), %rdi
movq -0x2a8(%rbp), %rsi
callq 0xb730
jmp 0x11a70
leaq -0x1a0(%rbp), %rdi
callq 0x31e0
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x113d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x11ab0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x208(%rbp), %rdi
callq 0x31e0
leaq -0x209(%rbp), %rdi
callq 0x3340
leaq -0x1e8(%rbp), %rdi
callq 0x31e0
leaq -0x1a0(%rbp), %rdi
callq 0x31e0
jmp 0x11aeb
movb $0x1, -0x11(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x31e0
testb $0x1, -0x11(%rbp)
jne 0x11b02
jmp 0x11af6
leaq -0x38(%rbp), %rdi
callq 0x31e0
jmp 0x11b12
movq -0x228(%rbp), %rdi
callq 0xb620
movq -0x220(%rbp), %rax
addq $0x2b0, %rsp            # imm = 0x2B0
popq %rbp
retq
movq -0x228(%rbp), %rdi
callq 0xb620
movq -0x48(%rbp), %rdi
callq 0x3580
nopw (%rax,%rax)