// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/rcut.cpp
// Function: debug_mc_g_t(mc_g_t*)
void debug_mc_g_t(mc_g_t *mg)
{
    fprintf(stderr, "0----------[M::%s]----------\n", __func__);
	mc_edge_t *o = NULL, *s = NULL;
	uint32_t i, k, n, cnt;
	for (i = 0; i < mg->e->n_seq; ++i) 
	{
		o = pt_a(*(mg->e), i); n = pt_n(*(mg->e), i);
		for (k = 0; k < n; ++k)
		{
			if(ma_x(o[k]) != i) fprintf(stderr, "ERROR-g\n");
			s = get_mc_edge(mg->e, ma_y(o[k]), ma_x(o[k]));
			if(!s) fprintf(stderr, "ERROR-e\n");
			if(s)
			{
				if(!(ma_x(*s) == ma_y(o[k]) && ma_y(*s) == ma_x(o[k]) && s->w == o[k].w))
				{
					fprintf(stderr, "ERROR-f\n");
				}
			}
		}

		for (k = cnt = 0; k < mg->e->ma.n; ++k)
		{
			if(ma_x(mg->e->ma.a[k]) == i) cnt++;
		}

		if(cnt != n) fprintf(stderr, "ERROR-h\n");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x26c053(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x212c17(%rip), %rsi    # 0x230bae
leaq 0x212c99(%rip), %rdx    # 0x230c37
xorl %eax, %eax
callq 0x22b0
movq 0x28(%rbx), %rax
cmpl $0x0, 0x38(%rax)
je 0x1e15e
movq %rbx, %r9
xorl %r14d, %r14d
leaq 0x212c8d(%rip), %r10    # 0x230c4d
leaq 0x212c8f(%rip), %rbp    # 0x230c56
movq %rbx, 0x8(%rsp)
movq 0x10(%rax), %rcx
movq (%rcx,%r14,8), %rcx
movq %rcx, 0x10(%rsp)
testl %ecx, %ecx
je 0x1e0e2
movq 0x10(%rsp), %rcx
movq %rcx, %r15
shrq $0x1c, %r15
andq $-0x10, %r15
addq 0x28(%rax), %r15
movl %ecx, %r12d
xorl %ebx, %ebx
movq %rbx, %r13
shlq $0x4, %r13
movl 0x4(%r15,%r13), %eax
cmpq %r14, %rax
jne 0x1e0b5
addq %r15, %r13
movq 0x28(%r9), %rsi
movq (%r13), %rcx
movq %rcx, %rax
shrq $0x20, %rax
movq 0x10(%rsi), %rdx
movl %ecx, %edi
movq (%rdx,%rdi,8), %rdi
testl %edi, %edi
je 0x1e04d
movq %rdi, %rdx
shrq $0x1c, %rdx
andq $-0x10, %rdx
addq 0x28(%rsi), %rdx
movl %edi, %esi
cmpl %eax, (%rdx)
je 0x1e04f
addq $0x10, %rdx
decq %rsi
jne 0x1e040
xorl %edx, %edx
movq %r10, %rdi
testq %rdx, %rdx
je 0x1e092
movq (%rdx), %rsi
movq %rsi, %r8
shrq $0x20, %r8
movq %rbp, %rdi
cmpl %ecx, %r8d
jne 0x1e092
movl %esi, %ecx
movq %rbp, %rdi
cmpl %eax, %ecx
jne 0x1e092
movsd 0x8(%rdx), %xmm0
ucomisd 0x8(%r13), %xmm0
movq %rbp, %rdi
jne 0x1e092
jp 0x1e092
incq %rbx
cmpq %r12, %rbx
jne 0x1dffa
jmp 0x1e0e2
movq 0x26bf47(%rip), %rax    # 0x289fe0
movq (%rax), %rcx
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
leaq 0x212b9f(%rip), %r10    # 0x230c4d
movq 0x8(%rsp), %r9
jmp 0x1e084
movq 0x26bf24(%rip), %rax    # 0x289fe0
movq (%rax), %rcx
leaq 0x212b7e(%rip), %rdi    # 0x230c44
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
leaq 0x212b75(%rip), %r10    # 0x230c4d
movq 0x8(%rsp), %r9
jmp 0x1e00f
movq 0x28(%r9), %rcx
movq 0x18(%rcx), %rax
testq %rax, %rax
je 0x1e117
movq 0x28(%rcx), %rdx
xorl %ecx, %ecx
pushq $0x1
popq %rsi
movl 0x4(%rdx), %edi
xorl %r8d, %r8d
cmpq %r14, %rdi
sete %r8b
addl %r8d, %ecx
movl %esi, %edi
addq $0x10, %rdx
incl %esi
cmpq %rdi, %rax
ja 0x1e0f8
jmp 0x1e119
xorl %ecx, %ecx
cmpl 0x10(%rsp), %ecx
jne 0x1e134
incq %r14
movq 0x28(%r9), %rax
movl 0x38(%rax), %ecx
cmpq %rcx, %r14
jb 0x1dfcc
jmp 0x1e15e
movq 0x26bea5(%rip), %rax    # 0x289fe0
movq (%rax), %rcx
leaq 0x212b1a(%rip), %rdi    # 0x230c5f
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
leaq 0x212af6(%rip), %r10    # 0x230c4d
movq 0x8(%rsp), %r9
jmp 0x1e11f
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq