// File: dcarrey[P]hgt-detection/./fonctions.cpp
// Function: printListSpecies(HGT*, int, double*, int)
void printListSpecies(struct HGT * bestHGT, int nbHGT, double *tabBoot, int bootmin){

		FILE * out = fopen ("result.txt","w+");
		for(int i=1; i<= nbHGT && (bestHGT[i].valide == 1 || (bestHGT[i].valide == 6)); i++){
			if((tabBoot != NULL && tabBoot[i] >= bootmin) || (tabBoot == NULL)){
				fprintf(out,"\n%d",bestHGT[i].listSource[0]);
				for(int j=1;j<=bestHGT[i].listSource[0];j++)
					fprintf(out," %d",bestHGT[i].listSource[j]);
				fprintf(out,"\n%d",bestHGT[i].listDestination[0]);
				for(int j=1;j<=bestHGT[i].listDestination[0];j++)
					fprintf(out," %d",bestHGT[i].listDestination[j]);
			}
		}
		fclose(out);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
leaq 0xbfb9(%rip), %rdi      # 0x253a6
leaq 0xc3d5(%rip), %rsi      # 0x257c9
callq 0x10c0
movq %rax, -0x28(%rbp)
movl $0x1, -0x2c(%rbp)
movl -0x2c(%rbp), %ecx
xorl %eax, %eax
cmpl -0xc(%rbp), %ecx
movb %al, -0x35(%rbp)
jg 0x1944e
movq -0x8(%rbp), %rcx
movslq -0x2c(%rbp), %rax
imulq $0xa8, %rax, %rax
addq %rax, %rcx
movb $0x1, %al
cmpl $0x1, (%rcx)
movb %al, -0x36(%rbp)
je 0x19448
movq -0x8(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
cmpl $0x6, (%rax)
sete %al
movb %al, -0x36(%rbp)
movb -0x36(%rbp), %al
movb %al, -0x35(%rbp)
movb -0x35(%rbp), %al
testb $0x1, %al
jne 0x1945a
jmp 0x195a6
cmpq $0x0, -0x18(%rbp)
je 0x19479
movq -0x18(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
cvtsi2sdl -0x1c(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jae 0x19484
cmpq $0x0, -0x18(%rbp)
jne 0x19596
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movl (%rax), %edx
leaq 0xcdd7(%rip), %rsi      # 0x2627e
movb $0x0, %al
callq 0x1140
movl $0x1, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x8(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
imulq $0xa8, %rdx, %rdx
addq %rdx, %rcx
movq 0x10(%rcx), %rcx
cmpl (%rcx), %eax
jg 0x1950c
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movslq -0x30(%rbp), %rcx
movl (%rax,%rcx,4), %edx
leaq 0xc247(%rip), %rsi      # 0x25741
movb $0x0, %al
callq 0x1140
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x194b5
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movl (%rax), %edx
leaq 0xcd4f(%rip), %rsi      # 0x2627e
movb $0x0, %al
callq 0x1140
movl $0x1, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x8(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
imulq $0xa8, %rdx, %rdx
addq %rdx, %rcx
movq 0x18(%rcx), %rcx
cmpl (%rcx), %eax
jg 0x19594
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movslq -0x34(%rbp), %rcx
movl (%rax,%rcx,4), %edx
leaq 0xc1bf(%rip), %rsi      # 0x25741
movb $0x0, %al
callq 0x1140
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x1953d
jmp 0x19596
jmp 0x19598
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x19404
movq -0x28(%rbp), %rdi
callq 0x1090
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)