// File: /workspace/github_c_makefile_star2_O2/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 0x39b2
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x39ea
leaq 0x2cca(%rip), %rdi      # 0x627a
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x11c0
incl 0x5bb8(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x39ea
movl 0x8(%r14), %edx
leaq 0x2cab(%rip), %rsi      # 0x6282
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1130
leaq 0x2cac(%rip), %r12      # 0x6294
leaq 0x2cb1(%rip), %r13      # 0x62a0
leaq 0x2d2b(%rip), %rbp      # 0x6321
xorl %r15d, %r15d
movslq 0x8(%r14), %rax
cmpq %rax, %r15
jge 0x399d
movq %rbx, %rdi
callq 0x39ea
movq %r12, %rdi
pushq $0xb
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x11c0
incl 0x5b57(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x39ea
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movl (%rax), %edx
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x1130
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movl (%rax), %esi
cmpl $0x3, %esi
je 0x3934
cmpl $0x2, %esi
je 0x36cc
cmpl $0x1, %esi
jne 0x39ce
movq %rbx, %rdi
callq 0x39ea
leaq 0x2c38(%rip), %rdi      # 0x62aa
pushq $0x1d
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x11c0
incl 0x5af6(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x39ea
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdx
movq %rbx, %rdi
leaq 0x2c22(%rip), %rsi      # 0x62c8
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x39ea
movq (%r14), %rax
movq (%rax,%r15,8), %rax
addq $0x8, %rax
leaq 0x2c0b(%rip), %rsi      # 0x62d2
jmp 0x3971
movq %rbx, %rdi
callq 0x39ea
leaq 0x2c02(%rip), %rdi      # 0x62dd
pushq $0x9
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x11c0
incl 0x5a8d(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x39ea
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movl 0x8(%rax), %edx
movq %rbx, %rdi
leaq 0x2bd8(%rip), %rsi      # 0x62e7
xorl %eax, %eax
callq 0x1130
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
xorl %r13d, %r13d
movslq 0x8(%rax), %r12
movq %rbx, %rdi
callq 0x39ea
cmpq %r12, %r13
jge 0x383c
leaq 0x2bb8(%rip), %rdi      # 0x62f8
pushq $0xa
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x11c0
incl 0x5a28(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x39ea
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rax
movq (%rax), %rdx
movq %rbx, %rdi
leaq 0x2b4d(%rip), %rsi      # 0x62c8
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x39ea
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rax
movl 0x10(%rax), %edx
movq %rbx, %rdi
leaq 0x2b5a(%rip), %rsi      # 0x6303
xorl %eax, %eax
callq 0x1130
xorl %r12d, %r12d
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rcx
movq (%rcx,%r13,8), %rcx
movslq 0x10(%rcx), %rcx
cmpq %rcx, %r12
jge 0x382e
movq %rbx, %rdi
callq 0x39ea
leaq 0x2b38(%rip), %rdi      # 0x6315
pushq $0xb
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x11c0
incl 0x598b(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x39ea
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rax
movq 0x8(%rax), %rax
movq (%rax,%r12,8), %rax
movq (%rax), %rdx
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x1130
decl 0x5953(%rip)            # 0x917c
incq %r12
jmp 0x37b3
decl 0x5948(%rip)            # 0x917c
incq %r13
jmp 0x3724
leaq 0x2aea(%rip), %rdi      # 0x632d
pushq $0xe
popq %rsi
pushq $0x1
popq %r12
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
incl 0x5921(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x39ea
leaq 0x2a8e(%rip), %rdi      # 0x62f8
pushq $0xa
popq %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
incl 0x58fe(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x39ea
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movl 0x10(%rax), %edx
movq %rbx, %rdi
leaq 0x2a61(%rip), %rsi      # 0x6303
xorl %eax, %eax
callq 0x1130
xorl %r12d, %r12d
leaq 0x29ed(%rip), %r13      # 0x62a0
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movslq 0x10(%rax), %rax
cmpq %rax, %r12
jge 0x3928
movq %rbx, %rdi
callq 0x39ea
leaq 0x2a3b(%rip), %rdi      # 0x6315
pushq $0xb
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x11c0
incl 0x588e(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x39ea
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq (%rax,%r12,8), %rax
movq (%rax), %rdx
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x1130
decl 0x5859(%rip)            # 0x917c
incq %r12
jmp 0x38b3
pushq $-0x3
popq %rax
leaq 0x2962(%rip), %r12      # 0x6294
jmp 0x3985
movq %rbx, %rdi
callq 0x39ea
leaq 0x29f9(%rip), %rdi      # 0x633c
pushq $0x9
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x11c0
incl 0x5825(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x39ea
leaq (,%r15,8), %rax
addq (%r14), %rax
leaq 0x1941(%rip), %rsi      # 0x52b2
movq (%rax), %rax
movq 0x8(%rax), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1130
pushq $-0x1
popq %rax
movl 0x57f1(%rip), %ecx      # 0x917c
addl %ecx, %eax
decl %eax
movl %eax, 0x57e7(%rip)      # 0x917c
incq %r15
jmp 0x35f9
decl 0x57d9(%rip)            # 0x917c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28a8(%rip), %rdi      # 0x6261
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4610
leaq 0x2971(%rip), %rdi      # 0x6346
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4610