// File: /workspace/github_c_makefile_star2_O0/info-telecom-strasbourg[P]code-generator/src/flag_m.cpp
// Function: flag_m()
void flag_m () {
	if ( file_exists ("Makefile") || file_exists ("makefile") ) {
		cerr << "\n\033[1;31merror\033[0m: There is already a Makefile";
		cerr << " in the current directory." << endl;
		exit (EXIT_FAILURE);
	}

	int exit_code;
	string opt_0, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7;

	GET_CONFIG (
		opt_5 = parse_path (ds->source, ds->c_extension, IS_SOURCE);
		opt_3 = parse_path (ds->include, ds->h_extension, IS_INCLUDE);
		parse_path (ds->object, "?", IS_OTHER);
		parse_path (ds->bin, "?", IS_OTHER);

		opt_0 = strlen(ds->c_extension) == 1 ? "gcc" : "g++";
		opt_1 = ds->c_extension;
		opt_2 = ds->h_extension;

		opt_4 = ds->name;
		
		opt_6 = ds->object;
		opt_7 = ds->bin;
	)

	vector<char*> cmd;
	LOAD_CMD("bash");
	LOAD_CMD (BUILD_MAKEFILE_SCRIPT_PATH);
	LOAD_CMD (opt_0.c_str());
	LOAD_CMD (opt_1.c_str());
	LOAD_CMD (opt_2.c_str());
	LOAD_CMD (opt_3.c_str());
	LOAD_CMD (opt_4.c_str());
	LOAD_CMD (opt_5.c_str());
	LOAD_CMD (opt_6.c_str());
	LOAD_CMD (opt_7.c_str());
	LOAD_CMD (MAKEFILE_TEMPLATE_PATH);

	execute (exit_code, BASH_PATH, cmd);
	CHECK_CODE (exit_code);

	cout << "\n\033[1;32minfo\033[0m: Successfully created the Makefile !\n";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
leaq 0x5e7e(%rip), %rdi      # 0xa290
callq 0x8260
testb $0x1, %al
jne 0x442d
leaq 0x5e3f(%rip), %rdi      # 0xa261
callq 0x8260
testb $0x1, %al
jne 0x442d
jmp 0x446c
movq 0x9bbc(%rip), %rdi      # 0xdff0
leaq 0x5e2f(%rip), %rsi      # 0xa26a
callq 0x3230
movq 0x9ba9(%rip), %rdi      # 0xdff0
leaq 0x5e4b(%rip), %rsi      # 0xa299
callq 0x3230
movq %rax, %rdi
movq 0x9b53(%rip), %rsi      # 0xdfb0
callq 0x3280
movl $0x1, %edi
callq 0x3310
leaq -0x28(%rbp), %rdi
callq 0x33c0
leaq -0x48(%rbp), %rdi
callq 0x33c0
leaq -0x68(%rbp), %rdi
callq 0x33c0
leaq -0x88(%rbp), %rdi
callq 0x33c0
leaq -0xa8(%rbp), %rdi
callq 0x33c0
leaq -0xc8(%rbp), %rdi
callq 0x33c0
leaq -0xe8(%rbp), %rdi
callq 0x33c0
leaq -0x108(%rbp), %rdi
callq 0x33c0
leaq 0x5dea(%rip), %rdi      # 0xa2b4
leaq 0x5df7(%rip), %rsi      # 0xa2c8
callq 0x32f0
movq %rax, -0x258(%rbp)
jmp 0x44df
movq -0x258(%rbp), %rax
movq %rax, -0x110(%rbp)
cmpq $0x0, -0x110(%rbp)
jne 0x4530
movq 0x9ad2(%rip), %rax      # 0xdfd0
movq (%rax), %rdi
leaq 0x5dc2(%rip), %rsi      # 0xa2ca
movb $0x0, %al
callq 0x33e0
movl $0x1, %edi
callq 0x3310
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x118(%rbp)
movl %eax, -0x11c(%rbp)
jmp 0x4d23
movl $0x380, %edi            # imm = 0x380
callq 0x3380
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rdi
movq -0x110(%rbp), %rcx
movl $0x80, %esi
movl $0x1, %edx
callq 0x3400
jmp 0x4560
movq -0x128(%rbp), %rdi
subq $-0x80, %rdi
movq -0x110(%rbp), %rcx
movl $0x80, %esi
movl $0x1, %edx
callq 0x3400
jmp 0x4583
movq -0x128(%rbp), %rdi
addq $0x100, %rdi            # imm = 0x100
movq -0x110(%rbp), %rcx
movl $0x80, %esi
movl $0x1, %edx
callq 0x3400
jmp 0x45a9
movq -0x128(%rbp), %rdi
addq $0x180, %rdi            # imm = 0x180
movq -0x110(%rbp), %rcx
movl $0x80, %esi
movl $0x1, %edx
callq 0x3400
jmp 0x45cf
movq -0x128(%rbp), %rdi
addq $0x200, %rdi            # imm = 0x200
movq -0x110(%rbp), %rcx
movl $0x80, %esi
movl $0x1, %edx
callq 0x3400
jmp 0x45f5
movq -0x128(%rbp), %rdi
addq $0x280, %rdi            # imm = 0x280
movq -0x110(%rbp), %rcx
movl $0x80, %esi
movl $0x1, %edx
callq 0x3400
jmp 0x461b
movq -0x128(%rbp), %rdi
addq $0x300, %rdi            # imm = 0x300
movq -0x110(%rbp), %rcx
movl $0x80, %esi
movl $0x1, %edx
callq 0x3400
jmp 0x4641
movq -0x128(%rbp), %rdi
leaq 0x5c9b(%rip), %rsi      # 0xa2ea
callq 0x33d0
cmpl $0x0, %eax
jne 0x467b
movq 0x9970(%rip), %rax      # 0xdfd0
movq (%rax), %rdi
leaq 0x5c86(%rip), %rsi      # 0xa2f0
movb $0x0, %al
callq 0x33e0
movl $0x1, %edi
callq 0x3310
movq -0x128(%rbp), %rdi
addq $0x80, %rdi
leaq 0x5c5a(%rip), %rsi      # 0xa2ea
callq 0x33d0
cmpl $0x0, %eax
jne 0x46bc
movq 0x992f(%rip), %rax      # 0xdfd0
movq (%rax), %rdi
leaq 0x5c6c(%rip), %rsi      # 0xa317
movb $0x0, %al
callq 0x33e0
movl $0x1, %edi
callq 0x3310
movq -0x128(%rbp), %rdi
addq $0x100, %rdi            # imm = 0x100
leaq 0x5c19(%rip), %rsi      # 0xa2ea
callq 0x33d0
cmpl $0x0, %eax
jne 0x46fd
movq 0x98ee(%rip), %rax      # 0xdfd0
movq (%rax), %rdi
leaq 0x5c53(%rip), %rsi      # 0xa33f
movb $0x0, %al
callq 0x33e0
movl $0x1, %edi
callq 0x3310
movq -0x128(%rbp), %rdi
addq $0x180, %rdi            # imm = 0x180
leaq 0x5bd8(%rip), %rsi      # 0xa2ea
callq 0x33d0
cmpl $0x0, %eax
jne 0x473e
movq 0x98ad(%rip), %rax      # 0xdfd0
movq (%rax), %rdi
leaq 0x5c39(%rip), %rsi      # 0xa366
movb $0x0, %al
callq 0x33e0
movl $0x1, %edi
callq 0x3310
movq -0x128(%rbp), %rdi
addq $0x200, %rdi            # imm = 0x200
leaq 0x5b97(%rip), %rsi      # 0xa2ea
callq 0x33d0
cmpl $0x0, %eax
jne 0x477f
movq 0x986c(%rip), %rax      # 0xdfd0
movq (%rax), %rdi
leaq 0x5c1c(%rip), %rsi      # 0xa38a
movb $0x0, %al
callq 0x33e0
movl $0x1, %edi
callq 0x3310
movq -0x128(%rbp), %rdi
addq $0x280, %rdi            # imm = 0x280
leaq 0x5b56(%rip), %rsi      # 0xa2ea
callq 0x33d0
cmpl $0x0, %eax
je 0x47b7
movq -0x128(%rbp), %rdi
addq $0x280, %rdi            # imm = 0x280
callq 0x30e0
cmpq $0x0, %rax
jne 0x47d9
movq 0x9812(%rip), %rax      # 0xdfd0
movq (%rax), %rdi
leaq 0x5be9(%rip), %rsi      # 0xa3b1
movb $0x0, %al
callq 0x33e0
movl $0x1, %edi
callq 0x3310
movq -0x128(%rbp), %rdi
addq $0x300, %rdi            # imm = 0x300
leaq 0x5afc(%rip), %rsi      # 0xa2ea
callq 0x33d0
cmpl $0x0, %eax
je 0x4811
movq -0x128(%rbp), %rdi
addq $0x300, %rdi            # imm = 0x300
callq 0x30e0
cmpq $0x0, %rax
jne 0x4833
movq 0x97b8(%rip), %rax      # 0xdfd0
movq (%rax), %rdi
leaq 0x5bc1(%rip), %rsi      # 0xa3e3
movb $0x0, %al
callq 0x33e0
movl $0x1, %edi
callq 0x3310
movq -0x128(%rbp), %rsi
movq %rsi, %rdx
addq $0x280, %rdx            # imm = 0x280
leaq -0x148(%rbp), %rdi
xorl %ecx, %ecx
callq 0x3e20
jmp 0x4854
leaq -0xc8(%rbp), %rdi
leaq -0x148(%rbp), %rsi
movq %rsi, -0x260(%rbp)
callq 0x3320
movq -0x260(%rbp), %rdi
callq 0x3140
movq -0x128(%rbp), %rdx
movq %rdx, %rsi
subq $-0x80, %rsi
addq $0x300, %rdx            # imm = 0x300
leaq -0x168(%rbp), %rdi
movl $0x1, %ecx
callq 0x3e20
jmp 0x48a2
leaq -0x88(%rbp), %rdi
leaq -0x168(%rbp), %rsi
movq %rsi, -0x268(%rbp)
callq 0x3320
movq -0x268(%rbp), %rdi
callq 0x3140
movq -0x128(%rbp), %rsi
addq $0x100, %rsi            # imm = 0x100
leaq 0x5b39(%rip), %rdx      # 0xa416
leaq -0x188(%rbp), %rdi
movl $0x2, %ecx
callq 0x3e20
jmp 0x48f0
leaq -0x188(%rbp), %rdi
callq 0x3140
movq -0x128(%rbp), %rsi
addq $0x180, %rsi            # imm = 0x180
leaq 0x5b05(%rip), %rdx      # 0xa416
leaq -0x1a8(%rbp), %rdi
movl $0x2, %ecx
callq 0x3e20
jmp 0x4924
leaq -0x1a8(%rbp), %rdi
callq 0x3140
movq -0x128(%rbp), %rdi
addq $0x280, %rdi            # imm = 0x280
callq 0x30e0
cmpq $0x1, %rax
jne 0x4959
leaq 0x5ac8(%rip), %rax      # 0xa418
movq %rax, -0x270(%rbp)
jmp 0x4969
leaq 0x5abc(%rip), %rax      # 0xa41c
movq %rax, -0x270(%rbp)
jmp 0x4969
movq -0x270(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x33a0
jmp 0x497b
movq -0x128(%rbp), %rsi
addq $0x280, %rsi            # imm = 0x280
leaq -0x48(%rbp), %rdi
callq 0x33a0
jmp 0x4994
movq -0x128(%rbp), %rsi
addq $0x300, %rsi            # imm = 0x300
leaq -0x68(%rbp), %rdi
callq 0x33a0
jmp 0x49ad
movq -0x128(%rbp), %rsi
addq $0x200, %rsi            # imm = 0x200
leaq -0xa8(%rbp), %rdi
callq 0x33a0
jmp 0x49c9
movq -0x128(%rbp), %rsi
addq $0x100, %rsi            # imm = 0x100
leaq -0xe8(%rbp), %rdi
callq 0x33a0
jmp 0x49e5
movq -0x128(%rbp), %rsi
addq $0x180, %rsi            # imm = 0x180
leaq -0x108(%rbp), %rdi
callq 0x33a0
jmp 0x4a01
movq -0x128(%rbp), %rdi
callq 0x3300
jmp 0x4a0f
leaq -0x1c0(%rbp), %rdi
callq 0x4d90
leaq 0x56d7(%rip), %rax      # 0xa0f9
movq %rax, -0x1c8(%rbp)
leaq -0x1c0(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
callq 0x4db0
jmp 0x4a3e
jmp 0x4a40
jmp 0x4a42
jmp 0x4a44
leaq 0x59d5(%rip), %rax      # 0xa420
movq %rax, -0x1d0(%rbp)
leaq -0x1c0(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x4db0
jmp 0x4a67
jmp 0x4a69
jmp 0x4a6b
jmp 0x4a6d
leaq -0x28(%rbp), %rdi
callq 0x30c0
movq %rax, -0x1d8(%rbp)
leaq -0x1c0(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x4db0
jmp 0x4a92
jmp 0x4a94
jmp 0x4a96
jmp 0x4a98
leaq -0x48(%rbp), %rdi
callq 0x30c0
movq %rax, -0x1e0(%rbp)
leaq -0x1c0(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
callq 0x4db0
jmp 0x4abd
jmp 0x4abf
jmp 0x4ac1
jmp 0x4ac3
leaq -0x68(%rbp), %rdi
callq 0x30c0
movq %rax, -0x1e8(%rbp)
leaq -0x1c0(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
callq 0x4db0
jmp 0x4ae8
jmp 0x4aea
jmp 0x4aec
jmp 0x4aee
leaq -0x88(%rbp), %rdi
callq 0x30c0
movq %rax, -0x1f0(%rbp)
leaq -0x1c0(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x4db0
jmp 0x4b16
jmp 0x4b18
jmp 0x4b1a
jmp 0x4b1c
leaq -0xa8(%rbp), %rdi
callq 0x30c0
movq %rax, -0x1f8(%rbp)
leaq -0x1c0(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
callq 0x4db0
jmp 0x4b44
jmp 0x4b46
jmp 0x4b48
jmp 0x4b4a
leaq -0xc8(%rbp), %rdi
callq 0x30c0
movq %rax, -0x200(%rbp)
leaq -0x1c0(%rbp), %rdi
leaq -0x200(%rbp), %rsi
callq 0x4db0
jmp 0x4b72
jmp 0x4b74
jmp 0x4b76
jmp 0x4b78
leaq -0xe8(%rbp), %rdi
callq 0x30c0
movq %rax, -0x208(%rbp)
leaq -0x1c0(%rbp), %rdi
leaq -0x208(%rbp), %rsi
callq 0x4db0
jmp 0x4ba0
jmp 0x4ba2
jmp 0x4ba4
jmp 0x4ba6
leaq -0x108(%rbp), %rdi
callq 0x30c0
movq %rax, -0x210(%rbp)
leaq -0x1c0(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0x4db0
jmp 0x4bce
jmp 0x4bd0
jmp 0x4bd2
jmp 0x4bd4
leaq 0x5875(%rip), %rax      # 0xa450
movq %rax, -0x218(%rbp)
leaq -0x1c0(%rbp), %rdi
leaq -0x218(%rbp), %rsi
callq 0x4db0
jmp 0x4bf7
jmp 0x4bf9
jmp 0x4bfb
leaq -0x250(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
callq 0x4e10
jmp 0x4c10
leaq 0x54d9(%rip), %rdx      # 0xa0f0
leaq -0x238(%rbp), %rdi
leaq -0x4(%rbp), %rsi
leaq -0x250(%rbp), %rcx
callq 0x8780
jmp 0x4c30
leaq -0x238(%rbp), %rdi
callq 0x3140
leaq -0x250(%rbp), %rdi
callq 0x4f00
cmpl $0x1, -0x4(%rbp)
jne 0x4c92
movl $0x1, %edi
callq 0x3310
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x118(%rbp)
movl %eax, -0x11c(%rbp)
jmp 0x4d17
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x118(%rbp)
movl %eax, -0x11c(%rbp)
leaq -0x250(%rbp), %rdi
callq 0x4f00
jmp 0x4d17
jmp 0x4c94
jmp 0x4c96
movq 0x932b(%rip), %rdi      # 0xdfc8
leaq 0x57d9(%rip), %rsi      # 0xa47d
callq 0x3230
jmp 0x4cab
leaq -0x1c0(%rbp), %rdi
callq 0x4f00
leaq -0x108(%rbp), %rdi
callq 0x3140
leaq -0xe8(%rbp), %rdi
callq 0x3140
leaq -0xc8(%rbp), %rdi
callq 0x3140
leaq -0xa8(%rbp), %rdi
callq 0x3140
leaq -0x88(%rbp), %rdi
callq 0x3140
leaq -0x68(%rbp), %rdi
callq 0x3140
leaq -0x48(%rbp), %rdi
callq 0x3140
leaq -0x28(%rbp), %rdi
callq 0x3140
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
leaq -0x1c0(%rbp), %rdi
callq 0x4f00
leaq -0x108(%rbp), %rdi
callq 0x3140
leaq -0xe8(%rbp), %rdi
callq 0x3140
leaq -0xc8(%rbp), %rdi
callq 0x3140
leaq -0xa8(%rbp), %rdi
callq 0x3140
leaq -0x88(%rbp), %rdi
callq 0x3140
leaq -0x68(%rbp), %rdi
callq 0x3140
leaq -0x48(%rbp), %rdi
callq 0x3140
leaq -0x28(%rbp), %rdi
callq 0x3140
movq -0x118(%rbp), %rdi
callq 0x3490
nopw %cs:(%rax,%rax)