// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/inter.cpp
// Function: append_inexact_edges(ma_ug_t*, ug_opt_t const*, asg_t*)
void append_inexact_edges(ma_ug_t *ug, const ug_opt_t *uopt, asg_t *rg)
{
	uint32_t *idx = NULL, n_read = R_INF.total_reads, z, v, k, qn, tn, tu, ut_v, ut_w; 
	ma_utg_t *u = NULL; ma_hit_t_alloc *src = uopt->sources, *s = NULL;
	int32_t r; asg_arc_t t, *p = NULL;
	int64_t min_ovlp = uopt->min_ovlp, max_hang = uopt->max_hang, occ = 0;

	MALLOC(idx, n_read); memset(idx, -1, n_read*sizeof(*(idx)));
	for (z = 0; z < ug->u.n; z++) {
		u = &(ug->u.a[z]);
		if(u->circ) continue;
		idx[u->start>>1] = idx[u->end>>1] = z;
	}

	for (z = 0; z < ug->u.n; z++) {
		u = &(ug->u.a[z]);
		if(u->circ) continue;

		v = u->end^1; s = &(src[v>>1]); ut_v = (z<<1);
		for (k = 0; k < s->length; k++) {
			if(s->buffer[k].el) continue;///we just need inexact edges
			qn = Get_qn(s->buffer[k]); tn = Get_tn(s->buffer[k]); tu = idx[tn]; ut_w = (uint32_t)-1;
			if(tu == (uint32_t)-1 || ug->g->seq[tu].del) continue;
			if((Get_qe(s->buffer[k]) - Get_qs(s->buffer[k])) < min_ovlp) continue;
            if((Get_te(s->buffer[k]) - Get_ts(s->buffer[k])) < min_ovlp) continue;
			r = ma_hit2arc(&(s->buffer[k]), rg->seq[qn].len, rg->seq[tn].len, max_hang, asm_opt.max_hang_rate, min_ovlp, &t);
			if(r < 0 || (t.ul>>32) != v) continue;
			if(t.v == ug->u.a[tu].start) ut_w = tu<<1;
			if(t.v == ug->u.a[tu].end) ut_w = (tu<<1)+1;
			if(ut_w==(uint32_t)-1) continue;
			p = asg_arc_pushp(ug->g); memset(p, 0, sizeof(*p));
			*p = t; p->ul = ut_v; p->ul <<= 32; p->ul += ((uint32_t)(t.ul)); p->v = ut_w;
			occ++;
			// if((p->v>>1)>=ug->g->n_seq || (p->ul>>33)>=ug->g->n_seq) {
			// 	fprintf(stderr, "+ug->g->n_seq:%u, (p->ul>>33):%u, (p->v>>1):%u\n", 
			// 	(uint32_t)ug->g->n_seq, (uint32_t)(p->ul>>33), (uint32_t)(p->v>>1));
			// }
			// assert((p->v>>1)<ug->g->n_seq && (p->ul>>33)<ug->g->n_seq);
		}

		v = u->start^1; s = &(src[v>>1]); ut_v = (z<<1) + 1;
		for (k = 0; k < s->length; k++) {
			if(s->buffer[k].el) continue;///we just need inexact edges
			qn = Get_qn(s->buffer[k]); tn = Get_tn(s->buffer[k]); tu = idx[tn]; ut_w = (uint32_t)-1;
			if(tu == (uint32_t)-1 || ug->g->seq[tu].del) continue;
			if((Get_qe(s->buffer[k]) - Get_qs(s->buffer[k])) < min_ovlp) continue;
            if((Get_te(s->buffer[k]) - Get_ts(s->buffer[k])) < min_ovlp) continue;
			r = ma_hit2arc(&(s->buffer[k]), rg->seq[qn].len, rg->seq[tn].len, max_hang, asm_opt.max_hang_rate, min_ovlp, &t);
			if(r < 0 || (t.ul>>32) != v) continue;
			if(t.v == ug->u.a[tu].start) ut_w = tu<<1;
			if(t.v == ug->u.a[tu].end) ut_w = (tu<<1)+1;
			if(ut_w==(uint32_t)-1) continue;
			p = asg_arc_pushp(ug->g); memset(p, 0, sizeof(*p));
			*p = t; p->ul = ut_v; p->ul <<= 32; p->ul += ((uint32_t)(t.ul)); p->v = ut_w;
			occ++;
			// if((p->v>>1)>=ug->g->n_seq || (p->ul>>33)>=ug->g->n_seq) {
			// 	fprintf(stderr, "+ug->g->n_seq:%u, (p->ul>>33):%u, (p->v>>1):%u\n", 
			// 	(uint32_t)ug->g->n_seq, (uint32_t)(p->ul>>33), (uint32_t)(p->v>>1));
			// }
			// assert((p->v>>1)<ug->g->n_seq && (p->ul>>33)<ug->g->n_seq);
		}
	}
	if(occ) {
		free(ug->g->idx);
        ug->g->idx = 0;
        ug->g->is_srt = 0;
		asg_cleanup(ug->g); 
	}
	
	free(idx);
	///for debug
	debug_append_inexact_edges(ug, uopt);
	fprintf(stderr, "[M::%s] # inserted inexact edges: %ld\n", __func__, occ);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, 0x98(%rsp)
movq %rsi, %rbx
movq %rdi, %r12
leaq 0x2700cb(%rip), %rax    # 0x296230
movq 0x50(%rax), %rax
movq 0x8(%rsi), %rcx
movq %rcx, 0x10(%rsp)
movslq 0x44(%rsi), %r15
movl 0x40(%rsi), %ecx
movl %ecx, 0x74(%rsp)
movl %eax, %r14d
shlq $0x2, %r14
movq %r14, %rdi
callq 0x2280
movq %rax, 0x8(%rsp)
movq %rax, %rdi
movl $0xff, %esi
movq %r14, %rdx
callq 0x20e0
movq (%r12), %rax
testq %rax, %rax
jne 0x261b7
xorl %r14d, %r14d
movq 0x8(%rsp), %rdi
jmp 0x26a01
movq 0x10(%r12), %rcx
addq $0x8, %rcx
pushq $0x1
popq %rdx
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r9
cmpl $0x0, -0x8(%rcx)
js 0x261eb
leal -0x1(%rdx), %esi
movl (%rcx), %r8d
shrl %r8d
movl %esi, (%rdi,%r8,4)
movl -0x4(%rcx), %r8d
shrl %r8d
movl %esi, (%rdi,%r8,4)
movl %edx, %esi
addq $0x28, %rcx
incl %edx
cmpq %rsi, %rax
ja 0x261cd
movq %rbx, 0x90(%rsp)
xorl %ecx, %ecx
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq $0x0, 0x80(%rsp)
movl %eax, 0x2c(%rsp)
movq %r12, 0x30(%rsp)
movq %r15, 0x20(%rsp)
movq 0x10(%r12), %rdx
imulq $0x28, %rcx, %rax
cmpl $0x0, (%rdx,%rax)
movq %rcx, 0xb0(%rsp)
js 0x269a8
addq %rax, %rdx
movq %rdx, 0x58(%rsp)
movl 0x8(%rdx), %edx
movl %edx, %eax
shrl %eax
imulq $0x18, %rax, %r13
addl %ecx, %ecx
movl 0xc(%r9,%r13), %eax
testl %eax, %eax
movq %rcx, 0x88(%rsp)
je 0x265f7
addq %r9, %r13
xorq $0x1, %rdx
movq %rdx, 0xa8(%rsp)
shlq $0x20, %rcx
movq %rcx, 0xa0(%rsp)
pushq $0x21
popq %rbx
xorl %r14d, %r14d
movq (%r13), %r10
cmpb $0x0, -0x1(%r10,%rbx)
je 0x262a6
incq %r14
movl %eax, %ecx
addq $0x28, %rbx
cmpq %rcx, %r14
jb 0x26287
jmp 0x265f7
movl -0x15(%r10,%rbx), %edx
movl (%rdi,%rdx,4), %ecx
cmpq %rbp, %rcx
je 0x26293
movq 0x18(%r12), %r8
movq 0x20(%r8), %rsi
cmpl $0x0, (%rsi,%rcx,8)
js 0x26293
movq -0x21(%r10,%rbx), %rsi
movl -0x19(%r10,%rbx), %r11d
movl %r11d, 0x1c(%rsp)
subl %esi, %r11d
cmpq %r15, %r11
jl 0x26293
movq %rsi, 0x40(%rsp)
movq %r8, 0x68(%rsp)
movl -0x11(%r10,%rbx), %r8d
movl -0xd(%r10,%rbx), %ebp
movq %r15, %rsi
movl %ebp, %r15d
subl %r8d, %r15d
cmpq %rsi, %r15
jl 0x263d4
movl %eax, 0x48(%rsp)
movq 0x40(%rsp), %rdi
movq %rdi, %r9
shrq $0x20, %r9
movq 0x98(%rsp), %rsi
movq 0x20(%rsi), %rax
movl (%rax,%r9,8), %r12d
movl %r12d, 0x3c(%rsp)
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl %esi, %r12d
movl (%rax,%rdx,8), %r9d
andl %esi, %r9d
movq -0x9(%r10,%rbx), %rsi
subl %ebp, %r9d
movq %rsi, 0x50(%rsp)
testl %esi, %esi
movl %r8d, %eax
cmovnsl %r9d, %eax
cmovnsl %r8d, %r9d
cmpl %edi, %r9d
movl %edi, %ebp
cmovll %r9d, %ebp
movl %r12d, 0x60(%rsp)
movl 0x1c(%rsp), %edi
subl %edi, %r12d
cmpl %eax, %r12d
movl %eax, %r8d
cmovll %r12d, %r8d
movl 0x74(%rsp), %esi
cmpl %esi, %ebp
jg 0x263e3
movl %eax, 0x78(%rsp)
cmpl %esi, %r8d
movl 0x48(%rsp), %eax
jg 0x263c5
movl %r11d, %esi
cvtsi2ss %rsi, %xmm1
addl %ebp, %r8d
addl %r8d, %r11d
cvtsi2ss %r11, %xmm2
leaq 0x26f3bd(%rip), %rsi    # 0x295758
movss 0x158(%rsi), %xmm0
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
ja 0x263c5
movl %r15d, %esi
cvtsi2ss %rsi, %xmm1
addl %r15d, %r8d
cvtsi2ss %r8, %xmm2
mulss %xmm2, %xmm0
ucomiss %xmm1, %xmm0
jbe 0x26405
movq 0x30(%rsp), %r12
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r9
movq 0x20(%rsp), %r15
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x26293
movq 0x30(%rsp), %r12
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r9
movq 0x20(%rsp), %r15
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl 0x48(%rsp), %eax
jmp 0x26293
cmpl 0x78(%rsp), %r12d
setl %bpl
setg %sil
cmpl %r9d, 0x40(%rsp)
setg %r12b
setl %r15b
orb %sil, %r12b
cmpb $0x1, %r12b
jne 0x263c5
orb %bpl, %r15b
movq 0x30(%rsp), %r12
je 0x263ca
movq 0x20(%rsp), %r15
cmpl %r15d, %r11d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jl 0x26566
cmpl %r15d, %r8d
jl 0x26566
addl 0x78(%rsp), %edi
movl 0x60(%rsp), %eax
subl %edi, %eax
xorl %r8d, %r8d
movq 0x40(%rsp), %rdi
subl %r9d, %edi
setle 0x1c(%rsp)
cmovlel %eax, %edi
movq 0x50(%rsp), %rsi
shrl $0x10, %esi
andl $0x4000, %esi           # imm = 0x4000
movl 0x2c(%rsp), %r11d
andl $0x3fff, %r11d          # imm = 0x3FFF
orl %esi, %r11d
movzbl (%r10,%rbx), %esi
shll $0xf, %esi
orl %r11d, %esi
movl %esi, 0x2c(%rsp)
movq %rdi, 0x60(%rsp)
testl %edi, %edi
js 0x26575
movb 0x1c(%rsp), %al
movb %al, %r8b
movq 0x40(%rsp), %rdi
movq %rdi, %rsi
shrq $0x1f, %rsi
andl $-0x2, %esi
orq %r8, %rsi
cmpl 0xa8(%rsp), %esi
movl 0x48(%rsp), %eax
jne 0x26566
cmpl %r9d, %edi
setg %sil
cmpl $0x0, 0x50(%rsp)
setns %dil
xorb %sil, %dil
movzbl %dil, %esi
leal (%rsi,%rdx,2), %edx
movq 0x10(%r12), %rsi
imulq $0x28, %rcx, %rdi
leal (%rcx,%rcx), %r8d
cmpl 0x4(%rsi,%rdi), %edx
pushq $-0x1
popq %r9
cmovnel %r9d, %r8d
cmpl 0x8(%rsi,%rdi), %edx
leal 0x1(%rcx,%rcx), %r11d
cmovnel %r8d, %r11d
cmpl $-0x1, %r11d
je 0x26566
movq 0x68(%rsp), %r8
movl 0x4(%r8), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%r8), %ecx
jne 0x26584
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
pushq $0x10
popq %rcx
cmovel %ecx, %eax
movl %eax, (%r8)
movq 0x8(%r8), %rdi
imulq $0x18, %rax, %rsi
movl %r11d, 0x1c(%rsp)
callq 0x2370
movl 0x1c(%rsp), %r11d
movq 0x68(%rsp), %r8
movq %rax, 0x8(%r8)
movl 0x4(%r8), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x26588
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r9
jmp 0x26293
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r9
jmp 0x263fc
movq 0x8(%r8), %rax
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r9
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movq 0xa0(%rsp), %rsi
movq 0x60(%rsp), %r10
orq %r10, %rsi
movl %edx, 0x4(%r8)
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
andq $0x0, 0x10(%rax,%rcx)
movl 0x3c(%rsp), %edx
subl %r10d, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movl %edx, 0xc(%rax,%rcx)
movl 0x2c(%rsp), %edx
movw %dx, 0x10(%rax,%rcx)
movq %rsi, (%rax,%rcx)
movl %r11d, 0x8(%rax,%rcx)
incq 0x80(%rsp)
movl 0xc(%r13), %eax
jmp 0x26293
movq 0x58(%rsp), %rax
movl 0x4(%rax), %edx
movl %edx, %eax
shrl %eax
imulq $0x18, %rax, %r13
movl 0xc(%r9,%r13), %eax
testl %eax, %eax
je 0x269a8
addq %r9, %r13
movq 0x88(%rsp), %rcx
orl $0x1, %ecx
xorq $0x1, %rdx
movq %rdx, 0x78(%rsp)
shlq $0x20, %rcx
movq %rcx, 0x88(%rsp)
pushq $0x21
popq %rbx
xorl %r14d, %r14d
movq (%r13), %r10
cmpb $0x0, -0x1(%r10,%rbx)
je 0x2665c
incq %r14
movl %eax, %ecx
addq $0x28, %rbx
cmpq %rcx, %r14
jb 0x2663d
jmp 0x269a8
movl -0x15(%r10,%rbx), %edx
movl (%rdi,%rdx,4), %ecx
cmpq %rbp, %rcx
je 0x26649
movq 0x18(%r12), %r8
movq 0x20(%r8), %rsi
cmpl $0x0, (%rsi,%rcx,8)
js 0x26649
movq -0x21(%r10,%rbx), %rsi
movl -0x19(%r10,%rbx), %r11d
movl %r11d, 0x1c(%rsp)
subl %esi, %r11d
cmpq %r15, %r11
jl 0x26649
movq %rsi, 0x40(%rsp)
movq %r8, 0x48(%rsp)
movl -0x11(%r10,%rbx), %ebp
movl -0xd(%r10,%rbx), %r8d
movq %r15, %rsi
movl %r8d, %r15d
subl %ebp, %r15d
cmpq %rsi, %r15
jl 0x26789
movl %eax, 0x58(%rsp)
movq 0x40(%rsp), %rdi
movq %rdi, %r9
shrq $0x20, %r9
movq 0x98(%rsp), %rsi
movq 0x20(%rsi), %rax
movl (%rax,%r9,8), %r12d
movl %r12d, 0x60(%rsp)
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl %esi, %r12d
movl (%rax,%rdx,8), %r9d
andl %esi, %r9d
movq -0x9(%r10,%rbx), %rsi
subl %r8d, %r9d
movq %rsi, 0x68(%rsp)
testl %esi, %esi
movl %ebp, %eax
cmovnsl %r9d, %eax
cmovnsl %ebp, %r9d
cmpl %edi, %r9d
movl %edi, %r8d
cmovll %r9d, %r8d
movl %r12d, 0x50(%rsp)
movl 0x1c(%rsp), %edi
subl %edi, %r12d
cmpl %eax, %r12d
movl %eax, %ebp
cmovll %r12d, %ebp
movl 0x74(%rsp), %esi
cmpl %esi, %r8d
jg 0x26798
movl %eax, 0x3c(%rsp)
cmpl %esi, %ebp
movl 0x58(%rsp), %eax
jg 0x2677a
movl %r11d, %esi
cvtsi2ss %rsi, %xmm1
addl %r8d, %ebp
addl %ebp, %r11d
cvtsi2ss %r11, %xmm2
leaq 0x26f008(%rip), %rsi    # 0x295758
movss 0x158(%rsi), %xmm0
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
ja 0x2677a
movl %r15d, %esi
cvtsi2ss %rsi, %xmm1
addl %r15d, %ebp
cvtsi2ss %rbp, %xmm2
mulss %xmm2, %xmm0
ucomiss %xmm1, %xmm0
jbe 0x267ba
movq 0x30(%rsp), %r12
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r9
movq 0x20(%rsp), %r15
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x26649
movq 0x30(%rsp), %r12
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r9
movq 0x20(%rsp), %r15
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl 0x58(%rsp), %eax
jmp 0x26649
cmpl 0x3c(%rsp), %r12d
setl %r8b
setg %sil
cmpl %r9d, 0x40(%rsp)
setg %r12b
setl %r15b
orb %sil, %r12b
cmpb $0x1, %r12b
jne 0x2677a
orb %r8b, %r15b
movq 0x30(%rsp), %r12
je 0x2677f
movq 0x20(%rsp), %r15
cmpl %r15d, %r11d
jl 0x26909
cmpl %r15d, %ebp
jl 0x26909
addl 0x3c(%rsp), %edi
movl 0x50(%rsp), %eax
subl %edi, %eax
xorl %r8d, %r8d
movq 0x40(%rsp), %rdi
movl %edi, %ebp
subl %r9d, %ebp
setle 0x1c(%rsp)
cmovlel %eax, %ebp
movq 0x68(%rsp), %rsi
shrl $0x10, %esi
andl $0x4000, %esi           # imm = 0x4000
movl 0x2c(%rsp), %r11d
andl $0x3fff, %r11d          # imm = 0x3FFF
orl %esi, %r11d
movzbl (%r10,%rbx), %esi
shll $0xf, %esi
orl %r11d, %esi
movl %esi, 0x2c(%rsp)
movq %rbp, 0x50(%rsp)
testl %ebp, %ebp
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
js 0x26927
movb 0x1c(%rsp), %al
movb %al, %r8b
movq %rdi, %rsi
shrq $0x1f, %rsi
andl $-0x2, %esi
orq %r8, %rsi
cmpl 0x78(%rsp), %esi
movl 0x58(%rsp), %eax
jne 0x26918
cmpl %r9d, %edi
setg %sil
cmpl $0x0, 0x68(%rsp)
setns %dil
xorb %sil, %dil
movzbl %dil, %esi
leal (%rsi,%rdx,2), %edx
movq 0x10(%r12), %rsi
imulq $0x28, %rcx, %rdi
leal (%rcx,%rcx), %r8d
cmpl 0x4(%rsi,%rdi), %edx
pushq $-0x1
popq %r9
cmovnel %r9d, %r8d
cmpl 0x8(%rsi,%rdi), %edx
leal 0x1(%rcx,%rcx), %ebp
cmovnel %r8d, %ebp
cmpl $-0x1, %ebp
je 0x26909
movq 0x48(%rsp), %r8
movl 0x4(%r8), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%r8), %ecx
jne 0x26936
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
pushq $0x10
popq %rcx
cmovel %ecx, %eax
movl %eax, (%r8)
movq 0x8(%r8), %rdi
imulq $0x18, %rax, %rsi
callq 0x2370
movq 0x48(%rsp), %r8
movq %rax, 0x8(%r8)
movl 0x4(%r8), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x2693a
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r9
jmp 0x2678e
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r9
jmp 0x26649
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r9
jmp 0x267b1
movq 0x8(%r8), %rax
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r9
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movq 0x88(%rsp), %rsi
movq 0x50(%rsp), %r10
orq %r10, %rsi
movl %edx, 0x4(%r8)
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
andq $0x0, 0x10(%rax,%rcx)
movl 0x60(%rsp), %edx
subl %r10d, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movl %edx, 0xc(%rax,%rcx)
movl 0x2c(%rsp), %edx
movw %dx, 0x10(%rax,%rcx)
movq %rsi, (%rax,%rcx)
movl %ebp, 0x8(%rax,%rcx)
incq 0x80(%rsp)
movl 0xc(%r13), %eax
jmp 0x2678e
movq 0xb0(%rsp), %rcx
incl %ecx
cmpq %rcx, (%r12)
ja 0x26221
movq 0x80(%rsp), %r14
testq %r14, %r14
jne 0x269ce
xorl %r14d, %r14d
jmp 0x269f9
movq 0x18(%r12), %rax
movq 0x28(%rax), %rdi
callq 0x2220
movq 0x18(%r12), %rax
andq $0x0, 0x28(%rax)
andb $0x7f, 0x7(%rax)
movq 0x18(%r12), %rdi
callq 0xa0a7d
movq 0x8(%rsp), %rdi
movq 0x90(%rsp), %rbx
callq 0x2220
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1e4e6c
movq 0x26e5c8(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x21dde7(%rip), %rsi    # 0x244809
leaq 0x21ddcb(%rip), %rdx    # 0x2447f4
movq %r14, %rcx
xorl %eax, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x22b0