// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/tests.c
// Function: nemenyi_two_sample
int nemenyi_two_sample(char **files, int *which, double confidence, double *real_confidence)
{
 int i, j, counts[2], N, k = get_parameter_i("nearcount");
 double **observations, sum[2] = {0.0, 0.0}, cd;
 observations = read_observations_for_two_file(files, counts);
 if (!observations)
  {
   *real_confidence = 0.5;
   return 0;
  }
 if (counts[0] != counts[1])
  {
   printf(m1315);
   free_2d((void**) observations, 2);
   return 0;
  }
 N = counts[0];
 for (i = 0; i < 2; i++)
  {
   for (j = 0; j < N; j++)
     sum[i] += observations[i][j];
   sum[i] /= N;
  }
 free_2d((void**)observations, 2);
 cd = studentized_range_inverse(confidence, 12000, k) * sqrt((k * (k + 1)) / (12.0 * N));
 if (get_parameter_i("tailed") == 1)
  {
   *real_confidence = studentized_range((sum[0] - sum[1]) / sqrt((k * (k + 1)) / (12.0 * N)), 12000, k);
   if (sum[0] - sum[1] <= cd)
     return 0;
   else
     return 1;
  }
 else
  {
   *real_confidence = studentized_range(fabs(sum[0] - sum[1]) / sqrt((k * (k + 1)) / (12.0 * N)), 12000, k);
   if (fabs(sum[0] - sum[1]) <= cd)
     return 0;
   else
     return 1;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdx, %rbx
movsd %xmm0, 0x8(%rsp)
movq %rdi, %r15
leaq 0x9216(%rip), %rdi      # 0x95832
callq 0x4cd35
movl %eax, %r14d
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
leaq 0x48(%rsp), %rsi
movq %r15, %rdi
callq 0x89dc2
testq %rax, %rax
je 0x8c694
movq %rax, %r15
movl 0x48(%rsp), %eax
cmpl 0x4c(%rsp), %eax
jne 0x8c6a3
cvtsi2sd %eax, %xmm1
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
cmpq $0x2, %rcx
je 0x8c6c1
xorl %edx, %edx
cmpq %rdx, %rax
je 0x8c67f
movq (%r15,%rcx,8), %rsi
movsd (%rsi,%rdx,8), %xmm0
addsd 0x20(%rsp,%rcx,8), %xmm0
movsd %xmm0, 0x20(%rsp,%rcx,8)
incq %rdx
jmp 0x8c660
movsd 0x20(%rsp,%rcx,8), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x20(%rsp,%rcx,8)
incq %rcx
jmp 0x8c658
movabsq $0x3fe0000000000000, %rax # imm = 0x3FE0000000000000
movq %rax, (%rbx)
jmp 0x8c6ba
leaq 0x15823(%rip), %rdi     # 0xa1ecd
callq 0x4090
pushq $0x2
popq %rsi
movq %r15, %rdi
callq 0x34fc3
xorl %eax, %eax
jmp 0x8c7c1
pushq $0x2
popq %rsi
movq %r15, %rdi
movsd %xmm1, 0x10(%rsp)
callq 0x34fc3
cvtsi2sd %r14d, %xmm2
movsd 0xb559(%rip), %xmm1     # 0x97c38
movsd 0x8(%rsp), %xmm0
movsd %xmm2, 0x40(%rsp)
callq 0x1e7b3
movapd %xmm0, %xmm1
leal 0x1(%r14), %eax
imull %r14d, %eax
cvtsi2sd %eax, %xmm0
movsd 0x10(%rsp), %xmm2
mulsd 0xe6ca(%rip), %xmm2     # 0x9add8
divsd %xmm2, %xmm0
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm0
movsd %xmm0, 0x38(%rsp)
jb 0x8c728
sqrtsd %xmm0, %xmm0
jmp 0x8c739
movsd %xmm1, 0x8(%rsp)
callq 0x4300
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0xfe95(%rip), %rdi      # 0x9c5df
callq 0x4cd35
movsd 0x20(%rsp), %xmm1
subsd 0x28(%rsp), %xmm1
cmpl $0x1, %eax
je 0x8c768
andpd 0x9a78(%rip), %xmm1     # 0x961e0
xorpd %xmm2, %xmm2
movsd 0x38(%rsp), %xmm0
ucomisd %xmm2, %xmm0
movapd %xmm1, 0x10(%rsp)
jb 0x8c784
sqrtsd %xmm0, %xmm0
jmp 0x8c78f
callq 0x4300
movapd 0x10(%rsp), %xmm1
movapd %xmm1, %xmm2
divsd %xmm0, %xmm2
movsd 0xb499(%rip), %xmm1     # 0x97c38
movapd %xmm2, %xmm0
movsd 0x40(%rsp), %xmm2
callq 0x1e0c5
movsd %xmm0, (%rbx)
movsd 0x8(%rsp), %xmm0
ucomisd 0x10(%rsp), %xmm0
setb %al
movzbl %al, %eax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq