// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/libsquish/clusterfit.cpp
// Function: squish::ClusterFit::Compress4(void*)
void ClusterFit::Compress4( void* block )
{
    // declare variables
    int const count = m_colours->GetCount();
    Vec4 const two = VEC4_CONST( 2.0f );
    Vec4 const one = VEC4_CONST( 1.0f );
    Vec4 const onethird_onethird2( 1.0f/3.0f, 1.0f/3.0f, 1.0f/3.0f, 1.0f/9.0f );
    Vec4 const twothirds_twothirds2( 2.0f/3.0f, 2.0f/3.0f, 2.0f/3.0f, 4.0f/9.0f );
    Vec4 const twonineths = VEC4_CONST( 2.0f/9.0f );
    Vec4 const zero = VEC4_CONST( 0.0f );
    Vec4 const half = VEC4_CONST( 0.5f );
    Vec4 const grid( 31.0f, 63.0f, 31.0f, 0.0f );
    Vec4 const gridrcp( 1.0f/31.0f, 1.0f/63.0f, 1.0f/31.0f, 0.0f );

    // prepare an ordering using the principle axis
    ConstructOrdering( m_principle, 0 );

    // check all possible clusters and iterate on the total order
    Vec4 beststart = VEC4_CONST( 0.0f );
    Vec4 bestend = VEC4_CONST( 0.0f );
    Vec4 besterror = m_besterror;
    u8 bestindices[16];
    int bestiteration = 0;
    int besti = 0, bestj = 0, bestk = 0;

    // loop over iterations (we avoid the case that all points in first or last cluster)
    for( int iterationIndex = 0;; )
    {
        // first cluster [0,i) is at the start
        Vec4 part0 = VEC4_CONST( 0.0f );
        for( int i = 0; i < count; ++i )
        {
            // second cluster [i,j) is one third along
            Vec4 part1 = VEC4_CONST( 0.0f );
            for( int j = i;; )
            {
                // third cluster [j,k) is two thirds along
                Vec4 part2 = ( j == 0 ) ? m_points_weights[0] : VEC4_CONST( 0.0f );
                int kmin = ( j == 0 ) ? 1 : j;
                for( int k = kmin;; )
                {
                    // last cluster [k,count) is at the end
                    Vec4 part3 = m_xsum_wsum - part2 - part1 - part0;

                    // compute least squares terms directly
                    Vec4 const alphax_sum = MultiplyAdd( part2, onethird_onethird2, MultiplyAdd( part1, twothirds_twothirds2, part0 ) );
                    Vec4 const alpha2_sum = alphax_sum.SplatW();

                    Vec4 const betax_sum = MultiplyAdd( part1, onethird_onethird2, MultiplyAdd( part2, twothirds_twothirds2, part3 ) );
                    Vec4 const beta2_sum = betax_sum.SplatW();

                    Vec4 const alphabeta_sum = twonineths*( part1 + part2 ).SplatW();

                    // compute the least-squares optimal points
                    Vec4 factor = Reciprocal( NegativeMultiplySubtract( alphabeta_sum, alphabeta_sum, alpha2_sum*beta2_sum ) );
                    Vec4 a = NegativeMultiplySubtract( betax_sum, alphabeta_sum, alphax_sum*beta2_sum )*factor;
                    Vec4 b = NegativeMultiplySubtract( alphax_sum, alphabeta_sum, betax_sum*alpha2_sum )*factor;

                    // clamp to the grid
                    a = Min( one, Max( zero, a ) );
                    b = Min( one, Max( zero, b ) );
                    a = Truncate( MultiplyAdd( grid, a, half ) )*gridrcp;
                    b = Truncate( MultiplyAdd( grid, b, half ) )*gridrcp;

                    // compute the error (we skip the constant xxsum)
                    Vec4 e1 = MultiplyAdd( a*a, alpha2_sum, b*b*beta2_sum );
                    Vec4 e2 = NegativeMultiplySubtract( a, alphax_sum, a*b*alphabeta_sum );
                    Vec4 e3 = NegativeMultiplySubtract( b, betax_sum, e2 );
                    Vec4 e4 = MultiplyAdd( two, e3, e1 );

                    // apply the metric to the error term
                    Vec4 e5 = e4*m_metric;
                    Vec4 error = e5.SplatX() + e5.SplatY() + e5.SplatZ();

                    // keep the solution if it wins
                    if( CompareAnyLessThan( error, besterror ) )
                    {
                        beststart = a;
                        bestend = b;
                        besterror = error;
                        besti = i;
                        bestj = j;
                        bestk = k;
                        bestiteration = iterationIndex;
                    }

                    // advance
                    if( k == count )
                        break;
                    part2 += m_points_weights[k];
                    ++k;
                }

                // advance
                if( j == count )
                    break;
                part1 += m_points_weights[j];
                ++j;
            }

            // advance
            part0 += m_points_weights[i];
        }

        // stop if we didn't improve in this iteration
        if( bestiteration != iterationIndex )
            break;

        // advance if possible
        ++iterationIndex;
        if( iterationIndex == m_iterationCount )
            break;

        // stop if a new iteration is an ordering that has already been tried
        Vec3 axis = ( bestend - beststart ).GetVec3();
        if( !ConstructOrdering( axis, iterationIndex ) )
            break;
    }

    // save the block if necessary
    if( CompareAnyLessThan( besterror, m_besterror ) )
    {
        // remap the indices
        u8 const* order = ( u8* )m_order + 16*bestiteration;

        u8 unordered[16];
        for( int m = 0; m < besti; ++m )
            unordered[order[m]] = 0;
        for( int m = besti; m < bestj; ++m )
            unordered[order[m]] = 2;
        for( int m = bestj; m < bestk; ++m )
            unordered[order[m]] = 3;
        for( int m = bestk; m < count; ++m )
            unordered[order[m]] = 1;

        m_colours->RemapIndices( unordered, bestindices );

        // save the block
        WriteColourBlock4( beststart.GetVec3(), bestend.GetVec3(), bestindices, block );

        // save the error
        m_besterror = besterror;
    }
}

