// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movsd %xmm0, 0x8(%rsp)
movq %rdi, %r15
leaq 0xa211(%rip), %rdi      # 0xa2832
callq 0x5341c
movl %eax, %r14d
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
leaq 0x40(%rsp), %rsi
movq %r15, %rdi
callq 0x95b63
testq %rax, %rax
je 0x9870e
movq %rax, %r15
movl 0x40(%rsp), %r12d
cmpl 0x44(%rsp), %r12d
jne 0x9871d
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
xorl %eax, %eax
testl %r12d, %r12d
jle 0x9868a
movq (%r15,%rax,8), %rcx
movsd 0x10(%rsp,%rax,8), %xmm1
xorl %edx, %edx
addsd (%rcx,%rdx,8), %xmm1
incq %rdx
cmpq %rdx, %r12
jne 0x98677
movsd %xmm1, 0x10(%rsp,%rax,8)
movsd 0x10(%rsp,%rax,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp,%rax,8)
leaq 0x1(%rax), %rcx
testq %rax, %rax
movq %rcx, %rax
je 0x98666
movq %r15, %rdi
movl $0x2, %esi
callq 0x3915f
cvtsi2sd %r14d, %xmm2
movsd 0xc540(%rip), %xmm1     # 0xa4c00
movsd 0x8(%rsp), %xmm0
movsd %xmm2, 0x38(%rsp)
callq 0x2068f
movapd %xmm0, %xmm1
leal 0x1(%r14), %eax
imull %r14d, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
xorps %xmm2, %xmm2
cvtsi2sd %r12d, %xmm2
mulsd 0x16574(%rip), %xmm2    # 0xaec68
divsd %xmm2, %xmm0
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm0
movsd %xmm0, 0x30(%rsp)
jb 0x9873d
sqrtsd %xmm0, %xmm0
jmp 0x9874e
movabsq $0x3fe0000000000000, %rax # imm = 0x3FE0000000000000
movq %rax, (%rbx)
jmp 0x98736
leaq 0x167d1(%rip), %rdi     # 0xaeef5
callq 0x4090
movq %r15, %rdi
movl $0x2, %esi
callq 0x3915f
xorl %eax, %eax
jmp 0x987d6
movsd %xmm1, 0x8(%rsp)
callq 0x4300
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10e90(%rip), %rdi     # 0xa95ef
callq 0x5341c
movsd 0x10(%rsp), %xmm1
subsd 0x18(%rsp), %xmm1
cmpl $0x1, %eax
je 0x9877d
andpd 0xaa63(%rip), %xmm1     # 0xa31e0
xorpd %xmm2, %xmm2
movsd 0x30(%rsp), %xmm0
ucomisd %xmm2, %xmm0
movapd %xmm1, 0x20(%rsp)
jb 0x98799
sqrtsd %xmm0, %xmm0
jmp 0x987a4
callq 0x4300
movapd 0x20(%rsp), %xmm1
movapd %xmm1, %xmm2
divsd %xmm0, %xmm2
movsd 0xc44c(%rip), %xmm1     # 0xa4c00
movapd %xmm2, %xmm0
movsd 0x38(%rsp), %xmm2
callq 0x20077
movsd %xmm0, (%rbx)
movsd 0x8(%rsp), %xmm0
ucomisd 0x20(%rsp), %xmm0
setb %al
movzbl %al, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq