// File: /workspace/github_c_makefile_star2_O0/aquaxis[P]synverll/src/parser_ir_signal.c
// Function: print_signal_tree
int print_signal_tree(FILE *fp)
{
	SIGNAL_TREE *now_signal_tree;

    fprintf(fp,"==============================\n");
    fprintf(fp,"Print Signal\n");
    fprintf(fp,"==============================\n");
    now_signal_tree = signal_tree_top;
    while(now_signal_tree != NULL){
		fprintf(fp, "%s: ", now_signal_tree->label);
		switch(now_signal_tree->flag){
			case SIGNAL_FLAG_REG:
				fprintf(fp, "Reg, ");
				fprintf(fp, "width=%d,", now_signal_tree->width);
				fprintf(fp, "verilog=%s", now_signal_tree->verilog);
				break;
			case SIGNAL_FLAG_WIRE:
				fprintf(fp, "Wire, ");
				fprintf(fp, "width=%d,", now_signal_tree->width);
				fprintf(fp, "verilog=%s", now_signal_tree->verilog);
				break;
			case SIGNAL_FLAG_RAM:
				fprintf(fp, "RAM, ");
				fprintf(fp, "type=%s,", now_signal_tree->type);
				fprintf(fp, "verilog=%s", now_signal_tree->verilog);
				break;
			default:
				break;
		}
		fprintf(fp, "\n");

        now_signal_tree = now_signal_tree->next_ptr;
    }

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

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x5d8d(%rip), %rsi      # 0x13704
movb $0x0, %al
callq 0x10e0
movq -0x8(%rbp), %rdi
leaq 0x70f0(%rip), %rsi      # 0x14a79
movb $0x0, %al
callq 0x10e0
movq -0x8(%rbp), %rdi
leaq 0x5d69(%rip), %rsi      # 0x13704
movb $0x0, %al
callq 0x10e0
movq 0xabdf(%rip), %rax      # 0x18588
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xdafc
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdx
leaq 0x5e02(%rip), %rsi      # 0x137cd
xorl %eax, %eax
callq 0x10e0
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x14(%rbp)
subl $0x1, %eax
je 0xd9fe
jmp 0xd9e3
movl -0x14(%rbp), %eax
subl $0x2, %eax
je 0xda48
jmp 0xd9ed
movl -0x14(%rbp), %eax
subl $0x3, %eax
je 0xda8f
jmp 0xdad7
movq -0x8(%rbp), %rdi
leaq 0x707e(%rip), %rsi      # 0x14a87
movb $0x0, %al
callq 0x10e0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x20(%rax), %edx
leaq 0x706b(%rip), %rsi      # 0x14a8d
movb $0x0, %al
callq 0x10e0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdx
leaq 0x705b(%rip), %rsi      # 0x14a97
movb $0x0, %al
callq 0x10e0
jmp 0xdad9
movq -0x8(%rbp), %rdi
leaq 0x704f(%rip), %rsi      # 0x14aa2
movb $0x0, %al
callq 0x10e0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x20(%rax), %edx
leaq 0x7021(%rip), %rsi      # 0x14a8d
movb $0x0, %al
callq 0x10e0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdx
leaq 0x7011(%rip), %rsi      # 0x14a97
movb $0x0, %al
callq 0x10e0
jmp 0xdad9
movq -0x8(%rbp), %rdi
leaq 0x700f(%rip), %rsi      # 0x14aa9
movb $0x0, %al
callq 0x10e0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rdx
leaq 0x6ffb(%rip), %rsi      # 0x14aaf
movb $0x0, %al
callq 0x10e0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdx
leaq 0x6fc9(%rip), %rsi      # 0x14a97
movb $0x0, %al
callq 0x10e0
jmp 0xdad9
jmp 0xdad9
movq -0x8(%rbp), %rdi
leaq 0x74dc(%rip), %rsi      # 0x14fc0
movb $0x0, %al
callq 0x10e0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0xd9ad
movq -0x8(%rbp), %rdi
leaq 0x5bfd(%rip), %rsi      # 0x13704
movb $0x0, %al
callq 0x10e0
xorl %eax, %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)