// File: /workspace/github_c_makefile_star2_O2/sc932[P]ALE/src/ALElike.c
// Function: getContributionsForPositions
double getContributionsForPositions(bam1_t *read, contig_t *contig, int qOff, int alignmentLength, float *depthPositions, double *loglikelihoodPositions, int applySoftClip) {
  int i,j;
  int seqPos = 0;
  int refPos = 0;
  int matches = 0;
  int readlen = read->core.l_qseq;
  char *contigSeq = contig->seq;
  double softclipContribution = 0.0;

  if(read == NULL){
	for(refPos = 0; refPos < alignmentLength; refPos++) {
		depthPositions[refPos] = 0.0;
		loglikelihoodPositions[refPos] = getMinLogLike();
	}
	return softclipContribution;
  }
  assert((read->core.flag & BAM_FUNMAP) == 0);

  // read CIGAR first
  uint32_t *cigar = bam1_cigar(read);
  char *readQual = (char*) bam1_qual(read);
  char *MD = getMD(read, contigSeq);
  int numCigarOperations = read->core.n_cigar;
  int ref2seqPos[alignmentLength];

  // initialize loglikelihoodPositions
  for(j=0; j < alignmentLength; j++) {
    loglikelihoodPositions[j] = 0.0;
  }

  for(i=0 ; i < numCigarOperations ; i++) {
    uint32_t cigarInt = *(cigar+i);
    uint32_t cigarFlag = (cigarInt & BAM_CIGAR_MASK);
    uint32_t count = (cigarInt >> BAM_CIGAR_SHIFT);
    ////printf("CIGAR: %u %u %u\n", cigarInt, cigarFlag, count);
    switch (cigarFlag) {
      case(BAM_CMATCH): // match or mismatch
      case(BAM_CEQUAL): // match
      case(BAM_CDIFF):  // mismatch (will be distinguished from match in MD field)
        matches += count;
        for(j=0; j < count; j++) {
        	loglikelihoodPositions[refPos+j] += loglikeMatch(readQual, seqPos+j, 1, qOff);
        	depthPositions[refPos+j] = 1.0;
		    ref2seqPos[refPos+j] = seqPos+j;
        }
        seqPos += count;
        refPos += count;
        break;
      case(BAM_CINS)   : // insertion to the reference.
	if (refPos + 1 < contig->seqLen) {
		double insPenalty = loglikeInsertion(readQual, seqPos, count, qOff) / 2;
		loglikelihoodPositions[refPos] += insPenalty;
		loglikelihoodPositions[refPos+1] += insPenalty;
	} else
		loglikelihoodPositions[refPos] += loglikeInsertion(readQual, seqPos, count, qOff);
        // only increment seqPos
        seqPos += count;
        break;
      case(BAM_CDEL): // deletion from the reference
	{
		assert(refPos + count <= contig->seqLen);
		double delPenalty = loglikeDeletion(readQual, seqPos, count, qOff, readlen) / count;
		for(j=refPos; j < refPos+count; j++) {
			loglikelihoodPositions[j] += delPenalty;
			depthPositions[j] = 0.0;
			ref2seqPos[j] = seqPos;
		}
	}
        // only increment refPos
        refPos += count;
        break;
      case(BAM_CREF_SKIP):
        // assume this is a spliced alignment for RNA, so okay, but no data
        // only increment refPos
		for(j=refPos; j < refPos+count; j++) {
			depthPositions[j] = 0.0;
			ref2seqPos[j] = seqPos;
		}
		refPos += count;
        break;
      case(BAM_CPAD): // silent deletion from padded reference (not in reference or query)
      case(BAM_CHARD_CLIP):
		// hard clipped region is not represented in sequence or quality string, so no information is available for analysis
        break;
      case(BAM_CSOFT_CLIP):
        // soft clipped sequences present in SEQ
        // apply mismatches to clipped portion of the read against the contig past the alignment
        if (seqPos == 0) {
        	// SoftClipped to the left
        	int refPos2 = refPos - count;
        	if (refPos2 < 0) refPos2 = 0;
        	int span = refPos - refPos2;
        	double logMiss = loglikeMiss(readQual, seqPos + count - span, span, qOff);
        	if (applySoftClip)
        		for(j=refPos2; j < refPos; j++)
        			contig->matchLogLikelihood[j] += logMiss / span;
        	softclipContribution += logMiss; // Zmatch already accounts for clipped bases (entire read)
        } else {
        	// SoftClipped to the right
        	int refPos2 = refPos + count;
        	if (refPos2 >= contig->seqLen) refPos2 = contig->seqLen - 1;
        	int span = refPos2 - refPos;
        	double logMiss = loglikeMiss(readQual, seqPos, span, qOff);
        	if (applySoftClip)
        		for(j=refPos; j < refPos2; j++)
        			contig->matchLogLikelihood[j] += logMiss / span;
        	softclipContribution += logMiss; // Zmatch already accounts for clipped bases (entire read)
        }
        seqPos += count;
        readlen -= count;
        break;
    }
  }
  if ((seqPos != read->core.l_qseq) || (refPos != alignmentLength)) {
        fprintf(stderr, "WARNING: Read CIGAR does not match sequence and/or reference alignment lengths: %s %d: seqPos %d seqLen: %d refPos %d alignmentLen: %d\n", bam1_qname(read), read->core.flag, seqPos, read->core.l_qseq, refPos, alignmentLength);
  }

  // now process MD field
  refPos = 0;
  if (MD != NULL && MD[0] == 'Z') {
	  int stop = 0;
	  int pos = 1;

	  // parse MD field
	  while(stop == 0){
	    // matches
	    int seqCount = 0;
	    while(isdigit(MD[pos])){
	        seqCount = seqCount*10 + (int)(MD[pos]) - 48; // chr(48) == '0'
	        pos++;
	    }
	    refPos += seqCount;

	    double logMatch;
	    double logMiss;
	    // misses
	    int baseAmbiguity = 0;
	    while((baseAmbiguity = getBaseAmbibuity(MD[pos])) > 0){
	      char seqBase = contig->seq[refPos + read->core.pos];
	      if (seqBase != MD[pos]) {
	    	  fprintf(stderr, "WARNING: MD field calls mismatch but it does agree with the reference! %s %d: refpos %d MDpos %d: '%c' vs '%c'\n", bam1_qname(read), read->core.flag, refPos+read->core.pos, pos, seqBase, MD[pos]);
	      }
          seqPos = ref2seqPos[refPos];
	      logMatch = loglikeMatch(readQual, seqPos, 1, qOff);
	      if(baseAmbiguity == 1){
	          logMiss = loglikeMiss(readQual, seqPos, 1, qOff);
	      } else {
	    	  if (baseAmbiguity == 4 || isAmbiguousMatch(seqBase, bam1_seq(read)[seqPos]) == 0) {
	    		  logMiss = log(1.0/(float)baseAmbiguity);
	    	  } else {
	    		  // ambiguous match, so offset this mismatch hit (i.e. make the following statements a noop)
	    		  matches++;
	    		  logMiss = logMatch;
	    	  }
	      }
          // logMatch was already applied, so replace it with logMiss
	      loglikelihoodPositions[refPos] += logMiss - logMatch;

	      refPos++;
	      pos++;
	      matches--;
	      ////printf("MD %d miss  %d. %f\n", seqPos, 1, loglikelihood);
	    }

	    // deletions
	    if(MD[pos] == '^'){
	      pos++;
	      while(isalpha(MD[pos])){
	        pos++;
	        refPos++;
	      }
	    }

	    // sees if we are at the end
	    if(MD[pos] == '\0'){
	      stop = 1;
	      continue;
	    }
	  }
	  if (refPos != alignmentLength) fprintf(stderr, "WARNING: CIGAR and MD field disagree on match region for %s\n", bam1_qname(read));
  } else {
	  printf("WARNING: could not find the MD tag for %s\n", bam1_qname(read));
  }

  double identity = ((double)matches) / ((double) readlen);
  setLeastIdentity(identity);

  return softclipContribution;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r8, -0x68(%rbp)
movl %edx, -0x30(%rbp)
movq 0x8(%rdi), %rax
btq $0x22, %rax
jb 0x4cd9
movq %r9, %r13
movl %ecx, %r12d
movl 0x10(%rdi), %ecx
movq %rsi, -0x48(%rbp)
movq 0x10(%rsi), %rsi
movq 0x30(%rdi), %rdx
movl %eax, %ebx
shrl $0x18, %ebx
shrq $0x30, %rax
movq %rdx, -0xa0(%rbp)
leaq (%rdx,%rax,4), %rax
movq %rax, -0x50(%rbp)
movq %rcx, -0x88(%rbp)
leal 0x1(%rcx), %eax
sarl %eax
movq %rdi, %r15
movslq %eax, %r14
callq 0x41e5
movq %r15, %rdi
movzwl 0xe(%r15), %ecx
movq %rcx, -0xb8(%rbp)
movl %r12d, %ecx
movq %rsp, %rdx
leaq 0xf(,%rcx,4), %rcx
andq $-0x10, %rcx
subq %rcx, %rdx
movq %rdx, -0x98(%rbp)
movq %rdx, %rsp
xorl %edx, %edx
testl %r12d, %r12d
movl $0x0, %ecx
cmovgl %r12d, %ecx
cmpq %rdx, %rcx
je 0x45d6
andq $0x0, (%r13,%rdx,8)
incq %rdx
jmp 0x45c6
movq %rax, -0xb0(%rbp)
addq %rbx, -0xa0(%rbp)
movq -0x50(%rbp), %rax
addq %rbx, %rax
addq %r14, %rax
movq %rax, -0x50(%rbp)
xorpd %xmm0, %xmm0
movsd %xmm0, -0xa8(%rbp)
movl $0x0, -0x2c(%rbp)
xorl %r11d, %r11d
xorl %esi, %esi
movq %rdi, %r14
movq %rdi, -0x38(%rbp)
movq %r13, -0x90(%rbp)
movq %r12, -0x80(%rbp)
xorl %r9d, %r9d
movq -0x48(%rbp), %rdi
cmpq -0xb8(%rbp), %r9
je 0x4980
movq -0xa0(%rbp), %rax
movl (%rax,%r9,4), %r12d
movl %r12d, %eax
andl $0xf, %eax
cmpl $0x8, %eax
ja 0x4978
shrl $0x4, %r12d
leaq 0x154db(%rip), %rcx     # 0x19b30
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movl %r11d, %ebx
jmpq *%rax
movq %r12, -0x78(%rbp)
movq %r9, -0x40(%rbp)
movq %r11, -0x60(%rbp)
movslq %r11d, %rax
movl %esi, -0x58(%rbp)
movl %esi, %ecx
movq %rcx, -0x70(%rbp)
leaq (%r13,%rax,8), %r13
movq -0x68(%rbp), %rcx
leaq (%rcx,%rax,4), %r15
movq -0x98(%rbp), %rcx
leaq (%rcx,%rax,4), %r12
xorl %ebx, %ebx
cmpq %rbx, -0x78(%rbp)
je 0x46d2
movq -0x70(%rbp), %rax
leal (%rax,%rbx), %r14d
movq -0x50(%rbp), %rdi
movl %r14d, %esi
pushq $0x1
popq %rdx
movl -0x30(%rbp), %ecx
callq 0x4354
addsd (%r13,%rbx,8), %xmm0
movsd %xmm0, (%r13,%rbx,8)
movl $0x3f800000, (%r15,%rbx,4) # imm = 0x3F800000
movl %r14d, (%r12,%rbx,4)
incq %rbx
jmp 0x4693
movq -0x78(%rbp), %rax
addl %eax, -0x2c(%rbp)
movl -0x58(%rbp), %esi
addl %eax, %esi
movq -0x60(%rbp), %r11
addl %eax, %r11d
movq -0x38(%rbp), %r14
movq -0x90(%rbp), %r13
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %r9
jmp 0x4978
movl %esi, %r8d
addl %r11d, %r12d
movslq %r11d, %rcx
movq -0x68(%rbp), %rax
leaq (%rax,%rcx,4), %rax
movq -0x98(%rbp), %rdx
leaq (%rdx,%rcx,4), %rcx
xorl %edx, %edx
leal (%rbx,%rdx), %esi
cmpl %esi, %r12d
jbe 0x4730
andl $0x0, (%rax,%rdx,4)
movl %r8d, (%rcx,%rdx,4)
incq %rdx
jmp 0x471b
movl %r12d, %r11d
movl %r8d, %esi
jmp 0x4978
movq %r12, %r15
movq %r11, -0x60(%rbp)
movq %r9, -0x40(%rbp)
testl %esi, %esi
movl %esi, -0x58(%rbp)
je 0x48cd
movq -0x60(%rbp), %r12
leal (%r15,%r12), %eax
movl 0x8(%rdi), %ecx
leal -0x1(%rcx), %ebx
cmpl %ecx, %eax
cmovll %eax, %ebx
movl %ebx, %r14d
subl %r12d, %r14d
movq -0x50(%rbp), %rdi
movl %r14d, %edx
movl -0x30(%rbp), %ecx
callq 0x42de
cmpl $0x0, 0x10(%rbp)
je 0x493d
cvtsi2sd %r14d, %xmm2
movslq %r12d, %rax
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
movslq %ebx, %rcx
movq -0x48(%rbp), %rdi
movq -0x38(%rbp), %r14
cmpq %rcx, %rax
jge 0x4945
movq 0x38(%rdi), %rdx
cvtss2sd (%rdx,%rax,4), %xmm2
addsd %xmm1, %xmm2
cvtsd2ss %xmm2, %xmm2
movss %xmm2, (%rdx,%rax,4)
incq %rax
jmp 0x479e
movq %r11, %r15
movq %r9, -0x40(%rbp)
leal 0x1(%r11), %ebx
movl 0x8(%rdi), %r14d
movq -0x50(%rbp), %rdi
movq %r12, %rdx
movl %esi, -0x58(%rbp)
movl -0x30(%rbp), %ecx
callq 0x42de
cmpl %r14d, %ebx
jge 0x489e
mulsd 0x15254(%rip), %xmm0    # 0x19a48
movq %r15, %r11
movslq %r15d, %rax
movsd (%r13,%rax,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%r13,%rax,8)
jmp 0x48a4
movq %r9, -0x40(%rbp)
leal (%r12,%r11), %r14d
cmpl 0x8(%rdi), %r14d
ja 0x4cba
movq %r11, %r15
movq %r12, %r13
movq -0x50(%rbp), %rdi
movl %esi, %r12d
movl %r13d, %edx
movl -0x30(%rbp), %ecx
movq -0x88(%rbp), %r8
callq 0x43cf
cvtsi2sd %r13d, %xmm1
divsd %xmm1, %xmm0
movslq %r15d, %rdx
movq -0x90(%rbp), %r13
leaq (%r13,%rdx,8), %rax
movq -0x68(%rbp), %rcx
leaq (%rcx,%rdx,4), %rcx
movq -0x98(%rbp), %rsi
leaq (%rsi,%rdx,4), %rdx
xorl %esi, %esi
leal (%rbx,%rsi), %edi
cmpl %edi, %r14d
jbe 0x4892
movsd (%rax,%rsi,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rax,%rsi,8)
andl $0x0, (%rcx,%rsi,4)
movl %r12d, (%rdx,%rsi,4)
incq %rsi
jmp 0x486f
movl %r14d, %r11d
movq -0x48(%rbp), %rdi
movl %r12d, %esi
jmp 0x48c0
movq %r15, %r11
movl %r15d, %ebx
movslq %ebx, %rax
addsd (%r13,%rax,8), %xmm0
movsd %xmm0, (%r13,%rax,8)
addl -0x58(%rbp), %r12d
movl %r12d, %esi
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %r9
movq -0x38(%rbp), %r14
jmp 0x4978
movq -0x60(%rbp), %r12
movl %r12d, %ebx
movq %r15, %rcx
subl %ecx, %ebx
testl %ebx, %ebx
movl $0x0, %eax
cmovlel %eax, %ebx
movl %r12d, %r14d
subl %ebx, %r14d
movl %ecx, %esi
subl %r14d, %esi
movq -0x50(%rbp), %rdi
movl %r14d, %edx
movl -0x30(%rbp), %ecx
callq 0x42de
cmpl $0x0, 0x10(%rbp)
je 0x493d
cvtsi2sd %r14d, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
movl %ebx, %eax
movslq %r12d, %rcx
movq -0x48(%rbp), %rdi
movq -0x38(%rbp), %r14
cmpq %rcx, %rax
jge 0x4945
movq 0x38(%rdi), %rdx
cvtss2sd (%rdx,%rax,4), %xmm2
addsd %xmm1, %xmm2
cvtsd2ss %xmm2, %xmm2
movss %xmm2, (%rdx,%rax,4)
incq %rax
jmp 0x491d
movq -0x48(%rbp), %rdi
movq -0x38(%rbp), %r14
movsd -0xa8(%rbp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, -0xa8(%rbp)
movl -0x58(%rbp), %esi
addl %r15d, %esi
movq -0x88(%rbp), %rax
subl %r15d, %eax
movq %rax, -0x88(%rbp)
movq -0x40(%rbp), %r9
movq -0x60(%rbp), %r11
incq %r9
jmp 0x4623
movl 0x10(%r14), %r9d
cmpl %r9d, %esi
movq -0x80(%rbp), %rax
jne 0x4c6c
cmpl %eax, %r11d
jne 0x4c6c
movq -0xb0(%rbp), %rax
testq %rax, %rax
je 0x4c24
cmpb $0x5a, (%rax)
jne 0x4c24
callq 0x36a0
movq -0x80(%rbp), %rcx
movq -0xb0(%rbp), %rsi
movq %rax, -0xc8(%rbp)
movq %rsi, %r8
incq %r8
pushq $0x1
popq %rdx
xorl %r9d, %r9d
xorl %eax, %eax
movq %r8, -0xc0(%rbp)
testl %eax, %eax
jne 0x4c38
movq -0xc8(%rbp), %rax
movq (%rax), %rcx
movl %edx, %r10d
movslq %edx, %rdx
leaq (%r8,%rdx), %r12
xorl %eax, %eax
movsbq (%rsi,%rdx), %r14
testb $0x8, 0x1(%rcx,%r14,2)
je 0x4a1e
imull $0xa, %eax, %eax
addl %r14d, %eax
addl $-0x30, %eax
incq %rdx
incl %r10d
incq %r12
jmp 0x49fd
movl %r10d, -0x40(%rbp)
leal (%rax,%r9), %ecx
movq %rcx, -0x58(%rbp)
movslq %ecx, %rcx
movq %rdx, -0x68(%rbp)
addq %r8, %rdx
movq %rdx, -0x60(%rbp)
movq -0x98(%rbp), %rdx
leaq (%rdx,%rcx,4), %rdx
movq %rdx, -0xa0(%rbp)
leaq (%r13,%rcx,8), %rcx
movq %rcx, -0xb8(%rbp)
addl %eax, %r9d
decl %r9d
movq %r9, -0x70(%rbp)
xorl %ebx, %ebx
movsbl %r14b, %r13d
movl %r13d, %edi
callq 0x4479
testl %eax, %eax
je 0x4bab
movl %eax, %r15d
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x38(%rbp), %rcx
movl 0x4(%rcx), %r8d
movq -0x58(%rbp), %rcx
addq %rbx, %rcx
addq %rcx, %r8
movslq %r8d, %rcx
movsbl (%rax,%rcx), %eax
cmpb %r14b, %al
movq %rax, %r14
jne 0x4b78
movq -0xa0(%rbp), %rax
movl (%rax,%rbx,4), %r13d
movq -0x50(%rbp), %rdi
movl %r13d, %esi
pushq $0x1
popq %rdx
movl -0x30(%rbp), %ecx
callq 0x4354
movsd %xmm0, -0x78(%rbp)
cmpl $0x4, %r15d
je 0x4b24
cmpl $0x1, %r15d
jne 0x4ae8
movq -0x50(%rbp), %rdi
movl %r13d, %esi
pushq $0x1
popq %rdx
movl -0x30(%rbp), %ecx
callq 0x42de
jmp 0x4b3a
movq -0x38(%rbp), %rdx
movq 0x8(%rdx), %rax
movq %rax, %rcx
shrq $0x30, %rcx
shlq $0x2, %rcx
addq 0x30(%rdx), %rcx
movslq %r13d, %rdx
shrl $0x18, %eax
addq %rcx, %rax
movsbl (%rdx,%rax), %esi
movl %r14d, %edi
callq 0x4494
testl %eax, %eax
je 0x4b24
movl -0x2c(%rbp), %eax
incl %eax
movsd -0x78(%rbp), %xmm0
jmp 0x4b3d
cvtsi2sd %r15d, %xmm1
movsd 0x14eff(%rip), %xmm0    # 0x19a30
divsd %xmm1, %xmm0
callq 0x3290
movl -0x2c(%rbp), %eax
subsd -0x78(%rbp), %xmm0
movq -0xb8(%rbp), %rcx
addsd (%rcx,%rbx,8), %xmm0
movsd %xmm0, (%rcx,%rbx,8)
decl %eax
movl %eax, -0x2c(%rbp)
movq -0x60(%rbp), %rax
movb (%rax,%rbx), %r14b
incq %rbx
incl -0x40(%rbp)
incq %r12
movq -0x70(%rbp), %rax
incl %eax
movq %rax, -0x70(%rbp)
jmp 0x4a62
movq 0x24479(%rip), %rax     # 0x28ff8
movq (%rax), %rdi
movq -0x38(%rbp), %rax
movq 0x30(%rax), %rdx
movzwl 0xc(%rax), %ecx
leaq 0x193eb(%rip), %rsi     # 0x1df80
movl -0x40(%rbp), %r9d
xorl %eax, %eax
pushq %r13
pushq %r14
callq 0x3350
popq %rcx
popq %rdx
jmp 0x4aa6
movq -0x68(%rbp), %rdx
addq %rbx, %rdx
cmpb $0x5e, %r14b
movq -0xb0(%rbp), %rsi
jne 0x4bf6
movq -0xc8(%rbp), %rax
movq (%rax), %rax
movq -0x38(%rbp), %r14
movq -0x90(%rbp), %r13
movq -0xc0(%rbp), %r8
movq -0x70(%rbp), %r9
incq %rdx
movsbq (%r12), %rcx
incq %r12
incl %r9d
testb $0x4, 0x1(%rax,%rcx,2)
jne 0x4bdf
jmp 0x4c0f
movq -0x58(%rbp), %r9
addq %rbx, %r9
movq -0x38(%rbp), %r14
movq -0x90(%rbp), %r13
movq -0xc0(%rbp), %r8
movslq %edx, %rcx
xorl %eax, %eax
cmpb $0x0, (%rsi,%rcx)
sete %al
movq -0x80(%rbp), %rcx
jmp 0x49df
movq 0x30(%r14), %rsi
leaq 0x193fe(%rip), %rdi     # 0x1e02d
xorl %eax, %eax
callq 0x3210
jmp 0x4c3d
cmpl %ecx, %r9d
jne 0x4c9c
movl -0x2c(%rbp), %eax
cvtsi2sd %eax, %xmm0
cvtsi2sdl -0x88(%rbp), %xmm1
divsd %xmm1, %xmm0
callq 0x8aa5
movsd -0xa8(%rbp), %xmm0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x24385(%rip), %rax     # 0x28ff8
movq (%rax), %rdi
movq 0x30(%r14), %rdx
movl %esi, %r8d
movzwl 0xc(%r14), %ecx
leaq 0x1926f(%rip), %rsi     # 0x1def8
xorl %eax, %eax
pushq -0x80(%rbp)
pushq %r11
callq 0x3350
popq %rcx
popq %rdx
jmp 0x499a
movq 0x24355(%rip), %rax     # 0x28ff8
movq (%rax), %rdi
movq 0x30(%r14), %rdx
leaq 0x1933f(%rip), %rsi     # 0x1dff0
xorl %eax, %eax
callq 0x3350
jmp 0x4c3d
leaq 0x19216(%rip), %rdi     # 0x1ded7
leaq 0x1906d(%rip), %rsi     # 0x1dd35
leaq 0x191ac(%rip), %rcx     # 0x1de7b
movl $0x235, %edx            # imm = 0x235
callq 0x3230
leaq 0x19177(%rip), %rdi     # 0x1de57
leaq 0x1904e(%rip), %rsi     # 0x1dd35
leaq 0x1918d(%rip), %rcx     # 0x1de7b
movl $0x209, %edx            # imm = 0x209
callq 0x3230