// File: /workspace/github_c_makefile_star2_O2/pipde[P]deos-songlib/utils/processtab/processtab.c
// Function: outputSonglibFile
static void 
outputSonglibFile(Composition *c, FILE *out, char *baseName, char *programName, char *version)
    {  
    int i, j, k, noteCount = 0;
    Part *part;
    Section *section;
    Measure *measure;
    NoteInstance *noteInstance;
    ASTAttribute *attribute;
    char *noteLengthString, *voiceName;
    bool usedStdAttribute;
    
    if (c == 0 || c->partCount == 0)
        {
        Fatal("expected composition with at least one part\n");
        return;
        }
    
    /* includes and defines */
    
    indent(out); fprintf(out, "/*\n");
    indent(out); fprintf(out, "      This file was generated by %s %s.\n", PROGRAM_NAME, PROGRAM_VERSION);
    indent(out); fprintf(out, " */\n");
    indent(out); fprintf(out, "\n");
    indent(out); fprintf(out, "#include <stdio.h>\n");
    indent(out); fprintf(out, "#include <songlib/util.h>\n");
    indent(out); fprintf(out, "#include <songlib/songlib.h>\n");
    indent(out); fprintf(out, "#include <tab/tabproc.h>\n");
    indent(out); fprintf(out, "\n");
    indent(out); fprintf(out, "/* attribute includes */\n");
    
    for (i = 0; i < c->attributeNameCount; i++)
        {
        usedStdAttribute = false;
        for (j = 0; j < STD_ATTRIBUTE_COUNT; j++)
        	{
        	if (strcmp(c->attributeNames[i], stdAttributes[j]) == 0)
        		{
	        	indent(out); fprintf(out, "#include <tab/%s.h>\n", c->attributeNames[i]);
        		usedStdAttribute = true;
        		break;
        		}
	        }
        if (!usedStdAttribute)
        	{
        	indent(out); fprintf(out, "#include \"%s.h\"\n", c->attributeNames[i]);
        	}
        }

    indent(out); fprintf(out, "\n");     
    indent(out); fprintf(out, "char *PROGRAM_NAME = \"%s\";\n", programName);
    indent(out); fprintf(out, "char *PROGRAM_VERSION = \"%s\";\n", version);    
    indent(out); fprintf(out, "\n");
    indent(out); fprintf(out, "/**** Part definitions ****/\n");
    indent(out); fprintf(out, "\n");
    indent(out); fprintf(out, "#define PART_COUNT %i\n", c->partCount);
    indent(out); fprintf(out, "\n");
    for (i = 0; i < c->partCount; i++)
        {
        part = c->parts[i];
        indent(out); fprintf(out, "#define PART_%s %d\n", part->voiceName, i);
        }
    indent(out); fprintf(out, "\n");
    indent(out); fprintf(out, "Part **parts = 0;\n");    
    indent(out); fprintf(out, "\n");    
    indent(out); fprintf(out, "void\n");    
    indent(out); fprintf(out, "initParts()\n");
    indentLevel++;
    indent(out); fprintf(out, "{\n");
    indent(out); fprintf(out, "int i;\n");
    indent(out); fprintf(out, "parts = (Part **)New(sizeof(Part *) * %i);\n", c->partCount);
   
    /* loop through all parts */
    for(i = 0; i < c->partCount; i++)
        {
        part = c->parts[i];
        voiceName = part->voiceName;
        noteCount = 0;
        for(j = 0; j < part->measureCount;j++)
            {
            measure = part->measures[j];
            noteCount += measure->noteInstanceCount;
            }
        indent(out); fprintf(out, "\n");
        indent(out); fprintf(out, "parts[PART_%s] = part(\"%s\", %i, %i);\n", voiceName, voiceName, noteCount, c->sectionCount);
        indent(out); fprintf(out, "i = 0;\n");
        
        for(j = 0; j < part->measureCount;j++)
            {
            measure = part->measures[j];
            
            /* If measure corresponds to section, write section code */
            for (k = 0; k < c->sectionCount; k++)
            	{
            	if (c->sections[k]->measureNumber == j)
		        	{
					indent(out); fprintf(out, "/* Section %i (part %s) */\n", k, voiceName);
					indent(out); fprintf(out, "parts[PART_%s]->sections[%i] = section(i);\n", voiceName, k);
		        	}
            	}
            	
            /* Write measure code */
            indent(out); fprintf(out, "/* Measure %i (part %s) */\n", j, voiceName);
            
            for(k = 0; k < measure->noteInstanceCount;k++)
                {                
                noteInstance = measure->noteInstances[k];
                noteLengthString = getNoteLengthString(noteInstance->duration);
                
                if (noteInstance->noteName == 0) // REST
                    {
                    indent(out); fprintf(out, "parts[PART_%s]->notes[i++] = note(%s, REST);\n", 
                                    voiceName, noteLengthString);
                    }
                else // NOTE
                    {
                    indent(out); fprintf(out, "parts[PART_%s]->notes[i++] = note(%s, '%c');\n", 
                                    voiceName, noteLengthString, noteInstance->noteName);
                    }
                }
            }
        }
        
    indent(out); fprintf(out, "}\n");
    indentLevel--;
    indent(out); fprintf(out, "\n");
    
    /* main function definition */
    
    indent(out); fprintf(out, "/**** Main ****/\n");
    
    indent(out); fprintf(out, "int\n");
    indent(out); fprintf(out, "main()\n");
    indentLevel++;    
    indent(out); fprintf(out, "{\n");
    indent(out); fprintf(out, "initParts();\n");
    indent(out); fprintf(out, "int location, noteNumber, partIndex;\n");
    indent(out); fprintf(out, "Part *part;\n");
        
    for (i = 0; i < c->attributeNameCount; i++)
        {
        for (j = 0; j < c->sectionCount;j++)
            {
            section = c->sections[j];            
            for (k = 0; k < section->attributeCount; k++)
                {
                attribute = section->attributes[k];
                if (strcmp(c->attributeNames[i], attribute->name) != 0) continue;
                
                    
                indent(out); fprintf(out, "setupProcessor_%s(\n", attribute->name);
                indentLevel++;
                indent(out); fprintf(out, "%i, // attribute index\n", attribute->index);
                indent(out); fprintf(out, "%i, // section number\n", j);
                indent(out); fprintf(out, "json_parse(\n");
                indentLevel++;
                writeEscapedJsonString(out, attribute->value);
                indent(out); fprintf(out, ")\n");
                indentLevel--;
                indent(out); fprintf(out, ");\n");
                indentLevel--;
                }
            }
        }
        
    indent(out); fprintf(out, "songInit();\n");
    indent(out); fprintf(out, "\n");

    indent(out); fprintf(out, "setStride(0.05);\n");
    indent(out); fprintf(out, "setSustain(0.99995);\n");
    indent(out); fprintf(out, "setPrimaryEmphasis(1);\n");
    indent(out); fprintf(out, "setSecondaryEmphasis(1);\n");
    indent(out); fprintf(out, "setTempo(80);\n");
    indent(out); fprintf(out, "setTime(4,4);\n");
    indent(out); fprintf(out, "setUseRandomSampling(true);\n");
    indent(out); fprintf(out, "\n");
    indent(out); fprintf(out, "openOutput(\"%s.rra\",0,0);\n", baseName);
    indent(out); fprintf(out, "\n");
    indent(out); fprintf(out, "/* set beginning location for each part */\n");
    indent(out); fprintf(out, "\n"); 
    indent(out); fprintf(out, "location = getLocation();\n");
    indent(out); fprintf(out, "\n"); 
    indent(out); fprintf(out, "/* process each part */\n");
    indent(out); fprintf(out, "\n");         

    indent(out); fprintf(out, "for (partIndex = 0; partIndex < PART_COUNT; partIndex++)\n");
    indentLevel++;
    indent(out); fprintf(out, "{\n");
    indent(out); fprintf(out, "setLocation(location);\n");
    indent(out); fprintf(out, "part = parts[partIndex];\n");
    indent(out); fprintf(out, "\n");
    indent(out); fprintf(out, "/* run preprocessors */\n");
        
    for (j = 0; j < c->sectionCount;j++)
        {
        section = c->sections[j];            
        for (k = 0; k < section->attributeCount; k++)
            {
            attribute = section->attributes[k];      
            indent(out); fprintf(out, "preProcess_%s(%i, part);\n", attribute->name, attribute->index);
            }
        }
        
    indent(out); fprintf(out, "\n"); 
    indent(out); fprintf(out, "for (noteNumber = 0; noteNumber < part->noteCount; noteNumber++)\n");
    indentLevel++;
    indent(out); fprintf(out, "{\n"); 
    indent(out); fprintf(out, "/* pre-render notes */\n");
    
    for (j = 0; j < c->sectionCount;j++)
        {
        section = c->sections[j];            
        for (k = 0; k < section->attributeCount; k++)
            {
            attribute = section->attributes[k];      
            indent(out); fprintf(out, "preRenderNote_%s(%i, part, noteNumber);\n", 
                        attribute->name, attribute->index);
            }
        }
    indent(out); fprintf(out, "\n");
    indent(out); fprintf(out, "/* render notes */\n");
    
    for (j = 0; j < c->sectionCount;j++)
        {
        section = c->sections[j];            
        for (k = 0; k < section->attributeCount; k++)
            {
            attribute = section->attributes[k];      
            indent(out); fprintf(out, "renderNote_%s(%i, part, noteNumber);\n", 
                        attribute->name, attribute->index);
            }
        }
    indent(out); fprintf(out, "}\n");
    indentLevel--;
    indent(out); fprintf(out, "\n"); 
    indent(out); fprintf(out, "/* run postprocessors */\n");
        
    for (j = 0; j < c->sectionCount;j++)
        {
        section = c->sections[j];            
        for (k = 0; k < section->attributeCount; k++)
            {
            attribute = section->attributes[k];      
            indent(out); fprintf(out, "postProcess_%s(%i, part);\n", attribute->name, attribute->index);
            }
        }
        
    indent(out); fprintf(out, "}\n");
    indentLevel--;
    
    indent(out); fprintf(out, "\n");
    indent(out); fprintf(out, "closeOutput();\n");
    indent(out); fprintf(out, "\n");
    indent(out); fprintf(out, "return 0;\n");
    indent(out); fprintf(out, "}\n");
    indentLevel--;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
testq %rdi, %rdi
je 0x1b93
movq %rdi, %r14
cmpl $0x0, 0x8(%rdi)
je 0x1b93
movq %rsi, %rbx
movq %rcx, 0x10(%rsp)
movq %r8, 0x8(%rsp)
movq %rdx, 0x30(%rsp)
movq %rsi, %rdi
callq 0x39ea
leaq 0x3a1b(%rip), %rdi      # 0x5426
pushq $0x3
popq %rsi
pushq $0x1
popq %r12
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
movq 0x76d4(%rip), %rdx      # 0x9100
movq 0x76d5(%rip), %rcx      # 0x9108
leaq 0x39f0(%rip), %rsi      # 0x542a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x39ea
leaq 0x3c15(%rip), %rdi      # 0x5668
pushq $0x4
popq %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
pushq $0xa
popq %rbp
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x39ce(%rip), %rdi      # 0x5453
pushq $0x13
popq %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x39c5(%rip), %rdi      # 0x5467
pushq $0x1a
popq %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x39c3(%rip), %rdi      # 0x5482
pushq $0x1d
popq %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x39c4(%rip), %rdi      # 0x54a0
pushq $0x19
popq %r13
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x39ab(%rip), %rdi      # 0x54ba
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x39c5(%rip), %r13      # 0x54e9
leaq 0x75f5(%rip), %rbp      # 0x9120
xorl %r15d, %r15d
movq %r14, (%rsp)
movslq 0x28(%r14), %rax
cmpq %rax, %r15
jge 0x1baf
movq 0x20(%r14), %rax
movq (%rax,%r15,8), %r12
xorl %esi, %esi
leaq 0x14(%rsi), %r14
cmpq $0x50, %r14
je 0x1b6a
addq %rbp, %rsi
movq %r12, %rdi
callq 0x1110
movq %r14, %rsi
testl %eax, %eax
jne 0x1b45
leaq 0x396c(%rip), %r12      # 0x54d4
jmp 0x1b6d
movq %r13, %r12
movq %rbx, %rdi
callq 0x39ea
movq (%rsp), %r14
movq 0x20(%r14), %rax
movq (%rax,%r15,8), %rdx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1130
incq %r15
jmp 0x1b32
leaq 0x385f(%rip), %rdi      # 0x53f9
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4610
movq %rbx, %rdi
callq 0x39ea
pushq $0xa
popq %rbp
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3927(%rip), %rsi      # 0x54fa
movq %rbx, %rdi
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x39ea
leaq 0x3925(%rip), %rsi      # 0x5516
movq %rbx, %rdi
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x39ea
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3914(%rip), %rdi      # 0x5535
pushq $0x1d
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
movl 0x8(%r14), %edx
leaq 0x38ff(%rip), %rsi      # 0x5553
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x39ea
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
leaq 0x38f3(%rip), %rbp      # 0x556a
xorl %r15d, %r15d
movq %r14, %r13
movslq 0x8(%r13), %rax
cmpq %rax, %r15
jge 0x1cb0
movq (%r13), %rax
movq (%rax,%r15,8), %r12
movq %rbx, %rdi
callq 0x39ea
movq 0x10(%r12), %rdx
movq %rbx, %rdi
movq %rbp, %rsi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x1130
incq %r15
jmp 0x1c7d
movq %rbx, %rdi
callq 0x39ea
pushq $0xa
popq %rbp
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x38aa(%rip), %rdi      # 0x557e
pushq $0x12
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x388a(%rip), %rdi      # 0x5591
pushq $0x5
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3873(%rip), %rdi      # 0x5597
pushq $0xc
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x7443(%rip), %rax      # 0x917c
incl (%rax)
movq %rbx, %rdi
callq 0x39ea
leaq 0x385a(%rip), %rdi      # 0x55a4
pushq $0x2
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3840(%rip), %rdi      # 0x55a7
pushq $0x7
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
movl 0x8(%r13), %edx
leaq 0x3827(%rip), %rsi      # 0x55af
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1130
xorl %ecx, %ecx
movslq 0x8(%r13), %rax
cmpq %rax, %rcx
jge 0x2122
movq (%r13), %rax
movq %rcx, 0x18(%rsp)
movq (%rax,%rcx,8), %r15
movq 0x10(%r15), %rax
movq %rax, 0x8(%rsp)
movl 0x8(%r15), %eax
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
xorl %r14d, %r14d
cmpq %rcx, %rax
je 0x1dda
movq (%r15), %rdx
movq (%rdx,%rcx,8), %rdx
addl 0x8(%rdx), %r14d
incq %rcx
jmp 0x1dc5
movq %rbx, %rdi
callq 0x39ea
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
movl 0x18(%r13), %r9d
movq %rbx, %rdi
leaq 0x37d8(%rip), %rsi      # 0x55db
movq 0x8(%rsp), %rcx
movq %rcx, %rdx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x39ea
leaq 0x37dd(%rip), %rdi      # 0x5601
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x11c0
xorl %r14d, %r14d
movq %r15, 0x20(%rsp)
movslq 0x8(%r15), %rax
cmpq %rax, %r14
jge 0x2115
movq (%r15), %rax
movq (%rax,%r14,8), %r15
xorl %r12d, %r12d
movq %r14, 0x10(%rsp)
movslq 0x18(%r13), %rax
cmpq %rax, %r12
jge 0x1ebc
movq 0x10(%r13), %rax
movq (%rax,%r12,8), %rax
movl 0xc(%rax), %eax
cmpq %rax, %r14
jne 0x1eb7
movq %rbx, %rdi
callq 0x39ea
movq %rbx, %rdi
leaq 0x3788(%rip), %rsi      # 0x5609
movl %r12d, %edx
movq 0x8(%rsp), %r14
movq %r14, %rcx
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x39ea
movq %rbx, %rdi
leaq 0x3780(%rip), %rsi      # 0x5625
movq %r14, %rdx
movl %r12d, %ecx
xorl %eax, %eax
callq 0x1130
movq 0x10(%rsp), %r14
incq %r12
jmp 0x1e56
movq %rbx, %rdi
callq 0x39ea
movq %rbx, %rdi
leaq 0x3783(%rip), %rsi      # 0x5651
movl %r14d, %edx
movq 0x8(%rsp), %rcx
xorl %eax, %eax
callq 0x1130
xorl %r13d, %r13d
movslq 0x8(%r15), %rax
cmpq %rax, %r13
jge 0x20ff
movq (%r15), %rax
movq (%rax,%r13,8), %r14
movsd 0x8(%r14), %xmm0
ucomisd 0x3176(%rip), %xmm0     # 0x5078
leaq 0x3b43(%rip), %r12      # 0x5a4c
jne 0x1f11
jnp 0x20af
ucomisd 0x3167(%rip), %xmm0     # 0x5080
leaq 0x3b45(%rip), %r12      # 0x5a65
jne 0x1f28
jnp 0x20af
ucomisd 0x3158(%rip), %xmm0     # 0x5088
leaq 0x3b44(%rip), %r12      # 0x5a7b
jne 0x1f3f
jnp 0x20af
ucomisd 0x3149(%rip), %xmm0     # 0x5090
leaq 0x3b40(%rip), %r12      # 0x5a8e
jne 0x1f56
jnp 0x20af
ucomisd 0x313a(%rip), %xmm0     # 0x5098
leaq 0x3b3d(%rip), %r12      # 0x5aa2
jne 0x1f6d
jnp 0x20af
ucomisd 0x312b(%rip), %xmm0     # 0x50a0
leaq 0x3b37(%rip), %r12      # 0x5ab3
jne 0x1f84
jnp 0x20af
ucomisd 0x311c(%rip), %xmm0     # 0x50a8
leaq 0x3ab2(%rip), %r12      # 0x5a45
jne 0x1f9b
jnp 0x20af
ucomisd 0x310d(%rip), %xmm0     # 0x50b0
leaq 0x3ab4(%rip), %r12      # 0x5a5e
jne 0x1fb2
jnp 0x20af
ucomisd 0x30fe(%rip), %xmm0     # 0x50b8
leaq 0x3ab3(%rip), %r12      # 0x5a74
jne 0x1fc9
jnp 0x20af
ucomisd 0x30ef(%rip), %xmm0     # 0x50c0
leaq 0x3aaf(%rip), %r12      # 0x5a87
jne 0x1fe0
jnp 0x20af
ucomisd 0x30e0(%rip), %xmm0     # 0x50c8
leaq 0x3aac(%rip), %r12      # 0x5a9b
jne 0x1ff7
jnp 0x20af
ucomisd 0x30d1(%rip), %xmm0     # 0x50d0
leaq 0x3aa6(%rip), %r12      # 0x5aac
jne 0x200e
jnp 0x20af
ucomisd 0x30c2(%rip), %xmm0     # 0x50d8
leaq 0x3aa1(%rip), %r12      # 0x5abe
jne 0x2025
jnp 0x20af
ucomisd 0x30b3(%rip), %xmm0     # 0x50e0
leaq 0x3aa4(%rip), %r12      # 0x5ad8
jne 0x2038
jnp 0x20af
ucomisd 0x30a8(%rip), %xmm0     # 0x50e8
leaq 0x3aa8(%rip), %r12      # 0x5aef
jne 0x204b
jnp 0x20af
ucomisd 0x309d(%rip), %xmm0     # 0x50f0
leaq 0x3aa9(%rip), %r12      # 0x5b03
jne 0x205e
jnp 0x20af
ucomisd 0x3092(%rip), %xmm0     # 0x50f8
leaq 0x3aab(%rip), %r12      # 0x5b18
jne 0x2071
jnp 0x20af
ucomisd 0x3087(%rip), %xmm0     # 0x5100
leaq 0x3aaa(%rip), %r12      # 0x5b2a
jne 0x2084
jnp 0x20af
pushq $0x50
popq %rdi
movsd %xmm0, 0x28(%rsp)
callq 0x47c5
movq %rax, %r12
movq %rax, %rdi
pushq $0x4f
popq %rsi
leaq 0x3a9b(%rip), %rdx      # 0x5b3d
movsd 0x28(%rsp), %xmm0
movb $0x1, %al
callq 0x10b0
movb (%r14), %bpl
movq %rbx, %rdi
callq 0x39ea
testb %bpl, %bpl
je 0x20de
movsbl (%r14), %r8d
movq %rbx, %rdi
leaq 0x35ce(%rip), %rsi      # 0x569b
movq 0x8(%rsp), %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x1130
jmp 0x20f7
movq %rbx, %rdi
leaq 0x3585(%rip), %rsi      # 0x566d
movq 0x8(%rsp), %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x1130
incq %r13
jmp 0x1ee0
movq 0x10(%rsp), %r14
incq %r14
movq (%rsp), %r13
movq 0x20(%rsp), %r15
jmp 0x1e3a
movq 0x18(%rsp), %rcx
incq %rcx
jmp 0x1d94
movq %rbx, %rdi
callq 0x39ea
leaq 0x3598(%rip), %rdi      # 0x56c9
pushq $0x2
popq %r12
pushq $0x1
popq %r13
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x702e(%rip), %r14      # 0x917c
decl (%r14)
movq %rbx, %rdi
callq 0x39ea
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3559(%rip), %rdi      # 0x56cc
pushq $0x11
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x354e(%rip), %rdi      # 0x56de
pushq $0x4
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3536(%rip), %rdi      # 0x56e3
pushq $0x7
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
incl (%r14)
movq %rbx, %rdi
callq 0x39ea
leaq 0x33d7(%rip), %rdi      # 0x55a4
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3501(%rip), %rdi      # 0x56eb
pushq $0xd
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x34f2(%rip), %rdi      # 0x56f9
pushq $0x25
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x34fb(%rip), %rdi      # 0x571f
pushq $0xc
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x2e07(%rip), %r14      # 0x5040
xorl %edx, %edx
movq (%rsp), %rax
movslq 0x28(%rax), %rax
cmpq %rax, %rdx
jge 0x2463
xorl %esi, %esi
movq %rdx, 0x10(%rsp)
movq (%rsp), %rcx
movslq 0x18(%rcx), %rax
cmpq %rax, %rsi
jge 0x245b
movq 0x10(%rcx), %rax
movq %rsi, 0x18(%rsp)
movq (%rax,%rsi,8), %rcx
xorl %ebp, %ebp
movq %rcx, 0x8(%rsp)
movslq 0x8(%rcx), %rax
cmpq %rax, %rbp
jge 0x244e
movq (%rcx), %rax
movq (%rax,%rbp,8), %r15
movq (%rsp), %rax
movq 0x20(%rax), %rax
movq (%rax,%rdx,8), %rdi
movq (%r15), %rsi
callq 0x1110
testl %eax, %eax
jne 0x243c
movq %rbp, 0x20(%rsp)
movq %rbx, %rdi
callq 0x39ea
movq (%r15), %rdx
movq %rbx, %rdi
leaq 0x346a(%rip), %rsi      # 0x572c
xorl %eax, %eax
callq 0x1130
leaq 0x6eac(%rip), %rbp      # 0x917c
incl (%rbp)
movq %rbx, %rdi
callq 0x39ea
movl 0x10(%r15), %edx
movq %rbx, %rdi
leaq 0x3457(%rip), %rsi      # 0x5740
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x39ea
movq %rbx, %rdi
leaq 0x3456(%rip), %rsi      # 0x5758
movq 0x18(%rsp), %rdx
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x39ea
leaq 0x3452(%rip), %rdi      # 0x576f
pushq $0xc
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
incl (%rbp)
movq 0x8(%r15), %r15
movq %rbx, %rdi
callq 0x39ea
pushq $0x22
popq %rdi
movq %rbx, %rsi
callq 0x10f0
leaq 0x3803(%rip), %rbp      # 0x5b4f
jmp 0x23c8
leaq 0x37f1(%rip), %rdi      # 0x5b46
jmp 0x23b7
cmpl $0x5c, %eax
je 0x23b0
cmpl $0x22, %eax
jne 0x236a
leaq 0x37d8(%rip), %rdi      # 0x5b40
jmp 0x23b7
movsbl %al, %edi
jmp 0x239d
leaq 0x37d3(%rip), %rdi      # 0x5b49
jmp 0x23b7
movq %rbp, %rdi
jmp 0x23b7
leaq 0x37ce(%rip), %rdi      # 0x5b52
pushq $0x4
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
pushq $0x22
popq %rdi
movq %rbx, %rsi
callq 0x10f0
jmp 0x23c5
leaq 0x379e(%rip), %rdi      # 0x5b4c
jmp 0x23b7
leaq 0x378c(%rip), %rdi      # 0x5b43
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
incq %r15
movzbl (%r15), %eax
cmpq $0xd, %rax
ja 0x2357
movslq (%r14,%rax,4), %rcx
addq %r14, %rcx
jmpq *%rcx
leaq 0x3115(%rip), %rdi      # 0x54f7
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3ddc(%rip), %rdi      # 0x61db
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x6d68(%rip), %r15      # 0x917c
decl (%r15)
movq %rbx, %rdi
callq 0x39ea
leaq 0x329f(%rip), %rdi      # 0x56c5
pushq $0x3
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x11c0
decl (%r15)
movq 0x20(%rsp), %rbp
incq %rbp
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
jmp 0x2278
movq 0x18(%rsp), %rsi
incq %rsi
jmp 0x2253
incq %rdx
jmp 0x223b
movq %rbx, %rdi
callq 0x39ea
leaq 0x330a(%rip), %rdi      # 0x577c
pushq $0xc
popq %rsi
pushq $0x1
popq %r15
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
pushq $0xa
popq %rbp
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x32e1(%rip), %rdi      # 0x5789
pushq $0x11
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x32d6(%rip), %rdi      # 0x579b
pushq $0x15
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x32cf(%rip), %rdi      # 0x57b1
pushq $0x17
popq %r14
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x32c6(%rip), %rdi      # 0x57c9
pushq $0x19
popq %r12
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x32bf(%rip), %rdi      # 0x57e3
pushq $0xe
popq %r13
movq %r13, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x32ad(%rip), %rdi      # 0x57f2
movq %r13, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x329f(%rip), %rdi      # 0x5801
pushq $0x1c
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x328d(%rip), %rsi      # 0x581e
movq %rbx, %rdi
movq 0x30(%rsp), %rdx
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x39ea
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3278(%rip), %rdi      # 0x5839
pushq $0x2b
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3275(%rip), %rdi      # 0x5865
pushq $0x1a
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3261(%rip), %rdi      # 0x5880
pushq $0x18
popq %r13
movq %r13, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3247(%rip), %rdi      # 0x5899
pushq $0x39
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x6b15(%rip), %rax      # 0x917c
incl (%rax)
movq %rbx, %rdi
callq 0x39ea
leaq 0x2f2c(%rip), %rdi      # 0x55a4
pushq $0x2
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x323e(%rip), %rdi      # 0x58d3
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3239(%rip), %rdi      # 0x58eb
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3224(%rip), %rdi      # 0x5905
movq %r13, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x3228(%rip), %r14      # 0x591e
xorl %r15d, %r15d
movq (%rsp), %r12
movslq 0x18(%r12), %rax
cmpq %rax, %r15
jge 0x274b
movq 0x10(%r12), %rax
movq (%rax,%r15,8), %r12
xorl %r13d, %r13d
movslq 0x8(%r12), %rax
cmpq %rax, %r13
jge 0x2746
movq (%r12), %rax
movq (%rax,%r13,8), %rbp
movq %rbx, %rdi
callq 0x39ea
movq (%rbp), %rdx
movl 0x10(%rbp), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1130
incq %r13
jmp 0x2713
incq %r15
jmp 0x26f9
movq %rbx, %rdi
callq 0x39ea
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x31cb(%rip), %rdi      # 0x5938
pushq $0x41
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x69f6(%rip), %rax      # 0x917c
incl (%rax)
movq %rbx, %rdi
callq 0x39ea
leaq 0x2e0d(%rip), %rdi      # 0x55a4
pushq $0x2
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
leaq 0x31c6(%rip), %rdi      # 0x597a
pushq $0x17
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x31c9(%rip), %r14      # 0x5992
xorl %r15d, %r15d
movslq 0x18(%r12), %rax
cmpq %rax, %r15
jge 0x281e
movq 0x10(%r12), %rax
movq (%rax,%r15,8), %r12
xorl %r13d, %r13d
movslq 0x8(%r12), %rax
cmpq %rax, %r13
jge 0x2815
movq (%r12), %rax
movq (%rax,%r13,8), %rbp
movq %rbx, %rdi
callq 0x39ea
movq (%rbp), %rdx
movl 0x10(%rbp), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1130
incq %r13
jmp 0x27e2
incq %r15
movq (%rsp), %r12
jmp 0x27cc
movq %rbx, %rdi
callq 0x39ea
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x317b(%rip), %rdi      # 0x59bb
pushq $0x13
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x317a(%rip), %r14      # 0x59cf
xorl %r15d, %r15d
movslq 0x18(%r12), %rax
cmpq %rax, %r15
jge 0x28aa
movq 0x10(%r12), %rax
movq (%rax,%r15,8), %r12
xorl %r13d, %r13d
movslq 0x8(%r12), %rax
cmpq %rax, %r13
jge 0x28a1
movq (%r12), %rax
movq (%rax,%r13,8), %rbp
movq %rbx, %rdi
callq 0x39ea
movq (%rbp), %rdx
movl 0x10(%rbp), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1130
incq %r13
jmp 0x286e
incq %r15
movq (%rsp), %r12
jmp 0x2858
movq %rbx, %rdi
callq 0x39ea
leaq 0x2e10(%rip), %rdi      # 0x56c9
pushq $0x2
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x68aa(%rip), %rax      # 0x917c
decl (%rax)
movq %rbx, %rdi
callq 0x39ea
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x30ff(%rip), %rdi      # 0x59f5
pushq $0x19
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x3104(%rip), %r14      # 0x5a0f
xorl %r15d, %r15d
movslq 0x18(%r12), %rax
cmpq %rax, %r15
jge 0x2960
movq 0x10(%r12), %rax
movq (%rax,%r15,8), %r12
xorl %r13d, %r13d
movslq 0x8(%r12), %rax
cmpq %rax, %r13
jge 0x2957
movq (%r12), %rax
movq (%rax,%r13,8), %rbp
movq %rbx, %rdi
callq 0x39ea
movq (%rbp), %rdx
movl 0x10(%rbp), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1130
incq %r13
jmp 0x2924
incq %r15
movq (%rsp), %r12
jmp 0x290e
movq %rbx, %rdi
callq 0x39ea
leaq 0x2d5a(%rip), %r14      # 0x56c9
pushq $0x2
popq %r15
pushq $0x1
popq %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x67ed(%rip), %r13      # 0x917c
decl (%r13)
movq %rbx, %rdi
callq 0x39ea
pushq $0xa
popq %rbp
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3073(%rip), %rdi      # 0x5a2a
pushq $0xf
popq %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
movl %ebp, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x39ea
leaq 0x3054(%rip), %rdi      # 0x5a3a
pushq $0xa
popq %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x39ea
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
decl (%r13)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq