// File: /workspace/github_cpp_makefile_star2_O1/CDISC2020[P]Projet_satellite_agile/src/FDIR/main_FDIR.cpp
// Function: maj_listpid()
void maj_listpid()
{
	string line;
	string listpid;
	ifstream fichier;
	ofstream wfichier;

	// Lecture pid FDIR
	fichier.open("pid_FDIR");
	if(!fichier){
		cout << "Failed to open pid_FDIR" << endl;
		exit(1);
	}
	getline(fichier,line);
	listpid.append(line);
	listpid.append("\n");
	fichier.close();

	// Lecture pid COM
	fichier.open("pid_COM");
	if(!fichier){
		cout << "Failed to open pid_FDIR" << endl;
		exit(1);
	}
	getline(fichier,line);
	listpid.append(line);
	listpid.append("\n");
	fichier.close();

	// Lecture pid PM
	fichier.open("pid_PM");
	if(!fichier){
		cout << "Failed to open pid_FDIR" << endl;
		exit(1);
	}
	getline(fichier,line);
	listpid.append(line);
	listpid.append("\n");
	fichier.close();

////////// Ecritude du listpid
	cout << "listpid=" << listpid << endl;
	wfichier.open("listpid");
	if(!wfichier)
	{
		cout << "Failed to open listpid" << endl;
		exit(1);
	}
	wfichier << listpid;
	wfichier.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x448, %rsp            # imm = 0x448
leaq -0x48(%rbp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq -0x260(%rbp), %rdi
callq 0x2210
leaq -0x460(%rbp), %rdi
callq 0x2370
leaq 0x203d(%rip), %rsi      # 0x51f5
leaq -0x260(%rbp), %rdi
movl $0x8, %edx
callq 0x2120
movq -0x260(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x240(%rbp,%rax)
jne 0x3456
leaq (%rax,%rbp), %rdi
addq $-0x260, %rdi           # imm = 0xFDA0
movl $0xa, %esi
callq 0x21f0
movsbl %al, %edx
leaq -0x260(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x23c0
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq -0x38(%rbp), %rdi
callq 0x20c0
leaq 0x1e09(%rip), %rsi      # 0x502b
leaq -0x38(%rbp), %rdi
callq 0x23d0
leaq -0x260(%rbp), %rdi
callq 0x2090
leaq 0x1fc0(%rip), %rsi      # 0x51fe
leaq -0x260(%rbp), %rdi
movl $0x8, %edx
callq 0x2120
movq -0x260(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x240(%rbp,%rax)
jne 0x347c
leaq (%rax,%rbp), %rdi
addq $-0x260, %rdi           # imm = 0xFDA0
movl $0xa, %esi
callq 0x21f0
movsbl %al, %edx
leaq -0x260(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x23c0
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq -0x38(%rbp), %rdi
callq 0x20c0
leaq 0x1d83(%rip), %rsi      # 0x502b
leaq -0x38(%rbp), %rdi
callq 0x23d0
leaq -0x260(%rbp), %rdi
callq 0x2090
leaq 0x1f42(%rip), %rsi      # 0x5206
leaq -0x260(%rbp), %rdi
movl $0x8, %edx
callq 0x2120
movq -0x260(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x240(%rbp,%rax)
jne 0x34a2
leaq (%rax,%rbp), %rdi
addq $-0x260, %rdi           # imm = 0xFDA0
movl $0xa, %esi
callq 0x21f0
movsbl %al, %edx
leaq -0x260(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x23c0
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq -0x38(%rbp), %rdi
callq 0x20c0
leaq 0x1cfd(%rip), %rsi      # 0x502b
leaq -0x38(%rbp), %rdi
callq 0x23d0
leaq -0x260(%rbp), %rdi
callq 0x2090
movq 0x4c86(%rip), %rdi      # 0x7fd0
leaq 0x1ebc(%rip), %rsi      # 0x520d
movl $0x8, %edx
callq 0x2230
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq 0x4c66(%rip), %rdi      # 0x7fd0
callq 0x2230
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2140
leaq 0x1e85(%rip), %rsi      # 0x5225
leaq -0x460(%rbp), %rdi
movl $0x10, %edx
callq 0x2060
movq -0x460(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x440(%rbp,%rax)
jne 0x34c8
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
leaq -0x460(%rbp), %rdi
callq 0x2230
leaq -0x460(%rbp), %rdi
callq 0x22b0
movq 0x4bd7(%rip), %rax      # 0x7fc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x458(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x460(%rbp,%rcx)
callq 0x2190
leaq -0x368(%rbp), %rdi
callq 0x20d0
leaq -0x260(%rbp), %rdi
callq 0x20b0
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x343a
callq 0x21d0
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0x3448
callq 0x21d0
addq $0x448, %rsp            # imm = 0x448
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x4b73(%rip), %rdi      # 0x7fd0
leaq 0x1d82(%rip), %rsi      # 0x51e6
movl $0x17, %edx
callq 0x2230
movq 0x4b5b(%rip), %rdi      # 0x7fd0
callq 0x2110
jmp 0x34ec
movq 0x4b4d(%rip), %rdi      # 0x7fd0
leaq 0x1d5c(%rip), %rsi      # 0x51e6
movl $0x17, %edx
callq 0x2230
movq 0x4b35(%rip), %rdi      # 0x7fd0
callq 0x2110
jmp 0x34ec
movq 0x4b27(%rip), %rdi      # 0x7fd0
leaq 0x1d36(%rip), %rsi      # 0x51e6
movl $0x17, %edx
callq 0x2230
movq 0x4b0f(%rip), %rdi      # 0x7fd0
callq 0x2110
jmp 0x34ec
movq 0x4b01(%rip), %rdi      # 0x7fd0
leaq 0x1d40(%rip), %rsi      # 0x5216
movl $0x16, %edx
callq 0x2230
movq 0x4ae9(%rip), %rdi      # 0x7fd0
callq 0x2110
movl $0x1, %edi
callq 0x2250
movq %rax, %rbx
jmp 0x350f
movq %rax, %rbx
jmp 0x351b
movq %rax, %rbx
leaq -0x460(%rbp), %rdi
callq 0x22e0
leaq -0x260(%rbp), %rdi
callq 0x20b0
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x3529
callq 0x21d0
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0x3537
callq 0x21d0
movq %rbx, %rdi
callq 0x23a0