// File: /workspace/github_c_makefile_star2_O1/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 0x3e31
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x3e69
leaq 0x28e2(%rip), %rdi      # 0x627a
movl $0x7, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
incl 0x57cc(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x3e69
movl 0x8(%r14), %edx
leaq 0x28bf(%rip), %rsi      # 0x6282
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1130
cmpl $0x0, 0x8(%r14)
jle 0x3e1c
leaq 0x28b5(%rip), %r12      # 0x6294
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x3e69
movl $0xb, %esi
movl $0x1, %edx
movq %r12, %rdi
movq %rbx, %rcx
callq 0x11c0
incl 0x5777(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x3e69
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movl (%rax), %edx
movq %rbx, %rdi
leaq 0x2880(%rip), %rsi      # 0x62a0
xorl %eax, %eax
callq 0x1130
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movl (%rax), %esi
cmpl $0x3, %esi
je 0x3d9a
cmpl $0x2, %esi
je 0x3ab4
cmpl $0x1, %esi
jne 0x3e4d
movq %rbx, %rdi
callq 0x3e69
movl $0x1d, %esi
movl $0x1, %edx
leaq 0x284a(%rip), %rdi      # 0x62aa
movq %rbx, %rcx
callq 0x11c0
incl 0x570e(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x3e69
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdx
movq %rbx, %rdi
leaq 0x283a(%rip), %rsi      # 0x62c8
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3e69
movq (%r14), %rax
movq (%rax,%r15,8), %rax
addq $0x8, %rax
leaq 0x2823(%rip), %rsi      # 0x62d2
jmp 0x3ddb
movq %rbx, %rdi
callq 0x3e69
movl $0x9, %esi
movl $0x1, %edx
leaq 0x2810(%rip), %rdi      # 0x62dd
movq %rbx, %rcx
callq 0x11c0
incl 0x56a1(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x3e69
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movl 0x8(%rax), %edx
movq %rbx, %rdi
leaq 0x27ec(%rip), %rsi      # 0x62e7
xorl %eax, %eax
callq 0x1130
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
cmpl $0x0, 0x8(%rax)
jle 0x3c69
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %esi
movl $0x1, %edx
leaq 0x27c6(%rip), %rdi      # 0x62f8
movq %rbx, %rcx
callq 0x11c0
incl 0x563c(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x3e69
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %rax
movq (%rax), %rdx
movq %rbx, %rdi
leaq 0x2761(%rip), %rsi      # 0x62c8
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3e69
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %rax
movl 0x10(%rax), %edx
movq %rbx, %rdi
leaq 0x276e(%rip), %rsi      # 0x6303
xorl %eax, %eax
callq 0x1130
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %rax
cmpl $0x0, 0x10(%rax)
movq %r14, %r13
leaq 0x2765(%rip), %r14      # 0x6321
jle 0x3c44
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x3e69
movl $0xb, %esi
movl $0x1, %edx
leaq 0x2737(%rip), %rdi      # 0x6315
movq %rbx, %rcx
callq 0x11c0
incl 0x5590(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x3e69
movq (%r13), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%rbp,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
decl 0x5557(%rip)            # 0x917c
incq %r12
movq (%r13), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %rax
movslq 0x10(%rax), %rax
cmpq %rax, %r12
jl 0x3bc5
decl 0x5532(%rip)            # 0x917c
incq %rbp
movq (%r13), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movslq 0x8(%rax), %rax
cmpq %rax, %rbp
movq %r13, %r14
jl 0x3b19
movq %rbx, %rdi
callq 0x3e69
movl $0xe, %esi
movl $0x1, %edx
leaq 0x26ab(%rip), %rdi      # 0x632d
movq %rbx, %rcx
callq 0x11c0
incl 0x54ec(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %esi
movl $0x1, %edx
leaq 0x264f(%rip), %rdi      # 0x62f8
movq %rbx, %rcx
callq 0x11c0
incl 0x54c5(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x3e69
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movl 0x10(%rax), %edx
movq %rbx, %rdi
leaq 0x2628(%rip), %rsi      # 0x6303
xorl %eax, %eax
callq 0x1130
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
cmpl $0x0, 0x10(%rax)
jle 0x3e13
xorl %r12d, %r12d
leaq 0x260b(%rip), %rbp      # 0x6315
movq %r14, %r13
leaq 0x260d(%rip), %r14      # 0x6321
movq %rbx, %rdi
callq 0x3e69
movl $0xb, %esi
movl $0x1, %edx
movq %rbp, %rdi
movq %rbx, %rcx
callq 0x11c0
incl 0x5445(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x3e69
movq (%r13), %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 %r14, %rsi
xorl %eax, %eax
callq 0x1130
decl 0x540f(%rip)            # 0x917c
incq %r12
movq (%r13), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movslq 0x10(%rax), %rax
cmpq %rax, %r12
jl 0x3d14
leaq 0x2504(%rip), %r12      # 0x6294
movq %r13, %r14
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
jmp 0x3df1
movq %rbx, %rdi
callq 0x3e69
movl $0x9, %esi
movl $0x1, %edx
leaq 0x2589(%rip), %rdi      # 0x633c
movq %rbx, %rcx
callq 0x11c0
incl 0x53bb(%rip)            # 0x917c
movq %rbx, %rdi
callq 0x3e69
leaq (,%r15,8), %rax
addq (%r14), %rax
leaq 0x14d7(%rip), %rsi      # 0x52b2
movq (%rax), %rax
movq 0x8(%rax), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1130
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl 0x5385(%rip), %eax      # 0x917c
addl %ecx, %eax
decl %eax
movl %eax, 0x537b(%rip)      # 0x917c
incq %r15
movslq 0x8(%r14), %rax
cmpq %rax, %r15
jl 0x39e2
jmp 0x3e1c
leaq 0x247a(%rip), %r12      # 0x6294
jmp 0x3df1
decl 0x535a(%rip)            # 0x917c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2429(%rip), %rdi      # 0x6261
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4b44
leaq 0x24f2(%rip), %rdi      # 0x6346
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4b44