// File: /workspace/github_cpp_makefile_star2_O3/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 0x55a8
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 0x4ff5
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 0x495a
movl $0x4, %ebx
movl %r12d, %eax
cmpl $0x63, %eax
jbe 0x4953
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x4958
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x495a
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x4925
addl $-0x3, %ebx
jmp 0x495a
addl $-0x2, %ebx
jmp 0x495a
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 0x756e
movq %r14, %rdi
leaq 0x3ad0(%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 0x49ea
movq %rdx, -0x118(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x108(%rbp)
jmp 0x49f0
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 0x4a69
movl (%rax,%r13,4), %r15d
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
movl $0x1, %ebx
cmpl $0xa, %r12d
jb 0x4a96
movl $0x4, %ebx
movl %r12d, %eax
cmpl $0x63, %eax
jbe 0x4a8f
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x4a94
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x4a96
movl %eax, %ecx
imulq %rsi, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x4a3b
addl $-0x3, %ebx
jmp 0x4a96
leaq -0xa0(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0xb0(%rbp), %rdi
leaq 0x3927(%rip), %rdx      # 0x83ac
movq %rdx, %rsi
callq 0x5988
jmp 0x4ae6
addl $-0x2, %ebx
jmp 0x4a96
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 0x756e
leaq -0x108(%rbp), %rbx
leaq -0xe0(%rbp), %r15
leaq -0x128(%rbp), %r12
movq -0x118(%rbp), %rcx
movq -0x110(%rbp), %r8
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movl $0xf, %edi
cmpq %rbx, %rcx
je 0x4b13
movq -0x108(%rbp), %rdi
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x4b39
movl $0xf, %edi
leaq -0xa0(%rbp), %r9
cmpq %r9, %rsi
je 0x4b34
movq -0xa0(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x4b47
leaq -0x118(%rbp), %rdi
callq 0x30a0
jmp 0x4b57
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 0x4b7d
movq %rdx, -0xf0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xe0(%rbp)
jmp 0x4b84
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 0x38ba(%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 0x4be4
movq %rdx, -0x138(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x128(%rbp)
jmp 0x4bec
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 0x4c5f
movl (%rax,%r13,4), %r15d
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
movl $0x1, %ebx
cmpl $0xa, %r12d
jb 0x4c89
movl $0x4, %ebx
movl %r12d, %eax
cmpl $0x63, %eax
jbe 0x4c82
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x4c87
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x4c89
movl %eax, %ecx
imulq %rsi, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x4c31
addl $-0x3, %ebx
jmp 0x4c89
leaq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x90(%rbp), %rdi
leaq 0x3734(%rip), %rdx      # 0x83ac
movq %rdx, %rsi
callq 0x5988
jmp 0x4cd6
addl $-0x2, %ebx
jmp 0x4c89
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 0x756e
leaq -0x108(%rbp), %rbx
leaq -0xe0(%rbp), %r15
leaq -0x128(%rbp), %r12
movq -0x138(%rbp), %rcx
movq -0x130(%rbp), %r8
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
movl $0xf, %edi
cmpq %r12, %rcx
je 0x4d03
movq -0x128(%rbp), %rdi
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x4d23
movl $0xf, %edi
leaq -0x80(%rbp), %r9
cmpq %r9, %rsi
je 0x4d1e
movq -0x80(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x4d31
leaq -0x138(%rbp), %rdi
callq 0x30a0
jmp 0x4d41
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 0x4d6e
movq %rdx, -0xd0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xc0(%rbp)
jmp 0x4d74
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 0x4daf
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x138(%rbp), %rdi
cmpq %r12, %rdi
je 0x4dca
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0xf0(%rbp), %rdi
cmpq %r15, %rdi
leaq -0x1a0(%rbp), %r12
je 0x4dec
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
leaq -0xc0(%rbp), %r15
je 0x4e15
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x118(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4e30
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
je 0x4e52
movq -0x158(%rbp), %rsi
incq %rsi
callq 0x3250
movq %r12, %rdi
leaq -0xd0(%rbp), %rsi
callq 0x75e0
testq %rax, %rax
jne 0x4f80
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 0x4e9b
movss (%rdx), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x4ea4
leaq -0x50(%rbp), %rdi
callq 0x770c
addq $0x4, %rbx
cmpq $0xc, %rbx
jne 0x4e6c
movq 0x88(%r14), %rax
cmpq 0x80(%r14), %rax
je 0x4f0d
movb $0x1, %bl
xorl %eax, %eax
movq 0x80(%r14), %rcx
movslq (%rcx,%r13,4), %rcx
shlq $0x3, %rcx
addq 0x38(%r14), %rcx
leaq (%rcx,%rax,4), %rdx
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x4ef5
movss (%rdx), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x4efe
leaq -0x50(%rbp), %rdi
callq 0x770c
movl $0x1, %eax
testb $0x1, %bl
movl $0x0, %ebx
jne 0x4ec2
movq 0x70(%r14), %rax
cmpq 0x68(%r14), %rax
je 0x4f5f
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 0x4f4c
movss (%rdx), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x4f55
leaq -0x50(%rbp), %rdi
callq 0x770c
addq $0x4, %rbx
cmpq $0xc, %rbx
jne 0x4f19
movq %r12, %rdi
leaq -0xd0(%rbp), %rsi
callq 0x7850
movq -0x140(%rbp), %rcx
movl %ecx, (%rax)
incl %ecx
movq %rcx, -0x140(%rbp)
movq %r12, %rdi
leaq -0xd0(%rbp), %rsi
callq 0x7850
movq -0x68(%rbp), %rsi
cmpq -0x60(%rbp), %rsi
je 0x4fa7
movl (%rax), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x68(%rbp)
jmp 0x4fb3
leaq -0x70(%rbp), %rdi
movq %rax, %rdx
callq 0x7bec
movq -0xd0(%rbp), %rdi
cmpq %r15, %rdi
je 0x4fce
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 0x4904
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 0x3781(%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 0x375c(%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 0x373d(%rip), %rsi      # 0x87bd
movl $0x18, %edx
movq %rax, %rdi
callq 0x32a0
movq -0x50(%rbp), %r13
cmpq -0x48(%rbp), %r13
je 0x50d1
leaq 0x380c(%rip), %rbx      # 0x88aa
xorps %xmm0, %xmm0
cvtss2sd (%r13), %xmm0
movq -0x30(%rbp), %rdi
callq 0x33a0
addq $0x4, %r13
cmpq -0x48(%rbp), %r13
je 0x50d1
movl $0x1, %edx
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x32a0
cmpq -0x48(%rbp), %r13
jne 0x509e
leaq 0x36fe(%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 0x36d6(%rip), %rsi      # 0x87da
movl $0x1c, %edx
movq %rax, %rdi
callq 0x32a0
movq -0x70(%rbp), %r13
cmpq -0x68(%rbp), %r13
je 0x5150
leaq 0x3788(%rip), %rbx      # 0x88aa
movl (%r13), %esi
movq -0x30(%rbp), %rdi
callq 0x3180
addq $0x4, %r13
cmpq -0x68(%rbp), %r13
je 0x5150
movl $0x1, %edx
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x32a0
cmpq -0x68(%rbp), %r13
jne 0x5122
leaq 0x367f(%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 0x3673(%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 0x3660(%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 0x3653(%rip), %rsi      # 0x8821
movl $0x17, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x3657(%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 0x3650(%rip), %rsi      # 0x8858
movl $0x6, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x3643(%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 0x3644(%rip), %rsi      # 0x8886
movl $0x6, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x3637(%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 0x3630(%rip), %rsi      # 0x88ac
movl $0x16, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x3633(%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 0x3631(%rip), %rsi      # 0x88ea
movl $0x1b, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x34ed(%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 0x3614(%rip), %rsi      # 0x8906
movl $0x2e, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x3533(%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 0x352c(%rip), %rsi      # 0x8858
movl $0x6, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x351f(%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 0x3520(%rip), %rsi      # 0x8886
movl $0x6, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x35bb(%rip), %rsi      # 0x8935
movl $0x33, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq -0x30(%rbp), %rdi
movq %r12, %rsi
callq 0x3180
leaq 0x35ce(%rip), %rsi      # 0x8969
movl $0x7, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x35c2(%rip), %rsi      # 0x8971
movl $0x27, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq 0x88(%r14), %rax
cmpq 0x80(%r14), %rax
je 0x5469
leaq 0x35c1(%rip), %rsi      # 0x8999
movl $0x19, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x35c6(%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 0x3499(%rip), %rsi      # 0x88aa
movl $0x1, %edx
movq %rax, %rdi
callq 0x32a0
movl $0xc, %esi
movq %rbx, %rdi
callq 0x3180
leaq 0x3404(%rip), %rsi      # 0x8836
movl $0x2, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x359e(%rip), %rsi      # 0x89e4
movl $0x24, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x35ae(%rip), %rsi      # 0x8a09
movl $0x1, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq 0x70(%r14), %rax
cmpq 0x68(%r14), %rax
je 0x550d
leaq 0x358d(%rip), %rsi      # 0x8a0b
movl $0x19, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x3592(%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 0x33f3(%rip), %rsi      # 0x88aa
movl $0x1, %edx
movq %rax, %rdi
callq 0x32a0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3180
leaq 0x3360(%rip), %rsi      # 0x8836
movl $0x2, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x356d(%rip), %rsi      # 0x8a57
movl $0x25, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x350a(%rip), %rsi      # 0x8a09
movl $0x1, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
leaq 0x3569(%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 0x355d(%rip), %rsi      # 0x8a9b
movl $0x16, %edx
movq %rax, %rdi
callq 0x32a0
leaq 0x3268(%rip), %rsi      # 0x87ba
movl $0x2, %edx
movq -0x30(%rbp), %rdi
callq 0x32a0
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x5575
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x3250
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x558a
movq -0x60(%rbp), %rsi
subq %rdi, %rsi
callq 0x3250
leaq -0x1a0(%rbp), %rdi
callq 0x7d2c
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3173(%rip), %rdi      # 0x8722
leaq 0x2fcd(%rip), %rsi      # 0x8583
leaq 0x316a(%rip), %rcx      # 0x8727
movl $0x203, %edx            # imm = 0x203
callq 0x3170
jmp 0x55d3
jmp 0x55cb
movq %rax, %rbx
jmp 0x5674
movq %rax, %rbx
jmp 0x560e
jmp 0x56b6
movq %rax, %rbx
jmp 0x5696
movq %rax, %rbx
jmp 0x5652
movq %rax, %rbx
jmp 0x5630
movq %rax, %rbx
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x560e
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x5630
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x5652
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x5674
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x5696
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
je 0x56df
movq -0x158(%rbp), %rsi
jmp 0x56d7
jmp 0x56b6
jmp 0x56b6
movq %rax, %rbx
jmp 0x56df
jmp 0x56c1
jmp 0x56c1
jmp 0x56c1
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
cmpq %r15, %rdi
je 0x56df
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x3250
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x56f4
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x3250
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x5709
movq -0x60(%rbp), %rsi
subq %rdi, %rsi
callq 0x3250
leaq -0x1a0(%rbp), %rdi
callq 0x7d2c
movq %rbx, %rdi
callq 0x3420
nop