// File: /workspace/github_c_makefile_star2_O1/lh3[P]pre-pe/pre-dip-c.c
// Function: lt_process
void lt_process(const lt_global_t *g, bseq1_t s[2])
{
	int i, k, mlen;
	mlen = s[0].l_seq > s[1].l_seq? s[0].l_seq : s[1].l_seq;

	// trim heading and trailing N
	for (k = 0; k < 2; ++k) {
		bseq1_t *sk = &s[k];
		for (i = sk->l_seq - 1; i >= 0; --i) // trim trailing "N"
			if (sk->seq[i] != 'N') break;
		sk->l_seq = i + 1;
		sk->seq[sk->l_seq] = sk->qual[sk->l_seq] = 0;
		for (i = 0; i < sk->l_seq; ++i) // trim heading "N"
			if (sk->seq[i] != 'N') break;
		if (i) trim_bseq_5(sk, i);
	}
	
	// trim Illumina PE adapters
	trim_adap(&s[0], lt_adapter1, 0, g->opt.min_adap_len, g->opt.max_adap_pen, 1);
	trim_adap(&s[1], lt_adapter2, 0, g->opt.min_adap_len, g->opt.max_adap_pen, 1);
	
	// trim transposon sequences and store barcodes
	int olig_pos[2];
	char *bc[2];
	
	for (k = 0; k < 2; ++k) {
		olig_pos[k] = 0;
		bc[k] = (char*)alloca(mlen + 1);
		bc[k][0] = 0;
		trim_olig(&s[k], lt_oligo_for, 1, g->opt.min_olig_len, g->opt.max_olig_pen, &olig_pos[k], bc[k], 1);
		trim_olig(&s[k], lt_oligo_rev, 0, g->opt.min_olig_len, g->opt.max_olig_pen, 0, 0, 0);
        trim_adap(&s[k], lt_oligo_rev, 0, g->opt.min_adap_len, g->opt.max_adap_pen, 1);
	}

	
	// merge the two ends
	int n_fh;
	uint64_t fh[2];
	char *rseq, *rqual, *xseq, *xqual;
	rseq = (char*)alloca(mlen + 1);
	rqual = (char*)alloca(mlen + 1);
	xseq = (char*)alloca(s[0].l_seq + s[1].l_seq + 1);
	xqual = (char*)alloca(s[0].l_seq + s[1].l_seq + 1);
	// reverse the other read
	lt_seq_revcomp(s[1].l_seq, s[1].seq, rseq);
	lt_seq_rev(s[1].l_seq, s[1].qual, rqual);
	// find overlaps
	n_fh = lt_ue_for(s[0].l_seq, s[0].seq, s[0].qual, s[1].l_seq, rseq, rqual, g->opt.max_ovlp_pen, g->opt.min_ovlp_len, 2, fh);
	if (n_fh == 1) {
    	int l = (uint32_t)fh[0], st = fh[0]>>32;
        if (st + l == s[0].l_seq) { // good stitch
            //printf("%s\n%s\n%s\n%s\n%d,%d,%d,%d\n",s[0].seq,s[0].qual,rseq,rqual,st,l,s[0].l_seq,s[1].l_seq);
    		int x = 0;
    		s[0].type = s[1].type = LT_MERGED;
    		for (i = 0; i < st; ++i)
    			xseq[x] = s[0].seq[i], xqual[x++] = s[0].qual[i];
    		for (i = 0; i < l; ++i) {
    			int j = st + i, y;
    			y = merge_base(g->opt.max_qual, s[0].seq[j], s[0].qual[j], rseq[i], rqual[i]);
    			xseq[x] = (uint8_t)y, xqual[x++] = y>>8;
    		}
    		for (i = l; i < s[1].l_seq; ++i)
    			xseq[x] = rseq[i], xqual[x++] = rqual[i];
            //printf("%s\n%s\n%d\n",xseq,xqual,x);
    		xseq[x] = xqual[x] = 0;
    		free(s[0].seq); free(s[0].qual);
    		s[0].seq = strdup(xseq);
    		s[0].qual = strdup(xqual);
    		s[0].l_seq = x;
            s[1].seq[0] = 0;
    		s[1].l_seq = 0;
        } else {
            s[0].type = s[1].type = LT_NO_MERGE;
        }
	} else {
		s[0].type = s[1].type = LT_NO_MERGE;
	}
	
	// check whether read length is too short
    if (s[0].l_seq < g->opt.min_seq_len) {
        if (s[0].type == LT_MERGED) { // single-end
            s[0].type = s[1].type = LT_SHORT_SEQ;
        } else if (s[1].l_seq >= g->opt.min_seq_len) { // read 1 is short, but read 2 is not => swap
			char *tmp;
			tmp = s[0].seq, s[0].seq = s[1].seq, s[1].seq = tmp;
			tmp = s[0].qual, s[0].qual = s[1].qual, s[1].qual = tmp;
			tmp = bc[0], bc[0] = bc[1], bc[1] = tmp;
			i = olig_pos[0], olig_pos[0] = olig_pos[1], olig_pos[1] = i;
			i = s[0].l_seq, s[0].l_seq = s[1].l_seq, s[1].l_seq = i;
            s[0].type = s[1].type = LT_SHORT_PE_SWAP;
        } else {
            s[0].type = s[1].type = LT_SHORT_SEQ;
        }
    } else if (s[0].type != LT_MERGED && s[1].l_seq < g->opt.min_seq_len) { // read 2 is short, but read 1 is not
        s[0].type = s[1].type = LT_SHORT_PE;
    }
    
    // record the barcodes
	for (k = 0; k < 2; ++k) {
		s[k].olig_pos_f = olig_pos[0];
		s[k].olig_pos_r = olig_pos[1];
		s[k].bc_f = strdup(bc[0]);
		s[k].bc_r = strdup(bc[1]);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rsi, %r15
movq %rdi, -0x48(%rbp)
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl 0x38(%rsi), %eax
movl %eax, -0x40(%rbp)
movl (%rsi), %eax
movq %rax, -0x58(%rbp)
movl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
xorl %r13d, %r13d
movq %rsi, -0x30(%rbp)
imulq $0x38, %r13, %rax
leaq (%r15,%rax), %rbx
movl (%r15,%rax), %eax
movl %eax, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
xorl %r14d, %r14d
testq %rdx, %rdx
jle 0x315a
leaq -0x1(%rdx), %rcx
movq 0x18(%rbx), %rsi
cmpb $0x4e, -0x1(%rsi,%rdx)
movq %rcx, %rdx
je 0x313c
incl %ecx
jmp 0x315c
xorl %ecx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl $0x80000000, %eax       # imm = 0x80000000
orl %ecx, %eax
movl %eax, (%rbx)
movq 0x20(%rbx), %rax
movb %r14b, (%rax,%rcx)
movq 0x18(%rbx), %rax
movl (%rbx), %ecx
andq %r12, %rcx
movb %r14b, (%rax,%rcx)
movl (%rbx), %eax
andq %r12, %rax
je 0x31a0
movq 0x18(%rbx), %rcx
xorl %r14d, %r14d
cmpb $0x4e, (%rcx,%r14)
jne 0x31a0
incq %r14
cmpq %r14, %rax
jne 0x318e
movl %eax, %r14d
testl %r14d, %r14d
je 0x3204
movq 0x18(%rbx), %rdi
movl %r14d, %r15d
leaq (%rdi,%r15), %rsi
subl %r14d, %eax
movslq %eax, %rdx
callq 0x21e0
movq 0x20(%rbx), %rdi
addq %rdi, %r15
movl (%rbx), %edx
andq %r12, %rdx
movslq %r14d, %rax
subq %rax, %rdx
movq %r15, %rsi
movq -0x30(%rbp), %r15
callq 0x21e0
movl (%rbx), %eax
movl %eax, %ecx
subl %r14d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl $0x80000000, %eax       # imm = 0x80000000
orl %ecx, %eax
movl %eax, (%rbx)
movq 0x20(%rbx), %rax
xorl %edx, %edx
movb %dl, (%rax,%rcx)
movq 0x18(%rbx), %rax
movl (%rbx), %ecx
andq %r12, %rcx
movb %dl, (%rax,%rcx)
leaq 0x1(%r13), %rax
testq %r13, %r13
movq %rax, %r13
je 0x3128
movq %r15, %r14
movl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movq -0x58(%rbp), %rax
andl %r15d, %eax
movl -0x40(%rbp), %ecx
cmpl %ecx, %eax
cmovbel %ecx, %eax
movq %rax, -0x58(%rbp)
movq 0x3f29(%rip), %r13      # 0x7160
movq -0x48(%rbp), %rax
movl 0x18(%rax), %ecx
movq %rcx, -0x40(%rbp)
movl 0x1c(%rax), %r12d
movq %r13, %rdi
callq 0x20c0
movl (%r14), %ebx
andl %ebx, %r15d
movq 0x18(%r14), %rsi
movq 0x20(%r14), %rdx
leaq -0x150(%rbp), %r10
movl %r15d, %edi
movq %rdx, -0x38(%rbp)
movl %eax, %ecx
movq %r13, %r8
xorl %r9d, %r9d
pushq %r10
pushq $0x4
pushq %r12
pushq -0x40(%rbp)
callq 0x29c1
addq $0x20, %rsp
testl %eax, %eax
jle 0x32f4
decl %eax
movq -0x150(%rbp,%rax,8), %rcx
movq %rcx, %rax
shrq $0x20, %rax
subl %eax, %r15d
cmpl %r12d, %r15d
jle 0x32d8
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl $0x80000000, %ebx       # imm = 0x80000000
orl %ecx, %ebx
movq -0x30(%rbp), %r14
movl %ebx, (%r14)
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andq %rcx, %rax
xorl %edx, %edx
movq -0x38(%rbp), %rsi
movb %dl, (%rsi,%rax)
movq 0x18(%r14), %rax
movl (%r14), %esi
andq %rcx, %rsi
movb %dl, (%rax,%rsi)
jmp 0x32f4
sarq $0x20, %rcx
movq -0x38(%rbp), %rdi
addq %rcx, %rdi
movslq %r15d, %rdx
movl $0x22, %esi
callq 0x2110
movq -0x30(%rbp), %r14
movq 0x3e6d(%rip), %r13      # 0x7168
movq -0x48(%rbp), %rax
movl 0x18(%rax), %ecx
movq %rcx, -0x40(%rbp)
movl 0x1c(%rax), %r15d
movq %r13, %rdi
callq 0x20c0
movl 0x38(%r14), %ebx
movl %ebx, %r12d
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
movq 0x50(%r14), %rsi
movq 0x58(%r14), %rdx
movl %r12d, %edi
movq %rdx, -0x38(%rbp)
movl %eax, %ecx
movq %r13, %r8
xorl %r9d, %r9d
leaq -0x150(%rbp), %rax
pushq %rax
pushq $0x4
pushq %r15
pushq -0x40(%rbp)
callq 0x29c1
addq $0x20, %rsp
testl %eax, %eax
jle 0x33c1
decl %eax
movq -0x150(%rbp,%rax,8), %rcx
movq %rcx, %rax
shrq $0x20, %rax
subl %eax, %r12d
cmpl %r15d, %r12d
jle 0x33a5
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl $0x80000000, %ebx       # imm = 0x80000000
orl %ecx, %ebx
movq -0x30(%rbp), %r14
movl %ebx, 0x38(%r14)
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andq %rcx, %rax
xorl %edx, %edx
movq -0x38(%rbp), %rsi
movb %dl, (%rsi,%rax)
movq 0x50(%r14), %rax
movl 0x38(%r14), %esi
andq %rcx, %rsi
movb %dl, (%rax,%rsi)
jmp 0x33c1
sarq $0x20, %rcx
movq -0x38(%rbp), %rdi
addq %rcx, %rdi
movslq %r12d, %rdx
movl $0x22, %esi
callq 0x2110
movq -0x30(%rbp), %r14
movq -0x58(%rbp), %rax
incl %eax
addl $0xf, %eax
andl $-0x10, %eax
movq %rax, -0x78(%rbp)
movq %r14, %r15
xorl %ecx, %ecx
leaq (%rcx,%rbp), %r9
addq $-0x84, %r9
movl $0x0, (%r9)
movq %rsp, %rax
subq -0x78(%rbp), %rax
movq %rax, %rsp
movq %rcx, -0x40(%rbp)
movq %rax, -0xa0(%rbp,%rcx,2)
movb $0x0, (%rax)
movq 0x3d68(%rip), %rsi      # 0x7170
movq -0x48(%rbp), %r14
movl 0x20(%r14), %r8d
movl 0x24(%r14), %ecx
movq %r15, %rdi
movl $0x1, %edx
pushq $0x1
pushq %rax
callq 0x3a31
addq $0x10, %rsp
movq 0x3d49(%rip), %rbx      # 0x7178
movl 0x20(%r14), %eax
movq %rax, -0x38(%rbp)
movl 0x24(%r14), %r12d
movq %rbx, %rdi
callq 0x20c0
movl (%r15), %r14d
movl %r14d, %r13d
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq 0x18(%r15), %rsi
movq 0x20(%r15), %rdx
movl %r13d, %edi
movq %rdx, -0x50(%rbp)
movl %eax, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
leaq -0x150(%rbp), %rax
pushq %rax
pushq $0x10
pushq %r12
pushq -0x38(%rbp)
callq 0x29c1
addq $0x20, %rsp
testl %eax, %eax
jle 0x34e9
decl %eax
movq -0x150(%rbp,%rax,8), %rcx
movq %rcx, %rax
shrq $0x20, %rax
subl %eax, %r13d
cmpl %r12d, %r13d
jle 0x34d1
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl $0x80000000, %r14d      # imm = 0x80000000
orl %ecx, %r14d
movl %r14d, (%r15)
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andq %rsi, %rax
xorl %edx, %edx
movq -0x50(%rbp), %rcx
movb %dl, (%rcx,%rax)
movq 0x18(%r15), %rax
movl (%r15), %ecx
andq %rsi, %rcx
movb %dl, (%rax,%rcx)
jmp 0x34e9
sarq $0x20, %rcx
movq -0x50(%rbp), %rdi
addq %rcx, %rdi
movslq %r13d, %rdx
movl $0x22, %esi
callq 0x2110
movq 0x3c88(%rip), %rbx      # 0x7178
movq -0x48(%rbp), %rax
movl 0x18(%rax), %ecx
movq %rcx, -0x38(%rbp)
movl 0x1c(%rax), %r12d
movq %rbx, %rdi
callq 0x20c0
movl (%r15), %r14d
movl %r14d, %r13d
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq 0x18(%r15), %rsi
movq 0x20(%r15), %rdx
movl %r13d, %edi
movq %rdx, -0x50(%rbp)
movl %eax, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
leaq -0x150(%rbp), %rax
pushq %rax
pushq $0x4
pushq %r12
pushq -0x38(%rbp)
callq 0x29c1
addq $0x20, %rsp
testl %eax, %eax
jle 0x35ad
decl %eax
movq -0x150(%rbp,%rax,8), %rcx
movq %rcx, %rax
shrq $0x20, %rax
subl %eax, %r13d
cmpl %r12d, %r13d
jle 0x3595
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl $0x80000000, %r14d      # imm = 0x80000000
orl %ecx, %r14d
movl %r14d, (%r15)
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andq %rsi, %rax
xorl %edx, %edx
movq -0x50(%rbp), %rcx
movb %dl, (%rcx,%rax)
movq 0x18(%r15), %rax
movl (%r15), %ecx
andq %rsi, %rcx
movb %dl, (%rax,%rcx)
jmp 0x35ad
sarq $0x20, %rcx
movq -0x50(%rbp), %rdi
addq %rcx, %rdi
movslq %r13d, %rdx
movl $0x22, %esi
callq 0x2110
movq -0x40(%rbp), %rcx
addq $0x4, %rcx
addq $0x38, %r15
cmpq $0x4, %rcx
je 0x33d6
movq %rsp, %r15
movq -0x58(%rbp), %rax
addl $0x10, %eax
andl $-0x10, %eax
subq %rax, %r15
movq %r15, %rsp
movq %rsp, %r9
subq %rax, %r9
movq %r9, %rsp
movl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
movq -0x30(%rbp), %rax
andl (%rax), %r12d
movl 0x38(%rax), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
leal (%r12,%rdi), %eax
addl $0x10, %eax
andl $-0x10, %eax
movq %rsp, %r14
subq %rax, %r14
movq %r14, %rsp
movq %rsp, %r13
subq %rax, %r13
movq %r13, %rsp
testq %rdi, %rdi
je 0x3647
movq -0x30(%rbp), %rax
movq 0x50(%rax), %rax
leaq 0x3b5b(%rip), %rcx      # 0x7180
movq %rdi, %rdx
movsbq (%rax), %rsi
testq %rsi, %rsi
js 0x3637
movb (%rsi,%rcx), %sil
jmp 0x363a
movb $0x4e, %sil
movb %sil, -0x1(%r15,%rdx)
incq %rax
decq %rdx
jne 0x3628
movb $0x0, (%r15,%rdi)
testl %edi, %edi
je 0x3669
movq -0x30(%rbp), %rax
movq 0x58(%rax), %rax
movl %edi, %ecx
movb (%rax), %dl
movb %dl, -0x1(%r9,%rcx)
incq %rax
decq %rcx
jne 0x365a
movb $0x0, (%r9,%rdi)
movq %rdi, %rcx
movq -0x30(%rbp), %rbx
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
movq -0x48(%rbp), %rdi
movl 0x10(%rdi), %eax
movl 0x14(%rdi), %r10d
movl %r12d, %edi
movq %rsi, -0x70(%rbp)
movq %rdx, -0x40(%rbp)
movq %rcx, -0x68(%rbp)
movq %r15, %r8
movq %r9, -0x38(%rbp)
leaq -0x150(%rbp), %r11
pushq %r11
pushq $0x2
pushq %r10
pushq %rax
callq 0x29c1
addq $0x20, %rsp
cmpl $0x1, %eax
jne 0x3709
movq -0x150(%rbp), %rdx
movq %rdx, %rbx
shrq $0x20, %rbx
leal (%rbx,%rdx), %eax
cmpl %r12d, %eax
jne 0x371c
movl $0x15, %eax
movq -0x30(%rbp), %rcx
movl %eax, 0x3c(%rcx)
movl %eax, 0x4(%rcx)
testl %ebx, %ebx
jle 0x3732
movq %r14, %rdi
movq -0x70(%rbp), %rsi
movq %rdx, %r12
movq %rbx, %rdx
callq 0x2160
movq %r13, %rdi
movq -0x40(%rbp), %rsi
movq %rbx, %rdx
callq 0x2160
movq %r12, %rdx
jmp 0x3734
movl $0x16, %eax
movl %eax, 0x3c(%rbx)
movl %eax, 0x4(%rbx)
movq %rbx, %r15
jmp 0x392a
movl $0x16, %eax
movq -0x30(%rbp), %r15
movl %eax, 0x3c(%r15)
movl %eax, 0x4(%r15)
jmp 0x392a
xorl %ebx, %ebx
movq -0x38(%rbp), %rcx
movq -0x68(%rbp), %rax
testl %edx, %edx
jle 0x387d
movq -0x48(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x7c(%rbp)
movq %rdx, %rax
sarq $0x20, %rax
movl %ebx, %ebx
movq %rdx, -0xa8(%rbp)
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq %rdx, -0x50(%rbp)
movq %r13, -0xb0(%rbp)
leaq (%rbx,%r13), %rdx
movq %rdx, -0x78(%rbp)
movq %r14, -0xb8(%rbp)
movq %rbx, -0x60(%rbp)
leaq (%r14,%rbx), %rdx
movq %rdx, -0xc8(%rbp)
movq -0x70(%rbp), %rdx
addq %rax, %rdx
movq %rdx, -0xc0(%rbp)
addq %rax, -0x40(%rbp)
xorl %edx, %edx
movq %r15, -0x58(%rbp)
movq -0xc0(%rbp), %rax
movsbq (%rax,%rdx), %r12
movq -0x40(%rbp), %rax
movsbl (%rax,%rdx), %ebx
movsbq (%r15,%rdx), %r13
movq %rdx, %r15
movsbl (%rcx,%rdx), %r14d
cmpb %r13b, %r12b
jne 0x3805
cmpb %r14b, %bl
movl %r14d, %eax
cmovgl %ebx, %eax
cmovll %ebx, %r14d
movl %r14d, %ecx
addl $-0x21, %ecx
shrl $0x1f, %ecx
addl %r14d, %ecx
addl $-0x21, %ecx
sarl %ecx
leal (%rax,%rcx), %ebx
addl $-0x21, %ebx
callq 0x2030
shlq $0x2, %r12
addq (%rax), %r12
movl -0x7c(%rbp), %eax
cmpl %eax, %ebx
cmovgel %eax, %ebx
jmp 0x3825
callq 0x2030
movq (%rax), %rax
cmpb %r14b, %bl
jle 0x381b
leaq (%rax,%r12,4), %r12
subl %r14d, %ebx
jmp 0x3825
leaq (%rax,%r13,4), %r12
subl %ebx, %r14d
movl %r14d, %ebx
movq %r15, %rdx
movl (%r12), %eax
shll $0x8, %ebx
addl $0x2100, %ebx           # imm = 0x2100
orl %eax, %ebx
movq -0xc8(%rbp), %rcx
movb %al, (%rcx,%r15)
movq -0x78(%rbp), %rax
movb %bh, (%rax,%rdx)
incq %rdx
cmpq %rdx, -0x50(%rbp)
movq -0x38(%rbp), %rcx
movq -0x58(%rbp), %r15
jne 0x37a5
movq -0x60(%rbp), %rbx
addl %edx, %ebx
movq -0xb8(%rbp), %r14
movq -0xb0(%rbp), %r13
movq -0x68(%rbp), %rax
movq -0xa8(%rbp), %rdx
cmpl %edx, %eax
jle 0x38d2
movl %ebx, %ebx
movq %rbx, -0x60(%rbp)
leaq (%r14,%rbx), %rdi
movslq %edx, %rbx
addq %rbx, %r15
notl %edx
addl %eax, %edx
incq %rdx
movq %r15, %rsi
movq %rdx, %r12
movq %rcx, %r15
callq 0x2160
movq -0x60(%rbp), %rax
leaq (%rax,%r13), %rdi
addq %rbx, %r15
movq %r15, %rsi
movq %r12, %rdx
callq 0x2160
movl -0x68(%rbp), %eax
subq %rax, %rbx
xorl %eax, %eax
decq %rax
cmpq %rax, %rbx
jne 0x38c4
movq -0x60(%rbp), %rbx
subl %eax, %ebx
movq -0x30(%rbp), %r15
movl %ebx, %eax
movq %rbx, %r12
xorl %ebx, %ebx
movb %bl, (%r13,%rax)
movb %bl, (%r14,%rax)
movq -0x70(%rbp), %rdi
callq 0x2050
movq 0x20(%r15), %rdi
callq 0x2050
movq %r14, %rdi
callq 0x2250
movq %rax, 0x18(%r15)
movq %r13, %rdi
callq 0x2250
movq %rax, 0x20(%r15)
movl $0x80000000, %eax       # imm = 0x80000000
movl (%r15), %ecx
andl %eax, %ecx
orl %r12d, %ecx
movl %ecx, (%r15)
movq 0x50(%r15), %rcx
movb %bl, (%rcx)
andl %eax, 0x38(%r15)
movl (%r15), %ecx
movl 0x4(%r15), %edx
movl %ecx, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq -0x48(%rbp), %rsi
movl 0x8(%rsi), %edi
cmpl %edi, %eax
jge 0x39b4
movl $0x2, %esi
cmpl $0x15, %edx
je 0x39cb
movl 0x38(%r15), %edx
movl %edx, %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
cmpl %edi, %r8d
jl 0x39cb
movups 0x18(%r15), %xmm0
movups 0x50(%r15), %xmm1
movups %xmm1, 0x18(%r15)
movups %xmm0, 0x50(%r15)
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
movq %rsi, -0x98(%rbp)
rolq $0x20, -0x84(%rbp)
movl $0x80000000, %esi       # imm = 0x80000000
andl %esi, %ecx
orl %ecx, %r8d
movl %r8d, (%r15)
andl %esi, %edx
orl %eax, %edx
movl %edx, 0x38(%r15)
movl $0x4, %esi
jmp 0x39cb
cmpl $0x15, %edx
je 0x39d3
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl 0x38(%r15), %eax
movl $0x3, %esi
cmpl %edi, %eax
jge 0x39d3
movl %esi, 0x3c(%r15)
movl %esi, 0x4(%r15)
movl -0x84(%rbp), %eax
movl %eax, -0x48(%rbp)
movl -0x80(%rbp), %r12d
movq -0xa0(%rbp), %r14
movq -0x98(%rbp), %rbx
xorl %r13d, %r13d
movl -0x48(%rbp), %eax
movl %eax, 0x8(%r15,%r13)
movl %r12d, 0xc(%r15,%r13)
movq %r14, %rdi
callq 0x2250
movq %rax, 0x28(%r15,%r13)
movq %rbx, %rdi
callq 0x2250
movq %rax, 0x30(%r15,%r13)
addq $0x38, %r13
cmpq $0x38, %r13
je 0x39f1
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq