// File: /workspace/github_cpp_makefile_star2_O1/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 $0x48, %rsp
movq %r8, %rax
movq %rcx, %r10
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r15
movq 0x2657eb(%rip), %rbp    # 0x289fe0
movq (%rbp), %rdi
movq 0x10(%r15), %r8
subq $0x8, %rsp
leaq 0x21118d(%rip), %rsi    # 0x235995
leaq 0x2111b8(%rip), %rdx    # 0x2359c7
movq %rax, 0x40(%rsp)
movq %rax, %rcx
movq %r12, %r9
xorl %eax, %eax
pushq %r10
callq 0x22b0
addq $0x10, %rsp
testq %r12, %r12
movq %rbx, 0x30(%rsp)
movq %r15, 0x28(%rsp)
je 0x24947
xorl %r14d, %r14d
movq %r12, 0x40(%rsp)
movq (%r15), %rax
movq (%rbp), %rdi
movl (%rax,%r14), %edx
movl 0x4(%rax,%r14), %ecx
movq %rcx, 0x20(%rsp)
leal 0x1(%rdx), %ecx
movq 0x10(%rbx), %rsi
imulq $0x28, %rdx, %rdx
movl (%rsi,%rdx), %r9d
movl %r9d, %edx
shrl $0x1f, %edx
leaq 0x203db8(%rip), %r10    # 0x22862b
movsbl (%rdx,%r10), %r8d
movl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
andl %ebx, %r9d
movl 0x8(%rax,%r14), %r11d
incl %r11d
movl 0x1c(%rax,%r14), %edx
leaq 0x20192f(%rip), %r15    # 0x2261c3
movsbl (%rdx,%r15), %edx
movq %rdx, 0x18(%rsp)
movl 0x10(%rax,%r14), %edx
leal 0x1(%rdx), %r15d
movq %r15, 0x10(%rsp)
imulq $0x28, %rdx, %rdx
movl (%rsi,%rdx), %r15d
movl %r15d, %edx
shrl $0x1f, %edx
movsbl (%rdx,%r10), %edx
movq %rdx, 0x8(%rsp)
andl %ebx, %r15d
movl 0x14(%rax,%r14), %edx
movq %rdx, (%rsp)
movl 0x18(%rax,%r14), %ebx
incl %ebx
movl 0x48(%rax,%r14), %r10d
movl 0x28(%rax,%r14), %r13d
movl 0x30(%rax,%r14), %ebp
subq $0x8, %rsp
leaq 0x2110e4(%rip), %rsi    # 0x2359d5
movq 0x40(%rsp), %rdx
xorl %eax, %eax
pushq %rbp
movq 0x2656e0(%rip), %rbp    # 0x289fe0
pushq %r13
pushq %r10
pushq %rbx
movq 0x58(%rsp), %rbx
pushq 0x28(%rsp)
pushq %r15
movq 0x60(%rsp), %r15
pushq 0x40(%rsp)
pushq 0x50(%rsp)
pushq 0x60(%rsp)
pushq %r11
pushq 0x78(%rsp)
callq 0x22b0
addq $0x60, %rsp
addq $0xa8, %r14
decq %r12
jne 0x24842
movq 0x40(%rsp), %r12
jmp 0x2494a
xorl %r12d, %r12d
cmpq 0x10(%r15), %r12
jae 0x24a65
imulq $0xa8, %r12, %r13
movq (%r15), %rax
movq (%rbp), %rdi
movl (%rax,%r13), %edx
movl 0x4(%rax,%r13), %ecx
movq %rcx, 0x20(%rsp)
leal 0x1(%rdx), %ecx
movq 0x10(%rbx), %rsi
imulq $0x28, %rdx, %rdx
movl (%rsi,%rdx), %r9d
movl %r9d, %edx
shrl $0x1f, %edx
leaq 0x203c9f(%rip), %r10    # 0x22862b
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 0x201816(%rip), %r14    # 0x2261c3
movsbl (%rdx,%r14), %edx
movq %rdx, 0x18(%rsp)
movl 0x10(%rax,%r13), %edx
leal 0x1(%rdx), %r14d
movq %r14, 0x10(%rsp)
imulq $0x28, %rdx, %rdx
movl (%rsi,%rdx), %r15d
movl %r15d, %edx
shrl $0x1f, %edx
movsbl (%rdx,%r10), %edx
movq %rdx, 0x8(%rsp)
andl %ebx, %r15d
movl 0x14(%rax,%r13), %edx
movq %rdx, (%rsp)
movl 0x18(%rax,%r13), %r10d
incl %r10d
movl 0x48(%rax,%r13), %r14d
movq %r12, %rbx
movl 0x28(%rax,%r13), %r12d
movl 0x30(%rax,%r13), %ebp
subq $0x8, %rsp
leaq 0x211010(%rip), %rsi    # 0x235a1e
movq 0x40(%rsp), %rdx
xorl %eax, %eax
pushq %rbp
movq 0x2655c3(%rip), %rbp    # 0x289fe0
pushq %r12
movq %rbx, %r12
pushq %r14
pushq %r10
pushq 0x28(%rsp)
movq 0x60(%rsp), %rbx
pushq %r15
movq 0x60(%rsp), %r15
pushq 0x40(%rsp)
pushq 0x50(%rsp)
pushq 0x60(%rsp)
pushq %r11
pushq 0x78(%rsp)
callq 0x22b0
addq $0x60, %rsp
incq %r12
addq $0xa8, %r13
cmpq 0x10(%r15), %r12
jb 0x2495b
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq