// File: /workspace/github_c_makefile_star2_O1/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 0x2c7d
movq %rdi, %r14
cmpl $0x0, 0x8(%rdi)
je 0x2c7d
movq %rsi, %rbx
movq %rcx, 0x10(%rsp)
movq %r8, (%rsp)
movq %rdx, 0x28(%rsp)
movq %rsi, %rdi
callq 0x3e69
leaq 0x3918(%rip), %rdi      # 0x5426
movl $0x3, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movq 0x75d1(%rip), %rdx      # 0x9100
movq 0x75d2(%rip), %rcx      # 0x9108
leaq 0x38ed(%rip), %rsi      # 0x542a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3e69
leaq 0x3b12(%rip), %rdi      # 0x5668
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x38c7(%rip), %rdi      # 0x5453
movl $0x13, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x38ba(%rip), %rdi      # 0x5467
movl $0x1a, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x38b4(%rip), %rdi      # 0x5482
movl $0x1d, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x38b1(%rip), %rdi      # 0x54a0
movl $0x19, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3895(%rip), %rdi      # 0x54ba
movl $0x19, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
cmpl $0x0, 0x28(%r14)
movq %r14, 0x8(%rsp)
jle 0x1cb3
leaq 0x74d6(%rip), %r13      # 0x9120
leaq 0x3883(%rip), %rbp      # 0x54d4
xorl %r15d, %r15d
movq 0x20(%r14), %rax
movq (%rax,%r15,8), %r12
xorl %r14d, %r14d
leaq (%r14,%r13), %rsi
movq %r12, %rdi
callq 0x1110
testl %eax, %eax
je 0x1c82
addq $0x14, %r14
cmpq $0x3c, %r14
jne 0x1c5f
leaq 0x3869(%rip), %r12      # 0x54e9
jmp 0x1c85
movq %rbp, %r12
movq %rbx, %rdi
callq 0x3e69
movq 0x8(%rsp), %r14
movq 0x20(%r14), %rax
movq (%rax,%r15,8), %rdx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1130
incq %r15
movslq 0x28(%r14), %rax
cmpq %rax, %r15
jl 0x1c54
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3823(%rip), %rsi      # 0x54fa
movq %rbx, %rdi
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3e69
leaq 0x3821(%rip), %rsi      # 0x5516
movq %rbx, %rdi
movq (%rsp), %rdx
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x380e(%rip), %rdi      # 0x5535
movl $0x1d, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
movl 0x8(%r14), %edx
leaq 0x37f2(%rip), %rsi      # 0x5553
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
cmpl $0x0, 0x8(%r14)
jle 0x1dc1
leaq 0x37dc(%rip), %r13      # 0x556a
xorl %r15d, %r15d
movq (%r14), %rax
movq (%rax,%r15,8), %r12
movq %rbx, %rdi
callq 0x3e69
movq 0x10(%r12), %rdx
movq %rbx, %rdi
movq %r13, %rsi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x1130
incq %r15
movslq 0x8(%r14), %rax
cmpq %rax, %r15
jl 0x1d91
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3799(%rip), %rdi      # 0x557e
movl $0x12, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3776(%rip), %rdi      # 0x5591
movl $0x5, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x375b(%rip), %rdi      # 0x5597
movl $0xc, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
leaq 0x7327(%rip), %rax      # 0x917c
incl (%rax)
movq %rbx, %rdi
callq 0x3e69
leaq 0x373e(%rip), %rdi      # 0x55a4
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3720(%rip), %rdi      # 0x55a7
movl $0x7, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl 0x8(%r14), %edx
leaq 0x3703(%rip), %rsi      # 0x55af
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1130
cmpl $0x0, 0x8(%r14)
movq %r14, %r13
jle 0x2275
leaq 0x375a(%rip), %r15      # 0x5625
xorl %ecx, %ecx
movq (%r13), %rax
movq %rcx, 0x30(%rsp)
movq (%rax,%rcx,8), %r12
movslq 0x8(%r12), %rax
movl $0x0, %ebp
testq %rax, %rax
jle 0x1f00
movq (%r12), %rcx
xorl %edx, %edx
xorl %ebp, %ebp
movq (%rcx,%rdx,8), %rsi
addl 0x8(%rsi), %ebp
incq %rdx
cmpq %rdx, %rax
jne 0x1ef1
movq 0x10(%r12), %r14
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
movl 0x18(%r13), %r9d
movq %rbx, %rdi
leaq 0x36ab(%rip), %rsi      # 0x55db
movq %r14, %rdx
movq %r14, (%rsp)
movq %r14, %rcx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3e69
movl $0x7, %esi
movl $0x1, %edx
leaq 0x36a4(%rip), %rdi      # 0x5601
movq %rbx, %rcx
callq 0x11c0
cmpl $0x0, 0x8(%r12)
jle 0x2260
xorl %r14d, %r14d
movq %r12, 0x18(%rsp)
movq (%r12), %rax
movq (%rax,%r14,8), %r12
cmpl $0x0, 0x18(%r13)
movq %r14, 0x10(%rsp)
jle 0x1fec
xorl %ebp, %ebp
movq 0x10(%r13), %rax
movq (%rax,%rbp,8), %rax
movl 0xc(%rax), %eax
cmpq %rax, %r14
jne 0x1fe0
movq %rbx, %rdi
callq 0x3e69
movq %rbx, %rdi
leaq 0x3658(%rip), %rsi      # 0x5609
movl %ebp, %edx
movq (%rsp), %r14
movq %r14, %rcx
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3e69
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x1130
movq 0x10(%rsp), %r14
incq %rbp
movslq 0x18(%r13), %rax
cmpq %rax, %rbp
jl 0x1f8f
movq %rbx, %rdi
callq 0x3e69
movq %rbx, %rdi
leaq 0x3653(%rip), %rsi      # 0x5651
movl %r14d, %edx
movq (%rsp), %rcx
xorl %eax, %eax
callq 0x1130
cmpl $0x0, 0x8(%r12)
jle 0x2239
xorl %r15d, %r15d
movq (%r12), %rax
movq (%rax,%r15,8), %r14
movsd 0x8(%r14), %xmm0
ucomisd 0x3047(%rip), %xmm0     # 0x5078
leaq 0x3a14(%rip), %rbp      # 0x5a4c
jne 0x2040
jnp 0x21e2
ucomisd 0x3038(%rip), %xmm0     # 0x5080
leaq 0x3a16(%rip), %rbp      # 0x5a65
jne 0x2057
jnp 0x21e2
ucomisd 0x3029(%rip), %xmm0     # 0x5088
leaq 0x3a15(%rip), %rbp      # 0x5a7b
jne 0x206e
jnp 0x21e2
ucomisd 0x301a(%rip), %xmm0     # 0x5090
leaq 0x3a11(%rip), %rbp      # 0x5a8e
jne 0x2085
jnp 0x21e2
ucomisd 0x300b(%rip), %xmm0     # 0x5098
leaq 0x3a0e(%rip), %rbp      # 0x5aa2
jne 0x209c
jnp 0x21e2
ucomisd 0x2ffc(%rip), %xmm0     # 0x50a0
leaq 0x3a08(%rip), %rbp      # 0x5ab3
jne 0x20b3
jnp 0x21e2
ucomisd 0x2fed(%rip), %xmm0     # 0x50a8
leaq 0x3983(%rip), %rbp      # 0x5a45
jne 0x20ca
jnp 0x21e2
ucomisd 0x2fde(%rip), %xmm0     # 0x50b0
leaq 0x3985(%rip), %rbp      # 0x5a5e
jne 0x20e1
jnp 0x21e2
ucomisd 0x2fcf(%rip), %xmm0     # 0x50b8
leaq 0x3984(%rip), %rbp      # 0x5a74
jne 0x20f8
jnp 0x21e2
ucomisd 0x2fc0(%rip), %xmm0     # 0x50c0
leaq 0x3980(%rip), %rbp      # 0x5a87
jne 0x210f
jnp 0x21e2
ucomisd 0x2fb1(%rip), %xmm0     # 0x50c8
leaq 0x397d(%rip), %rbp      # 0x5a9b
jne 0x2126
jnp 0x21e2
ucomisd 0x2fa2(%rip), %xmm0     # 0x50d0
leaq 0x3977(%rip), %rbp      # 0x5aac
jne 0x213d
jnp 0x21e2
ucomisd 0x2f93(%rip), %xmm0     # 0x50d8
leaq 0x3972(%rip), %rbp      # 0x5abe
jne 0x2154
jnp 0x21e2
ucomisd 0x2f84(%rip), %xmm0     # 0x50e0
leaq 0x3975(%rip), %rbp      # 0x5ad8
jne 0x2167
jnp 0x21e2
ucomisd 0x2f79(%rip), %xmm0     # 0x50e8
leaq 0x3979(%rip), %rbp      # 0x5aef
jne 0x217a
jnp 0x21e2
ucomisd 0x2f6e(%rip), %xmm0     # 0x50f0
leaq 0x397a(%rip), %rbp      # 0x5b03
jne 0x218d
jnp 0x21e2
ucomisd 0x2f63(%rip), %xmm0     # 0x50f8
leaq 0x397c(%rip), %rbp      # 0x5b18
jne 0x21a0
jnp 0x21e2
ucomisd 0x2f58(%rip), %xmm0     # 0x5100
leaq 0x397b(%rip), %rbp      # 0x5b2a
jne 0x21b3
jnp 0x21e2
movl $0x50, %edi
movsd %xmm0, 0x20(%rsp)
callq 0x4c71
movq %rax, %rbp
movl $0x4f, %esi
movq %rax, %rdi
leaq 0x3968(%rip), %rdx      # 0x5b3d
movsd 0x20(%rsp), %xmm0
movb $0x1, %al
callq 0x10b0
movb (%r14), %r13b
movq %rbx, %rdi
callq 0x3e69
testb %r13b, %r13b
je 0x2210
movsbl (%r14), %r8d
movq %rbx, %rdi
leaq 0x349b(%rip), %rsi      # 0x569b
movq (%rsp), %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0x1130
jmp 0x2228
movq %rbx, %rdi
leaq 0x3453(%rip), %rsi      # 0x566d
movq (%rsp), %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0x1130
incq %r15
movslq 0x8(%r12), %rax
cmpq %rax, %r15
jl 0x201b
movq 0x10(%rsp), %r14
incq %r14
movq 0x18(%rsp), %r12
movslq 0x8(%r12), %rax
cmpq %rax, %r14
movq 0x8(%rsp), %r13
leaq 0x33cb(%rip), %r15      # 0x5625
jl 0x1f79
movq 0x30(%rsp), %rcx
incq %rcx
movslq 0x8(%r13), %rax
cmpq %rax, %rcx
jl 0x1ecd
movq %rbx, %rdi
callq 0x3e69
leaq 0x3445(%rip), %rdi      # 0x56c9
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
leaq 0x6edf(%rip), %r14      # 0x917c
decl (%r14)
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3408(%rip), %rdi      # 0x56cc
movl $0x11, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x33f9(%rip), %rdi      # 0x56de
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x33dd(%rip), %rdi      # 0x56e3
movl $0x7, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
incl (%r14)
movq %rbx, %rdi
callq 0x3e69
leaq 0x327a(%rip), %rdi      # 0x55a4
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x33a0(%rip), %rdi      # 0x56eb
movl $0xd, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x338d(%rip), %rdi      # 0x56f9
movl $0x25, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3392(%rip), %rdi      # 0x571f
movl $0xc, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
cmpl $0x0, 0x28(%r13)
jle 0x263b
leaq 0x2c8f(%rip), %rbp      # 0x5040
leaq 0x3797(%rip), %r12      # 0x5b4f
movq $0x0, (%rsp)
cmpl $0x0, 0x18(%r13)
jle 0x2623
xorl %ecx, %ecx
movq 0x10(%r13), %rax
movq %rcx, 0x10(%rsp)
movq (%rax,%rcx,8), %r15
cmpl $0x0, 0x8(%r15)
jle 0x2609
xorl %r13d, %r13d
movq %r15, 0x18(%rsp)
movq (%r15), %rax
movq (%rax,%r13,8), %r14
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq (%r14), %rsi
callq 0x1110
testl %eax, %eax
jne 0x25f9
movq %rbx, %rdi
callq 0x3e69
movq (%r14), %rdx
movq %rbx, %rdi
leaq 0x3302(%rip), %rsi      # 0x572c
xorl %eax, %eax
callq 0x1130
leaq 0x6d44(%rip), %r15      # 0x917c
incl (%r15)
movq %rbx, %rdi
callq 0x3e69
movl 0x10(%r14), %edx
movq %rbx, %rdi
leaq 0x32ef(%rip), %rsi      # 0x5740
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3e69
movq %rbx, %rdi
leaq 0x32ee(%rip), %rsi      # 0x5758
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3e69
movl $0xc, %esi
movl $0x1, %edx
leaq 0x32e0(%rip), %rdi      # 0x576f
movq %rbx, %rcx
callq 0x11c0
incl (%r15)
movq 0x8(%r14), %r14
movq %rbx, %rdi
callq 0x3e69
movl $0x22, %edi
movq %rbx, %rsi
callq 0x10f0
leaq 0x368f(%rip), %r15      # 0x5b49
jmp 0x2574
movl $0x2, %esi
movl $0x1, %edx
leaq 0x3676(%rip), %rdi      # 0x5b46
jmp 0x2569
cmpl $0x5c, %eax
je 0x2558
cmpl $0x22, %eax
jne 0x24f2
movl $0x2, %esi
movl $0x1, %edx
leaq 0x3650(%rip), %rdi      # 0x5b40
jmp 0x2569
movsbl %al, %edi
jmp 0x253b
movl $0x2, %esi
movl $0x1, %edx
movq %r15, %rdi
jmp 0x2569
movl $0x2, %esi
movl $0x1, %edx
movq %r12, %rdi
jmp 0x2569
movl $0x4, %esi
movl $0x1, %edx
leaq 0x362c(%rip), %rdi      # 0x5b52
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0x22, %edi
movq %rbx, %rsi
callq 0x10f0
jmp 0x2571
movl $0x2, %esi
movl $0x1, %edx
leaq 0x35f6(%rip), %rdi      # 0x5b4c
jmp 0x2569
movl $0x2, %esi
movl $0x1, %edx
leaq 0x35da(%rip), %rdi      # 0x5b43
movq %rbx, %rcx
callq 0x11c0
incq %r14
movzbl (%r14), %eax
cmpq $0xd, %rax
ja 0x24d5
movslq (%rbp,%rax,4), %rcx
addq %rbp, %rcx
jmpq *%rcx
movl $0x2, %esi
movl $0x1, %edx
leaq 0x2f5a(%rip), %rdi      # 0x54f7
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0x2, %esi
movl $0x1, %edx
leaq 0x3c1d(%rip), %rdi      # 0x61db
movq %rbx, %rcx
callq 0x11c0
leaq 0x6baf(%rip), %r14      # 0x917c
decl (%r14)
movq %rbx, %rdi
callq 0x3e69
movl $0x3, %esi
movl $0x1, %edx
leaq 0x30dc(%rip), %rdi      # 0x56c5
movq %rbx, %rcx
callq 0x11c0
decl (%r14)
movq 0x18(%rsp), %r15
incq %r13
movslq 0x8(%r15), %rax
cmpq %rax, %r13
jl 0x23ed
movq 0x10(%rsp), %rcx
incq %rcx
movq 0x8(%rsp), %r13
movslq 0x18(%r13), %rax
cmpq %rax, %rcx
jl 0x23cd
movq (%rsp), %rdx
incq %rdx
movslq 0x28(%r13), %rax
movq %rdx, (%rsp)
cmpq %rax, %rdx
jl 0x23c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3132(%rip), %rdi      # 0x577c
movl $0xc, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3109(%rip), %rdi      # 0x5789
movl $0x11, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x30fa(%rip), %rdi      # 0x579b
movl $0x15, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x30ef(%rip), %rdi      # 0x57b1
movl $0x17, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x30e6(%rip), %rdi      # 0x57c9
movl $0x19, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x30df(%rip), %rdi      # 0x57e3
movl $0xe, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x30cd(%rip), %rdi      # 0x57f2
movl $0xe, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x30bb(%rip), %rdi      # 0x5801
movl $0x1c, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x30a2(%rip), %rsi      # 0x581e
movq %rbx, %rdi
movq 0x28(%rsp), %rdx
xorl %eax, %eax
callq 0x1130
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x308a(%rip), %rdi      # 0x5839
movl $0x2b, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3080(%rip), %rdi      # 0x5865
movl $0x1a, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3065(%rip), %rdi      # 0x5880
movl $0x18, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3048(%rip), %rdi      # 0x5899
movl $0x39, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
leaq 0x6912(%rip), %rax      # 0x917c
incl (%rax)
movq %rbx, %rdi
callq 0x3e69
leaq 0x2d29(%rip), %rdi      # 0x55a4
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3037(%rip), %rdi      # 0x58d3
movl $0x17, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x302e(%rip), %rdi      # 0x58eb
movl $0x19, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x3012(%rip), %rdi      # 0x5905
movl $0x18, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
cmpl $0x0, 0x18(%r13)
jle 0x296b
leaq 0x300b(%rip), %r14      # 0x591e
xorl %r15d, %r15d
movq 0x10(%r13), %rax
movq (%rax,%r15,8), %r12
cmpl $0x0, 0x8(%r12)
jle 0x295a
xorl %r13d, %r13d
movq (%r12), %rax
movq (%rax,%r13,8), %rbp
movq %rbx, %rdi
callq 0x3e69
movq (%rbp), %rdx
movl 0x10(%rbp), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1130
incq %r13
movslq 0x8(%r12), %rax
cmpq %rax, %r13
jl 0x2929
incq %r15
movq 0x8(%rsp), %r13
movslq 0x18(%r13), %rax
cmpq %rax, %r15
jl 0x2916
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x2fa9(%rip), %rdi      # 0x5938
movl $0x41, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
leaq 0x67d4(%rip), %rax      # 0x917c
incl (%rax)
movq %rbx, %rdi
callq 0x3e69
leaq 0x2beb(%rip), %rdi      # 0x55a4
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
leaq 0x2fa0(%rip), %rdi      # 0x597a
movl $0x17, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
cmpl $0x0, 0x18(%r13)
jle 0x2a52
leaq 0x2f98(%rip), %r14      # 0x5992
xorl %r15d, %r15d
movq 0x10(%r13), %rax
movq (%rax,%r15,8), %r12
cmpl $0x0, 0x8(%r12)
jle 0x2a41
xorl %r13d, %r13d
movq (%r12), %rax
movq (%rax,%r13,8), %rbp
movq %rbx, %rdi
callq 0x3e69
movq (%rbp), %rdx
movl 0x10(%rbp), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1130
incq %r13
movslq 0x8(%r12), %rax
cmpq %rax, %r13
jl 0x2a10
incq %r15
movq 0x8(%rsp), %r13
movslq 0x18(%r13), %rax
cmpq %rax, %r15
jl 0x29fd
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x2f45(%rip), %rdi      # 0x59bb
movl $0x13, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
cmpl $0x0, 0x18(%r13)
jle 0x2aee
leaq 0x2f39(%rip), %r14      # 0x59cf
xorl %r15d, %r15d
movq 0x10(%r13), %rax
movq (%rax,%r15,8), %r12
cmpl $0x0, 0x8(%r12)
jle 0x2add
xorl %r13d, %r13d
movq (%r12), %rax
movq (%rax,%r13,8), %rbp
movq %rbx, %rdi
callq 0x3e69
movq (%rbp), %rdx
movl 0x10(%rbp), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1130
incq %r13
movslq 0x8(%r12), %rax
cmpq %rax, %r13
jl 0x2aac
incq %r15
movq 0x8(%rsp), %r13
movslq 0x18(%r13), %rax
cmpq %rax, %r15
jl 0x2a99
movq %rbx, %rdi
callq 0x3e69
leaq 0x2bcc(%rip), %rdi      # 0x56c9
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
leaq 0x6666(%rip), %rax      # 0x917c
decl (%rax)
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x2eb9(%rip), %rdi      # 0x59f5
movl $0x19, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
cmpl $0x0, 0x18(%r13)
jle 0x2bb4
leaq 0x2eb3(%rip), %r14      # 0x5a0f
xorl %r15d, %r15d
movq 0x10(%r13), %rax
movq (%rax,%r15,8), %r12
cmpl $0x0, 0x8(%r12)
jle 0x2ba3
xorl %r13d, %r13d
movq (%r12), %rax
movq (%rax,%r13,8), %rbp
movq %rbx, %rdi
callq 0x3e69
movq (%rbp), %rdx
movl 0x10(%rbp), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1130
incq %r13
movslq 0x8(%r12), %rax
cmpq %rax, %r13
jl 0x2b72
incq %r15
movq 0x8(%rsp), %r13
movslq 0x18(%r13), %rax
cmpq %rax, %r15
jl 0x2b5f
movq %rbx, %rdi
callq 0x3e69
leaq 0x2b06(%rip), %r14      # 0x56c9
movl $0x2, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x11c0
leaq 0x659d(%rip), %r15      # 0x917c
decl (%r15)
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x2e24(%rip), %rdi      # 0x5a2a
movl $0xf, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0xa, %edi
movq %rbx, %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x3e69
leaq 0x2dfe(%rip), %rdi      # 0x5a3a
movl $0xa, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
callq 0x3e69
movl $0x2, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x11c0
decl (%r15)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2775(%rip), %rdi      # 0x53f9
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4b44