// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0x22c0
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x22c0
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x47d8
leaq 0x48(%rsp), %rdi
callq 0x20c0
leaq 0x68(%rsp), %rdi
callq 0x20c0
leaq 0x3acf(%rip), %rax      # 0x60f9
movq %rsp, %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x35bc
leaq 0x39c3(%rip), %rax      # 0x6004
movq %rsp, %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x35bc
leaq 0x3a05(%rip), %rsi      # 0x605d
movq %r14, %rdi
callq 0x348e
testb %al, %al
je 0x267d
leaq 0x39c4(%rip), %rax      # 0x602f
movq %rsp, %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x35bc
jmp 0x26e8
leaq 0x3a09(%rip), %rsi      # 0x608d
movq %r14, %rdi
callq 0x348e
testb %al, %al
je 0x26a9
leaq 0x39c8(%rip), %rax      # 0x605f
movq %rsp, %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x35bc
jmp 0x26e8
leaq 0x3a0f(%rip), %rsi      # 0x60bf
movq %r14, %rdi
callq 0x348e
testb %al, %al
je 0x26d5
leaq 0x39ce(%rip), %rax      # 0x6091
movq %rsp, %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x35bc
jmp 0x26e8
movq (%r14), %rdx
leaq 0x39e3(%rip), %rsi      # 0x60c2
xorl %edi, %edi
xorl %eax, %eax
callq 0x4a10
movq (%rbx), %rax
movq %rsp, %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x35bc
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x349c
leaq 0x39df(%rip), %rdx      # 0x60f0
leaq 0x88(%rsp), %rdi
leaq 0xc(%rsp), %rsi
leaq 0x30(%rsp), %rcx
callq 0x4d8c
leaq 0x88(%rsp), %rdi
callq 0x20c0
leaq 0x30(%rsp), %rdi
callq 0x3588
cmpl $0x0, 0xc(%rsp)
jne 0x278f
leaq 0x3910(%rip), %rsi      # 0x605d
movq %r14, %rdi
callq 0x348e
leaq 0x39a2(%rip), %rcx      # 0x60fe
leaq 0x39cf(%rip), %rsi      # 0x6132
testb %al, %al
cmovneq %rcx, %rsi
movq 0x6858(%rip), %rdi      # 0x8fc8
callq 0x21b0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2180
leaq 0x3aa6(%rip), %rsi      # 0x622d
movq %rax, %rdi
callq 0x21b0
leaq 0x10(%rsp), %rdi
callq 0x3588
addq $0xa8, %rsp
popq %rbx
popq %r14
retq
jmp 0x27dd
jmp 0x27dd
jmp 0x27dd
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x3588
jmp 0x27e0
jmp 0x27dd
jmp 0x27dd
jmp 0x27dd
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x20c0
jmp 0x27d1
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x20c0
jmp 0x27e0
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x3588
movq %rbx, %rdi
callq 0x2350