// File: /workspace/github_c_makefile_star2_O0/ToniWestbrook[P]paladin/bwamem_pair.c
// Function: mem_matesw
int mem_matesw(const mem_opt_t *opt, const bntseq_t *bns, const uint8_t *pac, const mem_pestat_t pes[4], const mem_alnreg_t *a, int l_ms, const uint8_t *ms, mem_alnreg_v *ma)
{
	extern int mem_sort_dedup_patch(const mem_opt_t *opt, const bntseq_t *bns, const uint8_t *pac, uint8_t *query, int n, mem_alnreg_t *a);
	int64_t l_pac = bns->l_pac;
	int i, r, skip[4], n = 0, rid;
	for (r = 0; r < 4; ++r)
		skip[r] = pes[r].failed? 1 : 0;
	for (i = 0; i < ma->n; ++i) { // check which orinentation has been found
		int64_t dist;
		r = mem_infer_dir(l_pac, a->rb, ma->a[i].rb, &dist);
		if (dist >= pes[r].low && dist <= pes[r].high)
			skip[r] = 1;
	}
	if (skip[0] + skip[1] + skip[2] + skip[3] == 4) return 0; // consistent pair exist; no need to perform SW
	for (r = 0; r < 4; ++r) {
		int is_rev, is_larger;
		uint8_t *seq, *rev = 0, *ref = 0;
		int64_t rb, re;
		if (skip[r]) continue;
		is_rev = (r>>1 != (r&1)); // whether to reverse complement the mate
		is_larger = !(r>>1); // whether the mate has larger coordinate
		if (is_rev) {
			rev = malloc(l_ms); // this is the reverse complement of $ms
			for (i = 0; i < l_ms; ++i) rev[l_ms - 1 - i] = ms[i] < 4? 3 - ms[i] : 4;
			seq = rev;
		} else seq = (uint8_t*)ms;
		if (!is_rev) {
			rb = is_larger? a->rb + pes[r].low : a->rb - pes[r].high;
			re = (is_larger? a->rb + pes[r].high: a->rb - pes[r].low) + l_ms; // if on the same strand, end position should be larger to make room for the seq length
		} else {
			rb = (is_larger? a->rb + pes[r].low : a->rb - pes[r].high) - l_ms; // similarly on opposite strands
			re = is_larger? a->rb + pes[r].high: a->rb - pes[r].low;
		}
		if (rb < 0) rb = 0;
		if (re > l_pac<<1) re = l_pac<<1;
		if (rb < re) ref = bns_fetch_seq(bns, pac, &rb, (rb+re)>>1, &re, &rid);
		if (a->rid == rid && re - rb >= opt->min_seed_len) { // no funny things happening
			kswr_t aln;
			mem_alnreg_t b;
			int tmp, xtra = KSW_XSUBO | KSW_XSTART | (l_ms * opt->a < 250? KSW_XBYTE : 0) | (opt->min_seed_len * opt->a);
			aln = ksw_align2(l_ms, seq, re - rb, ref, 5, opt->mat, opt->o_del, opt->e_del, opt->o_ins, opt->e_ins, xtra, 0);
			memset(&b, 0, sizeof(mem_alnreg_t));
			if (aln.score >= opt->min_seed_len && aln.qb >= 0) { // something goes wrong if aln.qb < 0
				b.rid = a->rid;
				b.is_alt = a->is_alt;
				b.qb = is_rev? l_ms - (aln.qe + 1) : aln.qb;                                                                                                                                                                              
				b.qe = is_rev? l_ms - aln.qb : aln.qe + 1; 
				b.rb = is_rev? (l_pac<<1) - (rb + aln.te + 1) : rb + aln.tb;
				b.re = is_rev? (l_pac<<1) - (rb + aln.tb) : rb + aln.te + 1;
				b.score = aln.score;
				b.csub = aln.score2;
				b.secondary = -1;
				b.seedcov = (b.re - b.rb < b.qe - b.qb? b.re - b.rb : b.qe - b.qb) >> 1;
//				printf("*** %d, [%lld,%lld], %d:%d, (%lld,%lld), (%lld,%lld) == (%lld,%lld)\n", aln.score, rb, re, is_rev, is_larger, a->rb, a->re, ma->a[0].rb, ma->a[0].re, b.rb, b.re);
				kv_push(mem_alnreg_t, *ma, b); // make room for a new element
				// move b s.t. ma is sorted
				for (i = 0; i < ma->n - 1; ++i) // find the insertion point
					if (ma->a[i].score < b.score) break;
				tmp = i;
				for (i = ma->n - 1; i > tmp; --i) ma->a[i] = ma->a[i-1];
				ma->a[i] = b;
			}
			++n;
		}
		if (n) ma->n = mem_sort_dedup_patch(opt, 0, 0, 0, ma->n, ma->a);
		if (rev) free(rev);
		free(ref);
	}
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1d0, %rsp            # imm = 0x1D0
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %r8, -0x50(%rbp)
movl %r9d, -0x54(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movl $0x0, -0x84(%rbp)
movl $0x0, -0x68(%rbp)
cmpl $0x4, -0x68(%rbp)
jge 0x2e0b6
movq -0x48(%rbp), %rax
movslq -0x68(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x8(%rax), %edx
xorl %ecx, %ecx
movl $0x1, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movslq -0x68(%rbp), %rax
movl %ecx, -0x80(%rbp,%rax,4)
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x2e07e
movl $0x0, -0x64(%rbp)
movslq -0x64(%rbp), %rax
movq 0x18(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x2e157
movq -0x60(%rbp), %rdi
movq -0x50(%rbp), %rax
movq (%rax), %rsi
movq 0x18(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x64(%rbp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdx
leaq -0x90(%rbp), %rcx
callq 0x2df60
movl %eax, -0x68(%rbp)
movq -0x90(%rbp), %rax
movq -0x48(%rbp), %rcx
movslq -0x68(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
cmpq %rcx, %rax
jl 0x2e147
movq -0x90(%rbp), %rax
movq -0x48(%rbp), %rcx
movslq -0x68(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
cmpq %rcx, %rax
jg 0x2e147
movslq -0x68(%rbp), %rax
movl $0x1, -0x80(%rbp,%rax,4)
jmp 0x2e149
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x2e0bd
movl -0x80(%rbp), %eax
addl -0x7c(%rbp), %eax
addl -0x78(%rbp), %eax
addl -0x74(%rbp), %eax
cmpl $0x4, %eax
jne 0x2e174
movl $0x0, -0x24(%rbp)
jmp 0x2e9dd
movl $0x0, -0x68(%rbp)
cmpl $0x4, -0x68(%rbp)
jge 0x2e9d4
movq $0x0, -0xa8(%rbp)
movq $0x0, -0xb0(%rbp)
movslq -0x68(%rbp), %rax
cmpl $0x0, -0x80(%rbp,%rax,4)
je 0x2e1ab
jmp 0x2e9c6
movl -0x68(%rbp), %eax
sarl %eax
movl -0x68(%rbp), %ecx
andl $0x1, %ecx
cmpl %ecx, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x94(%rbp)
movl -0x68(%rbp), %eax
sarl %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x98(%rbp)
cmpl $0x0, -0x94(%rbp)
je 0x2e28f
movslq -0x54(%rbp), %rdi
leaq 0xcf33(%rip), %rsi      # 0x3b129
movl $0x86, %edx
leaq 0xd10d(%rip), %rcx      # 0x3b30f
callq 0x31ca0
movq %rax, -0xa8(%rbp)
movl $0x0, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x54(%rbp), %eax
jge 0x2e27f
movq 0x10(%rbp), %rax
movslq -0x64(%rbp), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x4, %eax
jge 0x2e249
movq 0x10(%rbp), %rax
movslq -0x64(%rbp), %rcx
movzbl (%rax,%rcx), %ecx
movl $0x3, %eax
subl %ecx, %eax
movl %eax, -0x168(%rbp)
jmp 0x2e256
movl $0x4, %eax
movl %eax, -0x168(%rbp)
jmp 0x2e256
movl -0x168(%rbp), %eax
movb %al, %dl
movq -0xa8(%rbp), %rax
movl -0x54(%rbp), %ecx
subl $0x1, %ecx
subl -0x64(%rbp), %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x2e215
movq -0xa8(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0x2e29a
movq 0x10(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpl $0x0, -0x94(%rbp)
jne 0x2e373
cmpl $0x0, -0x98(%rbp)
je 0x2e2d5
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movslq -0x68(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x170(%rbp)
jmp 0x2e2f9
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movslq -0x68(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0xb8(%rbp)
cmpl $0x0, -0x98(%rbp)
je 0x2e336
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movslq -0x68(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x178(%rbp)
jmp 0x2e359
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movslq -0x68(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
movslq -0x54(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0xc0(%rbp)
jmp 0x2e43a
cmpl $0x0, -0x98(%rbp)
je 0x2e3a1
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movslq -0x68(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x180(%rbp)
jmp 0x2e3c5
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movslq -0x68(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rax
movslq -0x54(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0xb8(%rbp)
cmpl $0x0, -0x98(%rbp)
je 0x2e409
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movslq -0x68(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movslq 0x4(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x188(%rbp)
jmp 0x2e42c
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movslq -0x68(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0xc0(%rbp)
cmpq $0x0, -0xb8(%rbp)
jge 0x2e44f
movq $0x0, -0xb8(%rbp)
movq -0xc0(%rbp), %rax
movq -0x60(%rbp), %rcx
shlq %rcx
cmpq %rcx, %rax
jle 0x2e470
movq -0x60(%rbp), %rax
shlq %rax
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rax
cmpq -0xc0(%rbp), %rax
jge 0x2e4ba
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0xb8(%rbp), %rcx
addq -0xc0(%rbp), %rcx
sarq %rcx
leaq -0xb8(%rbp), %rdx
leaq -0xc0(%rbp), %r8
leaq -0x88(%rbp), %r9
callq 0x17fd0
movq %rax, -0xb0(%rbp)
movq -0x50(%rbp), %rax
movl 0x18(%rax), %eax
cmpl -0x88(%rbp), %eax
jne 0x2e96c
movq -0xc0(%rbp), %rax
subq -0xb8(%rbp), %rax
movq -0x30(%rbp), %rcx
movslq 0x78(%rcx), %rcx
cmpq %rcx, %rax
jl 0x2e96c
movl -0x54(%rbp), %edx
movq -0x30(%rbp), %rax
imull (%rax), %edx
xorl %eax, %eax
movl $0x10000, %ecx          # imm = 0x10000
cmpl $0xfa, %edx
cmovll %ecx, %eax
orl $0xc0000, %eax          # imm = 0xC0000
movq -0x30(%rbp), %rcx
movl 0x78(%rcx), %ecx
movq -0x30(%rbp), %rdx
imull (%rdx), %ecx
orl %ecx, %eax
movl %eax, -0x148(%rbp)
movl -0x54(%rbp), %esi
movq -0xa0(%rbp), %rdx
movq -0xc0(%rbp), %rax
subq -0xb8(%rbp), %rax
movl %eax, %ecx
movq -0xb0(%rbp), %r8
movq -0x30(%rbp), %r15
addq $0xc4, %r15
movq -0x30(%rbp), %rax
movl 0x8(%rax), %r14d
movq -0x30(%rbp), %rax
movl 0xc(%rax), %ebx
movq -0x30(%rbp), %rax
movl 0x10(%rax), %r11d
movq -0x30(%rbp), %rax
movl 0x14(%rax), %r10d
movl -0x148(%rbp), %eax
leaq -0x164(%rbp), %rdi
movl $0x5, %r9d
xorl %r12d, %r12d
movq %r15, (%rsp)
movl %r14d, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
callq 0x34880
movq -0x164(%rbp), %rax
movq %rax, -0xdc(%rbp)
movq -0x15c(%rbp), %rax
movq %rax, -0xd4(%rbp)
movq -0x154(%rbp), %rax
movq %rax, -0xcc(%rbp)
movl -0x14c(%rbp), %eax
movl %eax, -0xc4(%rbp)
leaq -0x140(%rbp), %rdi
xorl %esi, %esi
movl $0x60, %edx
callq 0x3130
movl -0xdc(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl 0x78(%rcx), %eax
jl 0x2e95d
cmpl $0x0, -0xc4(%rbp)
jl 0x2e95d
movq -0x50(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x128(%rbp)
movq -0x50(%rbp), %rax
movl 0x48(%rax), %ecx
sarl $0x1e, %ecx
movl -0xf8(%rbp), %eax
andl $0x3, %ecx
shll $0x1e, %ecx
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
orl %ecx, %eax
movl %eax, -0xf8(%rbp)
cmpl $0x0, -0x94(%rbp)
je 0x2e663
movl -0x54(%rbp), %eax
movl -0xd4(%rbp), %ecx
addl $0x1, %ecx
subl %ecx, %eax
movl %eax, -0x18c(%rbp)
jmp 0x2e66f
movl -0xc4(%rbp), %eax
movl %eax, -0x18c(%rbp)
movl -0x18c(%rbp), %eax
movl %eax, -0x130(%rbp)
cmpl $0x0, -0x94(%rbp)
je 0x2e695
movl -0x54(%rbp), %eax
subl -0xc4(%rbp), %eax
movl %eax, -0x190(%rbp)
jmp 0x2e6a4
movl -0xd4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x190(%rbp)
movl -0x190(%rbp), %eax
movl %eax, -0x12c(%rbp)
cmpl $0x0, -0x94(%rbp)
je 0x2e6e1
movq -0x60(%rbp), %rax
shlq %rax
movq -0xb8(%rbp), %rcx
movslq -0xd8(%rbp), %rdx
addq %rdx, %rcx
addq $0x1, %rcx
subq %rcx, %rax
movq %rax, -0x198(%rbp)
jmp 0x2e6f9
movq -0xb8(%rbp), %rax
movslq -0xc8(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x198(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0x140(%rbp)
cmpl $0x0, -0x94(%rbp)
je 0x2e734
movq -0x60(%rbp), %rax
shlq %rax
movq -0xb8(%rbp), %rcx
movslq -0xc8(%rbp), %rdx
addq %rdx, %rcx
subq %rcx, %rax
movq %rax, -0x1a0(%rbp)
jmp 0x2e750
movq -0xb8(%rbp), %rax
movslq -0xd8(%rbp), %rcx
addq %rcx, %rax
addq $0x1, %rax
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x138(%rbp)
movl -0xdc(%rbp), %eax
movl %eax, -0x124(%rbp)
movl -0xd0(%rbp), %eax
movl %eax, -0x114(%rbp)
movl $0xffffffff, -0x104(%rbp) # imm = 0xFFFFFFFF
movq -0x138(%rbp), %rax
subq -0x140(%rbp), %rax
movl -0x12c(%rbp), %ecx
subl -0x130(%rbp), %ecx
movslq %ecx, %rcx
cmpq %rcx, %rax
jge 0x2e7b9
movq -0x138(%rbp), %rax
subq -0x140(%rbp), %rax
movq %rax, -0x1a8(%rbp)
jmp 0x2e7ce
movl -0x12c(%rbp), %eax
subl -0x130(%rbp), %eax
cltq
movq %rax, -0x1a8(%rbp)
movq -0x1a8(%rbp), %rax
sarq %rax
movl %eax, -0x108(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x2e85f
movq 0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x2e80e
movq 0x18(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x1b0(%rbp)
jmp 0x2e81c
movl $0x2, %eax
movq %rax, -0x1b0(%rbp)
jmp 0x2e81c
movq -0x1b0(%rbp), %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x18(%rbp), %rax
movq 0x18(%rax), %rdi
movq 0x18(%rbp), %rax
imulq $0x60, 0x8(%rax), %rsi
leaq 0xc8e6(%rip), %rdx      # 0x3b129
movl $0xa6, %ecx
leaq 0xcac0(%rip), %r8       # 0x3b30f
callq 0x31d40
movq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movq 0x18(%rbp), %rax
movq 0x18(%rax), %rdi
movq 0x18(%rbp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
imulq $0x60, %rax, %rax
addq %rax, %rdi
leaq -0x140(%rbp), %rsi
movl $0x60, %edx
callq 0x3250
movl $0x0, -0x64(%rbp)
movslq -0x64(%rbp), %rax
movq 0x18(%rbp), %rcx
movq (%rcx), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x2e8d8
movq 0x18(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x64(%rbp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movl 0x1c(%rax), %eax
cmpl -0x124(%rbp), %eax
jge 0x2e8cb
jmp 0x2e8d8
jmp 0x2e8cd
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x2e897
movl -0x64(%rbp), %eax
movl %eax, -0x144(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
subq $0x1, %rax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x144(%rbp), %eax
jle 0x2e939
movq 0x18(%rbp), %rax
movq 0x18(%rax), %rdi
movslq -0x64(%rbp), %rax
imulq $0x60, %rax, %rax
addq %rax, %rdi
movq 0x18(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x64(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x60, %rax, %rax
addq %rax, %rsi
movl $0x60, %edx
callq 0x3250
movl -0x64(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x2e8ef
movq 0x18(%rbp), %rax
movq 0x18(%rax), %rdi
movslq -0x64(%rbp), %rax
imulq $0x60, %rax, %rax
addq %rax, %rdi
leaq -0x140(%rbp), %rsi
movl $0x60, %edx
callq 0x3250
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
cmpl $0x0, -0x84(%rbp)
je 0x2e9a4
movq -0x30(%rbp), %rdi
movq 0x18(%rbp), %rax
movq (%rax), %rax
movl %eax, %r8d
movq 0x18(%rbp), %rax
movq 0x18(%rax), %r9
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rsi
movq %rcx, %rdx
callq 0x26870
movslq %eax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, (%rax)
cmpq $0x0, -0xa8(%rbp)
je 0x2e9ba
movq -0xa8(%rbp), %rdi
callq 0x3380
movq -0xb0(%rbp), %rdi
callq 0x3380
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x2e17b
movl -0x84(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq