// File: /workspace/github_c_makefile_star2_O0/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
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq -0x10(%rbp), %rcx
movl 0x38(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jle 0x36b2
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0xa4(%rbp)
jmp 0x36c4
movq -0x10(%rbp), %rax
movl 0x38(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl $0x0, -0x18(%rbp)
cmpl $0x2, -0x18(%rbp)
jge 0x37dc
movq -0x10(%rbp), %rax
movslq -0x18(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl $0x1, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
jl 0x372c
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x4e, %eax
je 0x371f
jmp 0x372c
jmp 0x3721
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3702
movl -0x14(%rbp), %edx
addl $0x1, %edx
movq -0x28(%rbp), %rax
movl (%rax), %ecx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %edx, %ecx
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x28(%rbp), %rcx
movl (%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %ecx, %ecx
movb $0x0, (%rax,%rcx)
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x28(%rbp), %rcx
movl (%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %ecx, %ecx
movb $0x0, (%rax,%rcx)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x28(%rbp), %rcx
movl (%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jge 0x37ba
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x4e, %eax
je 0x37ad
jmp 0x37ba
jmp 0x37af
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3783
cmpl $0x0, -0x14(%rbp)
je 0x37cc
movq -0x28(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x3f70
jmp 0x37ce
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x36d4
movq -0x10(%rbp), %rdi
movq 0x4969(%rip), %rsi      # 0x8150
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %ecx
movq -0x8(%rbp), %rax
movl 0x18(%rax), %r8d
xorl %edx, %edx
movl $0x1, %r9d
callq 0x4040
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
movq 0x4946(%rip), %rsi      # 0x8158
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %ecx
movq -0x8(%rbp), %rax
movl 0x18(%rax), %r8d
xorl %edx, %edx
movl $0x1, %r9d
callq 0x4040
movl $0x0, -0x18(%rbp)
cmpl $0x2, -0x18(%rbp)
jge 0x3959
movslq -0x18(%rbp), %rax
movl $0x0, -0x30(%rbp,%rax,4)
movslq -0x1c(%rbp), %rax
addq $0x10, %rax
andq $-0x10, %rax
movq %rsp, %rcx
subq %rax, %rcx
movq %rcx, %rsp
movslq -0x18(%rbp), %rax
movq %rcx, -0x40(%rbp,%rax,8)
movslq -0x18(%rbp), %rax
movq -0x40(%rbp,%rax,8), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rdi
movslq -0x18(%rbp), %rax
imulq $0x38, %rax, %rax
addq %rax, %rdi
movq 0x48d5(%rip), %rsi      # 0x8160
movq -0x8(%rbp), %rax
movl 0x24(%rax), %ecx
movq -0x8(%rbp), %rax
movl 0x20(%rax), %r8d
movslq -0x18(%rbp), %rax
leaq -0x30(%rbp), %r9
shlq $0x2, %rax
addq %rax, %r9
movslq -0x18(%rbp), %rax
movq -0x40(%rbp,%rax,8), %rax
movl $0x1, %edx
subq $0x10, %rsp
movq %rax, (%rsp)
movl $0x1, 0x8(%rsp)
callq 0x4280
addq $0x10, %rsp
movq -0x10(%rbp), %rdi
movslq -0x18(%rbp), %rax
imulq $0x38, %rax, %rax
addq %rax, %rdi
movq 0x4882(%rip), %rsi      # 0x8168
movq -0x8(%rbp), %rax
movl 0x24(%rax), %ecx
movq -0x8(%rbp), %rax
movl 0x20(%rax), %r8d
xorl %edx, %edx
xorl %eax, %eax
movl %eax, %r9d
subq $0x10, %rsp
movq $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x4280
addq $0x10, %rsp
movq -0x10(%rbp), %rdi
movslq -0x18(%rbp), %rax
imulq $0x38, %rax, %rax
addq %rax, %rdi
movq 0x4839(%rip), %rsi      # 0x8168
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %ecx
movq -0x8(%rbp), %rax
movl 0x18(%rax), %r8d
xorl %edx, %edx
movl $0x1, %r9d
callq 0x4040
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x3835
movslq -0x1c(%rbp), %rcx
addq $0x10, %rcx
andq $-0x10, %rcx
movq %rsp, %rax
subq %rcx, %rax
movq %rax, %rsp
movq %rax, -0x68(%rbp)
movslq -0x1c(%rbp), %rcx
addq $0x10, %rcx
andq $-0x10, %rcx
movq %rsp, %rax
subq %rcx, %rax
movq %rax, %rsp
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %edx
movl 0x38(%rax), %eax
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %ecx
movl %edx, %eax
leal 0x10(%rax,%rcx), %eax
andl $-0x10, %eax
movl %eax, %ecx
movq %rsp, %rax
subq %rcx, %rax
movq %rax, %rsp
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %edx
movl 0x38(%rax), %eax
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %ecx
movl %edx, %eax
leal 0x10(%rax,%rcx), %eax
andl $-0x10, %eax
movl %eax, %ecx
movq %rsp, %rax
subq %rcx, %rax
movq %rax, %rsp
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
movl 0x38(%rax), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rsi
movq -0x68(%rbp), %rdx
callq 0x2a90
movq -0x10(%rbp), %rax
movl 0x38(%rax), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rsi
movq -0x70(%rbp), %rdx
callq 0x2a30
movq -0x10(%rbp), %rax
movl (%rax), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdx
movq -0x10(%rbp), %rax
movl 0x38(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq -0x68(%rbp), %r8
movq -0x70(%rbp), %r9
movq -0x8(%rbp), %rax
movl 0x10(%rax), %r11d
movq -0x8(%rbp), %rax
movl 0x14(%rax), %r10d
leaq -0x60(%rbp), %rax
subq $0x20, %rsp
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl $0x2, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x2d60
addq $0x20, %rsp
movl %eax, -0x44(%rbp)
cmpl $0x1, -0x44(%rbp)
jne 0x3d37
movq -0x60(%rbp), %rax
movl %eax, -0x84(%rbp)
movq -0x60(%rbp), %rax
shrq $0x20, %rax
movl %eax, -0x88(%rbp)
movl -0x88(%rbp), %eax
addl -0x84(%rbp), %eax
movq -0x10(%rbp), %rcx
movl (%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jne 0x3d1f
movl $0x0, -0x8c(%rbp)
movq -0x10(%rbp), %rax
movl $0x15, 0x3c(%rax)
movq -0x10(%rbp), %rax
movl $0x15, 0x4(%rax)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x88(%rbp), %eax
jge 0x3b54
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x14(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x78(%rbp), %rax
movslq -0x8c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x14(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x80(%rbp), %rax
movl -0x8c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x8c(%rbp)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3af7
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x84(%rbp), %eax
jge 0x3c1c
movl -0x88(%rbp), %eax
addl -0x14(%rbp), %eax
movl %eax, -0x90(%rbp)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %edi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x90(%rbp), %rcx
movb (%rax,%rcx), %sil
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x90(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x68(%rbp), %rax
movslq -0x14(%rbp), %rcx
movb (%rax,%rcx), %cl
movq -0x70(%rbp), %rax
movslq -0x14(%rbp), %r8
movsbl %sil, %esi
movsbl %dl, %edx
movsbl %cl, %ecx
movsbl (%rax,%r8), %r8d
callq 0x44c0
movl %eax, -0x94(%rbp)
movl -0x94(%rbp), %eax
movb %al, %dl
movq -0x78(%rbp), %rax
movslq -0x8c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x94(%rbp), %eax
sarl $0x8, %eax
movb %al, %dl
movq -0x80(%rbp), %rax
movl -0x8c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x8c(%rbp)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3b5b
movl -0x84(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x38(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jge 0x3c83
movq -0x68(%rbp), %rax
movslq -0x14(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x78(%rbp), %rax
movslq -0x8c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x70(%rbp), %rax
movslq -0x14(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x80(%rbp), %rax
movl -0x8c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x8c(%rbp)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3c25
movq -0x80(%rbp), %rax
movslq -0x8c(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x78(%rbp), %rax
movslq -0x8c(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x2040
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x2040
movq -0x78(%rbp), %rdi
callq 0x2240
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x80(%rbp), %rdi
callq 0x2240
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movl -0x8c(%rbp), %edx
movq -0x10(%rbp), %rax
movl (%rax), %ecx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %edx, %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
movl 0x38(%rax), %ecx
andl $0x80000000, %ecx       # imm = 0x80000000
orl $0x0, %ecx
movl %ecx, 0x38(%rax)
jmp 0x3d35
movq -0x10(%rbp), %rax
movl $0x16, 0x3c(%rax)
movq -0x10(%rbp), %rax
movl $0x16, 0x4(%rax)
jmp 0x3d4d
movq -0x10(%rbp), %rax
movl $0x16, 0x3c(%rax)
movq -0x10(%rbp), %rax
movl $0x16, 0x4(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq -0x8(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x3ead
movq -0x10(%rbp), %rax
cmpl $0x15, 0x4(%rax)
jne 0x3d8a
movq -0x10(%rbp), %rax
movl $0x2, 0x3c(%rax)
movq -0x10(%rbp), %rax
movl $0x2, 0x4(%rax)
jmp 0x3eab
movq -0x10(%rbp), %rax
movl 0x38(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq -0x8(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jl 0x3e93
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0xa0(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0xa0(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x58(%rax)
movq -0x40(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x38(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x30(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movl 0x38(%rax), %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq -0x10(%rbp), %rax
movl (%rax), %ecx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %edx, %ecx
movl %ecx, (%rax)
movl -0x14(%rbp), %edx
movq -0x10(%rbp), %rax
movl 0x38(%rax), %ecx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %edx, %ecx
movl %ecx, 0x38(%rax)
movq -0x10(%rbp), %rax
movl $0x4, 0x3c(%rax)
movq -0x10(%rbp), %rax
movl $0x4, 0x4(%rax)
jmp 0x3ea9
movq -0x10(%rbp), %rax
movl $0x2, 0x3c(%rax)
movq -0x10(%rbp), %rax
movl $0x2, 0x4(%rax)
jmp 0x3eab
jmp 0x3ee4
movq -0x10(%rbp), %rax
cmpl $0x15, 0x4(%rax)
je 0x3ee2
movq -0x10(%rbp), %rax
movl 0x38(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq -0x8(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x3ee2
movq -0x10(%rbp), %rax
movl $0x3, 0x3c(%rax)
movq -0x10(%rbp), %rax
movl $0x3, 0x4(%rax)
jmp 0x3ee4
movl $0x0, -0x18(%rbp)
cmpl $0x2, -0x18(%rbp)
jge 0x3f64
movl -0x30(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq -0x18(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
movl -0x2c(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq -0x18(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0xc(%rax)
movq -0x40(%rbp), %rdi
callq 0x2240
movq %rax, %rcx
movq -0x10(%rbp), %rax
movslq -0x18(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x28(%rax)
movq -0x38(%rbp), %rdi
callq 0x2240
movq %rax, %rcx
movq -0x10(%rbp), %rax
movslq -0x18(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x30(%rax)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x3eeb
movq %rbp, %rsp
popq %rbp
retq
nopl (%rax)