// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl $0x0, -0x38(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x1c57
movq -0x8(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jne 0x1c6a
leaq 0x5a54(%rip), %rdi      # 0x76b2
movb $0x0, %al
callq 0x63e0
jmp 0x2cbe
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5a61(%rip), %rsi      # 0x76df
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq 0x9447(%rip), %rdx      # 0xb0e0
movq 0x9448(%rip), %rcx      # 0xb0e8
leaq 0x5a3c(%rip), %rsi      # 0x76e3
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5c5f(%rip), %rsi      # 0x7921
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5511(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5a14(%rip), %rsi      # 0x770c
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5a0d(%rip), %rsi      # 0x7720
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5a0d(%rip), %rsi      # 0x773b
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5a10(%rip), %rsi      # 0x7759
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x548a(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x59f4(%rip), %rsi      # 0x7773
movb $0x0, %al
callq 0x1100
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x28(%rcx), %eax
jge 0x1e59
movb $0x0, -0x71(%rbp)
movl $0x0, -0x30(%rbp)
cmpl $0x3, -0x30(%rbp)
jge 0x1e18
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq -0x30(%rbp), %rax
leaq 0x9337(%rip), %rsi      # 0xb100
imulq $0x14, %rax, %rax
addq %rax, %rsi
callq 0x10e0
cmpl $0x0, %eax
jne 0x1e0b
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
leaq 0x598f(%rip), %rsi      # 0x778d
movb $0x0, %al
callq 0x1100
movb $0x1, -0x71(%rbp)
jmp 0x1e18
jmp 0x1e0d
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x1da8
testb $0x1, -0x71(%rbp)
jne 0x1e49
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
leaq 0x5960(%rip), %rsi      # 0x77a2
movb $0x0, %al
callq 0x1100
jmp 0x1e4b
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x1d8d
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5381(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq 0x5927(%rip), %rsi      # 0x77b3
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rdx
leaq 0x5924(%rip), %rsi      # 0x77cf
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5328(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x590d(%rip), %rsi      # 0x77ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x52f2(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x8(%rax), %edx
leaq 0x58ee(%rip), %rsi      # 0x780c
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x52b5(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x1f97
movq -0x8(%rbp), %rax
movq (%rax), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rdx
movl -0x2c(%rbp), %ecx
leaq 0x589e(%rip), %rsi      # 0x7823
movb $0x0, %al
callq 0x1100
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x1f47
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5243(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5871(%rip), %rsi      # 0x7837
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x520d(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x584e(%rip), %rsi      # 0x784a
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5839(%rip), %rsi      # 0x7850
movb $0x0, %al
callq 0x1100
leaq 0x9137(%rip), %rax      # 0xb15c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x912b(%rip), %rax      # 0xb15c
movl %ecx, (%rax)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5816(%rip), %rsi      # 0x785d
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x57fe(%rip), %rsi      # 0x7860
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x8(%rax), %edx
leaq 0x57e4(%rip), %rsi      # 0x7868
movb $0x0, %al
callq 0x1100
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x22fb
movq -0x8(%rbp), %rax
movq (%rax), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x70(%rbp)
movl $0x0, -0x38(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x40(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x2106
movq -0x40(%rbp), %rax
movq (%rax), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movl 0x8(%rax), %eax
addl -0x38(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x20cf
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x50d4(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x70(%rbp), %rdx
movq -0x70(%rbp), %rcx
movl -0x38(%rbp), %r8d
movq -0x8(%rbp), %rax
movl 0x18(%rax), %r9d
leaq 0x574b(%rip), %rsi      # 0x7894
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5756(%rip), %rsi      # 0x78ba
movb $0x0, %al
callq 0x1100
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x40(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x22eb
movq -0x40(%rbp), %rax
movq (%rax), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x50(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x2211
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl 0xc(%rax), %eax
cmpl -0x30(%rbp), %eax
jne 0x2204
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movl -0x34(%rbp), %edx
movq -0x70(%rbp), %rcx
leaq 0x56e7(%rip), %rsi      # 0x78c2
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x70(%rbp), %rdx
movl -0x34(%rbp), %ecx
leaq 0x56e1(%rip), %rsi      # 0x78de
movb $0x0, %al
callq 0x1100
jmp 0x2206
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x219c
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movl -0x30(%rbp), %edx
movq -0x70(%rbp), %rcx
leaq 0x56de(%rip), %rsi      # 0x790a
movb $0x0, %al
callq 0x1100
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x50(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x22db
movq -0x50(%rbp), %rax
movq (%rax), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movsd 0x8(%rax), %xmm0
callq 0x2db0
movq %rax, -0x68(%rbp)
movq -0x58(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x22a0
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x70(%rbp), %rdx
movq -0x68(%rbp), %rcx
leaq 0x568f(%rip), %rsi      # 0x7926
movb $0x0, %al
callq 0x1100
jmp 0x22cb
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x70(%rbp), %rdx
movq -0x68(%rbp), %rcx
movq -0x58(%rbp), %rax
movsbl (%rax), %r8d
leaq 0x5690(%rip), %rsi      # 0x7954
movb $0x0, %al
callq 0x1100
jmp 0x22cd
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x223a
jmp 0x22dd
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x2172
jmp 0x22ed
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x2092
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5673(%rip), %rsi      # 0x7982
movb $0x0, %al
callq 0x1100
leaq 0x8e3f(%rip), %rax      # 0xb15c
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x8e33(%rip), %rax      # 0xb15c
movl %ecx, (%rax)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4eaf(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x562b(%rip), %rsi      # 0x7985
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5622(%rip), %rsi      # 0x7997
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x560c(%rip), %rsi      # 0x799c
movb $0x0, %al
callq 0x1100
leaq 0x8dbe(%rip), %rax      # 0xb15c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x8db2(%rip), %rax      # 0xb15c
movl %ecx, (%rax)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x549d(%rip), %rsi      # 0x785d
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x55c9(%rip), %rsi      # 0x79a4
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x55bc(%rip), %rsi      # 0x79b2
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x55c7(%rip), %rsi      # 0x79d8
movb $0x0, %al
callq 0x1100
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x28(%rcx), %eax
jge 0x25f0
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x25e0
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x48(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x25d0
movq -0x48(%rbp), %rax
movq (%rax), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x60(%rbp), %rax
movq (%rax), %rsi
callq 0x10e0
cmpl $0x0, %eax
je 0x24aa
jmp 0x25c2
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x60(%rbp), %rax
movq (%rax), %rdx
leaq 0x5520(%rip), %rsi      # 0x79e5
movb $0x0, %al
callq 0x1100
leaq 0x8c89(%rip), %rax      # 0xb15c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x8c7d(%rip), %rax      # 0xb15c
movl %ecx, (%rax)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x60(%rbp), %rax
movl 0x10(%rax), %edx
leaq 0x54fd(%rip), %rsi      # 0x79f9
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movl -0x30(%rbp), %edx
leaq 0x54f7(%rip), %rsi      # 0x7a11
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x54f3(%rip), %rsi      # 0x7a28
movb $0x0, %al
callq 0x1100
leaq 0x8c19(%rip), %rax      # 0xb15c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x8c0d(%rip), %rax      # 0xb15c
movl %ecx, (%rax)
movq -0x10(%rbp), %rdi
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x3090
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4db3(%rip), %rsi      # 0x7329
movb $0x0, %al
callq 0x1100
leaq 0x8bd8(%rip), %rax      # 0xb15c
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x8bcc(%rip), %rax      # 0xb15c
movl %ecx, (%rax)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x53d8(%rip), %rsi      # 0x797e
movb $0x0, %al
callq 0x1100
leaq 0x8ba8(%rip), %rax      # 0xb15c
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x8b9c(%rip), %rax      # 0xb15c
movl %ecx, (%rax)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x2461
jmp 0x25d2
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x2436
jmp 0x25e2
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x241f
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5431(%rip), %rsi      # 0x7a35
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4bcf(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5408(%rip), %rsi      # 0x7a42
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x53ff(%rip), %rsi      # 0x7a54
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x53fa(%rip), %rsi      # 0x7a6a
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x53f7(%rip), %rsi      # 0x7a82
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x53f6(%rip), %rsi      # 0x7a9c
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x53ea(%rip), %rsi      # 0x7aab
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x53de(%rip), %rsi      # 0x7aba
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4af7(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x53c1(%rip), %rsi      # 0x7ad7
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4abd(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x53a6(%rip), %rsi      # 0x7af2
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4a87(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x539c(%rip), %rsi      # 0x7b1e
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4a51(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5381(%rip), %rsi      # 0x7b39
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4a1b(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5364(%rip), %rsi      # 0x7b52
movb $0x0, %al
callq 0x1100
leaq 0x8960(%rip), %rax      # 0xb15c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x8954(%rip), %rax      # 0xb15c
movl %ecx, (%rax)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x503f(%rip), %rsi      # 0x785d
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5353(%rip), %rsi      # 0x7b8c
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5350(%rip), %rsi      # 0x7ba4
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x497f(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5334(%rip), %rsi      # 0x7bbe
movb $0x0, %al
callq 0x1100
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x2922
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x48(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x2912
movq -0x48(%rbp), %rax
movq (%rax), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x60(%rbp), %rax
movq (%rax), %rdx
movq -0x60(%rbp), %rax
movl 0x10(%rax), %ecx
leaq 0x52d7(%rip), %rsi      # 0x7bd7
movb $0x0, %al
callq 0x1100
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x28bf
jmp 0x2914
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x2898
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x48b8(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x52a0(%rip), %rsi      # 0x7bf1
movb $0x0, %al
callq 0x1100
leaq 0x87fd(%rip), %rax      # 0xb15c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x87f1(%rip), %rax      # 0xb15c
movl %ecx, (%rax)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4edc(%rip), %rsi      # 0x785d
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5297(%rip), %rsi      # 0x7c33
movb $0x0, %al
callq 0x1100
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x2a34
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x48(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x2a24
movq -0x48(%rbp), %rax
movq (%rax), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x60(%rbp), %rax
movq (%rax), %rdx
movq -0x60(%rbp), %rax
movl 0x10(%rax), %ecx
leaq 0x5239(%rip), %rsi      # 0x7c4b
movb $0x0, %al
callq 0x1100
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x29d1
jmp 0x2a26
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x29aa
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x47a6(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5211(%rip), %rsi      # 0x7c74
movb $0x0, %al
callq 0x1100
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x2afb
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x48(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x2aeb
movq -0x48(%rbp), %rax
movq (%rax), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x60(%rbp), %rax
movq (%rax), %rdx
movq -0x60(%rbp), %rax
movl 0x10(%rax), %ecx
leaq 0x51af(%rip), %rsi      # 0x7c88
movb $0x0, %al
callq 0x1100
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x2a98
jmp 0x2aed
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x2a71
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4e73(%rip), %rsi      # 0x7982
movb $0x0, %al
callq 0x1100
leaq 0x863f(%rip), %rax      # 0xb15c
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x8633(%rip), %rax      # 0xb15c
movl %ecx, (%rax)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x46af(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5154(%rip), %rsi      # 0x7cae
movb $0x0, %al
callq 0x1100
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x2bf2
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x48(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x2be2
movq -0x48(%rbp), %rax
movq (%rax), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
movq -0x60(%rbp), %rax
movq (%rax), %rdx
movq -0x60(%rbp), %rax
movl 0x10(%rax), %ecx
leaq 0x50f8(%rip), %rsi      # 0x7cc8
movb $0x0, %al
callq 0x1100
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x2b8f
jmp 0x2be4
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x2b68
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4d7c(%rip), %rsi      # 0x7982
movb $0x0, %al
callq 0x1100
leaq 0x8548(%rip), %rax      # 0xb15c
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x853c(%rip), %rax      # 0xb15c
movl %ecx, (%rax)
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x45b8(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x5092(%rip), %rsi      # 0x7ce3
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4582(%rip), %rsi      # 0x71ee
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x506c(%rip), %rsi      # 0x7cf3
movb $0x0, %al
callq 0x1100
movq -0x10(%rbp), %rdi
callq 0x4d10
movq -0x10(%rbp), %rdi
leaq 0x4ce0(%rip), %rsi      # 0x7982
movb $0x0, %al
callq 0x1100
leaq 0x84ac(%rip), %rax      # 0xb15c
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x84a0(%rip), %rax      # 0xb15c
movl %ecx, (%rax)
addq $0x80, %rsp
popq %rbp
retq
nopw (%rax,%rax)