LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: gen_contig_path(ug_opt_t const*, asg_t*, ma_ug_t*, ma_ug_t*)
scaf_res_t *gen_contig_path(const ug_opt_t *uopt, asg_t *sg, ma_ug_t *ctg, ma_ug_t *ref)
{
	mg_idxopt_t opt; uldat_t sl; int32_t cutoff; 
	init_aux_table(); ha_opt_update_cov(&asm_opt, asm_opt.hom_cov);
	cutoff = asm_opt.max_n_chain;
	init_mg_opt(&opt, !(asm_opt.flag&HA_F_NO_HPC), 19, 10, cutoff, asm_opt.max_n_chain, asm_opt.ul_error_rate, asm_opt.ul_error_rate, asm_opt.ul_error_rate_low, asm_opt.ul_error_rate_hpc, asm_opt.ul_ec_round);
	ul_idx_t *uu = gen_ul_idx_t(uopt, ref, sg, 0, 0, 1);
	init_uldat_t(&sl, NULL, NULL, &opt, CHUNK_SIZE, asm_opt.thread_num, uopt, uu); sl.rg = sg; sl.ug = ctg;

	scaf_res_t *res = work_ctg_path_gchains(&sl); uu->ug = NULL;
	destroy_ul_idx_t(uu);
	return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rcx, %r13
movq %rdx, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, %r15
callq 0x6b0f
leaq 0xb7904(%rip), %r12     # 0x253758
movl 0xd0(%r12), %esi
movq %r12, %rdi
callq 0x3430
movl (%r12), %eax
movl 0xe8(%r12), %ecx
notl %eax
andl $0x1, %eax
movsd 0x238(%r12), %xmm0
movl 0x240(%r12), %edx
leaq 0x100(%rsp), %rbp
movl %ecx, 0x14(%rbp)
movl %eax, 0x10(%rbp)
movaps 0x55b44(%rip), %xmm1    # 0x1f19e0
movaps %xmm1, (%rbp)
movaps 0x55aa9(%rip), %xmm1    # 0x1f1950
movups %xmm1, 0x28(%rbp)
movsd 0x55aad(%rip), %xmm1    # 0x1f1960
movsd %xmm1, 0x50(%rbp)
movaps 0x55ab1(%rip), %xmm1    # 0x1f1970
movups %xmm1, 0x18(%rbp)
movaps 0x55ab6(%rip), %xmm1    # 0x1f1980
movups %xmm1, 0x38(%rbp)
movabsq $0x500000006, %rax      # imm = 0x500000006
movq %rax, 0x48(%rbp)
movl $0x3f4ccccd, 0x58(%rbp) # imm = 0x3F4CCCCD
movl %ecx, 0x80(%rbp)
movups 0x228(%r12), %xmm1
movlps %xmm1, 0x60(%rbp)
movups %xmm1, 0x68(%rbp)
movsd %xmm0, 0x78(%rbp)
movl %edx, 0x84(%rbp)
pushq $0x1
popq %r9
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x199d9b
movq %rax, %r13
movslq 0x7c(%r12), %rbx
leaq 0x48(%rsp), %r12
movl $0xb0, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x20e0
xorps %xmm0, %xmm0
movaps %xmm0, -0x38(%r12)
movq %rbp, -0x28(%r12)
movq $0x3b9aca00, 0x18(%r12) # imm = 0x3B9ACA00
movq %rbx, 0x20(%r12)
movq %r13, -0x8(%r12)
movq %r15, -0x10(%r12)
movq %r14, -0x18(%r12)
movq 0x8(%rsp), %rax
movq %rax, -0x20(%r12)
leaq 0x10(%rsp), %rdi
callq 0x1912dd
movq %rax, %rbx
andq $0x0, (%r13)
movq %r13, %rdi
callq 0x199f0f
movq %rbx, %rax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: dd_ug(asg_t*, ma_ug_t*, ma_sub_t*, ma_hit_t_alloc*, R_to_U*, char const*)
uint32_t dd_ug(asg_t *sg, ma_ug_t *ug, ma_sub_t* coverage_cut, ma_hit_t_alloc* sources, R_to_U* ruIndex, const char* output_file_name)
{
    fprintf(stderr, "Writing raw unitig GFA to disk... \n");
    char* gfa_name = (char*)malloc(strlen(output_file_name)+25);
    sprintf(gfa_name, "%s.r_utg.noseq.gfa", output_file_name);
    FILE* output_file = fopen(gfa_name, "w");
    ma_ug_print_simple(ug, sg, coverage_cut, sources, ruIndex, "utg", output_file);
    fclose(output_file);

    free(gfa_name);
    exit(1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbp
movq %r8, 0x10(%rsp)
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r12
movq 0xb6690(%rip), %rax     # 0x252fe0
movq (%rax), %rcx
leaq 0x4bfc3(%rip), %rdi     # 0x1e891d
pushq $0x23
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
movq %rbp, %rdi
callq 0x2090
leaq 0x19(%rax), %rdi
callq 0x2280
movq %rax, %rbx
leaq 0x4bfce(%rip), %rsi     # 0x1e894e
movq %rax, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x5dd0d(%rip), %rsi     # 0x1fa6a1
movq %rbx, %rdi
callq 0x2210
movq %rax, %rbp
movq %rax, (%rsp)
leaq 0x512d1(%rip), %r9      # 0x1edc7b
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq 0x10(%rsp), %r8
callq 0x7de8f
movq %rbp, %rdi
callq 0x2190
movq %rbx, %rdi
callq 0x2220
pushq $0x1
popq %rdi
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: clear_all_ul_t(all_ul_t*)
void clear_all_ul_t(all_ul_t *x)
{
	uint64_t k, rlen;
	for (k = 0; k < x->n; k++) {
        rlen = x->a[k].rlen;
        free(x->a[k].bb.a); free(x->a[k].N_site.a); free(x->a[k].r_base.a); 
        memset(&(x->a[k]), 0, sizeof(x->a[k])); x->a[k].rlen = rlen;
    }
	free(x->ridx.idx.a); free(x->ridx.occ.a); memset(&(x->ridx), 0, sizeof((x->ridx)));

	// if(x->mm) {
	// 	for (k = 0; k < x->mm->n; k++) {
	// 		free(x->mm->a[k].a); memset(&(x->mm->a[k]), 0, sizeof(x->mm->a[k])); 
	// 	}
	// 	free(x->mm->a); free(x->mm); x->mm = NULL;
	// }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
cmpq 0x50(%rbx), %r15
jae 0x19ca59
movq 0x48(%rbx), %rax
movl 0x18(%rax,%r14), %ebp
movq 0x30(%rax,%r14), %rdi
callq 0x2220
movq 0x48(%rbx), %rax
movq 0x38(%rax,%r14), %rdi
callq 0x2220
movq 0x48(%rbx), %rax
movq 0x10(%rax,%r14), %rdi
callq 0x2220
movq 0x48(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rax,%r14)
movups %xmm0, 0x30(%rax,%r14)
movups %xmm0, 0x20(%rax,%r14)
movups %xmm0, 0x10(%rax,%r14)
movups %xmm0, (%rax,%r14)
andq $0x0, 0x50(%rax,%r14)
movq 0x48(%rbx), %rax
movl %ebp, 0x18(%rax,%r14)
incq %r15
addq $0x58, %r14
jmp 0x19c9e8
movq 0x28(%rbx), %rdi
callq 0x2220
movq 0x40(%rbx), %rdi
callq 0x2220
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rbx)
movups %xmm0, 0x28(%rbx)
movups %xmm0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: trans_base_infer(ma_ug_t*, asg_t*, ug_opt_t*, kv_u_trans_t*, bubble_type*)
void trans_base_infer(ma_ug_t *ug, asg_t *sg, ug_opt_t *uopt, kv_u_trans_t *res, bubble_type *bub)
{
    ug_trans_t sl; 
    init_aux_table(); ha_opt_update_cov(&asm_opt, asm_opt.hom_cov);
    init_ug_trans_t(&sl, uopt, 0, asm_opt.trans_mer_length, asm_opt.trans_win, asm_opt.max_n_chain, 
	1.0-asm_opt.trans_base_rate, 1.0-asm_opt.trans_base_rate, 1.0-asm_opt.trans_base_rate_sec, 1.0-asm_opt.trans_base_rate_sec, 
	0.85, asm_opt.thread_num, 512, 3, 1, ug, sg, bub, 1);
	// gen_trans_base_count(&sl, res);
	gen_trans_base_count_comp(&sl, res);
	if(!bub) {
		destory_bubbles(sl.bub); free(sl.bub);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, %r15
callq 0x6b0f
leaq 0xb349f(%rip), %r13     # 0x253758
movl 0xd0(%r13), %esi
movq %r13, %rdi
callq 0x3430
movl 0x7c(%r13), %eax
movl 0x8c(%r13), %ecx
movl 0x9c(%r13), %r8d
movl 0xe8(%r13), %r9d
cvtss2sd 0x170(%r13), %xmm1
movsd 0x42fae(%rip), %xmm2    # 0x1e32a0
movapd %xmm2, %xmm0
subsd %xmm1, %xmm0
cvtss2sd 0x174(%r13), %xmm1
subsd %xmm1, %xmm2
pushq $0x1
popq %r10
leaq 0x8(%rsp), %r13
movsd 0x47968(%rip), %xmm4    # 0x1e7c80
movq %r13, %rdi
movq %rbp, %rsi
xorl %edx, %edx
movapd %xmm0, %xmm1
movapd %xmm2, %xmm3
pushq %r10
pushq %rbx
pushq %r12
pushq %r15
pushq %r10
pushq $0x3
pushq $0x200                  # imm = 0x200
pushq %rax
callq 0x19ca85
addq $0x40, %rsp
movq %r13, %rdi
movq %r14, %rsi
callq 0x19dea9
testq %rbx, %rbx
jne 0x1a0366
movq 0x30(%rsp), %rdi
callq 0xf6a60
movq 0x30(%rsp), %rdi
callq 0x2220
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: trans_base_mmhap_infer(ma_ug_t*, asg_t*, ug_opt_t*, kv_u_trans_t*)
void trans_base_mmhap_infer(ma_ug_t *ug, asg_t *sg, ug_opt_t *uopt, kv_u_trans_t *res)
{
    ug_trans_t sl; 
    init_aux_table(); ha_opt_update_cov(&asm_opt, asm_opt.hom_cov);
    init_ug_trans_t(&sl, uopt, 0, asm_opt.trans_mer_length, asm_opt.trans_win, asm_opt.max_n_chain, 
	1.0-asm_opt.trans_base_rate, 1.0-asm_opt.trans_base_rate, 1.0-asm_opt.trans_base_rate_sec, 1.0-asm_opt.trans_base_rate_sec, 
	0.85, asm_opt.thread_num, 512, 3, 1, ug, sg, NULL, 0);
	// gen_trans_base_count(&sl, res);
	gen_trans_base_count_mmhap_comp(&sl, res);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x150, %rsp            # imm = 0x150
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
callq 0x6b0f
leaq 0xb33b8(%rip), %r13     # 0x253758
movl 0xd0(%r13), %esi
movq %r13, %rdi
callq 0x3430
movl 0x7c(%r13), %eax
movl 0x8c(%r13), %ecx
movl 0x9c(%r13), %r8d
movl 0xe8(%r13), %r9d
cvtss2sd 0x170(%r13), %xmm1
movsd 0x42ec7(%rip), %xmm2    # 0x1e32a0
movapd %xmm2, %xmm0
subsd %xmm1, %xmm0
cvtss2sd 0x174(%r13), %xmm1
subsd %xmm1, %xmm2
movq %r15, 0x28(%rsp)
movq %r12, 0x20(%rsp)
andl $0x0, 0x38(%rsp)
movl %eax, (%rsp)
andq $0x0, 0x30(%rsp)
movl $0x1, 0x18(%rsp)
movl $0x3, 0x10(%rsp)
movl $0x200, 0x8(%rsp)       # imm = 0x200
leaq 0x40(%rsp), %r15
movsd 0x47855(%rip), %xmm4    # 0x1e7c80
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
movapd %xmm0, %xmm1
movapd %xmm2, %xmm3
callq 0x19ca85
movq %r15, %rdi
movq %rbx, %rsi
callq 0x19fab9
addq $0x150, %rsp            # imm = 0x150
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: gen_hpc_re_t(ma_ug_t*)
hpc_re_t *gen_hpc_re_t(ma_ug_t *ug)
{
	uint64_t k; asg64_v buf; kv_init(buf); 
	hpc_re_t *p = NULL; CALLOC(p, 1);
	kvec_t(char) cc; kv_init(cc);
	p->idx_n = ug->u.n; CALLOC(p->idx, p->idx_n);

	for (k = 0; k < ug->u.n; k++) {
		kv_resize(char, cc, ug->u.a[k].len);
		retrieve_u_seq(NULL, cc.a, &(ug->u.a[k]), 0, 0, ug->u.a[k].len, NULL);
		// fprintf(stderr, "\nutg%.6lu%c\tlen::%u\n", k + 1, "lc"[ug->u.a[k].circ], ug->u.a[k].len);
		extract_microsatellite(cc.a, ug->u.a[k].len, p, &buf, 8, 8, 5, 1, &(p->idx[k]));
		// fprintf(stderr, "utg%.6lu%c\t#::%u\tlen::%u\n", k + 1, "lc"[ug->u.a[k].circ], p->idx[k].e-p->idx[k].s, ug->u.a[k].len);
	}

	kv_destroy(cc); kv_destroy(buf); 
	return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x2120
movq %rax, %rbx
leaq 0x10(%rsp), %rax
andq $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq %r14, 0x8(%rsp)
movq (%r14), %r14
movq %r14, 0x20(%rbx)
pushq $0x8
popq %rsi
movq %r14, %rdi
callq 0x2120
movq %rbx, (%rsp)
movq %rax, 0x18(%rbx)
xorl %r15d, %r15d
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %ebp, %ebp
cmpq %r14, %rbp
jae 0x1a0d18
movq 0x8(%rsp), %r14
movq 0x10(%r14), %rdx
movl (%rdx,%rbx), %r9d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
cmpq %r9, %r13
jae 0x1a0cb1
decq %r9
movq %r9, %rax
shrq %rax
orq %r9, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %r13
shrq $0x10, %r13
orq %rcx, %r13
incq %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x2370
movq %rax, %r12
movq 0x10(%r14), %rdx
movl (%rdx,%rbx), %r9d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
addq %rbx, %rdx
subq $0x8, %rsp
xorl %edi, %edi
movq %r12, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq $0x0
callq 0x9f29
popq %rax
popq %rcx
movq 0x10(%r14), %rax
movl (%rax,%rbx), %esi
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %esi
movq (%rsp), %rdx
movq 0x18(%rdx), %rax
addq %r15, %rax
subq $0x8, %rsp
movq %r12, %rdi
leaq 0x18(%rsp), %rcx
pushq $0x8
popq %r8
movl %r8d, %r9d
pushq %rax
pushq $0x1
pushq $0x5
callq 0x1a05e9
addq $0x20, %rsp
incq %rbp
movq (%r14), %r14
addq $0x28, %rbx
addq $0x8, %r15
jmp 0x1a0c3b
movq %r12, %rdi
callq 0x2220
movq 0x20(%rsp), %rdi
callq 0x2220
movq (%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: sysm_graph_bin(ug_bin_t*)
void sysm_graph_bin(ug_bin_t *s)
{
	uint64_t k, i; kv_emask_t *r;
	s->is_cnt = 1; s->is_ovlp = 0;
	kt_for(s->n_thread, worker_for_graph_bin_sysm, s, s->ug->u.n);
	for (i = 0; i < s->mm->n; i++) {
		r = &(s->mm->a[i]); 
		for (k = 0; k < r->n; k++) {
			if(r->a[k].rn == (uint32_t)-1) s->mm->a[r->a[k].tn].m++;
		}
	}
	for (i = 0; i < s->mm->n; i++) {
		r = &(s->mm->a[i]); 
		if(r->m > r->n) REALLOC(r->a, r->m);
	}
	

	s->is_cnt = 0; s->is_ovlp = 1;
	kt_for(s->n_thread, worker_for_graph_bin_sysm, s, s->ug->u.n);

	s->is_cnt = 1; s->is_ovlp = 1;
	kt_for(s->n_thread, worker_for_graph_bin_sysm, s, s->ug->u.n);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq $0x1, 0xac(%rdi)
movl 0xa8(%rdi), %edi
movq 0x8(%rbx), %rax
movq (%rax), %rcx
leaq 0x101(%rip), %rsi       # 0x1a0e68
movq %rbx, %rdx
callq 0xc67c0
movq 0xf8(%rbx), %rax
movl 0x8(%rax), %ecx
xorl %edx, %edx
pushq $0x4
popq %rsi
cmpq %rcx, %rdx
jae 0x1a0dc4
movq (%rax), %rdi
imulq $0x18, %rdx, %r9
leaq (%rdi,%r9), %r8
movq 0x8(%rdi,%r9), %r9
movq %rsi, %r10
xorl %r11d, %r11d
cmpq %r9, %r11
jae 0x1a0dbf
movq (%r8), %r14
cmpl $-0x1, (%r14,%r10)
jne 0x1a0db6
movl -0x4(%r14,%r10), %r14d
imulq $0x18, %r14, %r14
incq 0x10(%rdi,%r14)
incq %r11
addq $0x20, %r10
jmp 0x1a0d99
incq %rdx
jmp 0x1a0d7e
xorl %r14d, %r14d
xorl %r15d, %r15d
movl %ecx, %edx
cmpq %rdx, %r15
jae 0x1a0e04
movq (%rax), %r12
movq 0x10(%r12,%r14), %rsi
cmpq 0x8(%r12,%r14), %rsi
jbe 0x1a0dfb
movq (%r12,%r14), %rdi
shlq $0x5, %rsi
callq 0x2370
movq %rax, (%r12,%r14)
movq 0xf8(%rbx), %rax
movl 0x8(%rax), %ecx
incq %r15
addq $0x18, %r14
jmp 0x1a0dca
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0xac(%rbx)
movl 0xa8(%rbx), %edi
movq 0x8(%rbx), %rax
movq (%rax), %rcx
leaq 0x3f(%rip), %r14        # 0x1a0e68
movq %r14, %rsi
movq %rbx, %rdx
callq 0xc67c0
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0xac(%rbx)
movl 0xa8(%rbx), %edi
movq 0x8(%rbx), %rax
movq (%rax), %rcx
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xc67c0
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: worker_for_graph_bin_sysm(void*, long, int)
static void worker_for_graph_bin_sysm(void *data, long i, int tid) // callback for kt_for()
{
    ug_bin_t *s = (ug_bin_t*)data; 
	if(s->ug->g->seq[i].del) return;
	if((s->is_cnt) && (!s->is_ovlp)) detect_sysm_graph_bin(s->mm, i);
	if((!s->is_cnt) && (s->is_ovlp)) srt_kv_emask_t(&(s->mm->a[i]), &(s->mk[tid]), i, s->udb.ug);
	if((s->is_cnt) && (s->is_ovlp)) detect_sysm_graph_bin(s->mm, i);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq 0x8(%rdi), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rsi,8)
js 0x1a0f06
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x0, 0xac(%rdi)
je 0x1a0eb5
cmpl $0x0, 0xb0(%r14)
jne 0x1a0eea
movq 0xf8(%r14), %rdi
movl %ebx, %esi
callq 0x1814de
cmpl $0x0, 0xac(%r14)
jne 0x1a0eea
cmpl $0x0, 0xb0(%r14)
je 0x1a0f06
movq 0xf8(%r14), %rax
imulq $0x18, %rbx, %rdi
addq (%rax), %rdi
movslq %ebp, %rax
imulq $0x30, %rax, %rsi
addq 0xf0(%r14), %rsi
callq 0x18093d
cmpl $0x0, 0xac(%r14)
je 0x1a0f06
cmpl $0x0, 0xb0(%r14)
je 0x1a0f06
movq 0xf8(%r14), %rdi
movl %ebx, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x1814de
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: mg_log2(float)
static inline float mg_log2(float x) // NB: this doesn't work when x<2
{
	union { float f; uint32_t i; } z = { x };
	float log_2 = ((z.i >> 23) & 255) - 128;
	z.i &= ~(255 << 23);
	z.i += 127 << 23;
	log_2 += (-0.34484843f * z.f + 2.02466578f) * z.f - 0.67487759f;
	return log_2;
}

// Assembly:
movd %xmm0, %eax
movl %eax, %ecx
shrl $0x17, %ecx
movzbl %cl, %ecx
addl $-0x80, %ecx
cvtsi2ss %rcx, %xmm1
andl $0x807fffff, %eax       # imm = 0x807FFFFF
orl $0x3f800000, %eax       # imm = 0x3F800000
movd %eax, %xmm2
movss 0x4fcf4(%rip), %xmm0    # 0x1f1a8c
mulss %xmm2, %xmm0
addss 0x4fcec(%rip), %xmm0    # 0x1f1a90
mulss %xmm2, %xmm0
addss 0x4fce4(%rip), %xmm0    # 0x1f1a94
addss %xmm1, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: cal_gchain_sc(mg_path_dst_t const*, mg_lchain_t const*, mg_lchain_t const*, long*, long, float, float)
inline int32_t cal_gchain_sc(const mg_path_dst_t *dj, const mg_lchain_t *li, const mg_lchain_t *lc, int64_t *f, int64_t b_w, float diff_thre, float chn_pen_gap)
{
	// const mg_lchain_t *lj;
	int32_t gap, sc;
	float lin_pen, log_pen;
	if (dj->n_path == 0) return INT32_MIN;
	gap = dj->dist - dj->target_dist;
	// lj = &lc[dj->meta];
	if (gap < 0) gap = -gap;
	if ((gap > ((dj->target_dist)*diff_thre)) && (gap > b_w)) return INT32_MIN;
	// if (lj->qe <= li->qs) sc = li->score;
	// else sc = (int32_t)((double)(li->qe - lj->qe) / (li->qe - li->qs) * li->score + .499); // dealing with overlap on query
	sc = li->score;
	//sc += dj->mlen; // TODO: is this line the right thing to do?
	// if (dj->is_0) sc += ref_bonus;
	lin_pen = chn_pen_gap * (float)gap;
	log_pen = gap >= 2? mg_log2(gap) : 0.0f;
	sc -= (int32_t)(lin_pen + log_pen);
	sc += f[dj->meta];
	return sc;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl $0x80000000, %ebx       # imm = 0x80000000
testl $0x7fffffff, 0x14(%rdi) # imm = 0x7FFFFFFF
je 0x1a2f87
movaps %xmm0, %xmm3
movq %rcx, %r14
movq %rdi, %r15
movl 0x4(%rdi), %ecx
movl 0x1c(%rdi), %edx
subl %ecx, %edx
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
cvtsi2ss %eax, %xmm0
cvtsi2ss %ecx, %xmm2
mulss %xmm3, %xmm2
ucomiss %xmm2, %xmm0
seta %cl
movl %eax, %edx
cmpq %r8, %rdx
setg %dl
testb %dl, %cl
jne 0x1a2f87
movl 0x1c(%rsi), %ebx
mulss %xmm0, %xmm1
xorps %xmm2, %xmm2
cmpl $0x2, %eax
jb 0x1a2f70
movss %xmm1, 0xc(%rsp)
callq 0x1a1d6e
movss 0xc(%rsp), %xmm1
movaps %xmm0, %xmm2
addss %xmm2, %xmm1
cvttss2si %xmm1, %eax
subl %eax, %ebx
movl 0xc(%r15), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
addl (%r14,%rax,8), %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: is_compat_contig_chain(asg_t const*, ul_ov_t*, ul_ov_t*, mg_lchain_t*, double)
inline uint32_t is_compat_contig_chain(const asg_t *g, ul_ov_t *p, ul_ov_t *m, mg_lchain_t *a, double overhead)
{
	uint64_t ovlp;
	ovlp = ((MIN(m->qe, p->qe) > MAX(m->qs, p->qs))? (MIN(m->qe, p->qe) - MAX(m->qs, p->qs)):0);
	if(ovlp == 0) return 1;
	if(ovlp == (m->qe - m->qs)) return 0;////contain
	if(ovlp == (p->qe - p->qs)) return 0;////contain
	ul_ov_t *i0, *i1; 
	if(p->qs <= m->qs) {
		i0 = p; i1 = m;
	} else {
		i0 = m; i1 = p;
	}

	uint64_t o0 = max_ovlp(g,a[i0->te-1].v);
	uint64_t o1 = max_ovlp(g,a[i1->ts].v^1);
	uint64_t cut = MIN(o0, o1); cut *= (1 + overhead);
	if(ovlp > cut) return 0;
	return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r14
movq %rdi, %rbx
movl 0x4(%rdx), %ecx
movl 0x8(%rdx), %r9d
movl 0x4(%rsi), %edi
movl 0x8(%rsi), %eax
cmpl %eax, %r9d
movl %eax, %r8d
cmovbl %r9d, %r8d
cmpl %edi, %ecx
movl %edi, %r10d
cmoval %ecx, %r10d
subl %r10d, %r8d
jbe 0x1a3300
subl %ecx, %r9d
cmpl %r9d, %r8d
sete %r9b
subl %edi, %eax
cmpl %eax, %r8d
sete %r10b
xorl %eax, %eax
orb %r9b, %r10b
jne 0x1a3303
cmpl %edi, %ecx
movl %r8d, %r12d
movq %rdx, %r13
cmovbq %rsi, %r13
cmovbq %rdx, %rsi
movl 0x14(%rsi), %eax
decl %eax
imulq $0x28, %rax, %rax
movl 0x8(%r14,%rax), %esi
movq %rbx, %rdi
movsd %xmm0, 0x8(%rsp)
callq 0x15d450
movq %rax, %r15
movl 0x10(%r13), %eax
imulq $0x28, %rax, %rax
movl 0x8(%r14,%rax), %esi
xorl $0x1, %esi
movq %rbx, %rdi
callq 0x15d450
cmpq %rax, %r15
cmovbq %r15, %rax
movsd 0x8(%rsp), %xmm1
addsd 0x3ffd1(%rip), %xmm1    # 0x1e32a0
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x3ffad(%rip), %xmm0    # 0x1e3298
cvttsd2si %xmm0, %rdx
andq %rcx, %rdx
orq %rax, %rdx
xorl %eax, %eax
cmpq %rdx, %r12
setbe %al
jmp 0x1a3303
pushq $0x1
popq %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: is_mask_err_full(ul_ov_t*, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long)
inline uint64_t is_mask_err_full(ul_ov_t *sa, uint64_t sn, uint64_t qs, uint64_t qe, uint64_t ts, uint64_t te)
{
	uint64_t k;
	for (k = 0; k < sn; k++) {
		if(sa[k].qs <= qs && sa[k].qe >= qe && sa[k].ts <= ts && sa[k].te >= te) break;
	}
	if(k < sn) return 1;
	return 0;
}

// Assembly:
addq $0x14, %rdi
xorl %r10d, %r10d
cmpq %r10, %rsi
je 0x1a3345
movl -0x10(%rdi), %eax
cmpq %rdx, %rax
ja 0x1a333c
movl -0xc(%rdi), %eax
cmpq %rcx, %rax
jb 0x1a333c
movl -0x4(%rdi), %eax
cmpq %r8, %rax
ja 0x1a333c
movl (%rdi), %eax
cmpq %r9, %rax
jae 0x1a3345
incq %r10
addq $0x1c, %rdi
jmp 0x1a3318
xorl %eax, %eax
cmpq %rsi, %r10
setb %al
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: overlap_region2ul_ov_t(overlap_region*, ul_ov_t*, unsigned long)
inline void overlap_region2ul_ov_t(overlap_region *in, ul_ov_t *ou, uint64_t tl)
{
	ou->qn = in->x_id; ou->tn = in->y_id; ou->el = 1; 
	ou->sec = in->non_homopolymer_errors; 
	ou->rev = in->y_pos_strand;
	ou->qs = in->x_pos_s; ou->qe = in->x_pos_e+1;
	if(ou->rev) {
		ou->ts = tl - (in->y_pos_e+1); 
		ou->te = tl - in->y_pos_s;
	} else {
		ou->ts = in->y_pos_s; 
		ou->te = in->y_pos_e+1;
	}
}

// Assembly:
movl (%rdi), %eax
movl %eax, (%rsi)
movl 0x10(%rdi), %eax
movl %eax, 0xc(%rsi)
movl $0x40000000, %eax       # imm = 0x40000000
movl 0x18(%rsi), %ecx
orl %eax, %ecx
movl %ecx, 0x18(%rsi)
movl $0x3fffffff, %r8d       # imm = 0x3FFFFFFF
andl 0x30(%rdi), %r8d
andl $0xc0000000, %ecx       # imm = 0xC0000000
orl %r8d, %ecx
movl %ecx, 0x18(%rsi)
movl 0x1c(%rdi), %ecx
shll $0x1f, %ecx
orl %ecx, %r8d
orl %eax, %r8d
movl %r8d, 0x18(%rsi)
movl 0x4(%rdi), %eax
movl %eax, 0x4(%rsi)
movl 0x8(%rdi), %eax
incl %eax
movl %eax, 0x8(%rsi)
testl %ecx, %ecx
je 0x1a33a9
movl 0x18(%rdi), %eax
notl %eax
addl %edx, %eax
subl 0x14(%rdi), %edx
jmp 0x1a33b1
movl 0x14(%rdi), %eax
movl 0x18(%rdi), %edx
incl %edx
movl %eax, 0x10(%rsi)
movl %edx, 0x14(%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: comput_linear_sc(ul_ov_t*, ul_ov_t*, double, long)
inline int64_t comput_linear_sc(ul_ov_t *li, ul_ov_t *lj, double diff_ec_ul, int64_t bw)
{	///li is the suffix of lj
	int64_t dq, dt, dd, mm;
	if(lj->te > li->te) return INT32_MIN;
	dq = li->qe - lj->qs; dt = li->te - lj->ts;
	dd = (dq>dt? dq-dt:dt-dq);
	mm = MAX(dq, dt); mm *= diff_ec_ul; if(mm < bw) mm = bw;
	if(dd > mm) return INT32_MIN;
	return li->qe - li->qs;
}

// Assembly:
movl 0x14(%rdi), %r8d
movq $-0x80000000, %rax      # imm = 0x80000000
cmpl %r8d, 0x14(%rsi)
ja 0x1a3411
movl 0x8(%rdi), %ecx
movl %ecx, %r9d
subl 0x4(%rsi), %r9d
subl 0x10(%rsi), %r8d
movq %r9, %rsi
subq %r8, %rsi
movq %r8, %r10
cmovaq %r9, %r10
movq %rsi, %r11
negq %r11
cmpl %r8d, %r9d
cmovaq %rsi, %r11
cvtsi2sd %r10, %xmm1
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %rsi
cmpq %rdx, %rsi
cmovgq %rsi, %rdx
cmpq %rdx, %r11
jg 0x1a3411
subl 0x4(%rdi), %ecx
movq %rcx, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: flat_rovlp_chain_sc(ma_ug_t*, mg_lchain_t*, mg_lchain_t*)
inline int64_t flat_rovlp_chain_sc(ma_ug_t *ug, mg_lchain_t *li, mg_lchain_t *lj)
{
	int64_t iqs, iqe, its, ite, jqs, jqe, jts, jte, ovlp;
	get_r_offset(ug, li, &its, &ite, &iqs, &iqe);
	get_r_offset(ug, lj, &jts, &jte, &jqs, &jqe);
	if(jqs <= iqs && jqe <= iqe && jts <= its && jte <= ite) {
		if(jqs == iqs && jqe == iqe && jts == its && jte == ite) return INT32_MIN;
		ovlp = ((MIN(jqe, iqe) > MAX(jqs, iqs))? (MIN(jqe, iqe) - MAX(jqs, iqs)):0);
		return iqe - iqs - ovlp;
	}
	return INT32_MIN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rdi, %r14
leaq 0x28(%rsp), %rdx
leaq 0x20(%rsp), %rcx
leaq 0x40(%rsp), %r15
leaq 0x30(%rsp), %r9
movq %r15, %r8
callq 0x166527
leaq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rcx
leaq 0x38(%rsp), %r12
leaq 0x18(%rsp), %r9
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %r8
callq 0x166527
movq (%r12), %rdi
movq (%r15), %rcx
movq $-0x80000000, %rax      # imm = 0x80000000
cmpq %rcx, %rdi
jg 0x1a34ca
movq 0x18(%rsp), %rsi
movq 0x30(%rsp), %rdx
cmpq %rdx, %rsi
jg 0x1a34ca
movq 0x10(%rsp), %r8
movq 0x28(%rsp), %r10
cmpq %r10, %r8
jg 0x1a34ca
movq 0x8(%rsp), %r9
movq 0x20(%rsp), %r11
cmpq %r11, %r9
jg 0x1a34ca
xorq %rcx, %rdi
movq %rsi, %rbx
xorq %rdx, %rbx
orq %rdi, %rbx
xorq %r10, %r8
orq %rbx, %r8
xorq %r11, %r9
orq %r8, %r9
je 0x1a34ca
xorl %eax, %eax
subq %rcx, %rdx
subq %rsi, %rcx
cmovlq %rcx, %rax
addq %rdx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: comput_linear_ctg_sc(ul_ov_t*, ul_ov_t*, double, long)
inline int64_t comput_linear_ctg_sc(ul_ov_t *li, ul_ov_t *lj, double diff_ec_ul, int64_t bw)
{	///li is the suffix of lj
	int64_t dq, dt, dd, mm;
	if(lj->te > li->te) return INT32_MIN;
	dq = li->qe - lj->qs; dt = li->te - lj->ts;
	dd = (dq>dt? dq-dt:dt-dq);
	mm = MAX(dq, dt); mm *= diff_ec_ul; if(mm < bw) mm = bw;
	if(dd > mm) return INT32_MIN;
	return li->sec;
}

// Assembly:
movl 0x14(%rdi), %ecx
movq $-0x80000000, %rax      # imm = 0x80000000
cmpl %ecx, 0x14(%rsi)
ja 0x1a352c
movl 0x8(%rdi), %r8d
subl 0x4(%rsi), %r8d
subl 0x10(%rsi), %ecx
movq %r8, %rsi
subq %rcx, %rsi
movq %rcx, %r9
cmovaq %r8, %r9
movq %rsi, %r10
negq %r10
cmpl %ecx, %r8d
cmovaq %rsi, %r10
cvtsi2sd %r9, %xmm1
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %rcx
cmpq %rdx, %rcx
cmovgq %rcx, %rdx
cmpq %rdx, %r10
jg 0x1a352c
movl 0x18(%rdi), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: comput_linear_ctg_trans_sc(ul_ov_t*, ul_ov_t*, double, double, long)
inline int64_t comput_linear_ctg_trans_sc(ul_ov_t *li, ul_ov_t *lj, double diff_ec_ul, double ovlp_max, int64_t bw)
{	///li is the suffix of lj
	int64_t dq, dt, dd, mm, os, oe;
	if(lj->rev != li->rev) return INT32_MIN;
	int64_t iqs, iqe, its, ite, jqs, jqe, jts, jte;
	iqs = li->qs; iqe = li->qe; 
	jqs = lj->qs; jqe = lj->qe; 
	its = li->ts; ite = li->te;
	jts = lj->ts; jte = lj->te;
	// if(li->rev) {
	// 	its = lj->ts; ite = lj->te;
	// 	jts = li->ts; jte = li->te;
	// } 
	if(jte > ite) return INT32_MIN;
	
	


	dq = iqs - jqe; 
	dt = its - jte;
	dd = (dq>dt? dq-dt:dt-dq); 

	dq = iqe - jqs; 
	dt = ite - jts;
	mm = MAX(dq, dt); mm *= diff_ec_ul; if(mm < bw) mm = bw;
	if(dd > mm) return INT32_MIN;

	///too long overlap
	dd = iqe - iqs; if(dd > jqe - jqs) dd = jqe - jqs;
	dd *= ovlp_max; if(dd < bw) dd = bw;
	os = MAX(iqs, jqs), oe = MIN(iqe, jqe);
    mm = ((oe > os)? (oe - os):0);
	if(mm > 0 && mm > dd) return INT32_MIN;

	dd = ite - its; if(dd > jte - jts) dd = jte - jts;
	dd *= ovlp_max; if(dd < bw) dd = bw;
	os = MAX(its, jts), oe = MIN(ite, jte);
    mm = ((oe > os)? (oe - os):0);
	if(mm > dd) return INT32_MIN;

	return li->sec;
}

// Assembly:
movl 0x18(%rdi), %ecx
movq $-0x80000000, %rax      # imm = 0x80000000
movl 0x18(%rsi), %r8d
xorl %ecx, %r8d
js 0x1a36ad
movl 0x14(%rdi), %r9d
movl 0x14(%rsi), %r8d
cmpl %r9d, %r8d
ja 0x1a36ad
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl 0x4(%rdi), %r14d
movl 0x8(%rdi), %r11d
movl 0x4(%rsi), %ebx
movl 0x8(%rsi), %r10d
movl 0x10(%rdi), %edi
movl 0x10(%rsi), %esi
movq %r14, %r12
subq %r10, %r12
subq %rdi, %r12
addq %r8, %r12
movq %r12, %r15
negq %r15
cmovsq %r12, %r15
movq %r11, %r12
subq %rbx, %r12
movq %r9, %r13
subq %rsi, %r13
cmpq %r13, %r12
cmovgq %r12, %r13
cvtsi2sd %r13, %xmm2
mulsd %xmm0, %xmm2
cvttsd2si %xmm2, %r12
cmpq %rdx, %r12
cmovleq %rdx, %r12
cmpq %r12, %r15
jg 0x1a36a4
movq %r11, %r15
subq %r14, %r15
movq %r10, %r12
subq %rbx, %r12
cmpq %r12, %r15
cmovlq %r15, %r12
cvtsi2sd %r12, %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %r15
cmpq %rdx, %r15
cmovleq %rdx, %r15
cmpq %rbx, %r14
cmovaq %r14, %rbx
cmpq %r10, %r11
cmovbq %r11, %r10
xorl %r11d, %r11d
subq %rbx, %r10
cmovaeq %r10, %r11
jbe 0x1a3661
cmpq %r15, %r11
jg 0x1a36a4
subq %rdi, %r9
movq %r8, %r10
subq %rsi, %r10
cmpq %r10, %r9
cmovlq %r9, %r10
cvtsi2sd %r10, %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %r9
cmpq %rdx, %r9
cmovgq %r9, %rdx
cmpq %rsi, %rdi
cmovaq %rdi, %rsi
xorl %edi, %edi
subq %rsi, %r8
cmovaeq %r8, %rdi
cmpq %rdx, %rdi
jg 0x1a36a4
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movq %rcx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: is_rg_connect(asg_t const*, unsigned int, unsigned int)
uint32_t inline is_rg_connect(const asg_t *rg, uint32_t v, uint32_t w)
{
	uint32_t nv = asg_arc_n(rg, v), i; 
	asg_arc_t *av = asg_arc_a(rg, v);
    for (i = 0; i < nv; i++) {
		if((!(av[i].del)) && (av[i].v == w)) return 1;
    }
	return 0;
}

// Assembly:
movq 0x8(%rdi), %rax
movq 0x28(%rdi), %rcx
movl %esi, %esi
movq (%rcx,%rsi,8), %rcx
movl %ecx, %esi
movq %rcx, %rdi
shrq $0x20, %rdi
imulq $0x18, %rsi, %rcx
imulq $0x18, %rdi, %rsi
addq %rax, %rsi
addq $0xc, %rsi
xorl %eax, %eax
pushq $0x1
popq %rdi
xorl %r8d, %r8d
cmpq %r8, %rcx
je 0x1a36f7
cmpl $0x0, (%rsi,%r8)
js 0x1a36ef
cmpl %edx, -0x4(%rsi,%r8)
je 0x1a36f5
addq $0x18, %r8
jmp 0x1a36dc
movl %edi, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: comput_rlinear_sc(ul_ov_t*, ul_ov_t*, long, int*, int*, double, long)
inline int64_t comput_rlinear_sc(ul_ov_t *li, ul_ov_t *lj, int64_t jidx, int32_t *bq, int32_t *bt, double diff_ec_ul, int64_t bw)
{	///li is the suffix of lj; sorted by qe, so li->qe >= lj->qe, so li->te >= lj->te
	if(li->te < lj->te) return INT32_MIN;
	int64_t dq, dt, dd, mm, os, oe;
	oe = MIN((li->qe), (lj->qe)); os = MAX((li->qs), (lj->qs));
	if(oe <= os) return INT32_MIN;
	oe = MIN((li->te), (lj->te)); os = MAX((li->ts), (lj->ts));
	if(oe <= os) return INT32_MIN;

	dq = li->qe - lj->qs; dt = li->te - lj->ts;
	dd = (dq>dt? dq-dt:dt-dq);
	mm = MAX(dq, dt); mm *= diff_ec_ul; if(mm < bw) mm = bw;
	if(dd > mm) return INT32_MIN;
	dq = (int64_t)li->qe - bq[jidx];
	dt = (int64_t)li->te - bt[jidx];
	if(dq < ((int64_t)(li->qe - li->qs))) dq = li->qe - li->qs;
	if(dt < ((int64_t)(li->te - li->ts))) dt = li->te - li->ts;
	return MIN(dq, dt);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0x14(%rdi), %r10d
movl 0x14(%rsi), %eax
cmpl %eax, %r10d
jb 0x1a3782
movl 0x4(%rdi), %ebx
movl 0x8(%rdi), %r11d
movl 0x4(%rsi), %ebp
movl 0x8(%rsi), %r14d
cmpl %r14d, %r11d
cmovbl %r11d, %r14d
cmpl %ebp, %ebx
movl %ebp, %r15d
cmoval %ebx, %r15d
cmpl %r15d, %r14d
jbe 0x1a3782
movl 0x10(%rdi), %edi
movl 0x10(%rsi), %esi
cmpl %esi, %edi
movl %esi, %r14d
cmoval %edi, %r14d
cmpl %r14d, %eax
jbe 0x1a3782
movl %r11d, %eax
subl %ebp, %eax
movl %r10d, %r14d
subl %esi, %r14d
movq %rax, %rsi
subq %r14, %rsi
movq %r14, %r15
cmovaq %rax, %r15
movq %rsi, %r12
negq %r12
cmpl %r14d, %eax
cmovaq %rsi, %r12
cvtsi2sd %r15, %xmm1
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %rax
cmpq %r9, %rax
cmovgq %rax, %r9
cmpq %r9, %r12
jle 0x1a3792
movq $-0x80000000, %rax      # imm = 0x80000000
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movslq (%rcx,%rdx,4), %rax
movq %r11, %rcx
subq %rax, %rcx
movslq (%r8,%rdx,4), %rdx
movq %r10, %rax
subq %rdx, %rax
subl %ebx, %r11d
cmpq %r11, %rcx
cmovleq %r11, %rcx
subl %edi, %r10d
cmpq %r10, %rax
cmovleq %r10, %rax
cmpq %rax, %rcx
cmovlq %rcx, %rax
jmp 0x1a3789
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: cal_trans_ov_w(ul_ov_t*)
double inline cal_trans_ov_w(ul_ov_t *z)
{
	double nw[2], ml, uml;
	ml = z->qe - z->qs; uml = z->sec; ml -= uml;
    nw[0] = (ml*CHAIN_MATCH) - (uml*CHAIN_UNMATCH);
    ml = z->te - z->ts; uml = z->sec; ml -= uml;
    nw[1] = (ml*CHAIN_MATCH) - (uml*CHAIN_UNMATCH);
    return MIN(nw[0], nw[1]);
}

// Assembly:
movl 0x8(%rdi), %eax
subl 0x4(%rdi), %eax
movl 0x14(%rdi), %ecx
cvtsi2sd %rax, %xmm1
movl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
andl 0x18(%rdi), %eax
cvtsi2sd %eax, %xmm0
subsd %xmm0, %xmm1
movsd 0x4448f(%rip), %xmm2    # 0x1e7c78
mulsd %xmm0, %xmm2
addsd %xmm2, %xmm1
subl 0x10(%rdi), %ecx
cvtsi2sd %rcx, %xmm3
subsd %xmm0, %xmm3
addsd %xmm2, %xmm3
movapd %xmm1, %xmm0
cmplesd %xmm3, %xmm0
andpd %xmm0, %xmm1
andnpd %xmm3, %xmm0
orpd %xmm1, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/kalloc.cpp
// Function: km_init2
void *km_init2(void *km_par, size_t min_core_size)
{
	kmem_t *km;
	km = (kmem_t*)kcalloc(km_par, 1, sizeof(kmem_t));
	km->par = km_par;
	km->min_core_size = min_core_size > 0? min_core_size : 0x80000;
	return (void*)km;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x1
popq %rsi
pushq $0x30
popq %rdx
callq 0x1a3848
movq %r14, (%rax)
testq %rbx, %rbx
movl $0x80000, %ecx          # imm = 0x80000
cmovneq %rbx, %rcx
movq %rcx, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/kalloc.cpp
// Function: kcalloc
void *kcalloc(void *_km, size_t count, size_t size)
{
	kmem_t *km = (kmem_t*)_km;
	void *p;
	if (size == 0 || count == 0) return 0;
	if (km == NULL) return calloc(count, size);
	p = kmalloc(km, count * size);
	memset(p, 0, count * size);
	return p;
}

// Assembly:
pushq %rbx
testq %rdx, %rdx
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
je 0x1a385d
xorl %eax, %eax
popq %rbx
retq
movq %rdx, %rbx
testq %rdi, %rdi
je 0x1a387f
imulq %rsi, %rbx
movq %rbx, %rsi
callq 0x1a39c4
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
popq %rbx
jmp 0x20e0
movq %rsi, %rdi
movq %rbx, %rsi
popq %rbx
jmp 0x2120
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/kalloc.cpp
// Function: km_destroy
void km_destroy(void *_km)
{
	kmem_t *km = (kmem_t*)_km;
	void *km_par;
	header_t *p, *q;
	if (km == NULL) return;
	km_par = km->par;
	for (p = km->core_head; p != NULL;) {
		q = p->ptr;
		kfree(km_par, p);
		p = q;
	}
	kfree(km_par, km);
}

// Assembly:
testq %rdi, %rdi
je 0x1a38ce
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %r14
movq 0x28(%rdi), %rsi
testq %rsi, %rsi
je 0x1a38be
movq 0x8(%rsi), %r15
movq %r14, %rdi
callq 0x1a38cf
movq %r15, %rsi
jmp 0x1a38a8
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x1a38cf
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/kalloc.cpp
// Function: kmalloc
void *kmalloc(void *_km, size_t n_bytes)
{
	kmem_t *km = (kmem_t*)_km;
	size_t n_units;
	header_t *p, *q;

	if (n_bytes == 0) return 0;
	if (km == NULL) return malloc(n_bytes);
	n_units = (n_bytes + sizeof(size_t) + sizeof(header_t) - 1) / sizeof(header_t); /* header+n_bytes requires at least this number of units */

	if (!(q = km->loop_head)) /* the first time when kmalloc() is called, intialize it */
		q = km->loop_head = km->base.ptr = &km->base;
	for (p = q->ptr;; q = p, p = p->ptr) { /* search for a suitable block */
		if (p->size >= n_units) { /* p->size if the size of current block. This line means the current block is large enough. */
			if (p->size == n_units) q->ptr = p->ptr; /* no need to split the block */
			else { /* split the block. NB: memory is allocated at the end of the block! */
				p->size -= n_units; /* reduce the size of the free block */
				p += p->size; /* p points to the allocated block */
				*(size_t*)p = n_units; /* set the size */
			}
			km->loop_head = q; /* set the end of chain */
			return (size_t*)p + 1;
		}
		if (p == km->loop_head) { /* then ask for more "cores" */
			if ((p = morecore(km, n_units)) == 0) return 0;
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x1a3a80
movq %rsi, %r14
movq %rdi, %rbx
testq %rdi, %rdi
je 0x1a3a85
addq $0x17, %r14
movq 0x20(%rbx), %rax
testq %rax, %rax
jne 0x1a39fd
leaq 0x10(%rbx), %rax
movq %rax, 0x18(%rbx)
movq %rax, 0x20(%rbx)
shrq $0x4, %r14
xorl %r15d, %r15d
movq %rax, %rcx
movq 0x8(%rcx), %rdx
movq (%rdx), %rsi
subq %r14, %rsi
jae 0x1a3a74
movq %rdx, %rcx
cmpq %rax, %rdx
jne 0x1a3a07
movq (%rbx), %rdi
movq 0x8(%rbx), %rcx
movq %rcx, %r12
addq %r14, %r12
movq %r12, %rax
xorl %edx, %edx
divq %rcx
subq %rdx, %r12
movq %r12, %rsi
shlq $0x4, %rsi
callq 0x1a39c4
testq %rax, %rax
je 0x1a3ac0
movq 0x28(%rbx), %rcx
movq %rcx, 0x8(%rax)
movq %r12, (%rax)
movq %rax, 0x28(%rbx)
decq %r12
movq %r12, 0x10(%rax)
addq $0x18, %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1a38cf
movq 0x20(%rbx), %rax
testq %rax, %rax
jne 0x1a3a04
jmp 0x1a3ab1
jne 0x1a3a98
movq 0x8(%rdx), %rax
movq %rax, 0x8(%rcx)
jmp 0x1a3aa6
xorl %r15d, %r15d
jmp 0x1a3ab1
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2280
movq %rsi, (%rdx)
shlq $0x4, %rsi
movq %r14, (%rdx,%rsi)
addq %rsi, %rdx
movq %rcx, 0x20(%rbx)
addq $0x8, %rdx
movq %rdx, %r15
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x5389e(%rip), %rdi     # 0x1f7365
callq 0x1a39a3
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/kalloc.cpp
// Function: krealloc
void *krealloc(void *_km, void *ap, size_t n_bytes) // TODO: this can be made more efficient in principle
{
	kmem_t *km = (kmem_t*)_km;
	size_t cap, *p, *q;

	if (n_bytes == 0) {
		kfree(km, ap); return 0;
	}
	if (km == NULL) return realloc(ap, n_bytes);
	if (ap == NULL) return kmalloc(km, n_bytes);
	p = (size_t*)ap - 1;
	cap = (*p) * sizeof(header_t) - sizeof(size_t);
	if (cap >= n_bytes) return ap; /* TODO: this prevents shrinking */
	q = (size_t*)kmalloc(km, n_bytes);
	memcpy(q, ap, cap);
	kfree(km, ap);
	return q;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x1a3b26
testq %r14, %r14
je 0x1a3b42
testq %rbx, %rbx
je 0x1a3b58
movq -0x8(%rbx), %r15
shlq $0x4, %r15
addq $-0x8, %r15
cmpq %rdx, %r15
jae 0x1a3b33
movq %r14, %rdi
movq %rdx, %rsi
callq 0x1a39c4
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2160
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1a38cf
movq %r12, %rbx
jmp 0x1a3b33
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1a38cf
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rbx, %rdi
movq %rdx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2370
movq %r14, %rdi
movq %rdx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1a39c4
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/kalloc.cpp
// Function: km_stat
void km_stat(const void *_km, km_stat_t *s)
{
	kmem_t *km = (kmem_t*)_km;
	header_t *p;
	memset(s, 0, sizeof(km_stat_t));
	if (km == NULL || km->loop_head == NULL) return;
	for (p = km->loop_head;; p = p->ptr) {
		s->available += p->size * sizeof(header_t);
		if (p->size != 0) ++s->n_blocks; /* &kmem_t::base is always one of the cores. It is zero-sized. */
		if (p->ptr > p && p + p->size > p->ptr)
			panic("[km_stat] The end of a free block enters another free block.");
		if (p->ptr == km->loop_head) break;
	}
	for (p = km->core_head; p != NULL; p = p->ptr) {
		size_t size = p->size * sizeof(header_t);
		++s->n_cores;
		s->capacity += size;
		s->largest = s->largest > size? s->largest : size;
	}
}

// Assembly:
pushq %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsi)
movups %xmm0, (%rsi)
andq $0x0, 0x20(%rsi)
testq %rdi, %rdi
je 0x1a3c0f
movq 0x20(%rdi), %rax
testq %rax, %rax
je 0x1a3c0f
xorl %ecx, %ecx
xorl %edx, %edx
movq %rax, %r8
movq (%r8), %r9
testq %r9, %r9
je 0x1a3ba6
incq %rcx
movq %rcx, 0x10(%rsi)
shlq $0x4, %r9
addq %r9, %rdx
movq 0x8(%r8), %r10
cmpq %r8, %r10
seta %r11b
addq %r8, %r9
cmpq %r10, %r9
seta %r8b
andb %r11b, %r8b
cmpb $0x1, %r8b
je 0x1a3c11
movq %r10, %r8
cmpq %rax, %r10
jne 0x1a3b97
movq %rdx, 0x8(%rsi)
addq $0x28, %rdi
pushq $0x1
popq %rax
xorl %ecx, %ecx
xorl %edx, %edx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x1a3c0f
movq (%rdi), %r8
shlq $0x4, %r8
movq %rax, 0x18(%rsi)
addq %r8, %rdx
cmpq %r8, %rcx
cmovbeq %r8, %rcx
movq %rdx, (%rsi)
movq %rcx, 0x20(%rsi)
addq $0x8, %rdi
incq %rax
jmp 0x1a3be2
popq %rax
retq
movq %rdx, 0x8(%rsi)
leaq 0x5370c(%rip), %rdi     # 0x1f7328
callq 0x1a39a3
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: stats_chimeric(asg_t*, ma_hit_t_alloc*, asg64_v*)
void stats_chimeric(asg_t *g, ma_hit_t_alloc* src, asg64_v *in)
{
    asg64_v tx = {0,0,0}, *b = NULL;
    uint32_t v, s[2] = {0};
    if(in) b = in;
    else b = &tx;
    b->n = 0;

    for (v = 0; v < g->n_seq; ++v) {
        if (g->seq[v].del) continue;
        s[if_sup_chimeric(&(src[v]), g->seq[v].len, b, 1)]++;
    }

    fprintf(stderr, "[M::%s::] ==> # non-chimeric:%u, # chimeric:%u\n", __func__, s[0], s[1]);
    if(!in) free(tx.a);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
leaq 0x10(%rsp), %r14
andq $0x0, 0x10(%r14)
xorps %xmm0, %xmm0
andq $0x0, 0x8(%rsp)
movaps %xmm0, (%r14)
testq %rdx, %rdx
cmovneq %rdx, %r14
andq $0x0, (%r14)
movq %rsi, %r15
movq %rdi, %r12
xorl %r13d, %r13d
pushq $0x1
popq %rbp
movl 0x14(%r12), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r13
jae 0x1a4f43
movq 0x20(%r12), %rax
movslq (%rax,%r13,8), %rsi
testq %rsi, %rsi
js 0x1a4f3a
movq %r15, %rdi
movq %r14, %rdx
movl %ebp, %ecx
callq 0x1a4f97
movl %eax, %eax
incl 0x8(%rsp,%rax,4)
incq %r13
addq $0x18, %r15
jmp 0x1a4f0a
movq 0xae096(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
movl 0x8(%rsp), %ecx
movl 0xc(%rsp), %r8d
leaq 0x524a6(%rip), %rsi     # 0x1f7403
leaq 0x524cf(%rip), %rdx     # 0x1f7433
xorl %eax, %eax
callq 0x22b0
testq %rbx, %rbx
je 0x1a4f7f
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x20(%rsp), %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: stats_sysm_worker(void*, long, int)
static void stats_sysm_worker(void *_data, long eid, int tid)
{
    asg_t *g = (asg_t*)_data;
    asg_arc_t *p = &(g->arc[eid]);
    if(p->del) return;
    uint32_t k, v = p->v^1, w = (p->ul>>32)^1, nv; asg_arc_t *av;
    av = asg_arc_a(g, v); nv = asg_arc_n(g, v);
    for (k = 0; k < nv; k++) {
        if (av[k].del || av[k].v!=w) continue;
        break;
    }
    assert(k < nv);

    v = p->ul>>32; w = p->v;
    av = asg_arc_a(g, v); nv = asg_arc_n(g, v);
    for (k = 0; k < nv; k++) {
        if (av[k].del || av[k].v!=w) continue;
        assert((uint32_t)eid == av-g->arc+k);
    }
}

// Assembly:
pushq %rax
movq 0x8(%rdi), %rcx
imulq $0x18, %rsi, %rdx
cmpl $0x0, 0xc(%rcx,%rdx)
js 0x1a53e2
addq %rcx, %rdx
movl 0x8(%rdx), %eax
movq %rax, %r8
xorq $0x1, %r8
movq (%rdx), %rdx
shrq $0x20, %rdx
movq 0x28(%rdi), %rdi
movq (%rdi,%r8,8), %r8
movl %r8d, %r9d
movq %r8, %r10
shrq $0x20, %r10
imulq $0x18, %r9, %r8
imulq $0x18, %r10, %r9
addq %rcx, %r9
addq $0xc, %r9
xorl %r10d, %r10d
cmpq %r10, %r8
je 0x1a53e4
cmpl $0x0, (%r9,%r10)
js 0x1a53a3
movl -0x4(%r9,%r10), %r11d
xorl %edx, %r11d
cmpl $0x1, %r11d
je 0x1a53a9
addq $0x18, %r10
jmp 0x1a5389
movq (%rdi,%rdx,8), %rdi
movl %edi, %edx
shrq $0x20, %rdi
movl %esi, %esi
imulq $0x18, %rdi, %r8
addq %r8, %rcx
addq $0xc, %rcx
subq %rdi, %rsi
xorl %edi, %edi
cmpq %rdi, %rdx
je 0x1a53e2
cmpl $0x0, (%rcx)
js 0x1a53d9
cmpl %eax, -0x4(%rcx)
jne 0x1a53d9
cmpq %rdi, %rsi
jne 0x1a5403
incq %rdi
addq $0x18, %rcx
jmp 0x1a53c5
popq %rax
retq
leaq 0x5046a(%rip), %rdi     # 0x1f5855
leaq 0x520e7(%rip), %rsi     # 0x1f74d9
leaq 0x56fd1(%rip), %rcx     # 0x1fc3ca
movl $0x1c0, %edx            # imm = 0x1C0
callq 0x2110
leaq 0x56fea(%rip), %rdi     # 0x1fc3f4
leaq 0x520c8(%rip), %rsi     # 0x1f74d9
leaq 0x56fb2(%rip), %rcx     # 0x1fc3ca
movl $0x1c6, %edx            # imm = 0x1C6
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_arcs(asg_t*, unsigned int, unsigned int*, unsigned int)
uint32_t get_arcs(asg_t *g, uint32_t v, uint32_t* idx, uint32_t idx_n)
{
    uint32_t i, kv = 0, an = asg_arc_n(g, v), beg = g->idx[v]>>32;
    for (i = 0, kv = 0; i < an; i++) {
        if(g->arc[beg+i].del) continue;
        if(idx && kv<idx_n) idx[kv] = beg+i;
        kv++;
    }
    return kv;
}

// Assembly:
movq 0x28(%rdi), %rax
movl %esi, %esi
movq (%rax,%rsi,8), %r8
movl %r8d, %esi
shrq $0x20, %r8
xorl %eax, %eax
subq $0x1, %rsi
jb 0x1a5472
movq 0x8(%rdi), %r9
movl %r8d, %r10d
imulq $0x18, %r10, %r10
cmpl $0x0, 0xc(%r9,%r10)
js 0x1a546d
testq %rdx, %rdx
setne %r9b
cmpl %ecx, %eax
setb %r10b
andb %r9b, %r10b
cmpb $0x1, %r10b
jne 0x1a546b
movl %eax, %r9d
movl %r8d, (%rdx,%r9,4)
incl %eax
incl %r8d
jmp 0x1a5435
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_flex_arcs(flex_asg_t*, unsigned int, unsigned int*, unsigned int)
uint32_t get_flex_arcs(flex_asg_t *fg, uint32_t v, uint32_t* idx, uint32_t idx_n)
{
    asg_t *g = fg->g; uint32_t i, kv = 0;
    uint32_t an = asg_arc_n(g, v), beg = g->idx[v]>>32;
    for (i = 0, kv = 0; i < an; i++) {
        if(g->arc[beg+i].del) continue;
        if(idx && kv<idx_n) idx[kv] = beg+i;
        kv++;
    }
    for(i = fg->idx[v]; i != ((uint32_t)-1); i = fg->pi.a[i]) {
        if(fg->a[i].del) continue;
        if(idx && kv<idx_n) idx[kv] = (i)|((uint32_t)(0x80000000));
        kv++;
    }
    return kv;
}

// Assembly:
pushq %rbx
movq 0x30(%rdi), %r8
movq 0x28(%r8), %rax
movl %esi, %esi
movq (%rax,%rsi,8), %r10
movl %r10d, %r9d
shrq $0x20, %r10
xorl %eax, %eax
subq $0x1, %r9
jb 0x1a54c6
movq 0x8(%r8), %r11
movl %r10d, %ebx
imulq $0x18, %rbx, %rbx
cmpl $0x0, 0xc(%r11,%rbx)
js 0x1a54c1
testq %rdx, %rdx
setne %r11b
cmpl %ecx, %eax
setb %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x1a54bf
movl %eax, %r11d
movl %r10d, (%rdx,%r11,4)
incl %eax
incl %r10d
jmp 0x1a548b
shlq $0x2, %rsi
addq 0x38(%rdi), %rsi
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movl (%rsi), %esi
cmpq %r8, %rsi
je 0x1a551e
movq 0x58(%rdi), %r9
imulq $0x18, %rsi, %r10
cmpl $0x0, 0xc(%r9,%r10)
js 0x1a5514
testq %rdx, %rdx
setne %r9b
cmpl %ecx, %eax
setb %r10b
andb %r9b, %r10b
cmpb $0x1, %r10b
jne 0x1a5512
movl %esi, %r9d
orl $0x80000000, %r9d       # imm = 0x80000000
movl %eax, %r10d
movl %r9d, (%rdx,%r10,4)
incl %eax
shlq $0x2, %rsi
addq 0x50(%rdi), %rsi
jmp 0x1a54d4
popq %rbx
retq