// File: /workspace/github_cpp_makefile_star2_O2/dcarrey[P]hgt-detection/./utils_tree.cpp
// Function: printEdges(_IO_FILE*, int, long*, double*, char**, int, int*, int, int)
void printEdges(FILE *out,int ShowName, long int * ARETES,double * LONGUEUR,char ** NAMES,int size,int *BSARETE,int nbTree,int kt){

	int i,j,fichier=1,boot=1,longChaine=0;
//	double bsvalue;

	//if(nbTree==0)
	//	boot=0;
	for(i=1;i<=size;i++){
		if ((int)strlen(NAMES[i]) > longChaine)
			longChaine = (int)strlen(NAMES[i]);
	}
	if(out == NULL)
		fichier =0;
	//printf("\n");
	for(i=1;i<=2*size-3-kt;i++){
		//if(boot==1)
			//bsvalue = BSARETE[i]*100.0 / nbTree;
		if(ShowName == 0){
			if(fichier==1){
				fprintf(out,"\n%d. %ld--%ld \t: %lf ",i,ARETES[2*i-1],ARETES[2*i-2],LONGUEUR[i-1]);
			}
			else{
				printf("\n%d. %ld--%ld \t: %lf ",i,ARETES[2*i-1],ARETES[2*i-2],LONGUEUR[i-1]);
			}
		}
		else{
			if(ARETES[2*i-1] <= size){
				if(fichier==1){
					fprintf(out,"\n%d. %ld--%s",i,ARETES[2*i-2],NAMES[ARETES[2*i-1]]);
					for(j=0;j<longChaine - (int)strlen(NAMES[ARETES[2*i-1]]);j++) fprintf(out," ");
					fprintf(out,"\t%lf",LONGUEUR[i-1]);
				}
				else{
					printf("\n%d. %ld--%s",i,ARETES[2*i-2],NAMES[ARETES[2*i-1]]);
					for(j=0;j<longChaine - (int)strlen(NAMES[ARETES[2*i-1]]);j++) printf(" ");
					printf("\t%lf",LONGUEUR[i-1]);
				}
			}
			else if(ARETES[2*i-2] <= size){
				if (fichier==1){
					fprintf(out,"\n%d. %ld--%s",i,ARETES[2*i-1],NAMES[ARETES[2*i-2]]);
					for(j=0;j<longChaine - (int)strlen(NAMES[ARETES[2*i-2]]);j++) fprintf(out," ");
					fprintf(out,"\t%lf",LONGUEUR[i-1]);
				}
				else{
					printf("\n%d. %ld--%s",i,ARETES[2*i-1],NAMES[ARETES[2*i-2]]);
					for(j=0;j<longChaine - (int)strlen(NAMES[ARETES[2*i-2]]);j++) printf(" ");
					printf("\t%lf",LONGUEUR[i-1]);
				}
			}
			else{
				if(fichier==1){
					fprintf(out,"\n%d. %ld--%ld",i,ARETES[2*i-1],ARETES[2*i-2]);
					for(j=0;j<longChaine - 2;j++) fprintf(out," ");
					fprintf(out,"\t%lf",LONGUEUR[i-1]);
				}
				else{
					printf("\n%d. %ld--%ld",i,ARETES[2*i-1],ARETES[2*i-2]);
					for(j=0;j<longChaine - 2;j++) printf(" ");
					printf("\t%lf",LONGUEUR[i-1]);
				}
			}
		}

	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %rbx
movq %rcx, -0x40(%rbp)
movq %rdx, %r15
movl %esi, -0x48(%rbp)
movq %rdi, -0x30(%rbp)
xorl %r13d, %r13d
testl %r9d, %r9d
movl $0x0, %r12d
movq %r9, -0x38(%rbp)
cmovgl %r9d, %r12d
xorl %r14d, %r14d
cmpq %r13, %r12
je 0x1e1f
movq 0x8(%rbx,%r13,8), %rdi
callq 0x1050
cmpl %eax, %r14d
cmovgl %r14d, %eax
incq %r13
movl %eax, %r14d
jmp 0x1e01
movq -0x38(%rbp), %rdx
leal (%rdx,%rdx), %ecx
subl 0x20(%rbp), %ecx
addl $-0x3, %ecx
cmpl $0x3, %r14d
pushq $0x2
popq %rax
cmovgel %r14d, %eax
addl $-0x2, %eax
movl %eax, -0x44(%rbp)
xorl %eax, %eax
testl %ecx, %ecx
cmovlel %eax, %ecx
movslq %edx, %rdx
incl %ecx
movq %rcx, -0x58(%rbp)
pushq $0x1
popq %r9
movq -0x40(%rbp), %r13
movq %rdx, -0x50(%rbp)
cmpq -0x58(%rbp), %r9
je 0x20ae
movq %r9, %r12
shlq $0x4, %r12
movq -0x8(%r15,%r12), %rcx
cmpl $0x0, -0x48(%rbp)
je 0x1ec9
movq -0x10(%r15,%r12), %rax
cmpq %rdx, %rcx
movq %r9, -0x38(%rbp)
jle 0x1efb
cmpq %rdx, %rax
jle 0x1f4c
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x201b
leaq 0x1259f(%rip), %rsi     # 0x1443f
movl %r9d, %edx
movq %rax, %r8
xorl %eax, %eax
callq 0x1170
movl -0x44(%rbp), %r12d
subl $0x1, %r12d
jb 0x1f9e
pushq $0x20
popq %rdi
movq -0x30(%rbp), %rsi
callq 0x1120
jmp 0x1eb1
movq -0x10(%r15,%r12), %r8
movsd -0x8(%r13,%r9,8), %xmm0
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x1fc0
leaq 0x1252e(%rip), %rsi     # 0x14417
movl %r9d, %edx
movb $0x1, %al
movq %r9, %r12
callq 0x1170
jmp 0x209f
movq (%rbx,%rcx,8), %r8
movq -0x30(%rbp), %rdi
xorl %r13d, %r13d
testq %rdi, %rdi
je 0x1fdf
leaq 0x12517(%rip), %rsi     # 0x1442d
movl %r9d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1170
movq -0x8(%r15,%r12), %rax
movq (%rbx,%rax,8), %rdi
callq 0x1050
movl %r14d, %ecx
subl %eax, %ecx
cmpl %ecx, %r13d
jge 0x1f9a
pushq $0x20
popq %rdi
movq -0x30(%rbp), %rsi
callq 0x1120
incl %r13d
jmp 0x1f23
movq (%rbx,%rax,8), %r8
movq -0x30(%rbp), %rdi
xorl %r13d, %r13d
testq %rdi, %rdi
je 0x2046
leaq 0x124c6(%rip), %rsi     # 0x1442d
movl %r9d, %edx
xorl %eax, %eax
callq 0x1170
movq -0x10(%r15,%r12), %rax
movq (%rbx,%rax,8), %rdi
callq 0x1050
movl %r14d, %ecx
subl %eax, %ecx
cmpl %ecx, %r13d
jge 0x1f9a
pushq $0x20
popq %rdi
movq -0x30(%rbp), %rsi
callq 0x1120
incl %r13d
jmp 0x1f71
movq -0x40(%rbp), %r13
movq -0x38(%rbp), %r12
movsd -0x8(%r13,%r12,8), %xmm0
movq -0x30(%rbp), %rdi
leaq 0x12486(%rip), %rsi     # 0x1443a
movb $0x1, %al
callq 0x1170
jmp 0x209f
leaq 0x12450(%rip), %rdi     # 0x14417
movl %r9d, %esi
movq %rcx, %rdx
movq %r8, %rcx
movb $0x1, %al
movq %r9, %r12
callq 0x1030
jmp 0x209f
leaq 0x12447(%rip), %rdi     # 0x1442d
movl %r9d, %esi
movq %rax, %rdx
movq %r8, %rcx
xorl %eax, %eax
callq 0x1030
movq -0x8(%r15,%r12), %rax
movq (%rbx,%rax,8), %rdi
callq 0x1050
movl %r14d, %ecx
subl %eax, %ecx
cmpl %ecx, %r13d
jge 0x2082
pushq $0x20
popq %rdi
callq 0x1150
incl %r13d
jmp 0x1ff6
leaq 0x1241d(%rip), %rdi     # 0x1443f
movl %r9d, %esi
movq %rcx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1030
movl -0x44(%rbp), %r12d
subl $0x1, %r12d
jb 0x2086
pushq $0x20
popq %rdi
callq 0x1150
jmp 0x2036
leaq 0x123e0(%rip), %rdi     # 0x1442d
movl %r9d, %esi
movq %rcx, %rdx
movq %r8, %rcx
xorl %eax, %eax
callq 0x1030
movq -0x10(%r15,%r12), %rax
movq (%rbx,%rax,8), %rdi
callq 0x1050
movl %r14d, %ecx
subl %eax, %ecx
cmpl %ecx, %r13d
jge 0x2082
pushq $0x20
popq %rdi
callq 0x1150
incl %r13d
jmp 0x205d
movq -0x40(%rbp), %r13
movq -0x38(%rbp), %r12
movsd -0x8(%r13,%r12,8), %xmm0
leaq 0x123a2(%rip), %rdi     # 0x1443a
movb $0x1, %al
callq 0x1030
incq %r12
movq -0x50(%rbp), %rdx
movq %r12, %r9
jmp 0x1e59
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq