// File: /workspace/github_cpp_makefile_star2_O1/gioannides[P]Language_Processors/src/c_compiler.cpp
// Function: main
int main(int argc, char* argv[]){

    	if (argc == 5){

		std::string argument = argv[1];

		if( argument == "--translate" ) {

			argument = argv[3];

			if( argument == "-o" ) {
		 		const TranslationUnit* ast = parseAST(argv[2],argv[4]);
				std::string file_name = argv[4];
				char Last_letter = file_name[file_name.size()-1];
				if( Last_letter == 'y' ){
					ast->print_py(file_name);
					return 0;
				}

				else {
					return 0;

				}
				
			}
		}

		else if( argument == "-S" ) {

			argument = argv[3];

			if( argument == "-o" ) {
		 		const TranslationUnit* ast = parseAST(argv[2],argv[4]);
				std::string file_name = argv[4];
				char Last_letter = file_name[file_name.size()-1];
				if( Last_letter == 's' ){
					ast->render_asm(file_name);
					return 0;
				}
			}
		}

	}	
	return -1;
  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
cmpl $0x5, %edi
jne 0x7ce0
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0x30(%rsp), %r14
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x7140
leaq 0x2d4fc(%rip), %rsi     # 0x35030
movq %r14, %rdi
callq 0x70c0
testl %eax, %eax
je 0x7c07
leaq 0x2d4f4(%rip), %rsi     # 0x3503f
leaq 0x30(%rsp), %rdi
callq 0x70c0
movb $0x1, %bpl
testl %eax, %eax
jne 0x7cc6
movq 0x18(%rbx), %r14
leaq 0x30(%rsp), %r15
movq 0x8(%r15), %r12
movq %r14, %rdi
callq 0x7170
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x7520
leaq 0x2d4ad(%rip), %rsi     # 0x3503c
leaq 0x30(%rsp), %rdi
callq 0x70c0
testl %eax, %eax
jne 0x7cc6
movq 0x10(%rbx), %rdi
movq 0x20(%rbx), %rsi
callq 0xba45
movq %rax, %r14
movq 0x20(%rbx), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x7140
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
cmpb $0x73, -0x1(%rsi,%rdx)
jne 0x7cf5
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x8a36
movq (%r14), %rax
leaq 0x50(%rsp), %rsi
movq %r14, %rdi
callq *0x20(%rax)
movq 0x50(%rsp), %rdi
jmp 0x7ca7
movq 0x18(%rbx), %r14
leaq 0x30(%rsp), %r15
movq 0x8(%r15), %r12
movq %r14, %rdi
callq 0x7170
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x7520
leaq 0x2d406(%rip), %rsi     # 0x3503c
leaq 0x30(%rsp), %rdi
callq 0x70c0
movb $0x1, %bpl
testl %eax, %eax
jne 0x7cc6
movq 0x10(%rbx), %rdi
movq 0x20(%rbx), %rsi
callq 0xba45
movq %rax, %r14
movq 0x20(%rbx), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x7140
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
cmpb $0x79, -0x1(%rsi,%rdx)
jne 0x7cb1
leaq 0x80(%rsp), %r15
movq %r15, -0x10(%r15)
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x8a36
movq (%r14), %rax
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq *0x18(%rax)
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x7cb1
callq 0x72e0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7cc4
callq 0x72e0
xorl %ebp, %ebp
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7cd9
callq 0x72e0
xorl %eax, %eax
testb %bpl, %bpl
je 0x7ce5
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20(%rsp), %rax
cmpq %rax, %rsi
je 0x7cc6
movq %rsi, %rdi
callq 0x72e0
jmp 0x7cc6
movq %rax, %rbx
movq 0x50(%rsp), %rdi
jmp 0x7d1d
jmp 0x7d29
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x7d2c
callq 0x72e0
jmp 0x7d2c
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7d4c
callq 0x72e0
jmp 0x7d4c
jmp 0x7d49
jmp 0x7d49
jmp 0x7d49
jmp 0x7d49
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7d5f
callq 0x72e0
movq %rbx, %rdi
callq 0x75f0
nop