// File: /workspace/github_cpp_makefile_star2_O3/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 0x7d10
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0x30(%rsp), %r14
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x7140
leaq 0x2d4cc(%rip), %rsi     # 0x35030
movq %r14, %rdi
callq 0x70c0
testl %eax, %eax
je 0x7c37
leaq 0x2d4c4(%rip), %rsi     # 0x3503f
leaq 0x30(%rsp), %rdi
callq 0x70c0
movb $0x1, %bpl
testl %eax, %eax
jne 0x7cf6
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 0x2d47d(%rip), %rsi     # 0x3503c
leaq 0x30(%rsp), %rdi
callq 0x70c0
testl %eax, %eax
jne 0x7cf6
movq 0x10(%rbx), %rdi
movq 0x20(%rbx), %rsi
callq 0xb161
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 0x7d25
addq %rsi, %rdx
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x50(%rsp), %rdi
callq 0x8a78
movq (%r14), %rax
leaq 0x50(%rsp), %rsi
movq %r14, %rdi
callq *0x20(%rax)
movq 0x50(%rsp), %rdi
jmp 0x7cd7
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 0x2d3d6(%rip), %rsi     # 0x3503c
leaq 0x30(%rsp), %rdi
callq 0x70c0
movb $0x1, %bpl
testl %eax, %eax
jne 0x7cf6
movq 0x10(%rbx), %rdi
movq 0x20(%rbx), %rsi
callq 0xb161
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 0x7ce1
addq %rsi, %rdx
leaq 0x80(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x70(%rsp), %rdi
callq 0x8a78
movq (%r14), %rax
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq *0x18(%rax)
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x7ce1
callq 0x72e0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7cf4
callq 0x72e0
xorl %ebp, %ebp
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7d09
callq 0x72e0
xorl %eax, %eax
testb %bpl, %bpl
je 0x7d15
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 0x7cf6
movq %rsi, %rdi
callq 0x72e0
jmp 0x7cf6
movq %rax, %rbx
movq 0x50(%rsp), %rdi
jmp 0x7d4d
jmp 0x7d59
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x7d5c
callq 0x72e0
jmp 0x7d5c
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7d7c
callq 0x72e0
jmp 0x7d7c
jmp 0x7d79
jmp 0x7d79
jmp 0x7d79
jmp 0x7d79
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7d8f
callq 0x72e0
movq %rbx, %rdi
callq 0x75f0
nop