// File: /workspace/github_cpp_makefile_star2_O1/tcannon686[P]obj2webgl/./obj_parser.hpp
// Function: ObjParser<std::basic_ifstream<char, std::char_traits<char>>>::writeWebGlCode(std::ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
void ObjParser<Stream>::writeWebGlCode(
        std::ostream &out,
        const std::string &name) const
{
    assert(done);
    /* Change the separate indices to one set of vertex indices. */

    /* Maps old vIndices, tIndices, nIndices tuple to new index. */
    std::unordered_map<std::string, unsigned int> index_table;

    /* Vertex array buffer */
    std::vector<unsigned int> index_array;

    /* Vertex buffer format: vvvttnnn */
    std::vector<float> data;
    int cur_index = 0;

    for(std::size_t i = 0; i < vIndices.size(); i ++)
    {
        std::string table_index =
            std::to_string(vIndices[i])
            + "/" + (tIndices.size() > 0 ?
                    std::to_string(tIndices[i])
                    : "")
            + "/" + (nIndices.size() > 0 ?
                    std::to_string(nIndices[i])
                    : "");

        auto in_table = index_table.find(table_index);

        /* If the vertex has not been added yet, add it. */
        if(in_table == end(index_table))
        {
            /* Add the data. */
            for(int j = 0; j < 3; j ++)
                data.push_back(vertices[vIndices[i]][j]);
            if(tIndices.size() > 0)
            {
                for(int j = 0; j < 2; j ++)
                    data.push_back(texCos[tIndices[i]][j]);
            }
            if(nIndices.size() > 0)
            {
                for(int j = 0; j < 3; j ++)
                    data.push_back(normals[nIndices[i]][j]);
            }

            index_table[table_index] = cur_index;
            cur_index ++;
        }
        index_array.push_back(index_table[table_index]);
    }

    const std::size_t vertex_size = 3 * sizeof(float);
    const std::size_t normal_size = (
            nIndices.size() > 0? 3 * sizeof(float) : 0);
    const std::size_t texco_size = (
            tIndices.size() > 0? 2 * sizeof(float) : 0);
    const std::size_t stride = vertex_size + normal_size + texco_size;


    out << "const " << name << "={};";

    out << name << ".data=new Float32Array([";
    for(auto it = begin(data); it != end(data); it ++)
    {
        out << *it;
        if(it + 1 != end(data))
            out << ",";
    }
    out << "]);";

    out << name << ".indexData=new Uint16Array([";
    for(auto it = begin(index_array); it != end(index_array); it ++)
    {
        out << *it;
        if(it + 1 != end(index_array))
            out << ",";
    }
    out << "]);";

    out << name << ".init=function(){";
    out << name << ".vbo=gl.createBuffer();";
    out << name << ".ibo=gl.createBuffer();";

    out << "gl.bindBuffer(gl.ARRAY_BUFFER," << name << ".vbo);";
    out << "gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER," << name << ".ibo);";

    out << "gl.bufferData(gl.ARRAY_BUFFER,"
        << name << ".data,gl.STATIC_DRAW);";

    out << "gl.bufferData(gl.ELEMENT_ARRAY_BUFFER,"
        << name << ".indexData,gl.STATIC_DRAW);"
        << "};";

    out << name << ".render=function(a_Position,a_Normal,a_TexCo){";
    out << "gl.bindBuffer(gl.ARRAY_BUFFER," << name << ".vbo);";
    out << "gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER," << name << ".ibo);";
    out << "gl.vertexAttribPointer(a_Position,3,gl.FLOAT,false,"
        << stride << ",null);";
    
    out << "gl.enableVertexAttribArray(a_Position);";
    
    if(tIndices.size() > 0)
    {
        out << "if(a_TexCo!==undefined) {";
        out << "gl.vertexAttribPointer(a_TexCo,2,gl.FLOAT,false,"
            << stride << "," << vertex_size << ");";

        out << "gl.enableVertexAttribArray(a_TexCo);";
        out << "}";
    }

    if(nIndices.size() > 0)
    {
        out << "if(a_Normal!==undefined){";
        out << "gl.vertexAttribPointer(a_Normal,3,gl.FLOAT,false,"
            << stride << "," << vertex_size + texco_size << ");";

        out << "gl.enableVertexAttribArray(a_Normal);";
        out << "}";
    }

    out << "gl.drawElements(gl.TRIANGLES,"
        << index_array.size()
        << ",gl.UNSIGNED_SHORT,0);";
    out << "};";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rdx, -0xf8(%rbp)
movq %rsi, -0x30(%rbp)
cmpb $0x0, 0x99(%rdi)
je 0x55be
leaq -0x170(%rbp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
xorl %eax, %eax
movq %rax, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
movq $0x0, -0x140(%rbp)
movq %rax, -0x40(%rbp)
movaps %xmm0, -0x50(%rbp)
movq 0x50(%rdi), %rax
movq %rdi, -0x148(%rbp)
cmpq %rax, 0x58(%rdi)
je 0x500b
leaq -0x168(%rbp), %r14
movl $0xd1b71759, %edx       # imm = 0xD1B71759
xorl %r13d, %r13d
movl (%rax,%r13,4), %r15d
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
movl $0x1, %ebx
cmpl $0xa, %r12d
jb 0x4970
movl $0x4, %ebx
movl %r12d, %eax
cmpl $0x63, %eax
jbe 0x4969
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x496e
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x4970
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x493b
addl $-0x3, %ebx
jmp 0x4970
addl $-0x2, %ebx
jmp 0x4970
decl %ebx
shrl $0x1f, %r15d
leal (%rbx,%r15), %esi
leaq -0x158(%rbp), %rax
movq %rax, -0x168(%rbp)
movq %r14, %rdi
movl $0x2d, %edx
callq 0x32b0
addq -0x168(%rbp), %r15
movq %r15, %rdi
movl %ebx, %esi
movl %r12d, %edx
callq 0x75cc
movq %r14, %rdi
leaq 0x3aba(%rip), %rsi      # 0x846b
callq 0x3440
leaq -0x108(%rbp), %rbx
movq %rbx, -0x118(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq -0xe0(%rbp), %r15
leaq -0x128(%rbp), %r12
movq -0x148(%rbp), %r14
movl $0xd1b71759, %esi       # imm = 0xD1B71759
je 0x4a00
movq %rdx, -0x118(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x108(%rbp)
jmp 0x4a06
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x110(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x80(%r14), %rax
cmpq %rax, 0x88(%r14)
je 0x4a7f
movl (%rax,%r13,4), %r15d
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
movl $0x1, %ebx
cmpl $0xa, %r12d
jb 0x4aac
movl $0x4, %ebx
movl %r12d, %eax
cmpl $0x63, %eax
jbe 0x4aa5
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x4aaa
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x4aac
movl %eax, %ecx
imulq %rsi, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x4a51
addl $-0x3, %ebx
jmp 0x4aac
leaq -0xa0(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0xb0(%rbp), %rdi
leaq 0x3911(%rip), %rdx      # 0x83ac
movq %rdx, %rsi
callq 0x599e
jmp 0x4afc
addl $-0x2, %ebx
jmp 0x4aac
decl %ebx
shrl $0x1f, %r15d
leal (%rbx,%r15), %esi
leaq -0xa0(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0xb0(%rbp), %rdi
movl $0x2d, %edx
callq 0x32b0
addq -0xb0(%rbp), %r15
movq %r15, %rdi
movl %ebx, %esi
movl %r12d, %edx
callq 0x75cc
leaq -0x108(%rbp), %rbx
leaq -0xe0(%rbp), %r15
leaq -0x128(%rbp), %r12
movq -0x118(%rbp), %rcx
movq -0x110(%rbp), %r8
movq -0xa8(%rbp), %rdx
movl $0xf, %esi
cmpq %rbx, %rcx
je 0x4b22
movq -0x108(%rbp), %rsi
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x4b4c
movl $0xf, %esi
leaq -0xa0(%rbp), %rdi
cmpq %rdi, -0xb0(%rbp)
je 0x4b47
movq -0xa0(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x4b61
movq -0xb0(%rbp), %rsi
leaq -0x118(%rbp), %rdi
callq 0x30a0
jmp 0x4b71
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3290
movq %r15, -0xf0(%rbp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x4b97
movq %rdx, -0xf0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xe0(%rbp)
jmp 0x4b9e
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xe8(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq -0xf0(%rbp), %rdi
leaq 0x38a0(%rip), %rsi      # 0x846b
callq 0x3440
movq %r12, -0x138(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movl $0xd1b71759, %esi       # imm = 0xD1B71759
je 0x4bfe
movq %rdx, -0x138(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x128(%rbp)
jmp 0x4c06
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x130(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x68(%r14), %rax
cmpq %rax, 0x70(%r14)
je 0x4c79
movl (%rax,%r13,4), %r15d
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
movl $0x1, %ebx
cmpl $0xa, %r12d
jb 0x4ca3
movl $0x4, %ebx
movl %r12d, %eax
cmpl $0x63, %eax
jbe 0x4c9c
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x4ca1
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x4ca3
movl %eax, %ecx
imulq %rsi, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x4c4b
addl $-0x3, %ebx
jmp 0x4ca3
leaq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x90(%rbp), %rdi
leaq 0x371a(%rip), %rdx      # 0x83ac
movq %rdx, %rsi
callq 0x599e
jmp 0x4cf0
addl $-0x2, %ebx
jmp 0x4ca3
decl %ebx
shrl $0x1f, %r15d
leal (%rbx,%r15), %esi
leaq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x90(%rbp), %rdi
movl $0x2d, %edx
callq 0x32b0
addq -0x90(%rbp), %r15
movq %r15, %rdi
movl %ebx, %esi
movl %r12d, %edx
callq 0x75cc
leaq -0x108(%rbp), %rbx
leaq -0xe0(%rbp), %r15
leaq -0x128(%rbp), %r12
movq -0x138(%rbp), %rcx
movq -0x130(%rbp), %r8
movq -0x88(%rbp), %rdx
movl $0xf, %esi
cmpq %r12, %rcx
je 0x4d16
movq -0x128(%rbp), %rsi
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x4d3a
movl $0xf, %esi
leaq -0x80(%rbp), %rdi
cmpq %rdi, -0x90(%rbp)
je 0x4d35
movq -0x80(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x4d4f
movq -0x90(%rbp), %rsi
leaq -0x138(%rbp), %rdi
callq 0x30a0
jmp 0x4d5f
leaq -0x90(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3290
leaq -0xc0(%rbp), %rsi
movq %rsi, -0xd0(%rbp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x4d8c
movq %rdx, -0xd0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xc0(%rbp)
jmp 0x4d92
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xc8(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x4dcd
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x138(%rbp), %rdi
cmpq %r12, %rdi
je 0x4de8
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0xf0(%rbp), %rdi
cmpq %r15, %rdi
leaq -0x1a0(%rbp), %r12
je 0x4e0a
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
leaq -0xc0(%rbp), %r15
je 0x4e33
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x118(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4e4e
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
je 0x4e70
movq -0x158(%rbp), %rsi
incq %rsi
callq 0x3250
movq %r12, %rdi
leaq -0xd0(%rbp), %rsi
callq 0x763e
testq %rax, %rax
jne 0x4f96
xorl %ebx, %ebx
movq 0x50(%r14), %rax
movslq (%rax,%r13,4), %rdx
shlq $0x4, %rdx
addq 0x8(%r14), %rdx
addq %rbx, %rdx
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x4eb9
movss (%rdx), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x4ec2
leaq -0x50(%rbp), %rdi
callq 0x776a
addq $0x4, %rbx
cmpq $0xc, %rbx
jne 0x4e8a
movq 0x88(%r14), %rax
cmpq 0x80(%r14), %rax
je 0x4f23
xorl %ebx, %ebx
movq 0x80(%r14), %rax
movslq (%rax,%r13,4), %rdx
shlq $0x3, %rdx
addq 0x38(%r14), %rdx
addq %rbx, %rdx
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x4f10
movss (%rdx), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x4f19
leaq -0x50(%rbp), %rdi
callq 0x776a
addq $0x4, %rbx
cmpq $0x4, %rbx
je 0x4ede
movq 0x70(%r14), %rax
cmpq 0x68(%r14), %rax
je 0x4f75
xorl %ebx, %ebx
movq 0x68(%r14), %rax
movslq (%rax,%r13,4), %rax
leaq (%rax,%rax,2), %rdx
shlq $0x2, %rdx
addq 0x20(%r14), %rdx
addq %rbx, %rdx
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x4f62
movss (%rdx), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x4f6b
leaq -0x50(%rbp), %rdi
callq 0x776a
addq $0x4, %rbx
cmpq $0xc, %rbx
jne 0x4f2f
movq %r12, %rdi
leaq -0xd0(%rbp), %rsi
callq 0x78ae
movq -0x140(%rbp), %rcx
movl %ecx, (%rax)
incl %ecx
movq %rcx, -0x140(%rbp)
movq %r12, %rdi
leaq -0xd0(%rbp), %rsi
callq 0x78ae
movq -0x68(%rbp), %rsi
cmpq -0x60(%rbp), %rsi
je 0x4fbd
movl (%rax), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x68(%rbp)
jmp 0x4fc9
leaq -0x70(%rbp), %rdi
movq %rax, %rdx
callq 0x7c52
movq -0xd0(%rbp), %rdi
cmpq %r15, %rdi
je 0x4fe4
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x3250
incq %r13
movq 0x50(%r14), %rax
movq 0x58(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rcx, %r13
leaq -0x168(%rbp), %r14
movl $0xd1b71759, %edx       # imm = 0xD1B71759
jb 0x491a
movq -0x148(%rbp), %r14
movq 0x70(%r14), %rax
movq 0x88(%r14), %rcx
xorl %r15d, %r15d
cmpq 0x80(%r14), %rcx
setne %r15b
shll $0x3, %r15d
leaq 0x18(%r15), %r12
addq $0xc, %r15
cmpq 0x68(%r14), %rax
cmoveq %r15, %r12
leaq 0x376b(%rip), %rsi      # 0x87b1
movl $0x6, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq -0xf8(%rbp), %rbx
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x3746(%rip), %rsi      # 0x87b8
movl $0x4, %edx
movq %rax, %rdi
callq 0x32a0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x3727(%rip), %rsi      # 0x87bd
movl $0x18, %edx
movq %rax, %rdi
callq 0x32a0
movq -0x50(%rbp), %r13
cmpq -0x48(%rbp), %r13
je 0x50e7
leaq 0x37f6(%rip), %rbx      # 0x88aa
xorps %xmm0, %xmm0
cvtss2sd (%r13), %xmm0
movq -0x30(%rbp), %rdi
callq 0x33a0
addq $0x4, %r13
cmpq -0x48(%rbp), %r13
je 0x50e1
movl $0x1, %edx
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x32a0
cmpq -0x48(%rbp), %r13
jne 0x50b4
leaq 0x36e8(%rip), %rsi      # 0x87d6
movl $0x3, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq -0xf8(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x36c0(%rip), %rsi      # 0x87da
movl $0x1c, %edx
movq %rax, %rdi
callq 0x32a0
movq -0x70(%rbp), %r13
cmpq -0x68(%rbp), %r13
je 0x5166
leaq 0x3772(%rip), %rbx      # 0x88aa
movl (%r13), %esi
movq -0x30(%rbp), %rdi
callq 0x3180
addq $0x4, %r13
cmpq -0x68(%rbp), %r13
je 0x5160
movl $0x1, %edx
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x32a0
cmpq -0x68(%rbp), %r13
jne 0x5138
leaq 0x3669(%rip), %rsi      # 0x87d6
movl $0x3, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq -0xf8(%rbp), %r13
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x365d(%rip), %rsi      # 0x87f7
movl $0x11, %edx
movq %rax, %rdi
callq 0x32a0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x364a(%rip), %rsi      # 0x8809
movl $0x17, %edx
movq %rax, %rdi
callq 0x32a0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x363d(%rip), %rsi      # 0x8821
movl $0x17, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x3641(%rip), %rsi      # 0x8839
movl $0x1e, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x363a(%rip), %rsi      # 0x8858
movl $0x6, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x362d(%rip), %rsi      # 0x885f
movl $0x26, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x362e(%rip), %rsi      # 0x8886
movl $0x6, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x3621(%rip), %rsi      # 0x888d
movl $0x1e, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x361a(%rip), %rsi      # 0x88ac
movl $0x16, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x361d(%rip), %rsi      # 0x88c3
movl $0x26, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq %rax, %rbx
leaq 0x361b(%rip), %rsi      # 0x88ea
movl $0x1b, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x34d7(%rip), %rsi      # 0x87ba
movl $0x2, %edx
movq %rbx, %rdi
callq 0x32a0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x35fe(%rip), %rsi      # 0x8906
movl $0x2e, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x351d(%rip), %rsi      # 0x8839
movl $0x1e, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x3516(%rip), %rsi      # 0x8858
movl $0x6, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x3509(%rip), %rsi      # 0x885f
movl $0x26, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x350a(%rip), %rsi      # 0x8886
movl $0x6, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x35a5(%rip), %rsi      # 0x8935
movl $0x33, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq -0x30(%rbp), %rdi
movq %r12, %rsi
callq 0x3180
leaq 0x35b8(%rip), %rsi      # 0x8969
movl $0x7, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x35ac(%rip), %rsi      # 0x8971
movl $0x27, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq 0x88(%r14), %rax
cmpq 0x80(%r14), %rax
je 0x547f
leaq 0x35ab(%rip), %rsi      # 0x8999
movl $0x19, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x35b0(%rip), %rsi      # 0x89b3
movl $0x30, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq -0x30(%rbp), %rdi
movq %r12, %rsi
callq 0x3180
movq %rax, %rbx
leaq 0x3483(%rip), %rsi      # 0x88aa
movl $0x1, %edx
movq %rax, %rdi
callq 0x32a0
movl $0xc, %esi
movq %rbx, %rdi
callq 0x3180
leaq 0x33ee(%rip), %rsi      # 0x8836
movl $0x2, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x3588(%rip), %rsi      # 0x89e4
movl $0x24, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x3598(%rip), %rsi      # 0x8a09
movl $0x1, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq 0x70(%r14), %rax
cmpq 0x68(%r14), %rax
je 0x5523
leaq 0x3577(%rip), %rsi      # 0x8a0b
movl $0x19, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x357c(%rip), %rsi      # 0x8a25
movl $0x31, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq -0x30(%rbp), %rdi
movq %r12, %rsi
callq 0x3180
movq %rax, %rbx
leaq 0x33dd(%rip), %rsi      # 0x88aa
movl $0x1, %edx
movq %rax, %rdi
callq 0x32a0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3180
leaq 0x334a(%rip), %rsi      # 0x8836
movl $0x2, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x3557(%rip), %rsi      # 0x8a57
movl $0x25, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x34f4(%rip), %rsi      # 0x8a09
movl $0x1, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x3553(%rip), %rsi      # 0x8a7d
movl $0x1d, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq -0x68(%rbp), %rsi
subq -0x70(%rbp), %rsi
sarq $0x2, %rsi
movq -0x30(%rbp), %rdi
callq 0x3180
leaq 0x3547(%rip), %rsi      # 0x8a9b
movl $0x16, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x3252(%rip), %rsi      # 0x87ba
movl $0x2, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x558b
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x3250
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x55a0
movq -0x60(%rbp), %rsi
subq %rdi, %rsi
callq 0x3250
leaq -0x1a0(%rbp), %rdi
callq 0x7d92
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x315d(%rip), %rdi      # 0x8722
leaq 0x2fb7(%rip), %rsi      # 0x8583
leaq 0x3154(%rip), %rcx      # 0x8727
movl $0x203, %edx            # imm = 0x203
callq 0x3170
jmp 0x55e9
jmp 0x55e1
movq %rax, %rbx
jmp 0x568a
movq %rax, %rbx
jmp 0x5624
jmp 0x56cc
movq %rax, %rbx
jmp 0x56ac
movq %rax, %rbx
jmp 0x5668
movq %rax, %rbx
jmp 0x5646
movq %rax, %rbx
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x5624
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x5646
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x5668
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x568a
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x56ac
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
je 0x56f5
movq -0x158(%rbp), %rsi
jmp 0x56ed
jmp 0x56cc
jmp 0x56cc
movq %rax, %rbx
jmp 0x56f5
jmp 0x56d7
jmp 0x56d7
jmp 0x56d7
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
cmpq %r15, %rdi
je 0x56f5
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x570a
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x3250
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x571f
movq -0x60(%rbp), %rsi
subq %rdi, %rsi
callq 0x3250
leaq -0x1a0(%rbp), %rdi
callq 0x7d92
movq %rbx, %rdi
callq 0x3420
nop