// Assembly:
subq $0x578, %rsp            # imm = 0x578
movq %rdi, 0x570(%rsp)
movq %rsi, 0x568(%rsp)
movq 0x570(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x8(%rax), %rdi
callq 0xa43d0
movl %eax, 0x564(%rsp)
leaq 0x554(%rsp), %rdi
movss 0xc0c9(%rip), %xmm0     # 0xb65d0
callq 0xab410
leaq 0x544(%rsp), %rdi
movss 0x88e4(%rip), %xmm0     # 0xb2e00
callq 0xab410
leaq 0x534(%rsp), %rdi
movss 0x10563(%rip), %xmm2    # 0xbaa94
movss 0x1055f(%rip), %xmm3    # 0xbaa98
movaps %xmm2, %xmm0
movaps %xmm2, %xmm1
callq 0xab3c0
leaq 0x524(%rsp), %rdi
movss 0x10538(%rip), %xmm2    # 0xbaa8c
movss 0x10534(%rip), %xmm3    # 0xbaa90
movaps %xmm2, %xmm0
movaps %xmm2, %xmm1
callq 0xab3c0
leaq 0x514(%rsp), %rdi
movss 0x10511(%rip), %xmm0    # 0xbaa88
callq 0xab410
leaq 0x504(%rsp), %rdi
xorps %xmm0, %xmm0
callq 0xab410
leaq 0x4f4(%rsp), %rdi
movss 0xc02c(%rip), %xmm0     # 0xb65c8
callq 0xab410
leaq 0x4e4(%rsp), %rdi
movss 0x104cf(%rip), %xmm2    # 0xbaa80
movss 0xc027(%rip), %xmm1     # 0xb65e0
xorps %xmm3, %xmm3
movaps %xmm2, %xmm0
callq 0xab3c0
leaq 0x4d4(%rsp), %rdi
movss 0x104a4(%rip), %xmm2    # 0xbaa78
movss 0x104a0(%rip), %xmm1    # 0xbaa7c
xorps %xmm3, %xmm3
movaps %xmm2, %xmm0
callq 0xab3c0
movq 0xa8(%rsp), %rdi
movq %rdi, %rsi
addq $0x18, %rsi
xorl %edx, %edx
callq 0xa9340
leaq 0x4c4(%rsp), %rdi
xorps %xmm0, %xmm0
callq 0xab410
leaq 0x4b4(%rsp), %rdi
xorps %xmm0, %xmm0
callq 0xab410
movq 0xa8(%rsp), %rax
movq 0x1c4(%rax), %rcx
movq %rcx, 0x4a4(%rsp)
movq 0x1cc(%rax), %rax
movq %rax, 0x4ac(%rsp)
movl $0x0, 0x48c(%rsp)
movl $0x0, 0x488(%rsp)
movl $0x0, 0x484(%rsp)
movl $0x0, 0x480(%rsp)
movl $0x0, 0x47c(%rsp)
leaq 0x46c(%rsp), %rdi
xorps %xmm0, %xmm0
callq 0xab410
movl $0x0, 0x468(%rsp)
movl 0x468(%rsp), %eax
cmpl 0x564(%rsp), %eax
jge 0xab066
leaq 0x458(%rsp), %rdi
xorps %xmm0, %xmm0
callq 0xab410
movl 0x468(%rsp), %eax
movl %eax, 0x454(%rsp)
cmpl $0x0, 0x454(%rsp)
jne 0xaa6f9
movq 0xa8(%rsp), %rax
movq 0xa4(%rax), %rcx
movq %rcx, 0x444(%rsp)
movq 0xac(%rax), %rax
movq %rax, 0x44c(%rsp)
jmp 0xaa709
leaq 0x444(%rsp), %rdi
xorps %xmm0, %xmm0
callq 0xab410
cmpl $0x0, 0x454(%rsp)
jne 0xaa721
movl $0x1, %eax
movl %eax, 0xa4(%rsp)
jmp 0xaa72f
movl 0x454(%rsp), %eax
movl %eax, 0xa4(%rsp)
movl 0xa4(%rsp), %eax
movl %eax, 0x440(%rsp)
movl 0x440(%rsp), %eax
movl %eax, 0x43c(%rsp)
movq 0xa8(%rsp), %rdi
addq $0x1a4, %rdi            # imm = 0x1A4
leaq 0x444(%rsp), %rsi
movq %rsi, 0x28(%rsp)
callq 0xab620
movlpd %xmm0, 0x40c(%rsp)
movlpd %xmm1, 0x414(%rsp)
leaq 0x40c(%rsp), %rdi
leaq 0x458(%rsp), %rsi
movq %rsi, 0x20(%rsp)
callq 0xab620
movlpd %xmm0, 0x41c(%rsp)
movlpd %xmm1, 0x424(%rsp)
leaq 0x41c(%rsp), %rdi
leaq 0x46c(%rsp), %rsi
movq %rsi, 0x8(%rsp)
callq 0xab620
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rdi
movlpd %xmm0, 0x42c(%rsp)
movlpd %xmm1, 0x434(%rsp)
leaq 0x524(%rsp), %rsi
movq %rsi, 0x10(%rsp)
callq 0xab660
movq 0x28(%rsp), %rdi
movlpd %xmm0, 0x3ec(%rsp)
movlpd %xmm1, 0x3f4(%rsp)
leaq 0x534(%rsp), %rsi
movq %rsi, 0x18(%rsp)
leaq 0x3ec(%rsp), %rdx
callq 0xab660
movlpd %xmm0, 0x3fc(%rsp)
movlpd %xmm1, 0x404(%rsp)
leaq 0x3fc(%rsp), %rdi
movq %rdi, 0x80(%rsp)
callq 0xab6c0
movq 0x10(%rsp), %rsi
movq 0x28(%rsp), %rdi
movlpd %xmm0, 0x3dc(%rsp)
movlpd %xmm1, 0x3e4(%rsp)
leaq 0x42c(%rsp), %rdx
callq 0xab660
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdi
movlpd %xmm0, 0x3bc(%rsp)
movlpd %xmm1, 0x3c4(%rsp)
leaq 0x3bc(%rsp), %rdx
callq 0xab660
movlpd %xmm0, 0x3cc(%rsp)
movlpd %xmm1, 0x3d4(%rsp)
leaq 0x3cc(%rsp), %rdi
movq %rdi, 0x90(%rsp)
callq 0xab6c0
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movlpd %xmm0, 0x3ac(%rsp)
movlpd %xmm1, 0x3b4(%rsp)
callq 0xabaa0
movlpd %xmm0, 0x37c(%rsp)
movlpd %xmm1, 0x384(%rsp)
leaq 0x37c(%rsp), %rdi
callq 0xab6c0
movlpd %xmm0, 0x38c(%rsp)
movlpd %xmm1, 0x394(%rsp)
leaq 0x514(%rsp), %rdi
leaq 0x38c(%rsp), %rsi
callq 0xab580
movlpd %xmm0, 0x39c(%rsp)
movlpd %xmm1, 0x3a4(%rsp)
leaq 0x3dc(%rsp), %rdi
movq %rdi, 0x68(%rsp)
leaq 0x3ac(%rsp), %rsi
movq %rsi, 0x60(%rsp)
callq 0xab580
movlpd %xmm0, 0x34c(%rsp)
movlpd %xmm1, 0x354(%rsp)
leaq 0x39c(%rsp), %rsi
movq %rsi, 0x70(%rsp)
leaq 0x34c(%rsp), %rdx
movq %rsi, %rdi
callq 0xab750
movlpd %xmm0, 0x35c(%rsp)
movlpd %xmm1, 0x364(%rsp)
leaq 0x35c(%rsp), %rdi
callq 0xab6f0
movq 0x60(%rsp), %rsi
movq 0x80(%rsp), %rdi
movlpd %xmm0, 0x36c(%rsp)
movlpd %xmm1, 0x374(%rsp)
callq 0xab580
movq 0x70(%rsp), %rsi
movq 0x90(%rsp), %rdi
movlpd %xmm0, 0x310(%rsp)
movlpd %xmm1, 0x318(%rsp)
leaq 0x310(%rsp), %rdx
callq 0xab750
movlpd %xmm0, 0x320(%rsp)
movlpd %xmm1, 0x328(%rsp)
leaq 0x320(%rsp), %rdi
leaq 0x36c(%rsp), %rsi
movq %rsi, 0x30(%rsp)
callq 0xab580
movq 0x68(%rsp), %rsi
movq 0x90(%rsp), %rdi
movlpd %xmm0, 0x330(%rsp)
movlpd %xmm1, 0x338(%rsp)
callq 0xab580
movq 0x70(%rsp), %rsi
movq 0x80(%rsp), %rdi
movlpd %xmm0, 0x2e0(%rsp)
movlpd %xmm1, 0x2e8(%rsp)
leaq 0x2e0(%rsp), %rdx
callq 0xab750
movq 0x30(%rsp), %rsi
movlpd %xmm0, 0x2f0(%rsp)
movlpd %xmm1, 0x2f8(%rsp)
leaq 0x2f0(%rsp), %rdi
callq 0xab580
movlpd %xmm0, 0x300(%rsp)
movlpd %xmm1, 0x308(%rsp)
leaq 0x504(%rsp), %rdi
movq %rdi, 0x38(%rsp)
leaq 0x330(%rsp), %rsi
movq %rsi, 0x78(%rsp)
callq 0xab880
movlpd %xmm0, 0x2c0(%rsp)
movlpd %xmm1, 0x2c8(%rsp)
leaq 0x544(%rsp), %rdi
movq %rdi, 0x40(%rsp)
leaq 0x2c0(%rsp), %rsi
callq 0xab7c0
movq 0x38(%rsp), %rdi
movlpd %xmm0, 0x2d0(%rsp)
movlpd %xmm1, 0x2d8(%rsp)
movups 0x2d0(%rsp), %xmm0
movaps %xmm0, 0x330(%rsp)
leaq 0x300(%rsp), %rsi
movq %rsi, 0x88(%rsp)
callq 0xab880
movq 0x40(%rsp), %rdi
movlpd %xmm0, 0x2a0(%rsp)
movlpd %xmm1, 0x2a8(%rsp)
leaq 0x2a0(%rsp), %rsi
callq 0xab7c0
movq 0x78(%rsp), %rsi
movlpd %xmm0, 0x2b0(%rsp)
movlpd %xmm1, 0x2b8(%rsp)
movups 0x2b0(%rsp), %xmm0
movaps %xmm0, 0x300(%rsp)
leaq 0x4e4(%rsp), %rdi
movq %rdi, 0x48(%rsp)
leaq 0x4f4(%rsp), %rdx
movq %rdx, 0x50(%rsp)
callq 0xab660
movlpd %xmm0, 0x270(%rsp)
movlpd %xmm1, 0x278(%rsp)
leaq 0x270(%rsp), %rdi
callq 0xab940
movlpd %xmm0, 0x280(%rsp)
movlpd %xmm1, 0x288(%rsp)
leaq 0x280(%rsp), %rdi
leaq 0x4d4(%rsp), %rsi
movq %rsi, 0x58(%rsp)
callq 0xab580
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rdx
movq 0x88(%rsp), %rsi
movlpd %xmm0, 0x290(%rsp)
movlpd %xmm1, 0x298(%rsp)
movups 0x290(%rsp), %xmm0
movaps %xmm0, 0x330(%rsp)
callq 0xab660
movlpd %xmm0, 0x240(%rsp)
movlpd %xmm1, 0x248(%rsp)
leaq 0x240(%rsp), %rdi
callq 0xab940
movq 0x58(%rsp), %rsi
movlpd %xmm0, 0x250(%rsp)
movlpd %xmm1, 0x258(%rsp)
leaq 0x250(%rsp), %rdi
callq 0xab580
movq 0x78(%rsp), %rsi
movlpd %xmm0, 0x260(%rsp)
movlpd %xmm1, 0x268(%rsp)
movups 0x260(%rsp), %xmm0
movaps %xmm0, 0x300(%rsp)
movq %rsi, %rdi
callq 0xab580
movq 0x88(%rsp), %rsi
movlpd %xmm0, 0x220(%rsp)
movlpd %xmm1, 0x228(%rsp)
movq %rsi, %rdi
callq 0xab580
movq 0x60(%rsp), %rsi
movlpd %xmm0, 0x200(%rsp)
movlpd %xmm1, 0x208(%rsp)
leaq 0x200(%rsp), %rdi
callq 0xab580
movq 0x68(%rsp), %rsi
movlpd %xmm0, 0x210(%rsp)
movlpd %xmm1, 0x218(%rsp)
leaq 0x220(%rsp), %rdi
leaq 0x210(%rsp), %rdx
callq 0xab660
movq 0x78(%rsp), %rdi
movq 0x88(%rsp), %rsi
movlpd %xmm0, 0x230(%rsp)
movlpd %xmm1, 0x238(%rsp)
callq 0xab580
movq 0x70(%rsp), %rsi
movlpd %xmm0, 0x1d0(%rsp)
movlpd %xmm1, 0x1d8(%rsp)
leaq 0x1d0(%rsp), %rdi
callq 0xab580
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
movlpd %xmm0, 0x1e0(%rsp)
movlpd %xmm1, 0x1e8(%rsp)
leaq 0x1e0(%rsp), %rdx
callq 0xab750
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
movlpd %xmm0, 0x1f0(%rsp)
movlpd %xmm1, 0x1f8(%rsp)
leaq 0x1f0(%rsp), %rdx
callq 0xab750
movlpd %xmm0, 0x1c0(%rsp)
movlpd %xmm1, 0x1c8(%rsp)
leaq 0x554(%rsp), %rdi
leaq 0x1c0(%rsp), %rsi
leaq 0x230(%rsp), %rdx
callq 0xab660
movq 0xa8(%rsp), %rsi
movlpd %xmm0, 0x1b0(%rsp)
movlpd %xmm1, 0x1b8(%rsp)
addq $0x1b4, %rsi            # imm = 0x1B4
leaq 0x1b0(%rsp), %rdi
callq 0xab580
movlpd %xmm0, 0x1a0(%rsp)
movlpd %xmm1, 0x1a8(%rsp)
leaq 0x1a0(%rsp), %rdi
movq %rdi, 0x98(%rsp)
callq 0xabae0
movq 0x98(%rsp), %rdi
movlpd %xmm0, 0x170(%rsp)
movlpd %xmm1, 0x178(%rsp)
callq 0xabb10
movlpd %xmm0, 0x160(%rsp)
movlpd %xmm1, 0x168(%rsp)
leaq 0x170(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0xabaa0
movq 0x98(%rsp), %rdi
movlpd %xmm0, 0x180(%rsp)
movlpd %xmm1, 0x188(%rsp)
callq 0xabb40
movlpd %xmm0, 0x150(%rsp)
movlpd %xmm1, 0x158(%rsp)
leaq 0x180(%rsp), %rdi
leaq 0x150(%rsp), %rsi
callq 0xabaa0
movlpd %xmm0, 0x190(%rsp)
movlpd %xmm1, 0x198(%rsp)
leaq 0x190(%rsp), %rdi
leaq 0x4a4(%rsp), %rsi
callq 0xabb70
testb $0x1, %al
jne 0xaaee7
jmp 0xaaf7f
movq 0x330(%rsp), %rax
movq %rax, 0x4c4(%rsp)
movq 0x338(%rsp), %rax
movq %rax, 0x4cc(%rsp)
movq 0x300(%rsp), %rax
movq %rax, 0x4b4(%rsp)
movq 0x308(%rsp), %rax
movq %rax, 0x4bc(%rsp)
movq 0x190(%rsp), %rax
movq %rax, 0x4a4(%rsp)
movq 0x198(%rsp), %rax
movq %rax, 0x4ac(%rsp)
movl 0x468(%rsp), %eax
movl %eax, 0x488(%rsp)
movl 0x454(%rsp), %eax
movl %eax, 0x484(%rsp)
movl 0x43c(%rsp), %eax
movl %eax, 0x480(%rsp)
movl 0x47c(%rsp), %eax
movl %eax, 0x48c(%rsp)
movl 0x43c(%rsp), %eax
cmpl 0x564(%rsp), %eax
jne 0xaaf91
jmp 0xaafd2
movq 0xa8(%rsp), %rsi
addq $0xa4, %rsi
movslq 0x43c(%rsp), %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq 0x444(%rsp), %rdi
callq 0xab5c0
movl 0x43c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x43c(%rsp)
jmp 0xaa74b
movl 0x454(%rsp), %eax
cmpl 0x564(%rsp), %eax
jne 0xaafe4
jmp 0xab025
movq 0xa8(%rsp), %rsi
addq $0xa4, %rsi
movslq 0x454(%rsp), %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq 0x458(%rsp), %rdi
callq 0xab5c0
movl 0x454(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x454(%rsp)
jmp 0xaa6c7
movq 0xa8(%rsp), %rsi
addq $0xa4, %rsi
movslq 0x468(%rsp), %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq 0x46c(%rsp), %rdi
callq 0xab5c0
movl 0x468(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x468(%rsp)
jmp 0xaa695
movl 0x48c(%rsp), %eax
cmpl 0x47c(%rsp), %eax
je 0xab07b
jmp 0xab130
movq 0xa8(%rsp), %rcx
movl 0x47c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x47c(%rsp)
movl 0x47c(%rsp), %eax
cmpl 0x14(%rcx), %eax
jne 0xab0a5
jmp 0xab130
leaq 0x4b4(%rsp), %rdi
leaq 0x4c4(%rsp), %rsi
callq 0xab620
movlpd %xmm0, 0x134(%rsp)
movlpd %xmm1, 0x13c(%rsp)
leaq 0x134(%rsp), %rdi
callq 0xabc00
movq 0xa8(%rsp), %rdi
movss %xmm1, 0x128(%rsp)
movlpd %xmm0, 0x120(%rsp)
movq 0x120(%rsp), %rax
movq %rax, 0x144(%rsp)
movl 0x128(%rsp), %eax
movl %eax, 0x14c(%rsp)
movl 0x47c(%rsp), %edx
leaq 0x144(%rsp), %rsi
callq 0xa9340
testb $0x1, %al
jne 0xab12b
jmp 0xab130
jmp 0xaa67a
movq 0xa8(%rsp), %rsi
addq $0x1c4, %rsi            # imm = 0x1C4
leaq 0x4a4(%rsp), %rdi
callq 0xabb70
testb $0x1, %al
jne 0xab155
jmp 0xab390
movq 0xa8(%rsp), %rax
addq $0x24, %rax
movl 0x48c(%rsp), %ecx
shll $0x4, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x118(%rsp)
movl $0x0, 0xfc(%rsp)
movl 0xfc(%rsp), %eax
cmpl 0x488(%rsp), %eax
jge 0xab1c3
movq 0x118(%rsp), %rax
movslq 0xfc(%rsp), %rcx
movzbl (%rax,%rcx), %eax
movb $0x0, 0x100(%rsp,%rax)
movl 0xfc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xfc(%rsp)
jmp 0xab184
movl 0x488(%rsp), %eax
movl %eax, 0xf8(%rsp)
movl 0xf8(%rsp), %eax
cmpl 0x484(%rsp), %eax
jge 0xab210
movq 0x118(%rsp), %rax
movslq 0xf8(%rsp), %rcx
movzbl (%rax,%rcx), %eax
movb $0x2, 0x100(%rsp,%rax)
movl 0xf8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xf8(%rsp)
jmp 0xab1d1
movl 0x484(%rsp), %eax
movl %eax, 0xf4(%rsp)
movl 0xf4(%rsp), %eax
cmpl 0x480(%rsp), %eax
jge 0xab25d
movq 0x118(%rsp), %rax
movslq 0xf4(%rsp), %rcx
movzbl (%rax,%rcx), %eax
movb $0x3, 0x100(%rsp,%rax)
movl 0xf4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xf4(%rsp)
jmp 0xab21e
movl 0x480(%rsp), %eax
movl %eax, 0xf0(%rsp)
movl 0xf0(%rsp), %eax
cmpl 0x564(%rsp), %eax
jge 0xab2aa
movq 0x118(%rsp), %rax
movslq 0xf0(%rsp), %rcx
movzbl (%rax,%rcx), %eax
movb $0x1, 0x100(%rsp,%rax)
movl 0xf0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xf0(%rsp)
jmp 0xab26b
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x100(%rsp), %rsi
leaq 0x490(%rsp), %rdx
callq 0xacb60
leaq 0x4c4(%rsp), %rdi
callq 0xabc00
movss %xmm1, 0xd8(%rsp)
movlpd %xmm0, 0xd0(%rsp)
movl 0xd8(%rsp), %eax
movl %eax, 0xe8(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0xe0(%rsp)
leaq 0x4b4(%rsp), %rdi
callq 0xabc00
movss %xmm1, 0xb8(%rsp)
movlpd %xmm0, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0xc4(%rsp)
movl 0xb8(%rsp), %eax
movl %eax, 0xcc(%rsp)
leaq 0x490(%rsp), %rdx
movq 0x568(%rsp), %rcx
leaq 0xe0(%rsp), %rdi
leaq 0xc4(%rsp), %rsi
callq 0xac0f0
movq 0xa8(%rsp), %rax
movq 0x4a4(%rsp), %rcx
movq %rcx, 0x1c4(%rax)
movq 0x4ac(%rsp), %rcx
movq %rcx, 0x1cc(%rax)
addq $0x578, %rsp            # imm = 0x578
retq
nopl (%rax,%rax)