// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/utils/processtab/tabparser.c
// Function: printASTTab
void 
printASTTab(ASTTab *tab, FILE *out)
	{
	int i, j, k;
	
    if (tab == 0) 
    	{
    	Fatal("'tab' parameter is null\n");
    	return;
    	}
    	
    indent(out); fprintf(out, "ASTTab\n");
    indentLevel++;
    indent(out); fprintf(out, "commandCount: %i\n", tab->commandCount);        
    for (i = 0; i < tab->commandCount; i++)
        {
        indent(out); fprintf(out, "ASTCommand\n");
        indentLevel++;
        indent(out); fprintf(out, "type: %i\n", tab->commands[i]->commandType); 
        if (tab->commands[i]->commandType == AttributeCommand)
            {
            indent(out); fprintf(out, "ASTAttribute (not supported)\n");
            indentLevel++;
            indent(out); fprintf(out, "name: %s\n", tab->commands[i]->un.attribute->name);  
            indent(out); fprintf(out, "value: %s\n", tab->commands[i]->un.attribute->value);  
            indentLevel--;
            }
        else if (tab->commands[i]->commandType == StaveCommand)
            {
            indent(out); fprintf(out, "ASTStave\n");
            indentLevel++;
            indent(out); fprintf(out, "courseCount: %i\n", tab->commands[i]->un.stave->courseCount);  
            for(j=0;j<tab->commands[i]->un.stave->courseCount;j++)
                {
                indent(out); fprintf(out, "ASTCourse\n");
                indentLevel++;
                indent(out); fprintf(out, "name: %s\n", tab->commands[i]->un.stave->courses[j]->name); 
                indent(out); fprintf(out, "measureCount: %i\n", tab->commands[i]->un.stave->courses[j]->measureCount);                
                for(k=0;k<tab->commands[i]->un.stave->courses[j]->measureCount;k++)
                    {
                    indent(out); fprintf(out, "ASTMeasure\n");
                    indentLevel++;
                    indent(out); fprintf(out, "events: %s\n", tab->commands[i]->un.stave->courses[j]->measures[k]->events);
                    indentLevel--;
                    }
                indentLevel--;
                }
              
            indent(out); fprintf(out, "timingCourse:\n");
            indentLevel++;
            indent(out); fprintf(out, "ASTCourse\n");
            indentLevel++;
            indent(out); fprintf(out, "measureCount: %i\n", tab->commands[i]->un.stave->timingCourse->measureCount);                
            for(k=0;k<tab->commands[i]->un.stave->timingCourse->measureCount;k++)
                {
                indent(out); fprintf(out, "ASTMeasure\n");
                indentLevel++;
                indent(out); fprintf(out, "events: %s\n", tab->commands[i]->un.stave->timingCourse->measures[k]->events);
                indentLevel--;
                }
            indentLevel--;
            indentLevel--;
            indentLevel--;
            }
        else if (tab->commands[i]->commandType == CommentCommand)
            {
            indent(out); fprintf(out, "Comment:\n");
            indentLevel++;
            indent(out); fprintf(out, "%s\n", tab->commands[i]->un.comment);    
            indentLevel--;
            }
        else
            {
            Fatal("*** command type %i not recognized! ***\n", tab->commands[i]->commandType);
            return;
            }

        indentLevel--;
        }
    indentLevel--;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3e94
movq %rsi, %rbx
movq %rdi, %r12
movq %rsi, %rdi
callq 0x3ee9
leaq 0x3899(%rip), %rdi      # 0x727a
movl $0x7, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
incl 0x6783(%rip)            # 0xa17c
movq %rbx, %rdi
callq 0x3ee9
movl 0x8(%r12), %edx
leaq 0x3875(%rip), %rsi      # 0x7282
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1130
cmpl $0x0, 0x8(%r12)
jle 0x3eb0
leaq 0x386a(%rip), %r15      # 0x7294
leaq 0x386f(%rip), %r14      # 0x72a0
xorl %ebp, %ebp
movq %r12, (%rsp)
movq %rbx, %rdi
callq 0x3ee9
movl $0xb, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x11c0
incl 0x6722(%rip)            # 0xa17c
movq %rbx, %rdi
callq 0x3ee9
movq (%r12), %rax
movq (%rax,%rbp,8), %rax
movl (%rax), %edx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1130
movq (%r12), %rax
movq (%rax,%rbp,8), %rax
movl (%rax), %esi
cmpl $0x3, %esi
je 0x3e08
cmpl $0x2, %esi
je 0x3b10
cmpl $0x1, %esi
jne 0x3ecd
movq %rbx, %rdi
callq 0x3ee9
movl $0x1d, %esi
movl $0x1, %edx
leaq 0x37f7(%rip), %rdi      # 0x72aa
movq %rbx, %rcx
callq 0x11c0
incl 0x66bb(%rip)            # 0xa17c
movq %rbx, %rdi
callq 0x3ee9
movq (%r12), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdx
movq %rbx, %rdi
leaq 0x37e6(%rip), %rsi      # 0x72c8
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3ee9
movq (%r12), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdx
movq %rbx, %rdi
leaq 0x37c7(%rip), %rsi      # 0x72d2
jmp 0x3e4d
movq %rbx, %rdi
callq 0x3ee9
movl $0x9, %esi
movl $0x1, %edx
leaq 0x37b4(%rip), %rdi      # 0x72dd
movq %rbx, %rcx
callq 0x11c0
incl 0x6645(%rip)            # 0xa17c
movq %rbx, %rdi
callq 0x3ee9
movq (%r12), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rax
movl 0x8(%rax), %edx
movq %rbx, %rdi
leaq 0x378f(%rip), %rsi      # 0x72e7
xorl %eax, %eax
callq 0x1130
movq (%r12), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rax
cmpl $0x0, 0x8(%rax)
jle 0x3ce0
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x3ee9
movl $0xa, %esi
movl $0x1, %edx
leaq 0x3767(%rip), %rdi      # 0x72f8
movq %rbx, %rcx
callq 0x11c0
incl 0x65dd(%rip)            # 0xa17c
movq %rbx, %rdi
callq 0x3ee9
movq (%r12), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%r15,8), %rax
movq (%rax), %rdx
movq %rbx, %rdi
leaq 0x3701(%rip), %rsi      # 0x72c8
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3ee9
movq (%r12), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%r15,8), %rax
movl 0x10(%rax), %edx
movq %rbx, %rdi
leaq 0x370d(%rip), %rsi      # 0x7303
xorl %eax, %eax
callq 0x1130
movq (%r12), %rax
movq %rbp, %r13
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rcx
movq (%rcx,%r15,8), %rcx
cmpl $0x0, 0x10(%rcx)
jle 0x3cb8
xorl %r12d, %r12d
leaq 0x36fa(%rip), %r14      # 0x7321
movq (%rsp), %rbp
movq %rbx, %rdi
callq 0x3ee9
movl $0xb, %esi
movl $0x1, %edx
leaq 0x36d1(%rip), %rdi      # 0x7315
movq %rbx, %rcx
callq 0x11c0
incl 0x652a(%rip)            # 0xa17c
movq %rbx, %rdi
callq 0x3ee9
movq (%rbp), %rax
movq (%rax,%r13,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq (%rax,%r12,8), %rax
movq (%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1130
movl 0x64f1(%rip), %ecx      # 0xa17c
decl %ecx
movl %ecx, 0x64e9(%rip)      # 0xa17c
incq %r12
movq (%rbp), %rax
movq (%rax,%r13,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdx
movq (%rdx,%r15,8), %rdx
movslq 0x10(%rdx), %rdx
cmpq %rdx, %r12
jl 0x3c2b
jmp 0x3cc2
movl 0x64be(%rip), %ecx      # 0xa17c
movq (%rsp), %rbp
decl %ecx
movl %ecx, 0x64b2(%rip)      # 0xa17c
incq %r15
movslq 0x8(%rax), %rax
cmpq %rax, %r15
movq %rbp, %r12
movq %r13, %rbp
jl 0x3b78
movq %rbx, %rdi
callq 0x3ee9
movl $0xe, %esi
movl $0x1, %edx
leaq 0x3634(%rip), %rdi      # 0x732d
movq %rbx, %rcx
callq 0x11c0
incl 0x6475(%rip)            # 0xa17c
movq %rbx, %rdi
callq 0x3ee9
movl $0xa, %esi
movl $0x1, %edx
leaq 0x35d8(%rip), %rdi      # 0x72f8
movq %rbx, %rcx
callq 0x11c0
incl 0x644e(%rip)            # 0xa17c
movq %rbx, %rdi
callq 0x3ee9
movq (%r12), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movl 0x10(%rax), %edx
movq %rbx, %rdi
leaq 0x35b0(%rip), %rsi      # 0x7303
xorl %eax, %eax
callq 0x1130
movq (%r12), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
cmpl $0x0, 0x10(%rax)
jle 0x3e5e
xorl %r15d, %r15d
leaq 0x3597(%rip), %r13      # 0x7315
leaq 0x359c(%rip), %r14      # 0x7321
movq (%rsp), %r12
movq %rbx, %rdi
callq 0x3ee9
movl $0xb, %esi
movl $0x1, %edx
movq %r13, %rdi
movq %rbx, %rcx
callq 0x11c0
incl 0x63d0(%rip)            # 0xa17c
movq %rbx, %rdi
callq 0x3ee9
movq (%r12), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq (%rax,%r15,8), %rax
movq (%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1130
movl 0x639a(%rip), %eax      # 0xa17c
decl %eax
movl %eax, 0x6392(%rip)      # 0xa17c
incq %r15
movq (%r12), %rcx
movq (%rcx,%rbp,8), %rcx
movq 0x8(%rcx), %rcx
movq 0x10(%rcx), %rcx
movslq 0x10(%rcx), %rcx
cmpq %rcx, %r15
jl 0x3d89
jmp 0x3e68
movq %rbx, %rdi
callq 0x3ee9
movl $0x9, %esi
movl $0x1, %edx
leaq 0x351b(%rip), %rdi      # 0x733c
movq %rbx, %rcx
callq 0x11c0
incl 0x634d(%rip)            # 0xa17c
movq %rbx, %rdi
callq 0x3ee9
movq (%r12), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rdx
movq %rbx, %rdi
leaq 0x2465(%rip), %rsi      # 0x62b2
xorl %eax, %eax
callq 0x1130
movl 0x6322(%rip), %eax      # 0xa17c
decl %eax
jmp 0x3e79
movl 0x6318(%rip), %eax      # 0xa17c
movq (%rsp), %r12
addl $-0x3, %eax
leaq 0x3422(%rip), %r15      # 0x7294
leaq 0x3427(%rip), %r14      # 0x72a0
decl %eax
movl %eax, 0x62fb(%rip)      # 0xa17c
incq %rbp
movslq 0x8(%r12), %rcx
cmpq %rcx, %rbp
jl 0x3a37
jmp 0x3eb6
leaq 0x33c6(%rip), %rdi      # 0x7261
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5138
movl 0x62c6(%rip), %eax      # 0xa17c
decl %eax
movl %eax, 0x62be(%rip)      # 0xa17c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3472(%rip), %rdi      # 0x7346
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5138