// File: /workspace/github_c_makefile_star2_O1/sc932[P]ALE/src/ALElike.c
// Function: computeKmerStats
void computeKmerStats(assemblyT *theAssembly, int kmerLen){
  int i, j, k, hash;
  long totalKmers, totalKmersInit;
  totalKmers = 0;
  totalKmersInit = pow(4, kmerLen);
  // calculate total possible kmers
  long *kmerVec = malloc(totalKmersInit*sizeof(long));
  double kmerSum = 0.0;
  double kmerNorm = 0.0;
  double logkmerZnorm = 0.0;

  if (!isMetagenome()) {
	    // initialize kmerVec
	    for(j = 0; j < totalKmersInit; j++){
	      kmerVec[j] = 0;
	    }
	    totalKmers = 0;

	    // calculate the kmer spectrum
	    for(i = 0; i < theAssembly->numContigs; i++){
	    	contig_t *contig = theAssembly->contigs[i];
	    	if (contig->seqLen > kmerLen) {
	        	// add up the kmers
	        	for(j = 0; j < contig->seqLen - kmerLen; j++){
	        		hash = getKmerHash(contig->seq, j, kmerLen);
	        		////printf("Hash = %i\n", hash);
	        		if(hash > -1){
	        			kmerVec[hash]++;
	        			totalKmers++;
	        		}
	        	}
	    	}
	    }

	    // apply kmer score to total scores
	    for(i = 0; i < theAssembly->numContigs; i++){
	    	contig_t *contig = theAssembly->contigs[i];
	    	if (contig->seqLen > kmerLen) {
	    		for(j = 0; j < contig->seqLen - kmerLen; j++){
	    			hash = getKmerHash(contig->seq, j, kmerLen);
	    			if(hash > -1){
	    				double score = ((double)kmerVec[hash]) / ((double)totalKmers);
	    				double logScore = log(score);
		    			theAssembly->totalScore += logScore; // k-mer contribution to totalScore
		    			theAssembly->kmerAvgSum += logScore;
		    			theAssembly->kmerAvgNorm += 1.0;
		    			kmerSum += score;
		    			kmerNorm += 1.0;
	    			}
	    		}
	    	}
	    }
	    //printf("Kmer Normalization factor (log): %lf\n", log(kmerSum/kmerNorm));

  }

  // find all kmers present
  for(i = 0; i < theAssembly->numContigs; i++){
    contig_t *contig = theAssembly->contigs[i];
    if (contig->seqLen <= kmerLen){  // this should be exceedingly rare, the contig length <= a tetramer!!
    	// contig is too small to process
    	// there is no information to process
        for(j = 0; j < contig->seqLen; j++){
            contig->kmerLogLikelihood[j] = 0.0;
        }
        continue;
    }

    if (isMetagenome()) {
    	// initialize kmerVec
    	for(j = 0; j < totalKmersInit; j++){
    		kmerVec[j] = 0;
    	}
    	totalKmers = 0;
    	kmerSum = 0.0;
    	kmerNorm = 0.0;

    	// add up the kmer spectrum
    	for(j = 0; j < contig->seqLen - kmerLen; j++){
    		hash = getKmerHash(contig->seq, j, kmerLen);
    		////printf("Hash = %i\n", hash);
    		if(hash > -1){
    			kmerVec[hash]++;
    			totalKmers++;
    		}
    	}

    	// apply the kmer score to the total score
    	for(j = 0; j < contig->seqLen - kmerLen; j++){
    		hash = getKmerHash(contig->seq, j, kmerLen);
    		if(hash > -1){
    			double score = ((double)kmerVec[hash]) / ((double)totalKmers);
    			double logScore = log(score);

    			theAssembly->totalScore += logScore; // k-mer contribution to totalScore
    			theAssembly->kmerAvgSum += logScore;
    			theAssembly->kmerAvgNorm += 1.0;
    			kmerSum += score;
    			kmerNorm += 1.0;
    		}
    	}
    }

    logkmerZnorm = log(kmerSum/kmerNorm);

    //
    // ** Using contig->kmerLogLikelihood[] as just a likelihood.  Will convert back to log(likelihood) at the end **
    //

    ////printf("Calculated all %i kmers!\n", totalKmers);
    // calculate probability of seeing that kmer based on the rest of the contig
    // first kmer - 1 unrolled
    for(j = 0; j < kmerLen; j++){
      contig->kmerLogLikelihood[j] = 0.0;
      for(k = 0; k < j+1; k++){
        hash = getKmerHash(contig->seq, k, kmerLen);
        if(hash > -1){
          contig->kmerLogLikelihood[j] += 1.0/(double)(j+1)*(double)(kmerVec[hash])/(double)(totalKmers);
        }
      }
      ////printf("New likelihood[%i]: %f.\n", j, contig->kmerLikelihood[j]);
    }
    ////printf("First.\n");
    // middle bunch
    for(j = kmerLen; j < contig->seqLen - kmerLen; j++){
      contig->kmerLogLikelihood[j] = 0.0;
      for(k = 0; k < kmerLen; k++){
        hash = getKmerHash(contig->seq, j - k, kmerLen);
        if(hash > -1){
          contig->kmerLogLikelihood[j] += 1.0/(double)(kmerLen)*(double)(kmerVec[hash])/(double)(totalKmers);
        }
      }
      ////printf("New likelihood[%i]: %f.\n", j, contig->kmerLikelihood[j]);
    }
    ////printf("Mid.\n");
    // last bits
    for(j = contig->seqLen - kmerLen; j < contig->seqLen; j++){
      contig->kmerLogLikelihood[j] = 0.0;
      for(k = j - kmerLen; k < j - kmerLen + (contig->seqLen - j); k++){
        hash = getKmerHash(contig->seq, k, kmerLen);
        if(hash > -1){
          contig->kmerLogLikelihood[j] += 1.0/(double)(contig->seqLen - j)*(double)(kmerVec[hash])/(double)(totalKmers);
        }
      }
      ////printf("New likelihood[%i]: %f.\n", j, contig->kmerLikelihood[j]);
    }
    ////printf("Last.\n");
    //
    // ** Converting contig->kmerLogLikelihood[] back to log(likelihood) and normalizing **
    //

    // add up kmer score into total score
    long contributingKmers = 0;
    for(j = 0; j < contig->seqLen; j++){
        assert(contig->kmerLogLikelihood[j] <= 1.0 && contig->kmerLogLikelihood[j] >= 0.0);  // not log yet...
    	if (contig->kmerLogLikelihood[j] > 0.0) {
    		contig->kmerLogLikelihood[j] = validateLogLikelihood( log(contig->kmerLogLikelihood[j]) - logkmerZnorm );
    		contributingKmers++;
    	} else {
    		contig->kmerLogLikelihood[j] = 0.0; // no information, so do not floor per-base value
    	}
    }

   	// z normalize
   	if(contributingKmers - kmerLen > 0){
   		theAssembly->totalScore -= logkmerZnorm*(double)(contributingKmers - kmerLen);
   		theAssembly->kmerAvgSum -= logkmerZnorm*(double)(contributingKmers - kmerLen);
   	}

  }
  free(kmerVec);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %esi, %r12d
movq %rdi, %rbx
cvtsi2sd %esi, %xmm0
movsd %xmm0, 0x78(%rsp)
addsd %xmm0, %xmm0
callq 0x3050
cvttsd2si %xmm0, %r14
leaq (,%r14,8), %rdi
movq %rdi, 0x88(%rsp)
callq 0x3420
movq %rax, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
xorl %eax, %eax
callq 0xa8d9
xorpd %xmm0, %xmm0
movsd %xmm0, 0x48(%rsp)
testl %eax, %eax
movq %r12, 0x10(%rsp)
movq %rbx, 0x58(%rsp)
movq %r14, 0x98(%rsp)
je 0x66ec
movsd %xmm0, 0x38(%rsp)
jmp 0x6900
testq %r14, %r14
jle 0x6705
movq 0x28(%rsp), %rdi
xorl %esi, %esi
movq 0x88(%rsp), %rdx
callq 0x3260
movslq (%rbx), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
jle 0x67bc
movq 0xa0(%rbx), %rax
movq %rax, 0x8(%rsp)
movl %r12d, %ebp
xorl %edx, %edx
movq $0x0, 0x30(%rsp)
movq 0x8(%rsp), %rax
movq (%rax,%rdx,8), %rax
movl 0x8(%rax), %ecx
subl %r12d, %ecx
movq %rdx, 0x40(%rsp)
jle 0x679d
jle 0x679d
movq 0x10(%rax), %rbx
movl %ecx, %r12d
xorl %r14d, %r14d
cmpl $0x0, 0x10(%rsp)
jle 0x6779
xorl %r13d, %r13d
xorl %r15d, %r15d
movsbl (%rbx,%r13), %edi
movl %r13d, %esi
callq 0x65c5
addl %eax, %r15d
incq %r13
cmpq %r13, %rbp
jne 0x675f
jmp 0x677c
xorl %r15d, %r15d
testl %r15d, %r15d
js 0x6792
movl %r15d, %eax
movq 0x28(%rsp), %rcx
incq (%rcx,%rax,8)
incq 0x30(%rsp)
incq %r14
incq %rbx
cmpq %r12, %r14
jne 0x6752
movq 0x40(%rsp), %rdx
incq %rdx
cmpq 0x18(%rsp), %rdx
movq 0x10(%rsp), %r12
movq 0x58(%rsp), %rbx
jne 0x6730
jmp 0x67c5
movq $0x0, 0x30(%rsp)
cmpl $0x0, (%rbx)
jle 0x6f19
movl %r12d, %r14d
xorps %xmm0, %xmm0
cvtsi2sdq 0x30(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x38(%rsp)
xorl %ecx, %ecx
movslq %r12d, %rax
movq %rax, 0x18(%rsp)
movsd %xmm0, 0x48(%rsp)
movq 0xa0(%rbx), %rax
movq %rcx, 0x50(%rsp)
movq (%rax,%rcx,8), %r15
cmpl %r12d, 0x8(%r15)
jle 0x68e7
cmpl %r12d, 0x8(%r15)
jle 0x68e7
xorl %ebx, %ebx
testl %r12d, %r12d
jle 0x684e
movq 0x10(%r15), %rbp
addq %rbx, %rbp
xorl %r13d, %r13d
xorl %r12d, %r12d
movsbl (%rbp,%r13), %edi
movl %r13d, %esi
callq 0x65c5
addl %eax, %r12d
incq %r13
cmpq %r13, %r14
jne 0x6833
jmp 0x6851
xorl %r12d, %r12d
testl %r12d, %r12d
js 0x68cd
movl %r12d, %eax
movq 0x28(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sdq (%rcx,%rax,8), %xmm0
divsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
callq 0x3290
movq 0x58(%rsp), %rax
movsd 0x10(%rax), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rax)
addsd 0x18(%rax), %xmm0
movsd %xmm0, 0x18(%rax)
movsd 0x20(%rax), %xmm0
movsd 0x17196(%rip), %xmm1    # 0x1da38
addsd %xmm1, %xmm0
movsd %xmm0, 0x20(%rax)
movsd 0x38(%rsp), %xmm0
addsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x38(%rsp)
movsd 0x48(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x48(%rsp)
movq 0x10(%rsp), %r12
incq %rbx
movslq 0x8(%r15), %rax
subq 0x18(%rsp), %rax
cmpq %rax, %rbx
jl 0x6821
movq 0x50(%rsp), %rcx
incq %rcx
movq 0x58(%rsp), %rbx
movslq (%rbx), %rax
cmpq %rax, %rcx
jl 0x67fb
cmpl $0x0, (%rbx)
jle 0x6efe
movl %r12d, %ebp
movsd 0x17124(%rip), %xmm0    # 0x1da38
divsd 0x78(%rsp), %xmm0
movsd %xmm0, 0x78(%rsp)
movslq %r12d, %rax
movq %rax, 0x90(%rsp)
leal (%r12,%r12), %eax
movl %eax, 0x84(%rsp)
xorl %eax, %eax
movq %rax, 0x60(%rsp)
movq 0xa0(%rbx), %rax
movq 0x60(%rsp), %rcx
movq (%rax,%rcx,8), %r14
movq 0x60(%rsp), %rax
movl 0x8(%r14), %edx
cmpl %r12d, %edx
jle 0x69fe
xorl %eax, %eax
callq 0xa8d9
testl %eax, %eax
movq %r14, 0x20(%rsp)
je 0x6b2c
cmpq $0x0, 0x98(%rsp)
jle 0x6992
movq 0x28(%rsp), %rdi
xorl %esi, %esi
movq 0x88(%rsp), %rdx
callq 0x3260
movl 0x8(%r14), %eax
subl %r12d, %eax
jle 0x6a1a
movq 0x10(%r14), %rbx
movl %eax, %r14d
xorl %r15d, %r15d
movq $0x0, 0x30(%rsp)
testl %r12d, %r12d
jle 0x69d3
xorl %r13d, %r13d
xorl %r12d, %r12d
movsbl (%rbx,%r13), %edi
movl %r13d, %esi
callq 0x65c5
addl %eax, %r12d
incq %r13
cmpq %r13, %rbp
jne 0x69b9
jmp 0x69d6
xorl %r12d, %r12d
testl %r12d, %r12d
js 0x69ec
movl %r12d, %eax
movq 0x28(%rsp), %rcx
incq (%rcx,%rax,8)
incq 0x30(%rsp)
movq 0x10(%rsp), %r12
incq %r15
incq %rbx
cmpq %r14, %r15
jne 0x69ae
jmp 0x6a23
testl %edx, %edx
jle 0x6ee9
movq 0x50(%r14), %rdi
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x3260
jmp 0x6ee4
movq $0x0, 0x30(%rsp)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x48(%rsp)
movq 0x20(%rsp), %rdx
cmpl %r12d, 0x8(%rdx)
jle 0x6b26
xorps %xmm0, %xmm0
cvtsi2sdq 0x30(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x38(%rsp)
xorl %ebx, %ebx
movsd %xmm0, 0x48(%rsp)
testl %r12d, %r12d
jle 0x6a8a
movq 0x10(%rdx), %r15
addq %rbx, %r15
xorl %r13d, %r13d
xorl %r14d, %r14d
movsbl (%r15,%r13), %edi
movl %r13d, %esi
callq 0x65c5
addl %eax, %r14d
incq %r13
cmpq %r13, %rbp
jne 0x6a70
jmp 0x6a8d
xorl %r14d, %r14d
testl %r14d, %r14d
js 0x6b09
movl %r14d, %eax
movq 0x28(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sdq (%rcx,%rax,8), %xmm0
divsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
callq 0x3290
movq 0x58(%rsp), %rax
movsd 0x10(%rax), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rax)
addsd 0x18(%rax), %xmm0
movsd %xmm0, 0x18(%rax)
movsd 0x20(%rax), %xmm0
movsd 0x16f5a(%rip), %xmm1    # 0x1da38
addsd %xmm1, %xmm0
movsd %xmm0, 0x20(%rax)
movsd 0x38(%rsp), %xmm0
addsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x38(%rsp)
movsd 0x48(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x48(%rsp)
movq 0x20(%rsp), %rdx
incq %rbx
movslq 0x8(%rdx), %rax
movslq %r12d, %rcx
subq %rcx, %rax
cmpq %rax, %rbx
jl 0x6a5e
jmp 0x6b2c
movsd %xmm0, 0x38(%rsp)
movsd 0x38(%rsp), %xmm0
divsd 0x48(%rsp), %xmm0
callq 0x3290
movapd %xmm0, 0xa0(%rsp)
xorps %xmm0, %xmm0
cvtsi2sdq 0x30(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
testl %r12d, %r12d
jle 0x6c3a
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x68(%rsp)
movq 0x50(%rax), %rax
movq %rax, 0x8(%rsp)
movl $0x1, %eax
movq %rax, 0x18(%rsp)
xorl %r12d, %r12d
movq 0x8(%rsp), %rax
movl $0x0, (%rax,%r12,4)
leaq 0x1(%r12), %rax
movq %rax, 0x70(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd 0x16e8f(%rip), %xmm1    # 0x1da38
divsd %xmm0, %xmm1
movsd %xmm1, 0x50(%rsp)
movq 0x68(%rsp), %rbx
xorl %r15d, %r15d
xorl %r13d, %r13d
xorl %r14d, %r14d
movsbl (%rbx,%r13), %edi
movl %r13d, %esi
callq 0x65c5
addl %eax, %r14d
incq %r13
cmpq %r13, %rbp
jne 0x6bc1
testl %r14d, %r14d
js 0x6c1a
movl %r14d, %eax
movq 0x28(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sdq (%rcx,%rax,8), %xmm0
mulsd 0x50(%rsp), %xmm0
divsd 0x40(%rsp), %xmm0
movq 0x8(%rsp), %rax
xorps %xmm1, %xmm1
cvtss2sd (%rax,%r12,4), %xmm1
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movss %xmm0, (%rax,%r12,4)
incq %r15
incq %rbx
cmpq 0x18(%rsp), %r15
jne 0x6bbb
incq 0x18(%rsp)
movq 0x70(%rsp), %r12
cmpq %rbp, %r12
jne 0x6b83
movq 0x20(%rsp), %rax
movslq 0x8(%rax), %rdx
movq 0x10(%rsp), %rcx
movslq %ecx, %rax
movq %rdx, 0x68(%rsp)
subq %rax, %rdx
movq %rdx, 0x18(%rsp)
cmpl %ecx, %edx
jle 0x6d17
movq 0x20(%rsp), %rax
movq 0x50(%rax), %rax
movq %rax, 0x8(%rsp)
movslq 0x18(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x90(%rsp), %r12
movq 0x8(%rsp), %rax
movl $0x0, (%rax,%r12,4)
cmpl $0x0, 0x10(%rsp)
jle 0x6d09
movq 0x20(%rsp), %rax
movq 0x10(%rax), %r14
addq %r12, %r14
xorl %r15d, %r15d
xorl %r13d, %r13d
xorl %ebx, %ebx
movsbl (%r14,%r13), %edi
movl %r13d, %esi
callq 0x65c5
addl %eax, %ebx
incq %r13
cmpq %r13, %rbp
jne 0x6ca8
testl %ebx, %ebx
js 0x6cfe
movl %ebx, %eax
movq 0x28(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sdq (%rcx,%rax,8), %xmm0
mulsd 0x78(%rsp), %xmm0
divsd 0x40(%rsp), %xmm0
movq 0x8(%rsp), %rax
xorps %xmm1, %xmm1
cvtss2sd (%rax,%r12,4), %xmm1
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movss %xmm0, (%rax,%r12,4)
incq %r15
decq %r14
cmpq %rbp, %r15
jne 0x6ca3
incq %r12
cmpq 0x50(%rsp), %r12
jne 0x6c80
cmpl $0x0, 0x10(%rsp)
movq 0x68(%rsp), %rcx
jle 0x6e12
movslq 0x18(%rsp), %r15
movq 0x20(%rsp), %rax
movq 0x50(%rax), %rax
movq %rax, 0x8(%rsp)
movl %ecx, %eax
subl 0x84(%rsp), %eax
movl %eax, 0x70(%rsp)
movq 0x8(%rsp), %rax
movl $0x0, (%rax,%r15,4)
movq %rcx, %rax
subq %r15, %rax
jle 0x6dfd
movslq 0x70(%rsp), %r14
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd 0x16cc4(%rip), %xmm1    # 0x1da38
divsd %xmm0, %xmm1
movsd %xmm1, 0x50(%rsp)
movq %r14, %r12
movq 0x20(%rsp), %rax
addq 0x10(%rax), %r12
cmpl $0x0, 0x10(%rsp)
jle 0x6daf
xorl %r13d, %r13d
xorl %ebx, %ebx
movsbl (%r12,%r13), %edi
movl %r13d, %esi
callq 0x65c5
addl %eax, %ebx
incq %r13
cmpq %r13, %rbp
jne 0x6d96
jmp 0x6db1
xorl %ebx, %ebx
testl %ebx, %ebx
js 0x6df0
movl %ebx, %eax
movq 0x28(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sdq (%rcx,%rax,8), %xmm0
mulsd 0x50(%rsp), %xmm0
divsd 0x40(%rsp), %xmm0
movq 0x8(%rsp), %rax
xorps %xmm1, %xmm1
cvtss2sd (%rax,%r15,4), %xmm1
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movss %xmm0, (%rax,%r15,4)
incq %r14
incq %r12
cmpq 0x18(%rsp), %r14
jl 0x6d8a
incq %r15
incl 0x70(%rsp)
movq 0x68(%rsp), %rcx
cmpq %rcx, %r15
jl 0x6d47
movq 0x20(%rsp), %r15
cmpl $0x0, 0x8(%r15)
jle 0x6e8d
xorl %r14d, %r14d
xorl %ebx, %ebx
movq 0x50(%r15), %rax
movss (%rax,%r14,4), %xmm0
movss 0x1aeb7(%rip), %xmm1    # 0x21cec
ucomiss %xmm0, %xmm1
jb 0x6f22
ucomiss 0x1aeab(%rip), %xmm0    # 0x21cf0
jb 0x6f22
jbe 0x6e77
cvtss2sd %xmm0, %xmm0
callq 0x3290
subsd 0xa0(%rsp), %xmm0
callq 0xa88a
cvtsd2ss %xmm0, %xmm0
movq 0x50(%r15), %rax
movss %xmm0, (%rax,%r14,4)
incq %rbx
jmp 0x6e7f
movl $0x0, (%rax,%r14,4)
incq %r14
movslq 0x8(%r15), %rax
cmpq %rax, %r14
jl 0x6e23
jmp 0x6e8f
xorl %ebx, %ebx
subq 0x90(%rsp), %rbx
jle 0x6eda
xorps %xmm0, %xmm0
cvtsi2sd %rbx, %xmm0
movapd 0xa0(%rsp), %xmm1
xorpd 0x16c3e(%rip), %xmm1    # 0x1daf0
mulsd %xmm0, %xmm1
movq 0x58(%rsp), %rbx
movsd 0x10(%rbx), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rbx)
addsd 0x18(%rbx), %xmm1
movsd %xmm1, 0x18(%rbx)
movq 0x10(%rsp), %r12
jmp 0x6ee4
movq 0x10(%rsp), %r12
movq 0x58(%rsp), %rbx
movq 0x60(%rsp), %rax
incq %rax
movq %rax, %rcx
movslq (%rbx), %rax
cmpq %rax, %rcx
movq %rcx, %rax
jl 0x6938
movq 0x28(%rsp), %rdi
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3070
xorpd %xmm0, %xmm0
jmp 0x66e1
leaq 0x1b0ff(%rip), %rdi     # 0x22028
leaq 0x1add5(%rip), %rsi     # 0x21d05
leaq 0x1b13c(%rip), %rcx     # 0x22073
movl $0x3ec, %edx            # imm = 0x3EC
callq 0x3230