// File: /workspace/github_cpp_makefile_star2_O3/Cicko[P]Ram-Machine/main.cpp
// Function: main
int main (int argc, char* argv[]) {

  if (argc < 5) {
    cout << endl << "Usage: \n ./RamMachine <inputTape.txt> <outputTape.txt> <program.ram> <Memory-size>" << endl << endl;
    return -1;
  }
  string inTape (argv[1]);
  string outTape (argv[2]);
  string fich (argv[3]);
  int size = atoi (argv[4]);

  RamMachine * myMachine = new RamMachine (inTape, outTape, fich, size);

  menu(myMachine);



  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
cmpl $0x4, %edi
jg 0x61bc
movq 0x1ce8d(%rip), %rbx     # 0x22fb0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5270
movq %rax, %rbx
leaq 0x13084(%rip), %rsi     # 0x191d8
movl $0x52, %edx
movq %rax, %rdi
callq 0x53d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5270
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5340
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5270
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x6313
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0xa8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x5160
movq 0x10(%rbx), %rsi
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x5160
movq 0x18(%rbx), %rsi
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x5160
movq 0x20(%rbx), %rdi
callq 0x5530
movl %eax, %ebp
movl $0x28, %edi
callq 0x5350
movq %rax, %rbx
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x63c2
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x63c2
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x63c2
leaq 0x88(%rsp), %rsi
leaq 0x68(%rsp), %rdx
leaq 0x48(%rsp), %rcx
movq %rbx, %rdi
movl %ebp, %r8d
callq 0x1564c
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x62ac
callq 0x5330
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x62bb
callq 0x5330
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x62cd
callq 0x5330
movq %rbx, %rdi
callq 0x59dc
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x62e8
callq 0x5330
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x62fb
callq 0x5330
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6311
callq 0x5330
xorl %eax, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x633c
callq 0x5330
jmp 0x633c
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x6350
callq 0x5330
jmp 0x6350
movq %rax, %r14
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x6367
callq 0x5330
jmp 0x6367
movq %rax, %r14
movq %rbx, %rdi
callq 0x5330
jmp 0x637e
movq %rax, %r14
jmp 0x6391
movq %rax, %r14
jmp 0x63a4
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6391
callq 0x5330
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x63a4
callq 0x5330
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x63ba
callq 0x5330
movq %r14, %rdi
callq 0x55c0