// File: brandoncanaday[P]1730sh/Input.cpp
// Function: Input::setSTDOUT()
void Input::setSTDOUT() {
  string fd = "STDOUT_FILENO";
  string type = "";
  stringstream ss(this->shellInput);
  vector<string> argv;
  string arg;
  while(ss >> arg) {
    argv.push_back(arg);
  } // while
  vector<string> processed_argv = processArgv(argv);
  for(unsigned int i = 0; i < processed_argv.size(); i++) {
    if(i > 0) {
      if(processed_argv[i-1] == ">>" || processed_argv[i-1] == ">") {
	fd = processed_argv[i];
	type = processed_argv[i-1];
	break;
      } // if
    } // if
  } // for
  this->fd_STDOUT = fd;
  this->type_STDOUT = type;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2b0, %rsp            # imm = 0x2B0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x270(%rbp)
leaq -0x29(%rbp), %rdi
movq %rdi, -0x268(%rbp)
callq 0x3590
movq -0x268(%rbp), %rdx
leaq 0x3cfa(%rip), %rsi      # 0x140b2
leaq -0x28(%rbp), %rdi
callq 0x3440
jmp 0x103c3
leaq -0x29(%rbp), %rdi
callq 0x3340
leaq -0x61(%rbp), %rdi
movq %rdi, -0x278(%rbp)
callq 0x3590
movq -0x278(%rbp), %rdx
leaq 0x56e4(%rip), %rsi      # 0x15ace
leaq -0x60(%rbp), %rdi
callq 0x3440
jmp 0x103f5
leaq -0x61(%rbp), %rdi
callq 0x3340
movq -0x270(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x288(%rbp)
movl $0x10, %edi
movl $0x8, %esi
callq 0xb6f0
movl %eax, -0x27c(%rbp)
jmp 0x10427
movl -0x27c(%rbp), %edx
movq -0x288(%rbp), %rsi
leaq -0x1f0(%rbp), %rdi
callq 0x3510
jmp 0x10442
leaq -0x208(%rbp), %rdi
callq 0xb710
leaq -0x228(%rbp), %rdi
callq 0x3450
leaq -0x1f0(%rbp), %rdi
leaq -0x228(%rbp), %rsi
callq 0x33e0
movq %rax, -0x290(%rbp)
jmp 0x10476
movq -0x290(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x33d0
movb %al, -0x291(%rbp)
jmp 0x10494
movb -0x291(%rbp), %al
testb $0x1, %al
jne 0x104a0
jmp 0x1050d
leaq -0x208(%rbp), %rdi
leaq -0x228(%rbp), %rsi
callq 0xb730
jmp 0x104b5
jmp 0x1045a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x29(%rbp), %rdi
callq 0x3340
jmp 0x10745
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x61(%rbp), %rdi
callq 0x3340
jmp 0x1073c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x10733
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1070f
leaq -0x258(%rbp), %rdi
leaq -0x208(%rbp), %rsi
callq 0xb530
jmp 0x10522
leaq -0x240(%rbp), %rdi
leaq -0x258(%rbp), %rsi
callq 0x11360
jmp 0x10537
leaq -0x258(%rbp), %rdi
callq 0xb620
movl $0x0, -0x25c(%rbp)
movl -0x25c(%rbp), %eax
movq %rax, -0x2a0(%rbp)
leaq -0x240(%rbp), %rdi
callq 0xb7a0
movq %rax, %rcx
movq -0x2a0(%rbp), %rax
cmpq %rcx, %rax
jae 0x10695
cmpl $0x0, -0x25c(%rbp)
jbe 0x1067f
movl -0x25c(%rbp), %eax
decl %eax
movl %eax, %esi
leaq -0x240(%rbp), %rdi
callq 0xb4b0
movq %rax, %rdi
leaq 0x3abd(%rip), %rsi      # 0x14063
callq 0xb390
movb %al, -0x2a1(%rbp)
jmp 0x105b3
movb -0x2a1(%rbp), %al
testb $0x1, %al
jne 0x105fb
jmp 0x105bf
movl -0x25c(%rbp), %eax
decl %eax
movl %eax, %esi
leaq -0x240(%rbp), %rdi
callq 0xb4b0
movq %rax, %rdi
leaq 0x3a85(%rip), %rsi      # 0x14064
callq 0xb390
movb %al, -0x2a2(%rbp)
jmp 0x105ec
movb -0x2a2(%rbp), %al
testb $0x1, %al
jne 0x105fb
jmp 0x1067d
movl -0x25c(%rbp), %eax
movl %eax, %esi
leaq -0x240(%rbp), %rdi
callq 0xb4b0
movq %rax, %rsi
leaq -0x28(%rbp), %rdi
callq 0x3050
jmp 0x1061d
movl -0x25c(%rbp), %eax
decl %eax
movl %eax, %esi
leaq -0x240(%rbp), %rdi
callq 0xb4b0
movq %rax, %rsi
leaq -0x60(%rbp), %rdi
callq 0x3050
jmp 0x10641
jmp 0x10695
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x258(%rbp), %rdi
callq 0xb620
jmp 0x1070f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x240(%rbp), %rdi
callq 0xb620
jmp 0x1070f
jmp 0x1067f
jmp 0x10681
movl -0x25c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x25c(%rbp)
jmp 0x1054d
movq -0x270(%rbp), %rdi
addq $0x68, %rdi
leaq -0x28(%rbp), %rsi
callq 0x3050
jmp 0x106ab
movq -0x270(%rbp), %rdi
addq $0x88, %rdi
leaq -0x60(%rbp), %rsi
callq 0x3050
jmp 0x106c4
leaq -0x240(%rbp), %rdi
callq 0xb620
leaq -0x228(%rbp), %rdi
callq 0x31e0
leaq -0x208(%rbp), %rdi
callq 0xb620
leaq -0x1f0(%rbp), %rdi
callq 0x3230
leaq -0x60(%rbp), %rdi
callq 0x31e0
leaq -0x28(%rbp), %rdi
callq 0x31e0
addq $0x2b0, %rsp            # imm = 0x2B0
popq %rbp
retq
leaq -0x228(%rbp), %rdi
callq 0x31e0
leaq -0x208(%rbp), %rdi
callq 0xb620
leaq -0x1f0(%rbp), %rdi
callq 0x3230
leaq -0x60(%rbp), %rdi
callq 0x31e0
leaq -0x28(%rbp), %rdi
callq 0x31e0
movq -0x38(%rbp), %rdi
callq 0x3580
nop