// File: /workspace/github_c_makefile_star2_O3/info-telecom-strasbourg[P]code-generator/src/flag_m.cpp
// Function: create_standard_main_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void create_standard_main_file (string path, string extension) {
	int exit_code;
	vector<char*> cmd;

	extension_safety (path, extension);
	
	LOAD_CMD ("bash");	
	LOAD_CMD (CPY_FILES_SCRIPT_PATH);

	if ( extension == "c" )
		LOAD_CMD (STANDARD_C_MAIN_FILE);
	else if ( extension == "cpp" )
		LOAD_CMD (STANDARD_CPP_MAIN_FILE);
	else if ( extension == "cc" )
		LOAD_CMD (STANDARD_CC_MAIN_FILE);
	else
		interupt(0, "\033[1;31merror\033[0m: Unrecognized extension \'%s\'",
			extension.c_str());

	LOAD_CMD (path.c_str());

	execute (exit_code, BASH_PATH, cmd);
	if (exit_code)
		return;

	if ( extension == "c" )
		cout << "\033[1;32minfo\033[0m: created a standard main C file at " 
			<< path << ".\n"; 
	else
		cout << "\033[1;32minfo\033[0m: created a standard main C++ file at " 
			<< path << ".\n"; 
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
leaq 0x78(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x3f06
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x3f06
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x5754
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x297e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x2995
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x475d(%rip), %rax      # 0x70f9
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
leaq 0x464f(%rip), %rax      # 0x7004
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
leaq 0x468f(%rip), %rsi      # 0x705d
movq %r14, %rdi
callq 0x2060
testl %eax, %eax
je 0x2a15
leaq 0x46ac(%rip), %rsi      # 0x708d
movq %r14, %rdi
callq 0x2060
testl %eax, %eax
je 0x2a30
leaq 0x46cb(%rip), %rsi      # 0x70bf
movq %r14, %rdi
callq 0x2060
testl %eax, %eax
je 0x2a4b
movq (%r14), %rdx
leaq 0x46b8(%rip), %rsi      # 0x70c2
xorl %edi, %edi
xorl %eax, %eax
callq 0x5adc
jmp 0x2a64
leaq 0x4613(%rip), %rax      # 0x702f
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
jmp 0x2a64
leaq 0x4628(%rip), %rax      # 0x705f
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
jmp 0x2a64
leaq 0x463f(%rip), %rax      # 0x7091
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
movq (%rbx), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3dea
leaq 0x4661(%rip), %rdx      # 0x70f0
leaq 0x88(%rsp), %rdi
leaq 0x2c(%rsp), %rsi
leaq 0x30(%rsp), %rcx
callq 0x5e42
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ac7
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2ade
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
cmpl $0x0, 0x2c(%rsp)
jne 0x2b48
leaq 0x4571(%rip), %rsi      # 0x705d
movq %r14, %rdi
callq 0x2060
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
leaq 0x45fc(%rip), %rax      # 0x70fe
leaq 0x4629(%rip), %rsi      # 0x7132
cmoveq %rax, %rsi
leaq 0x33(,%rcx,2), %rdx
movq 0x74ac(%rip), %rdi      # 0x9fc8
callq 0x2210
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x7499(%rip), %rdi      # 0x9fc8
callq 0x2210
leaq 0x46f2(%rip), %rsi      # 0x722d
movl $0x2, %edx
movq %rax, %rdi
callq 0x2210
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2b5f
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x2bc9
jmp 0x2bc9
jmp 0x2bc9
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2bcc
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
jmp 0x2bc2
jmp 0x2bc9
jmp 0x2bc9
jmp 0x2bc9
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x2bb0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x2bb0
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x2bcc
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x2bcc
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2be3
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2340