// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/inter.cpp
// Function: simple_g_chain_dp(kv_ul_ov_t*, ul_ov_t*, ul_idx_t const*, ug_opt_t const*, long, double, long, long, unsigned long*, unsigned long*, unsigned long*)
int64_t simple_g_chain_dp(kv_ul_ov_t *in, ul_ov_t *buf, const ul_idx_t *uref, const ug_opt_t *uopt, int64_t bw, 
double diff_ec_ul, int64_t qlen, int64_t max_skip, uint64_t *srt, uint64_t *idx, uint64_t *track)
{
	if(in->n == 0) return 0;
	uint32_t ai_v, aj_v, rev_n; ma_ug_t *ug = uref->ug;
    int64_t mm_ovlp, x, i, j, k, sc, csc, mm_sc, mm_idx, qo, share, in_n = in->n;
	int64_t iqs, iqe, its, ite, i_end, j_end;
    ul_ov_t *ai, *aj, *e_ai, *e_aj, rev_t;
	for (i = 0; i < in_n; i++) {
		gen_end_coord(&(in->a[i]), qlen, ug->u.a[in->a[i].tn].len, NULL, &iqe, NULL, NULL);
		srt[i] = iqe; srt[i] <<= 32; srt[i] |= (uint64_t)i;
	}
	radix_sort_gfa64(srt, srt+in_n); 
	for (i = 0; i < in_n; i++) buf[i] = in->a[(uint32_t)srt[i]];
	memcpy(in->a, buf, in_n *sizeof((*buf)));///all alignments have been sorted by the real end-qe

	for (i = 0; i < in_n; ++i) {
		ai = &(in->a[i]); ai_v = (ai->tn<<1)|ai->rev; e_ai = &(buf[i]); i_end = 0;
		gen_end_coord(ai, qlen, ug->u.a[ai->tn].len, &iqs, &iqe, &its, &ite);
		e_ai->qs = iqs; e_ai->qe = iqe; e_ai->ts = its; e_ai->te = ite;
		mm_ovlp = max_ovlp(uref->ug->g, ai_v^1);
		x = (e_ai->qs + mm_ovlp)*diff_ec_ul; 
        if(x < bw) x = bw; 
        x += e_ai->qs + mm_ovlp;
        if (x > qlen+1) x = qlen+1;
		x = find_ul_ov_max(i, buf, x+G_CHAIN_INDEL); 
		i_end = is_end_check(ai_v^1, ai, uref->ug->g);
		csc = mm_sc = e_ai->sec; mm_idx = -1; 
		for (j = x; j >= 0; --j) { // collect potential destination vertices
            aj = &(in->a[j]); aj_v = (aj->tn<<1)|aj->rev; e_aj = &(buf[i]); j_end = 0;
			if(e_aj->qe+G_CHAIN_INDEL <= e_ai->qs) break;//even this pair has a overlap, its length will be very small; just ignore
            if(e_aj->qs >= e_ai->qs+G_CHAIN_INDEL) continue; // lj is contained in li on the query coordinate; 128 for indel offset
			qo = infer_rovlp(e_ai, e_aj, NULL, NULL, NULL, ug); ///overlap length in query (UL read)
			if(ai_v != aj_v && get_ecov_adv(uref, uopt, ai_v^1, aj_v^1, bw, diff_ec_ul, qo, 0, &share)) {
				sc = csc + pop_sc(track[j]); j_end = is_end_check(aj_v, aj, uref->ug->g);
				if(i_end && j_end) sc -= (share>=csc?csc:share);
				if(sc > mm_sc) mm_sc = sc, mm_idx = j;
			}
		}
		track[i] = push_sc_pre(mm_sc, mm_idx);
        srt[i] = track[i]>>32; srt[i] <<= 32; srt[i] |= i;
	}

	int64_t n_v, n_u, n_v0; 
    radix_sort_gfa64(srt, srt+in_n); 
	for (k = in_n-1, n_v = n_u = 0; k >= 0; --k) {
		n_v0 = n_v;
		for (i = (uint32_t)srt[k]; i >= 0 && (track[i]&((uint64_t)0x80000000)) == 0;){
			buf[n_v] = in->a[i]; 
			gen_end_coord(&(buf[n_v]), qlen, ug->u.a[buf[n_v].tn].len, &iqs, &iqe, &its, &ite);
			buf[n_v].qs = iqs; buf[n_v].qe = iqe; buf[n_v].ts = its; buf[n_v].te = ite;

			track[i] |= ((uint64_t)0x80000000);
            i = pop_pre(track[i]);
			n_v++;
		}
		if(n_v0 == n_v) continue;
		sc = (i<0?(pop_sc(srt[k])):(pop_sc(srt[k])-pop_sc(track[i])));
		idx[n_u++] = ((uint64_t)sc<<32)|(n_v-n_v0); 
	}

	for (k = 0, n_v = n_v0 = 0; k < n_u; k++) {
        n_v0 = n_v; n_v += (uint32_t)idx[k];
        in->a[k].qn = idx[k]>>32;//score
        in->a[k].ts = n_v0; in->a[k].te = n_v;///idx
        
        rev_n = ((uint32_t)idx[k])>>1; 
        ///we need to consider contained reads; so determining qs is not such easy
        in->a[k].qs = (uint32_t)-1; in->a[k].qe = buf[n_v0].qe;
        for (i = 0; i < rev_n; i++) {
            rev_t = buf[n_v0+i]; buf[n_v0+i] = buf[n_v-i-1]; buf[n_v-i-1] = rev_t;
            
            if(in->a[k].qs > buf[n_v0+i].qs) in->a[k].qs = buf[n_v0+i].qs;
            if(in->a[k].qs > buf[n_v-i-1].qs) in->a[k].qs = buf[n_v-i-1].qs;
        }
        if(((uint32_t)idx[k])&1) {
            if(in->a[k].qs > buf[n_v0+i].qs) in->a[k].qs = buf[n_v0+i].qs;
        }
        // fprintf(stderr, "[M::%s] k:%ld, qs:%u, qe:%u, chain_occ:%u, chain_score:%u\n", __func__, k, 
        //                  res->a[k].qs, res->a[k].qe, res->a[k].te - res->a[k].ts, res->a[k].qn);
    }

	in->n = n_u;
    radix_sort_ul_ov_srt_qn(in->a, in->a + in->n);//sort by score
	return n_v;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %r9, 0x30(%rsp)
movsd %xmm0, 0x80(%rsp)
movq %r8, 0x78(%rsp)
movq %rcx, 0xa8(%rsp)
movq 0x8(%rdi), %r14
testq %r14, %r14
je 0x1c6107
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r15
movq 0x128(%rsp), %r12
movq (%rdx), %rax
movq %rax, 0x48(%rsp)
jle 0x1c5ae7
movq (%r15), %rax
movq 0x48(%rsp), %rcx
movq 0x10(%rcx), %rcx
addq $0x18, %rax
xorl %edx, %edx
movl -0x10(%rax), %edi
movl -0xc(%rax), %esi
leaq (%rsi,%rsi,4), %rsi
movl (%rcx,%rsi,8), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movl -0x8(%rax), %r8d
movl -0x4(%rax), %r9d
movq %rsi, %r10
subq %r8, %r10
cmpl $0x0, (%rax)
cmovnsq %r9, %r10
movq 0x30(%rsp), %r9
movq %r9, %r8
subq %rdi, %r8
subq %r10, %rsi
cmpq %rsi, %r8
jg 0x1c5ac8
movq %r9, %rsi
jmp 0x1c5acb
addq %rdi, %rsi
movq %rsi, 0x50(%rsp)
shlq $0x20, %rsi
orq %rdx, %rsi
movq %rsi, (%r12,%rdx,8)
incq %rdx
addq $0x1c, %rax
cmpq %rdx, %r14
jne 0x1c5a88
leaq (%r12,%r14,8), %rsi
movq %r12, %rdi
movq %rsi, 0x88(%rsp)
callq 0x194fef
testq %r14, %r14
jle 0x1c5b35
xorl %eax, %eax
movq %rbx, %rcx
movq (%r15), %rdx
movl (%r12,%rax,8), %esi
leaq (%rsi,%rsi,8), %rdi
leaq (%rdi,%rdi,2), %rdi
addq %rsi, %rdi
movupd (%rdx,%rdi), %xmm0
movups 0xc(%rdx,%rdi), %xmm1
movups %xmm1, 0xc(%rcx)
movupd %xmm0, (%rcx)
incq %rax
addq $0x1c, %rcx
cmpq %rax, %r14
jne 0x1c5b05
movq (%r15), %rdi
leaq (%r14,%r14,8), %rax
leaq (%rax,%rax,2), %rdx
addq %r14, %rdx
movq %rbx, %rsi
callq 0x2160
testq %r14, %r14
movq %r15, 0x28(%rsp)
movq %rbx, 0x58(%rsp)
jle 0x1c5f38
movq 0x30(%rsp), %rax
incq %rax
movq %rax, 0x90(%rsp)
xorl %ebp, %ebp
movq %r14, 0x38(%rsp)
movq %r13, 0x18(%rsp)
movq (%r15), %rax
leaq (,%rbp,8), %rcx
addq %rbp, %rcx
leaq (%rcx,%rcx,2), %r12
addq %rbp, %r12
leaq (%rax,%r12), %rdi
movl 0xc(%rax,%r12), %ecx
movq %r13, %r14
movl 0x18(%rax,%r12), %r13d
shrdl $0x1f, %ecx, %r13d
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
leaq (%rcx,%rcx,4), %rcx
movl (%rax,%rcx,8), %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leaq 0x60(%rsp), %rax
movq %rax, (%rsp)
movq %rdi, 0x10(%rsp)
movq 0x30(%rsp), %rsi
leaq 0x70(%rsp), %rcx
leaq 0x50(%rsp), %r8
leaq 0x68(%rsp), %r9
callq 0x1c5949
movq 0x70(%rsp), %rax
movl %eax, 0x4(%rbx,%r12)
movl 0x50(%rsp), %ecx
movl %ecx, 0x8(%rbx,%r12)
movl 0x68(%rsp), %ecx
movl %ecx, 0x10(%rbx,%r12)
movl 0x60(%rsp), %ecx
movl %ecx, 0x14(%rbx,%r12)
movq %r14, %r10
movq (%r14), %rcx
movq 0x18(%rcx), %rcx
movl %r13d, 0x40(%rsp)
movl %r13d, %esi
xorl $0x1, %esi
movq 0x28(%rcx), %rdx
movq %rsi, 0xb0(%rsp)
movq (%rdx,%rsi,8), %rdx
movq %rdx, %rsi
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
andq %rdi, %rsi
je 0x1c5c7e
movq 0x8(%rcx), %rdi
shrq $0x20, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rcx
leaq (%rdx,%rdx,2), %rdx
leaq (%rdi,%rdx,8), %rdx
addq $0xc, %rdx
xorl %esi, %esi
xorl %edi, %edi
movl %edi, %r8d
movl (%rdx,%rsi), %r9d
cmpl %r9d, %edi
movl %r9d, %edi
cmoval %r8d, %edi
testl %r9d, %r9d
cmovsl %r8d, %edi
addq $0x18, %rsi
cmpq %rsi, %rcx
jne 0x1c5c59
movl %edi, %ecx
jmp 0x1c5c80
xorl %ecx, %ecx
movq %r10, %r13
movl %eax, %eax
addq %rcx, %rax
cvtsi2sd %rax, %xmm0
mulsd 0x80(%rsp), %xmm0
cvttsd2si %xmm0, %rdx
movq 0x78(%rsp), %rcx
cmpq %rcx, %rdx
cmovleq %rcx, %rdx
addq %rax, %rdx
movq 0x90(%rsp), %rax
cmpq %rax, %rdx
cmovgeq %rax, %rdx
subl $-0x80, %edx
movl %ebp, %edi
movq %rbx, %rsi
callq 0x19f679
movl 0x40(%rsp), %edx
testb $0x1, %dl
jne 0x1c5cea
movq 0x10(%rsp), %rcx
cmpl $0x0, 0x10(%rcx)
movq 0x138(%rsp), %rsi
jne 0x1c5d1a
movb $0x1, %cl
movl %ecx, 0x24(%rsp)
jmp 0x1c5d22
movq (%r13), %rcx
movq 0x18(%rcx), %rcx
movq 0x20(%rcx), %rcx
shrl %edx
movl (%rcx,%rdx,8), %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %ecx
movb $0x1, %dl
movl %edx, 0x24(%rsp)
movq 0x10(%rsp), %rdx
cmpl %ecx, 0x14(%rdx)
movq 0x138(%rsp), %rsi
je 0x1c5d22
movl $0x0, 0x24(%rsp)
movq %rbp, 0x98(%rsp)
addq %rbx, %r12
movl 0x18(%r12), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
testl %eax, %eax
js 0x1c5ecc
movslq %eax, %rbp
leaq (,%rbp,8), %rax
addq %rbp, %rax
leaq (%rax,%rax,2), %rax
leaq (%rax,%rbp), %r13
addq $0x18, %r13
movq $-0x1, %r14
movq %rcx, 0xa0(%rsp)
movq %rcx, 0x10(%rsp)
movl 0x4(%r12), %eax
movl 0x8(%r12), %ecx
subl $-0x80, %ecx
cmpl %eax, %ecx
jbe 0x1c5ed8
cmpl $0xffffff7f, %eax       # imm = 0xFFFFFF7F
ja 0x1c5eb6
movq (%r15), %r15
movl -0xc(%r15,%r13), %eax
movl (%r15,%r13), %ebx
shrdl $0x1f, %eax, %ebx
movq %r12, %rdi
movq %r12, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq 0x48(%rsp), %r9
callq 0x6f050
cmpl %ebx, 0x40(%rsp)
je 0x1c5e59
movl %ebx, %ecx
xorl $0x1, %ecx
leaq 0xb8(%rsp), %rdx
movq %rdx, 0x8(%rsp)
movq $0x0, (%rsp)
movq 0x18(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
movq 0x78(%rsp), %r8
movsd 0x80(%rsp), %xmm0
movq %rax, %r9
callq 0x1a24f3
testq %rax, %rax
je 0x1c5e59
movq 0x138(%rsp), %rsi
movq (%rsi,%rbp,8), %rcx
movq %rcx, %rax
shrq $0x20, %rax
leaq -0x80000000(%rax), %rdx
negq %rax
testq %rcx, %rcx
cmovsq %rdx, %rax
testb $0x1, %bl
jne 0x1c5e68
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
movq 0x18(%rcx), %rcx
movq 0x20(%rcx), %rcx
shrl %ebx
movl (%rcx,%rbx,8), %edx
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %edx
movb $0x1, %cl
cmpl %edx, -0x4(%r15,%r13)
jne 0x1c5e70
jmp 0x1c5e76
movq 0x28(%rsp), %r15
movq 0x138(%rsp), %rsi
jmp 0x1c5eb6
cmpl $0x0, -0x8(%r15,%r13)
je 0x1c5e74
xorl %ecx, %ecx
jmp 0x1c5e76
movb $0x1, %cl
andb 0x24(%rsp), %cl
movq 0xa0(%rsp), %rdx
addq %rdx, %rax
cmpb $0x1, %cl
movq 0x28(%rsp), %r15
jne 0x1c5ea1
movq 0xb8(%rsp), %rcx
cmpq %rdx, %rcx
cmovgeq %rdx, %rcx
subq %rcx, %rax
movq 0x10(%rsp), %rcx
cmpq %rcx, %rax
cmovgq %rax, %rcx
movq %rcx, 0x10(%rsp)
cmovgq %rbp, %r14
leaq -0x1(%rbp), %rax
addq $-0x1c, %r13
testq %rbp, %rbp
movq %rax, %rbp
jg 0x1c5d6e
jmp 0x1c5ed8
movq $-0x1, %r14
movq %rcx, 0x10(%rsp)
movq 0x10(%rsp), %rcx
shlq $0x20, %rcx
testq %r14, %r14
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmovsq %rax, %r14
orq %rcx, %r14
btsq $0x3f, %r14
movq 0x98(%rsp), %rbp
movq %r14, (%rsi,%rbp,8)
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
andq %rax, %r14
orq %rbp, %r14
movq 0x128(%rsp), %r12
movq %r14, (%r12,%rbp,8)
incq %rbp
movq 0x38(%rsp), %r14
cmpq %r14, %rbp
movq 0x58(%rsp), %rbx
movq 0x18(%rsp), %r13
jne 0x1c5b7a
movq %r12, %rdi
movq 0x88(%rsp), %rsi
callq 0x194fef
testq %r14, %r14
jle 0x1c610f
movq $0x0, 0x18(%rsp)
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
leaq 0x68(%rsp), %rbp
xorl %r12d, %r12d
movq 0x30(%rsp), %rbx
movq 0x138(%rsp), %r8
leaq -0x1(%r14), %rax
movq %rax, 0x38(%rsp)
movq 0x128(%rsp), %rax
movq %r14, 0x40(%rsp)
movl -0x8(%rax,%r14,8), %r14d
leaq (%r12,%r12,8), %rax
leaq (%rax,%rax,2), %r15
movq 0x58(%rsp), %rax
movq %r12, 0x10(%rsp)
addq %r12, %rax
addq %rax, %r15
testb $-0x80, 0x3(%r8,%r14,8)
jne 0x1c606e
movq 0x28(%rsp), %rax
movq (%rax), %rax
leaq (%r14,%r14,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %r14, %rcx
movupd (%rax,%rcx), %xmm0
movups 0xc(%rax,%rcx), %xmm1
movups %xmm1, 0xc(%r15)
movupd %xmm0, (%r15)
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movl 0xc(%r15), %ecx
leaq (%rcx,%rcx,4), %rcx
movl (%rax,%rcx,8), %edx
andq %r13, %rdx
leaq 0x60(%rsp), %rax
movq %rax, (%rsp)
movq %r15, %rdi
movq %rbx, %rsi
leaq 0x70(%rsp), %rcx
leaq 0x50(%rsp), %r8
movq %rbp, %r9
callq 0x1c5949
movq 0x138(%rsp), %r8
movl 0x70(%rsp), %eax
movl %eax, 0x4(%r15)
movl 0x50(%rsp), %eax
movl %eax, 0x8(%r15)
movl 0x68(%rsp), %eax
movl %eax, 0x10(%r15)
movl 0x60(%rsp), %eax
movl %eax, 0x14(%r15)
movq (%r8,%r14,8), %rax
movq %rax, %rcx
btsq $0x1f, %rcx
movq %rcx, (%r8,%r14,8)
andq %r13, %rax
incq %r12
addq $0x1c, %r15
cmpq %r13, %rax
movq $-0x1, %rcx
cmoveq %rcx, %rax
movq %rax, %r14
jne 0x1c5fa8
jmp 0x1c6071
movq %r14, %rax
movq %r12, %rcx
subq 0x10(%rsp), %rcx
jne 0x1c6087
movq 0x28(%rsp), %r15
movq 0x38(%rsp), %r14
jmp 0x1c60f9
movq 0x38(%rsp), %r14
movq 0x128(%rsp), %rdx
movq (%rdx,%r14,8), %rsi
movq %rsi, %rdx
shrq $0x20, %rdx
leaq -0x80000000(%rdx), %rdi
negq %rdx
testq %rsi, %rsi
cmovsq %rdi, %rdx
testq %rax, %rax
movq 0x28(%rsp), %r15
js 0x1c60d9
movq (%r8,%rax,8), %rax
movq %rax, %rsi
shrq $0x20, %rsi
leaq -0x80000000(%rsi), %rdi
negq %rsi
testq %rax, %rax
cmovsq %rdi, %rsi
subq %rsi, %rdx
shlq $0x20, %rdx
orq %rcx, %rdx
movq 0x18(%rsp), %rax
movq 0x130(%rsp), %rcx
movq %rdx, (%rcx,%rax,8)
incq %rax
movq %rax, 0x18(%rsp)
cmpq $0x1, 0x40(%rsp)
jg 0x1c5f75
jmp 0x1c6118
xorl %r14d, %r14d
jmp 0x1c628f
movq $0x0, 0x18(%rsp)
movq 0x18(%rsp), %r13
testq %r13, %r13
jle 0x1c626b
movq 0x58(%rsp), %r12
leaq -0x1c(%r12), %rax
xorl %r14d, %r14d
xorl %ecx, %ecx
movq %r14, %rdx
movq 0x130(%rsp), %rsi
movq (%rsi,%rcx,8), %rdi
movl %edi, %r14d
addq %rdx, %r14
movq %rdi, %r8
shrq $0x20, %r8
movq (%r15), %r9
leaq (%rcx,%rcx,8), %rsi
leaq (%rsi,%rsi,2), %rsi
addq %rcx, %rsi
movl %r8d, (%r9,%rsi)
movl %edx, 0x10(%r9,%rsi)
movl %r14d, 0x14(%r9,%rsi)
shrl %edi
movl $0xffffffff, 0x4(%r9,%rsi) # imm = 0xFFFFFFFF
leaq (%rdx,%rdx,8), %r8
leaq (%r8,%r8,2), %r8
leaq (%r8,%rdx), %r10
movl 0x8(%r12,%r10), %r10d
movl %r10d, 0x8(%r9,%rsi)
testl %edi, %edi
je 0x1c6224
leaq (%r12,%rdx), %r10
addq %r8, %r10
leaq (%r14,%r14,8), %r9
leaq (%r9,%r9,2), %r11
addq %rax, %r11
addq %r14, %r11
xorl %r9d, %r9d
movups (%r10), %xmm0
movups 0xc(%r10), %xmm1
movups %xmm1, 0xcc(%rsp)
movaps %xmm0, 0xc0(%rsp)
movups (%r11), %xmm0
movups 0xc(%r11), %xmm1
movups %xmm1, 0xc(%r10)
movups %xmm0, (%r10)
movups 0xcc(%rsp), %xmm0
movups %xmm0, 0xc(%r11)
movapd 0xc0(%rsp), %xmm0
movupd %xmm0, (%r11)
movq (%r15), %rbx
addq %rsi, %rbx
addq $0x4, %rbx
movl 0x4(%r10), %ebp
cmpl %ebp, (%rbx)
jbe 0x1c6208
movl %ebp, (%rbx)
movl 0x4(%r11), %ebp
cmpl %ebp, (%rbx)
jbe 0x1c6212
movl %ebp, (%rbx)
incq %r9
addq $0x1c, %r10
addq $-0x1c, %r11
cmpq %r9, %rdi
jne 0x1c61ae
jmp 0x1c6227
xorl %r9d, %r9d
movq 0x130(%rsp), %rdi
testb $0x1, (%rdi,%rcx,8)
je 0x1c625d
movq (%r15), %rdi
addq %r12, %rdx
addq %r8, %rdx
leaq (%r9,%r9,8), %r8
leaq (%r8,%r8,2), %r8
addq %r9, %r8
movl 0x4(%rdx,%r8), %edx
cmpl %edx, 0x4(%rdi,%rsi)
jbe 0x1c625d
addq %rdi, %rsi
addq $0x4, %rsi
movl %edx, (%rsi)
incq %rcx
cmpq %r13, %rcx
jne 0x1c6135
jmp 0x1c626e
xorl %r14d, %r14d
movq %r13, 0x8(%r15)
movq (%r15), %rdi
leaq (,%r13,8), %rax
addq %r13, %rax
leaq (%rax,%rax,2), %rsi
addq %r13, %rsi
addq %rdi, %rsi
callq 0x195d3d
movq %r14, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq