// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/inter.cpp
// Function: prt_split_ovs(overlap_region_alloc*, ma_ug_t*, unsigned long, unsigned long, char const*)
void prt_split_ovs(overlap_region_alloc* ol, ma_ug_t *ug, uint64_t ol_h, uint64_t ol_l, const char* cmd)
{
	uint64_t k; overlap_region *z;
	fprintf(stderr, "[M::%s] %s\tol->length::%lu, ol_h::%lu, ol_l::%lu\n", __func__, cmd, ol->length, ol_h, ol_l);
	// assert((ol_h+ol_l) == ol->length);
	for (k = 0; k < ol_h; k++) {
		z = &(ol->list[k]);
		fprintf(stderr, "oh->[%s]\tutg%.6u%c\t%u\t%u\t%u\t%c\tutg%.6u%c\t%u\t%u\t%u\twn::%u\taln::%u\ted::%u\n", cmd, 
				z->x_id+1, "lc"[ug->u.a[z->x_id].circ], ug->u.a[z->x_id].len, 
				z->x_pos_s, z->x_pos_e+1, "+-"[z->y_pos_strand],
				z->y_id+1, "lc"[ug->u.a[z->y_id].circ], ug->u.a[z->y_id].len, 
				z->y_pos_s, z->y_pos_e+1, (uint32_t)z->w_list.n, z->align_length, z->non_homopolymer_errors);
	}

	for (; k < ol->length; k++) {
		z = &(ol->list[k]);
		fprintf(stderr, "ol->[%s]\tutg%.6u%c\t%u\t%u\t%u\t%c\tutg%.6u%c\t%u\t%u\t%u\twn::%u\taln::%u\ted::%u\n", cmd, 
				z->x_id+1, "lc"[ug->u.a[z->x_id].circ], ug->u.a[z->x_id].len, 
				z->x_pos_s, z->x_pos_e+1, "+-"[z->y_pos_strand],
				z->y_id+1, "lc"[ug->u.a[z->y_id].circ], ug->u.a[z->y_id].len, 
				z->y_pos_s, z->y_pos_e+1, (uint32_t)z->w_list.n, z->align_length, z->non_homopolymer_errors);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, %rax
movq %rcx, %r10
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %rbp
movq 0x271603(%rip), %r13    # 0x294fe0
movq (%r13), %rdi
movq 0x10(%rbp), %r8
subq $0x8, %rsp
leaq 0x21e275(%rip), %rsi    # 0x241c65
leaq 0x21e2a0(%rip), %rdx    # 0x241c97
movq %rax, 0x50(%rsp)
movq %rax, %rcx
movq %rbx, %r9
xorl %eax, %eax
pushq %r10
callq 0x22b0
addq $0x10, %rsp
movq %rbx, 0x30(%rsp)
testq %rbx, %rbx
movq %r12, 0x40(%rsp)
movq %rbp, 0x38(%rsp)
je 0x23b37
xorl %r15d, %r15d
movq 0x30(%rsp), %r14
movq (%rbp), %rax
movq (%r13), %rdi
movl (%rax,%r15), %edx
movl 0x4(%rax,%r15), %ecx
movq %rcx, 0x28(%rsp)
leal 0x1(%rdx), %ecx
movq 0x10(%r12), %rsi
imulq $0x28, %rdx, %rdx
movl (%rsi,%rdx), %r9d
movl %r9d, %edx
shrl $0x1f, %edx
leaq 0x210cd9(%rip), %r10    # 0x23473b
movsbl (%rdx,%r10), %r8d
movl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
andl %r11d, %r9d
movl 0x8(%rax,%r15), %edx
incl %edx
movq %rdx, 0x20(%rsp)
movl 0x1c(%rax,%r15), %edx
leaq 0x20e84b(%rip), %rbx    # 0x2322d3
movsbl (%rdx,%rbx), %edx
movq %rdx, 0x18(%rsp)
movl 0x10(%rax,%r15), %edx
leal 0x1(%rdx), %ebx
movq %rbx, 0x10(%rsp)
imulq $0x28, %rdx, %rdx
movl (%rsi,%rdx), %r12d
movl %r12d, %edx
shrl $0x1f, %edx
movsbl (%rdx,%r10), %edx
movq %rdx, 0x8(%rsp)
andl %r11d, %r12d
movl 0x14(%rax,%r15), %edx
movq %rdx, 0x50(%rsp)
movl 0x18(%rax,%r15), %ebx
incl %ebx
movl 0x48(%rax,%r15), %r11d
movq %r13, %r10
movl 0x28(%rax,%r15), %r13d
movl 0x30(%rax,%r15), %ebp
subq $0x8, %rsp
leaq 0x21e1be(%rip), %rsi    # 0x241ca5
movq 0x50(%rsp), %rdx
xorl %eax, %eax
pushq %rbp
movq 0x48(%rsp), %rbp
pushq %r13
movq %r10, %r13
pushq %r11
pushq %rbx
pushq 0x78(%rsp)
pushq %r12
movq 0x78(%rsp), %r12
pushq 0x40(%rsp)
pushq 0x50(%rsp)
pushq 0x60(%rsp)
pushq 0x70(%rsp)
pushq 0x80(%rsp)
callq 0x22b0
addq $0x60, %rsp
addq $0xa8, %r15
decq %r14
jne 0x23a2f
movq 0x30(%rsp), %r14
cmpq %r14, 0x10(%rbp)
jbe 0x23c5c
imulq $0xa8, %r14, %r13
movq (%rbp), %rax
movq 0x271488(%rip), %rcx    # 0x294fe0
movq (%rcx), %rdi
movl (%rax,%r13), %edx
movl 0x4(%rax,%r13), %ecx
movq %rcx, 0x28(%rsp)
leal 0x1(%rdx), %ecx
movq 0x10(%r12), %rsi
imulq $0x28, %rdx, %rdx
movl (%rsi,%rdx), %r9d
movl %r9d, %edx
shrl $0x1f, %edx
leaq 0x210bb5(%rip), %r10    # 0x23473b
movsbl (%rdx,%r10), %r8d
movl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
andl %ebx, %r9d
movl 0x8(%rax,%r13), %r11d
incl %r11d
movl 0x1c(%rax,%r13), %edx
leaq 0x20e72c(%rip), %r15    # 0x2322d3
movsbl (%rdx,%r15), %edx
movq %rdx, 0x20(%rsp)
movl 0x10(%rax,%r13), %edx
leal 0x1(%rdx), %r15d
movq %r15, 0x18(%rsp)
imulq $0x28, %rdx, %rdx
movl (%rsi,%rdx), %r12d
movl %r12d, %edx
shrl $0x1f, %edx
movsbl (%rdx,%r10), %edx
movq %rdx, 0x10(%rsp)
andl %ebx, %r12d
movl 0x14(%rax,%r13), %edx
movq %rdx, 0x8(%rsp)
movl 0x18(%rax,%r13), %r10d
incl %r10d
movq %r14, %rbx
movl 0x48(%rax,%r13), %r14d
movl 0x28(%rax,%r13), %r15d
movl 0x30(%rax,%r13), %ebp
subq $0x8, %rsp
leaq 0x21e0e5(%rip), %rsi    # 0x241cee
movq 0x50(%rsp), %rdx
xorl %eax, %eax
pushq %rbp
movq 0x48(%rsp), %rbp
pushq %r15
pushq %r14
movq %rbx, %r14
pushq %r10
pushq 0x30(%rsp)
pushq %r12
movq 0x78(%rsp), %r12
pushq 0x48(%rsp)
pushq 0x58(%rsp)
pushq 0x68(%rsp)
pushq %r11
pushq 0x80(%rsp)
callq 0x22b0
addq $0x60, %rsp
incq %r14
addq $0xa8, %r13
cmpq 0x10(%rbp), %r14
jb 0x23b4d
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq