// File: /workspace/github_cpp_makefile_star2_O1/josh0xA[P]bf/src/bf.cc
// Function: main
int main(int argc, char** argv) {

  bf::Environment env;
  bf::Stream<std::string, std::istream, bf_word> bf_stream;
  bf::Parser parser;

  if (argc == BF_SUCCESS_CODE_STANDARD + 1) {
    bf::User usr;
    std::cout << "The Brainfuck Interactive Console Interpreter\n\t\tJosh Schiavone\n";
    usr.load_interactive_interpreter(env);
  } else {
      if (env.check_program_file_extension(argv[1])) {
        std::ifstream stream = std::ifstream(argv[1]);
        if (stream.is_open()) {
          bfint_t bracks = bf_stream.entry_point_stream(env, stream);
          if (bracks == BF_SUCCESS_CODE_STANDARD) {
            parser.interpret_bf_instructions(env);
          } else {
              throw bf::exp::BFException("(error): could not match brackets\n");
          }
        } else {
            throw bf::exp::BFException("(error): .bf source could not be located\n");
        }
      } else {
          throw bf::exp::BFException("(error): source file must contain a valid brainfuck extension\n");
      }
  }

  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x608, %rsp            # imm = 0x608
movq %rsi, %r15
movl %edi, %r12d
vxorps %xmm0, %xmm0, %xmm0
vmovaps %xmm0, -0x70(%rbp)
xorl %r14d, %r14d
movq %r14, -0x60(%rbp)
movl $0x7530, %edi           # imm = 0x7530
callq 0x2120
movq %rax, %rbx
movq %rax, -0x70(%rbp)
movq %rax, -0x68(%rbp)
leaq 0x7530(%rax), %r13
movq %r13, -0x60(%rbp)
movl $0x7530, %edx           # imm = 0x7530
movq %rax, %rdi
xorl %esi, %esi
callq 0x20b0
movq %r13, -0x68(%rbp)
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, -0x58(%rbp)
movq %r14, -0x38(%rbp)
cmpq %r14, -0x50(%rbp)
je 0x2869
movq $0x0, -0x50(%rbp)
xorl %eax, %eax
movq %rax, -0x40(%rbp)
movq %rbx, -0x38(%rbp)
movq %rax, -0x450(%rbp)
vxorps %xmm0, %xmm0, %xmm0
vmovaps %xmm0, -0x460(%rbp)
movl $0x7530, %edi           # imm = 0x7530
vzeroupper
callq 0x2120
movq %rax, %r14
movq %rax, -0x460(%rbp)
movq %rax, -0x458(%rbp)
movq %rax, %rbx
addq $0x7530, %rbx           # imm = 0x7530
movq %rbx, -0x450(%rbp)
movl $0x7530, %edx           # imm = 0x7530
movq %rax, %rdi
xorl %esi, %esi
callq 0x20b0
movq %rbx, -0x458(%rbp)
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, -0x448(%rbp)
movq $0x0, -0x428(%rbp)
cmpq $0x0, -0x440(%rbp)
je 0x28f7
movq $0x0, -0x440(%rbp)
leaq -0x420(%rbp), %rbx
movq $0x0, -0x10(%rbx)
movq %r14, -0x8(%rbx)
movq %rbx, %rdi
vzeroupper
callq 0x20e0
vxorps %xmm0, %xmm0, %xmm0
vmovaps %xmm0, -0x630(%rbp)
movq $0x0, -0x620(%rbp)
movl $0x7530, %edi           # imm = 0x7530
callq 0x2120
movq %rax, %r13
movq %rax, -0x630(%rbp)
movq %rax, -0x628(%rbp)
movq %rax, %r14
addq $0x7530, %r14           # imm = 0x7530
movq %r14, -0x620(%rbp)
movl $0x7530, %edx           # imm = 0x7530
movq %rax, %rdi
xorl %esi, %esi
callq 0x20b0
movq %r14, -0x628(%rbp)
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, -0x618(%rbp)
movq $0x0, -0x5f8(%rbp)
cmpq $0x0, -0x610(%rbp)
je 0x299a
movq $0x0, -0x610(%rbp)
leaq -0x5f0(%rbp), %r14
movq $0x0, -0x10(%r14)
movq %r13, -0x8(%r14)
movq %r14, %rdi
vzeroupper
callq 0x20e0
cmpl $0x1, %r12d
jne 0x2b28
vxorps %xmm0, %xmm0, %xmm0
vmovaps %xmm0, -0x2a0(%rbp)
movq $0x0, -0x290(%rbp)
movl $0x7530, %edi           # imm = 0x7530
callq 0x2120
movq %rax, %r12
movq %rax, -0x2a0(%rbp)
movq %rax, -0x298(%rbp)
movq %rax, %r15
addq $0x7530, %r15           # imm = 0x7530
movq %r15, -0x290(%rbp)
movl $0x7530, %edx           # imm = 0x7530
movq %rax, %rdi
xorl %esi, %esi
callq 0x20b0
movq %r15, -0x298(%rbp)
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, -0x288(%rbp)
movq $0x0, -0x268(%rbp)
cmpq $0x0, -0x280(%rbp)
je 0x2a47
movq $0x0, -0x280(%rbp)
leaq -0x260(%rbp), %r15
movq $0x0, -0x10(%r15)
movq %r12, -0x8(%r15)
movq %r15, %rdi
vzeroupper
callq 0x20e0
leaq -0xc8(%rbp), %r12
movl $0x0, -0x14(%r12)
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movq 0x3531(%rip), %rdi      # 0x5fc0
leaq 0x15d5(%rip), %rsi      # 0x406b
movl $0x3f, %edx
callq 0x2160
leaq -0x2a0(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x26be
movq -0xd8(%rbp), %rdi
cmpq %r12, %rdi
je 0x2acb
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2140
movq 0x34e6(%rip), %rsi      # 0x5fb8
movq %r15, %rdi
callq 0x2180
leaq -0x1e8(%rbp), %r15
movq %r15, %rdi
callq 0x2070
movq -0xa0(%r15), %rdi
testq %rdi, %rdi
je 0x2b04
movq -0x278(%rbp), %rsi
subq %rdi, %rsi
callq 0x2140
movq -0x2a0(%rbp), %rdi
testq %rdi, %rdi
je 0x2bd6
movq -0x290(%rbp), %rsi
subq %rdi, %rsi
callq 0x2140
jmp 0x2bd6
movq 0x8(%r15), %rsi
leaq -0x90(%rbp), %rdi
leaq -0x2a0(%rbp), %rdx
callq 0x2f92
leaq -0x90(%rbp), %rsi
callq 0x2416
movl %eax, %r12d
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b67
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2140
testb %r12b, %r12b
je 0x2cbc
movq 0x8(%r15), %rsi
leaq -0x2a0(%rbp), %rdi
movl $0x8, %edx
callq 0x2210
leaq -0x228(%rbp), %rdi
callq 0x2040
testb %al, %al
je 0x2cf3
leaq -0x460(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x2a0(%rbp), %rdx
xorl %ecx, %ecx
callq 0x2fd0
testl %eax, %eax
jne 0x2d2a
leaq -0x630(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x2520
leaq -0x2a0(%rbp), %rdi
callq 0x2050
movq 0x33db(%rip), %rsi      # 0x5fb8
movq %r14, %rdi
callq 0x2180
leaq -0x578(%rbp), %r14
movq %r14, %rdi
callq 0x2070
movq -0xa0(%r14), %rdi
testq %rdi, %rdi
je 0x2c0f
movq -0x608(%rbp), %rsi
subq %rdi, %rsi
callq 0x2140
movq -0x630(%rbp), %rdi
testq %rdi, %rdi
je 0x2c2a
movq -0x620(%rbp), %rsi
subq %rdi, %rsi
callq 0x2140
movq 0x3387(%rip), %rsi      # 0x5fb8
movq %rbx, %rdi
callq 0x2180
leaq -0x3a8(%rbp), %rbx
movq %rbx, %rdi
callq 0x2070
movq -0xa0(%rbx), %rdi
testq %rdi, %rdi
je 0x2c63
movq -0x438(%rbp), %rsi
subq %rdi, %rsi
callq 0x2140
movq -0x460(%rbp), %rdi
testq %rdi, %rdi
je 0x2c7e
movq -0x450(%rbp), %rsi
subq %rdi, %rsi
callq 0x2140
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x2c93
movq -0x48(%rbp), %rsi
subq %rdi, %rsi
callq 0x2140
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x2ca8
movq -0x60(%rbp), %rsi
subq %rdi, %rsi
callq 0x2140
xorl %eax, %eax
addq $0x608, %rsp            # imm = 0x608
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2090
leaq 0x30b3(%rip), %rcx      # 0x5d80
movq %rcx, (%rax)
leaq 0x1421(%rip), %rcx      # 0x40f8
movq %rcx, 0x8(%rax)
leaq 0x3076(%rip), %rsi      # 0x5d58
movq 0x32ef(%rip), %rdx      # 0x5fd8
movq %rax, %rdi
callq 0x21c0
jmp 0x2d5f
movl $0x10, %edi
callq 0x2090
leaq 0x307c(%rip), %rcx      # 0x5d80
movq %rcx, (%rax)
leaq 0x13c0(%rip), %rcx      # 0x40ce
movq %rcx, 0x8(%rax)
leaq 0x303f(%rip), %rsi      # 0x5d58
movq 0x32b8(%rip), %rdx      # 0x5fd8
movq %rax, %rdi
callq 0x21c0
jmp 0x2d5f
movl $0x10, %edi
callq 0x2090
leaq 0x3045(%rip), %rcx      # 0x5d80
movq %rcx, (%rax)
leaq 0x1366(%rip), %rcx      # 0x40ab
movq %rcx, 0x8(%rax)
leaq 0x3008(%rip), %rsi      # 0x5d58
movq 0x3281(%rip), %rdx      # 0x5fd8
movq %rax, %rdi
callq 0x21c0
jmp 0x2dd8
jmp 0x2d96
jmp 0x2d96
movq %rax, %rbx
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2de7
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x2de7
movq %rax, %rbx
leaq -0x2a0(%rbp), %rdi
callq 0x315c
jmp 0x2de7
jmp 0x2d96
movq %rax, %rbx
jmp 0x2de7
movq %rax, %rbx
leaq -0x2a0(%rbp), %rdi
callq 0x2f18
jmp 0x2de7
movq %rax, %rbx
leaq -0x630(%rbp), %rdi
callq 0x315c
jmp 0x2df3
movq %rax, %rbx
jmp 0x2df3
movq %rax, %rbx
leaq -0x460(%rbp), %rdi
callq 0x315c
jmp 0x2dff
movq %rax, %rbx
jmp 0x2dff
movq %rax, %rbx
leaq -0x2a0(%rbp), %rdi
callq 0x2050
leaq -0x630(%rbp), %rdi
callq 0x3100
leaq -0x460(%rbp), %rdi
callq 0x3100
leaq -0x70(%rbp), %rdi
callq 0x315c
movq %rbx, %rdi
callq 0x21e0