// File: /workspace/github_c_makefile_star2_O0/aquaxis[P]synverll/src/parser_ir_proc.c
// Function: print_proc_tree
int print_proc_tree(FILE *fp)
{
	PROC_TREE *now_proc_tree;

    fprintf(fp,"==============================\n");
    fprintf(fp,"Print - Proc Tree\n");
    fprintf(fp,"==============================\n");
    now_proc_tree = proc_tree_top;
    while(1){
        if(now_proc_tree == NULL) break;

		fprintf(fp,"Stage: %d\n", now_proc_tree->stage);

		if(now_proc_tree->seq_req.ena){
			if(now_proc_tree->seq_req.condision != NULL )	fprintf(fp," seq-c  ->\n%s\n", now_proc_tree->seq_req.condision);
			if(now_proc_tree->seq_req.body != NULL )		fprintf(fp," seq-b  ->\n%s\n", now_proc_tree->seq_req.body);
		}
		if(now_proc_tree->seq_wait.ena){
			if(now_proc_tree->seq_wait.condision != NULL )	fprintf(fp," wait-c ->\n%s\n", now_proc_tree->seq_wait.condision);
			if(now_proc_tree->seq_wait.body != NULL )		fprintf(fp," wait-b ->\n%s\n", now_proc_tree->seq_wait.body);
		}
		if(now_proc_tree->seq_exec.ena){
			if(now_proc_tree->seq_exec.condision != NULL )	fprintf(fp," exec-c ->\n%s\n", now_proc_tree->seq_exec.condision);
			if(now_proc_tree->seq_exec.body != NULL )		fprintf(fp," exec-b ->\n%s\n", now_proc_tree->seq_exec.body);
		}

        now_proc_tree = now_proc_tree->next_ptr;
    }

	fprintf(fp,"verilog_wire:\n%s\n", verilog_wire);

	fprintf(fp,"memory:\n");
	output_memory_tree(fp, 0);

    fprintf(fp,"==============================\n");

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x984d(%rip), %rsi      # 0x13704
movb $0x0, %al
callq 0x10e0
movq -0x8(%rbp), %rdi
leaq 0x9b7b(%rip), %rsi      # 0x13a44
movb $0x0, %al
callq 0x10e0
movq -0x8(%rbp), %rdi
leaq 0x9829(%rip), %rsi      # 0x13704
movb $0x0, %al
callq 0x10e0
movq 0xe677(%rip), %rax      # 0x18560
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x9ef9
jmp 0xa025
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %edx
leaq 0x9b4c(%rip), %rsi      # 0x13a57
movb $0x0, %al
callq 0x10e0
movq -0x10(%rbp), %rax
cmpl $0x0, 0x18(%rax)
je 0x9f68
movq -0x10(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x9f41
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rdx
leaq 0x9b28(%rip), %rsi      # 0x13a62
movb $0x0, %al
callq 0x10e0
movq -0x10(%rbp), %rax
cmpq $0x0, 0x30(%rax)
je 0x9f66
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdx
leaq 0x9b12(%rip), %rsi      # 0x13a71
movb $0x0, %al
callq 0x10e0
jmp 0x9f68
movq -0x10(%rbp), %rax
cmpl $0x0, 0x38(%rax)
je 0x9fbe
movq -0x10(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x9f97
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdx
leaq 0x9af0(%rip), %rsi      # 0x13a80
movb $0x0, %al
callq 0x10e0
movq -0x10(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x9fbc
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rdx
leaq 0x9ada(%rip), %rsi      # 0x13a8f
movb $0x0, %al
callq 0x10e0
jmp 0x9fbe
movq -0x10(%rbp), %rax
cmpl $0x0, 0x58(%rax)
je 0xa014
movq -0x10(%rbp), %rax
cmpq $0x0, 0x68(%rax)
je 0x9fed
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x68(%rax), %rdx
leaq 0x9ab8(%rip), %rsi      # 0x13a9e
movb $0x0, %al
callq 0x10e0
movq -0x10(%rbp), %rax
cmpq $0x0, 0x70(%rax)
je 0xa012
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rdx
leaq 0x9aa2(%rip), %rsi      # 0x13aad
movb $0x0, %al
callq 0x10e0
jmp 0xa014
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x9eed
movq -0x8(%rbp), %rdi
movq 0xe538(%rip), %rdx      # 0x18568
leaq 0x9a85(%rip), %rsi      # 0x13abc
movb $0x0, %al
callq 0x10e0
movq -0x8(%rbp), %rdi
leaq 0x9a85(%rip), %rsi      # 0x13ace
movb $0x0, %al
callq 0x10e0
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x7cf0
movq -0x8(%rbp), %rdi
leaq 0x969e(%rip), %rsi      # 0x13704
movb $0x0, %al
callq 0x10e0
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)