// File: /workspace/github_cpp_makefile_star2_O2/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, %r14
movq %rsi, 0x30(%rsp)
movq %rdi, %rcx
movq 0xd99e8(%rip), %rdx     # 0x252fe0
movq (%rdx), %rdi
movq %rcx, 0x28(%rsp)
movq 0x10(%rcx), %r8
subq $0x8, %rsp
leaq 0x7a51e(%rip), %rsi     # 0x1f3b2d
leaq 0x7a549(%rip), %rdx     # 0x1f3b5f
movq %rax, 0x40(%rsp)
movq %rax, %rcx
movq %r14, %r9
xorl %eax, %eax
pushq %r10
callq 0x22b0
addq $0x10, %rsp
xorl %r13d, %r13d
movq %r14, 0x40(%rsp)
subq $0x1, %r14
jb 0x179738
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq 0xd9991(%rip), %rcx     # 0x252fe0
movq (%rcx), %rdi
movl (%rax,%r13), %edx
movl 0x4(%rax,%r13), %ecx
movq %rcx, 0x20(%rsp)
leal 0x1(%rdx), %ecx
movq 0x30(%rsp), %rsi
movq 0x10(%rsi), %rsi
imulq $0x28, %rdx, %rdx
movl (%rsi,%rdx), %r9d
movl %r9d, %edx
shrl $0x1f, %edx
leaq 0x6d00a(%rip), %r10     # 0x1e668b
movsbl (%rdx,%r10), %r8d
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
andl %ebp, %r9d
movl 0x8(%rax,%r13), %r11d
incl %r11d
movl 0x1c(%rax,%r13), %edx
leaq 0x6ab81(%rip), %rbx     # 0x1e4223
movsbl (%rdx,%rbx), %edx
movq %rdx, 0x18(%rsp)
movl 0x10(%rax,%r13), %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 %ebp, %r12d
movl 0x14(%rax,%r13), %edx
movq %rdx, (%rsp)
movl 0x18(%rax,%r13), %r10d
incl %r10d
movl 0x48(%rax,%r13), %ebx
movl 0x28(%rax,%r13), %ebp
movl 0x30(%rax,%r13), %r15d
subq $0x8, %rsp
leaq 0x7a46f(%rip), %rsi     # 0x1f3b6d
movq 0x40(%rsp), %rdx
xorl %eax, %eax
pushq %r15
pushq %rbp
pushq %rbx
pushq %r10
pushq 0x28(%rsp)
pushq %r12
pushq 0x40(%rsp)
pushq 0x50(%rsp)
pushq 0x60(%rsp)
pushq %r11
pushq 0x78(%rsp)
callq 0x22b0
addq $0x60, %rsp
addq $0xa8, %r13
jmp 0x179636
movq 0x40(%rsp), %r15
imulq $0xa8, %r15, %r13
movq 0x28(%rsp), %rax
cmpq 0x10(%rax), %r15
jae 0x17984e
movq (%rax), %rax
movq 0xd9883(%rip), %rcx     # 0x252fe0
movq (%rcx), %rdi
movl (%rax,%r13), %edx
movl 0x4(%rax,%r13), %ecx
movq %rcx, 0x20(%rsp)
leal 0x1(%rdx), %ecx
movq 0x30(%rsp), %rsi
movq 0x10(%rsi), %rsi
imulq $0x28, %rdx, %rdx
movl (%rsi,%rdx), %r9d
movl %r9d, %edx
shrl $0x1f, %edx
leaq 0x6cefc(%rip), %r10     # 0x1e668b
movsbl (%rdx,%r10), %r8d
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
andl %ebp, %r9d
movl 0x8(%rax,%r13), %r11d
incl %r11d
movl 0x1c(%rax,%r13), %edx
leaq 0x6aa73(%rip), %rbx     # 0x1e4223
movsbl (%rdx,%rbx), %edx
movq %rdx, 0x18(%rsp)
movl 0x10(%rax,%r13), %edx
leal 0x1(%rdx), %ebx
movq %rbx, 0x10(%rsp)
imulq $0x28, %rdx, %rdx
movl (%rsi,%rdx), %ebx
movl %ebx, %edx
shrl $0x1f, %edx
movsbl (%rdx,%r10), %edx
movq %rdx, 0x8(%rsp)
andl %ebp, %ebx
movl 0x14(%rax,%r13), %edx
movq %rdx, (%rsp)
movl 0x18(%rax,%r13), %r10d
incl %r10d
movl 0x48(%rax,%r13), %r14d
movl 0x28(%rax,%r13), %r12d
movl 0x30(%rax,%r13), %ebp
subq $0x8, %rsp
leaq 0x7a3ad(%rip), %rsi     # 0x1f3bb6
movq 0x40(%rsp), %rdx
xorl %eax, %eax
pushq %rbp
pushq %r12
pushq %r14
pushq %r10
pushq 0x28(%rsp)
pushq %rbx
pushq 0x40(%rsp)
pushq 0x50(%rsp)
pushq 0x60(%rsp)
pushq %r11
pushq 0x78(%rsp)
callq 0x22b0
movq 0x88(%rsp), %rax
addq $0x60, %rsp
incq %r15
addq $0xa8, %r13
jmp 0x179749
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq