// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sw_trace_scan_sse2_128_16.c
// Function: parasail_sw_trace_scan_profile_sse2_128_16
parasail_result_t* PNAME(
        const parasail_profile_t * const restrict profile,
        const char * const restrict s2, const int s2Len,
        const int open, const int gap)
{
    /* declare local variables */
    int32_t i = 0;
    int32_t j = 0;
    int32_t end_query = 0;
    int32_t end_ref = 0;
    int32_t s1Len = 0;
    const parasail_matrix_t *matrix = NULL;
    int32_t segWidth = 0;
    int32_t segLen = 0;
    __m128i* restrict pvP = NULL;
    __m128i* restrict pvE = NULL;
    __m128i* restrict pvHt = NULL;
    __m128i* restrict pvH = NULL;
    __m128i* restrict pvHMax = NULL;
    __m128i* restrict pvGapper = NULL;
    __m128i vGapO;
    __m128i vGapE;
    int16_t NEG_LIMIT = 0;
    int16_t POS_LIMIT = 0;
    __m128i vZero;
    int16_t score = 0;
    __m128i vNegLimit;
    __m128i vPosLimit;
    __m128i vSaturationCheckMin;
    __m128i vSaturationCheckMax;
    __m128i vMaxH;
    __m128i vMaxHUnit;
    __m128i vNegInfFront;
    __m128i vSegLenXgap;
    parasail_result_t *result = NULL;
    __m128i vTZero;
    __m128i vTIns;
    __m128i vTDel;
    __m128i vTDiag;
    __m128i vTDiagE;
    __m128i vTInsE;
    __m128i vTDiagF;
    __m128i vTDelF;

    /* validate inputs */
    PARASAIL_CHECK_NULL(profile);
    PARASAIL_CHECK_NULL(profile->profile16.score);
    PARASAIL_CHECK_NULL(profile->matrix);
    PARASAIL_CHECK_GT0(profile->s1Len);
    PARASAIL_CHECK_NULL(s2);
    PARASAIL_CHECK_GT0(s2Len);
    PARASAIL_CHECK_GE0(open);
    PARASAIL_CHECK_GE0(gap);

    /* initialize stack variables */
    i = 0;
    j = 0;
    end_query = 0;
    end_ref = 0;
    s1Len = profile->s1Len;
    matrix = profile->matrix;
    segWidth = 8; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
    pvP = (__m128i*)profile->profile16.score;
    vGapO = _mm_set1_epi16(open);
    vGapE = _mm_set1_epi16(gap);
    NEG_LIMIT = (-open < matrix->min ? INT16_MIN + open : INT16_MIN - matrix->min) + 1;
    POS_LIMIT = INT16_MAX - matrix->max - 1;
    vZero = _mm_setzero_si128();
    score = NEG_LIMIT;
    vNegLimit = _mm_set1_epi16(NEG_LIMIT);
    vPosLimit = _mm_set1_epi16(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vMaxH = vNegLimit;
    vMaxHUnit = vNegLimit;
    vNegInfFront = vZero;
    vNegInfFront = _mm_insert_epi16(vNegInfFront, NEG_LIMIT, 0);
    vSegLenXgap = _mm_adds_epi16(vNegInfFront,
            _mm_slli_si128(_mm_set1_epi16(-segLen*gap), 2));
    vTZero = _mm_set1_epi16(PARASAIL_ZERO);
    vTIns  = _mm_set1_epi16(PARASAIL_INS);
    vTDel  = _mm_set1_epi16(PARASAIL_DEL);
    vTDiag = _mm_set1_epi16(PARASAIL_DIAG);
    vTDiagE = _mm_set1_epi16(PARASAIL_DIAG_E);
    vTInsE = _mm_set1_epi16(PARASAIL_INS_E);
    vTDiagF = _mm_set1_epi16(PARASAIL_DIAG_F);
    vTDelF = _mm_set1_epi16(PARASAIL_DEL_F);


    /* initialize result */
    result = parasail_result_new_trace(segLen, s2Len, 16, sizeof(__m128i));
    if (!result) return NULL;

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SW | PARASAIL_FLAG_SCAN
        | PARASAIL_FLAG_TRACE
        | PARASAIL_FLAG_BITS_16 | PARASAIL_FLAG_LANES_8;

    /* initialize heap variables */
    pvE    = parasail_memalign___m128i(16, segLen);
    pvHt   = parasail_memalign___m128i(16, segLen);
    pvH    = parasail_memalign___m128i(16, segLen);
    pvHMax = parasail_memalign___m128i(16, segLen);
    pvGapper = parasail_memalign___m128i(16, segLen);

    /* validate heap variables */
    if (!pvE) return NULL;
    if (!pvHt) return NULL;
    if (!pvH) return NULL;
    if (!pvHMax) return NULL;
    if (!pvGapper) return NULL;

    parasail_memset___m128i(pvH, vZero, segLen);
    parasail_memset___m128i(pvE, vNegLimit, segLen);
    {
        __m128i vGapper = _mm_subs_epi16(vZero,vGapO);
        for (i=segLen-1; i>=0; --i) {
            _mm_store_si128(pvGapper+i, vGapper);
            vGapper = _mm_subs_epi16(vGapper, vGapE);
        }
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m128i vE;
        __m128i vE_ext;
        __m128i vE_opn;
        __m128i vHt;
        __m128i vF;
        __m128i vF_ext;
        __m128i vF_opn;
        __m128i vH;
        __m128i vHp;
        __m128i *pvW;
        __m128i vW;
        __m128i case1;
        __m128i case2;
        __m128i case0;
        __m128i vGapper;
        __m128i vT;
        __m128i vET;
        __m128i vFT;

        /* calculate E */
        /* calculate Ht */
        /* calculate F and H first pass */
        vHp = _mm_load_si128(pvH+(segLen-1));
        vHp = _mm_slli_si128(vHp, 2);
        pvW = pvP + matrix->mapper[(unsigned char)s2[j]]*segLen;
        vHt = vZero;
        vF = vNegLimit;
        for (i=0; i<segLen; ++i) {
            vH = _mm_load_si128(pvH+i);
            vE = _mm_load_si128(pvE+i);
            vW = _mm_load_si128(pvW+i);
            vGapper = _mm_load_si128(pvGapper+i);
            vE_opn = _mm_subs_epi16(vH, vGapO);
            vE_ext = _mm_subs_epi16(vE, vGapE);
            case1 = _mm_cmpgt_epi16(vE_opn, vE_ext);
            vET = _mm_blendv_epi8_rpl(vTInsE, vTDiagE, case1);
            arr_store(result->trace->trace_table, vET, i, segLen, j);
            vE = _mm_max_epi16(vE_opn, vE_ext);
            vGapper = _mm_adds_epi16(vHt, vGapper);
            vF = _mm_max_epi16(vF, vGapper);
            vHp = _mm_adds_epi16(vHp, vW);
            vHt = _mm_max_epi16(vE, vHp);
            _mm_store_si128(pvE+i, vE);
            _mm_store_si128(pvHt+i, vHt);
            _mm_store_si128(pvH+i, vHp);
            vHp = vH;
        }

        /* pseudo prefix scan on F and H */
        vHt = _mm_slli_si128(vHt, 2);
        vGapper = _mm_load_si128(pvGapper);
        vGapper = _mm_adds_epi16(vHt, vGapper);
        vF = _mm_max_epi16(vF, vGapper);
        for (i=0; i<segWidth-2; ++i) {
            __m128i vFt = _mm_slli_si128(vF, 2);
            vFt = _mm_adds_epi16(vFt, vSegLenXgap);
            vF = _mm_max_epi16(vF, vFt);
        }

        /* calculate final H */
        vF = _mm_slli_si128(vF, 2);
        vF = _mm_adds_epi16(vF, vNegInfFront);
        vH = _mm_max_epi16(vF, vHt);
        vH = _mm_max_epi16(vH, vZero);
        for (i=0; i<segLen; ++i) {
            vET = arr_load(result->trace->trace_table, i, segLen, j);
            vHp = _mm_load_si128(pvH+i);
            vHt = _mm_load_si128(pvHt+i);
            vF_opn = _mm_subs_epi16(vH, vGapO);
            vF_ext = _mm_subs_epi16(vF, vGapE);
            vF = _mm_max_epi16(vF_opn, vF_ext);
            case1 = _mm_cmpgt_epi16(vF_opn, vF_ext);
            vFT = _mm_blendv_epi8_rpl(vTDelF, vTDiagF, case1);
            vH = _mm_max_epi16(vHt, vF);
            vH = _mm_max_epi16(vH, vZero);
            case0 = _mm_cmpeq_epi16(vH, vZero);
            case1 = _mm_cmpeq_epi16(vH, vHp);
            case2 = _mm_cmpeq_epi16(vH, vF);
            vT = _mm_blendv_epi8_rpl(
                    _mm_blendv_epi8_rpl(vTIns, vTDel, case2),
                    vTDiag, case1);
            vT = _mm_blendv_epi8_rpl(vT, vTZero, case0);
            vT = _mm_or_si128(vT, vET);
            vT = _mm_or_si128(vT, vFT);
            arr_store(result->trace->trace_table, vT, i, segLen, j);
            _mm_store_si128(pvH+i, vH);
            vSaturationCheckMin = _mm_min_epi16(vSaturationCheckMin, vH);
            vSaturationCheckMax = _mm_max_epi16(vSaturationCheckMax, vH);
            {
                vMaxH = _mm_max_epi16(vH, vMaxH);
            }
        } 

        {
            __m128i vCompare = _mm_cmpgt_epi16(vMaxH, vMaxHUnit);
            if (_mm_movemask_epi8(vCompare)) {
                score = _mm_hmax_epi16_rpl(vMaxH);
                vMaxHUnit = _mm_set1_epi16(score);
                end_ref = j;
                (void)memcpy(pvHMax, pvH, sizeof(__m128i)*segLen);
            }
        }
    }

    /* Trace the alignment ending position on read. */
    {
        int16_t *t = (int16_t*)pvHMax;
        int32_t column_len = segLen * segWidth;
        end_query = s1Len;
        for (i = 0; i<column_len; ++i, ++t) {
            if (*t == score) {
                int32_t temp = i / segWidth + i % segWidth * segLen;
                if (temp < end_query) {
                    end_query = temp;
                }
            }
        }
    }

    if (_mm_movemask_epi8(_mm_or_si128(
            _mm_cmplt_epi16(vSaturationCheckMin, vNegLimit),
            _mm_cmpgt_epi16(vSaturationCheckMax, vPosLimit)))) {
        result->flag |= PARASAIL_FLAG_SATURATED;
        score = 0;
        end_query = 0;
        end_ref = 0;
    }

    result->score = score;
    result->end_query = end_query;
    result->end_ref = end_ref;

    parasail_free(pvGapper);
    parasail_free(pvHMax);
    parasail_free(pvH);
    parasail_free(pvHt);
    parasail_free(pvE);

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb00, %rsp            # imm = 0xB00
movq %rdi, -0x7a0(%rbp)
movq %rsi, -0x7a8(%rbp)
movl %edx, -0x7ac(%rbp)
movl %ecx, -0x7b0(%rbp)
movl %r8d, -0x7b4(%rbp)
movl $0x0, -0x7b8(%rbp)
movl $0x0, -0x7bc(%rbp)
movl $0x0, -0x7c0(%rbp)
movl $0x0, -0x7c4(%rbp)
movl $0x0, -0x7c8(%rbp)
movq $0x0, -0x7d0(%rbp)
movl $0x0, -0x7d4(%rbp)
movl $0x0, -0x7d8(%rbp)
movq $0x0, -0x7e0(%rbp)
movq $0x0, -0x7e8(%rbp)
movq $0x0, -0x7f0(%rbp)
movq $0x0, -0x7f8(%rbp)
movq $0x0, -0x800(%rbp)
movq $0x0, -0x808(%rbp)
movw $0x0, -0x832(%rbp)
movw $0x0, -0x834(%rbp)
movw $0x0, -0x852(%rbp)
movq $0x0, -0x8e8(%rbp)
cmpq $0x0, -0x7a0(%rbp)
jne 0x540ba5
movq 0x8e6462(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7ab46b(%rip), %rsi    # 0xcebfeb
leaq 0x7a63b3(%rip), %rdx    # 0xce6f3a
leaq 0x78194f(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x542af6
jmp 0x540ba7
jmp 0x540ba9
movq -0x7a0(%rbp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x540bed
movq 0x8e641a(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7ab423(%rip), %rsi    # 0xcebfeb
leaq 0x7a636b(%rip), %rdx    # 0xce6f3a
leaq 0x7abe1a(%rip), %rcx    # 0xcec9f0
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x542af6
jmp 0x540bef
jmp 0x540bf1
movq -0x7a0(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x540c35
movq 0x8e63d2(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7ab3db(%rip), %rsi    # 0xcebfeb
leaq 0x7a6323(%rip), %rdx    # 0xce6f3a
leaq 0x7abcfe(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x542af6
jmp 0x540c37
jmp 0x540c39
movq -0x7a0(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jg 0x540c7c
movq 0x8e638b(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7abaaa(%rip), %rsi    # 0xcec701
leaq 0x7a62dc(%rip), %rdx    # 0xce6f3a
leaq 0x7abcc7(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x542af6
jmp 0x540c7e
jmp 0x540c80
cmpq $0x0, -0x7a8(%rbp)
jne 0x540cc0
movq 0x8e6347(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7ab350(%rip), %rsi    # 0xcebfeb
leaq 0x7a6298(%rip), %rdx    # 0xce6f3a
leaq 0x7aba55(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x542af6
jmp 0x540cc2
jmp 0x540cc4
cmpl $0x0, -0x7ac(%rbp)
jg 0x540d03
movq 0x8e6304(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7aba23(%rip), %rsi    # 0xcec701
leaq 0x7a6255(%rip), %rdx    # 0xce6f3a
leaq 0x7aba29(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x542af6
jmp 0x540d05
jmp 0x540d07
cmpl $0x0, -0x7b0(%rbp)
jge 0x540d46
movq 0x8e62c1(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7ab9fa(%rip), %rsi    # 0xcec71b
leaq 0x7a6212(%rip), %rdx    # 0xce6f3a
leaq 0x7aba01(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x542af6
jmp 0x540d48
jmp 0x540d4a
cmpl $0x0, -0x7b4(%rbp)
jge 0x540d89
movq 0x8e627e(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7ab9b7(%rip), %rsi    # 0xcec71b
leaq 0x7a61cf(%rip), %rdx    # 0xce6f3a
leaq 0x7ab9c3(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x542af6
jmp 0x540d8b
movl $0x0, -0x7b8(%rbp)
movl $0x0, -0x7bc(%rbp)
movl $0x0, -0x7c0(%rbp)
movl $0x0, -0x7c4(%rbp)
movq -0x7a0(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x7c8(%rbp)
movq -0x7a0(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x7d0(%rbp)
movl $0x8, -0x7d4(%rbp)
movl -0x7c8(%rbp), %esi
movl -0x7d4(%rbp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, -0x7d8(%rbp)
movq -0x7a0(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x7e0(%rbp)
movw -0x7b0(%rbp), %ax
movw %ax, -0x772(%rbp)
movw -0x772(%rbp), %ax
movw %ax, -0xad4(%rbp)
movw %ax, -0x1a2(%rbp)
movw %ax, -0x1a4(%rbp)
movw %ax, -0x1a6(%rbp)
movw %ax, -0x1a8(%rbp)
movw %ax, -0x1aa(%rbp)
movw %ax, -0x1ac(%rbp)
movw %ax, -0x1ae(%rbp)
movw %ax, -0x1b0(%rbp)
movzwl -0x1a2(%rbp), %eax
movd %eax, %xmm1
movzwl -0x1a4(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x1a6(%rbp), %eax
movd %eax, %xmm2
movzwl -0x1a8(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x1aa(%rbp), %eax
movd %eax, %xmm0
movzwl -0x1ac(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x1ae(%rbp), %eax
movd %eax, %xmm3
movzwl -0x1b0(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x1c0(%rbp)
movaps -0x1c0(%rbp), %xmm0
movaps %xmm0, -0x820(%rbp)
movw -0x7b4(%rbp), %ax
movw %ax, -0x774(%rbp)
movw -0x774(%rbp), %ax
movw %ax, -0xad2(%rbp)
movw %ax, -0x182(%rbp)
movw %ax, -0x184(%rbp)
movw %ax, -0x186(%rbp)
movw %ax, -0x188(%rbp)
movw %ax, -0x18a(%rbp)
movw %ax, -0x18c(%rbp)
movw %ax, -0x18e(%rbp)
movw %ax, -0x190(%rbp)
movzwl -0x182(%rbp), %eax
movd %eax, %xmm1
movzwl -0x184(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x186(%rbp), %eax
movd %eax, %xmm2
movzwl -0x188(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x18a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x18c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x18e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x190(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x1a0(%rbp)
movdqa -0x1a0(%rbp), %xmm0
movdqa %xmm0, -0x830(%rbp)
xorl %eax, %eax
subl -0x7b0(%rbp), %eax
movq -0x7d0(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x540ff2
movl -0x7b0(%rbp), %eax
addl $0xffff8000, %eax       # imm = 0xFFFF8000
movl %eax, -0xad8(%rbp)
jmp 0x541007
movq -0x7d0(%rbp), %rcx
movl $0xffff8000, %eax       # imm = 0xFFFF8000
subl 0x20(%rcx), %eax
movl %eax, -0xad8(%rbp)
movl -0xad8(%rbp), %eax
incl %eax
movw %ax, -0x832(%rbp)
movq -0x7d0(%rbp), %rax
movl 0x1c(%rax), %eax
xorl $0x7fff, %eax           # imm = 0x7FFF
decl %eax
movw %ax, -0x834(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x770(%rbp)
movaps -0x770(%rbp), %xmm0
movaps %xmm0, -0x850(%rbp)
movw -0x832(%rbp), %ax
movw %ax, -0x852(%rbp)
movw -0x832(%rbp), %ax
movw %ax, -0x776(%rbp)
movw -0x776(%rbp), %ax
movw %ax, -0xaee(%rbp)
movw %ax, -0x162(%rbp)
movw %ax, -0x164(%rbp)
movw %ax, -0x166(%rbp)
movw %ax, -0x168(%rbp)
movw %ax, -0x16a(%rbp)
movw %ax, -0x16c(%rbp)
movw %ax, -0x16e(%rbp)
movw %ax, -0x170(%rbp)
movzwl -0x162(%rbp), %eax
movd %eax, %xmm1
movzwl -0x164(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x166(%rbp), %eax
movd %eax, %xmm2
movzwl -0x168(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x16a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x16c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x16e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x170(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x180(%rbp)
movaps -0x180(%rbp), %xmm0
movaps %xmm0, -0x870(%rbp)
movw -0x834(%rbp), %ax
movw %ax, -0x778(%rbp)
movw -0x778(%rbp), %ax
movw %ax, -0xaec(%rbp)
movw %ax, -0x142(%rbp)
movw %ax, -0x144(%rbp)
movw %ax, -0x146(%rbp)
movw %ax, -0x148(%rbp)
movw %ax, -0x14a(%rbp)
movw %ax, -0x14c(%rbp)
movw %ax, -0x14e(%rbp)
movw %ax, -0x150(%rbp)
movzwl -0x142(%rbp), %eax
movd %eax, %xmm1
movzwl -0x144(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x146(%rbp), %eax
movd %eax, %xmm2
movzwl -0x148(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x14a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x14c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x14e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x150(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x160(%rbp)
movaps -0x160(%rbp), %xmm0
movaps %xmm0, -0x880(%rbp)
movaps -0x880(%rbp), %xmm0
movaps %xmm0, -0x890(%rbp)
movaps -0x870(%rbp), %xmm0
movaps %xmm0, -0x8a0(%rbp)
movaps -0x870(%rbp), %xmm0
movaps %xmm0, -0x8b0(%rbp)
movaps -0x870(%rbp), %xmm0
movaps %xmm0, -0x8c0(%rbp)
movaps -0x850(%rbp), %xmm0
movaps %xmm0, -0x8d0(%rbp)
movaps -0x8d0(%rbp), %xmm0
movzwl -0x832(%rbp), %eax
pinsrw $0x0, %eax, %xmm0
movaps %xmm0, -0x8d0(%rbp)
movaps -0x8d0(%rbp), %xmm1
movl -0x7d8(%rbp), %eax
negl %eax
movl -0x7b4(%rbp), %ecx
imull %ecx, %eax
movw %ax, -0x77a(%rbp)
movw -0x77a(%rbp), %ax
movw %ax, -0xaea(%rbp)
movw %ax, -0x122(%rbp)
movw %ax, -0x124(%rbp)
movw %ax, -0x126(%rbp)
movw %ax, -0x128(%rbp)
movw %ax, -0x12a(%rbp)
movw %ax, -0x12c(%rbp)
movw %ax, -0x12e(%rbp)
movw %ax, -0x130(%rbp)
movzwl -0x122(%rbp), %eax
movd %eax, %xmm2
movzwl -0x124(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1],xmm0[2],xmm2[2],xmm0[3],xmm2[3]
movzwl -0x126(%rbp), %eax
movd %eax, %xmm3
movzwl -0x128(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1],xmm2[2],xmm3[2],xmm2[3],xmm3[3]
punpckldq %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
movzwl -0x12a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x12c(%rbp), %eax
movd %eax, %xmm3
punpcklwd %xmm0, %xmm3    # xmm3 = xmm3[0],xmm0[0],xmm3[1],xmm0[1],xmm3[2],xmm0[2],xmm3[3],xmm0[3]
movzwl -0x12e(%rbp), %eax
movd %eax, %xmm4
movzwl -0x130(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm4, %xmm0    # xmm0 = xmm0[0],xmm4[0],xmm0[1],xmm4[1],xmm0[2],xmm4[2],xmm0[3],xmm4[3]
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
punpcklqdq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0]
movaps %xmm0, -0x140(%rbp)
movaps -0x140(%rbp), %xmm0
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movaps %xmm1, -0x6b0(%rbp)
movaps %xmm0, -0x6c0(%rbp)
movaps -0x6b0(%rbp), %xmm0
movaps -0x6c0(%rbp), %xmm1
paddsw %xmm1, %xmm0
movaps %xmm0, -0x8e0(%rbp)
movw $0x0, -0x77c(%rbp)
movw -0x77c(%rbp), %ax
movw %ax, -0xae8(%rbp)
movw %ax, -0x102(%rbp)
movw %ax, -0x104(%rbp)
movw %ax, -0x106(%rbp)
movw %ax, -0x108(%rbp)
movw %ax, -0x10a(%rbp)
movw %ax, -0x10c(%rbp)
movw %ax, -0x10e(%rbp)
movw %ax, -0x110(%rbp)
movzwl -0x102(%rbp), %eax
movd %eax, %xmm1
movzwl -0x104(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x106(%rbp), %eax
movd %eax, %xmm2
movzwl -0x108(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x10a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x10c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x10e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x110(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x120(%rbp)
movaps -0x120(%rbp), %xmm0
movaps %xmm0, -0x900(%rbp)
movw $0x1, -0x77e(%rbp)
movw -0x77e(%rbp), %ax
movw %ax, -0xae6(%rbp)
movw %ax, -0xe2(%rbp)
movw %ax, -0xe4(%rbp)
movw %ax, -0xe6(%rbp)
movw %ax, -0xe8(%rbp)
movw %ax, -0xea(%rbp)
movw %ax, -0xec(%rbp)
movw %ax, -0xee(%rbp)
movw %ax, -0xf0(%rbp)
movzwl -0xe2(%rbp), %eax
movd %eax, %xmm1
movzwl -0xe4(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0xe6(%rbp), %eax
movd %eax, %xmm2
movzwl -0xe8(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0xea(%rbp), %eax
movd %eax, %xmm0
movzwl -0xec(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0xee(%rbp), %eax
movd %eax, %xmm3
movzwl -0xf0(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x100(%rbp)
movaps -0x100(%rbp), %xmm0
movaps %xmm0, -0x910(%rbp)
movw $0x2, -0x780(%rbp)
movw -0x780(%rbp), %ax
movw %ax, -0xae4(%rbp)
movw %ax, -0xc2(%rbp)
movw %ax, -0xc4(%rbp)
movw %ax, -0xc6(%rbp)
movw %ax, -0xc8(%rbp)
movw %ax, -0xca(%rbp)
movw %ax, -0xcc(%rbp)
movw %ax, -0xce(%rbp)
movw %ax, -0xd0(%rbp)
movzwl -0xc2(%rbp), %eax
movd %eax, %xmm1
movzwl -0xc4(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0xc6(%rbp), %eax
movd %eax, %xmm2
movzwl -0xc8(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0xca(%rbp), %eax
movd %eax, %xmm0
movzwl -0xcc(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0xce(%rbp), %eax
movd %eax, %xmm3
movzwl -0xd0(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0xe0(%rbp)
movaps -0xe0(%rbp), %xmm0
movaps %xmm0, -0x920(%rbp)
movw $0x4, -0x782(%rbp)
movw -0x782(%rbp), %ax
movw %ax, -0xae2(%rbp)
movw %ax, -0xa2(%rbp)
movw %ax, -0xa4(%rbp)
movw %ax, -0xa6(%rbp)
movw %ax, -0xa8(%rbp)
movw %ax, -0xaa(%rbp)
movw %ax, -0xac(%rbp)
movw %ax, -0xae(%rbp)
movw %ax, -0xb0(%rbp)
movzwl -0xa2(%rbp), %eax
movd %eax, %xmm1
movzwl -0xa4(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0xa6(%rbp), %eax
movd %eax, %xmm2
movzwl -0xa8(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0xaa(%rbp), %eax
movd %eax, %xmm0
movzwl -0xac(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0xae(%rbp), %eax
movd %eax, %xmm3
movzwl -0xb0(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0xc0(%rbp)
movaps -0xc0(%rbp), %xmm0
movaps %xmm0, -0x930(%rbp)
movw $0x8, -0x784(%rbp)
movw -0x784(%rbp), %ax
movw %ax, -0xae0(%rbp)
movw %ax, -0x82(%rbp)
movw %ax, -0x84(%rbp)
movw %ax, -0x86(%rbp)
movw %ax, -0x88(%rbp)
movw %ax, -0x8a(%rbp)
movw %ax, -0x8c(%rbp)
movw %ax, -0x8e(%rbp)
movw %ax, -0x90(%rbp)
movzwl -0x82(%rbp), %eax
movd %eax, %xmm1
movzwl -0x84(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x86(%rbp), %eax
movd %eax, %xmm2
movzwl -0x88(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x8a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x8c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x8e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x90(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0xa0(%rbp)
movaps -0xa0(%rbp), %xmm0
movaps %xmm0, -0x940(%rbp)
movw $0x10, -0x786(%rbp)
movw -0x786(%rbp), %ax
movw %ax, -0xade(%rbp)
movw %ax, -0x62(%rbp)
movw %ax, -0x64(%rbp)
movw %ax, -0x66(%rbp)
movw %ax, -0x68(%rbp)
movw %ax, -0x6a(%rbp)
movw %ax, -0x6c(%rbp)
movw %ax, -0x6e(%rbp)
movw %ax, -0x70(%rbp)
movzwl -0x62(%rbp), %eax
movd %eax, %xmm1
movzwl -0x64(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x66(%rbp), %eax
movd %eax, %xmm2
movzwl -0x68(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x6a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x6c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x6e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x70(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x80(%rbp)
movaps -0x80(%rbp), %xmm0
movaps %xmm0, -0x950(%rbp)
movw $0x20, -0x788(%rbp)
movw -0x788(%rbp), %ax
movw %ax, -0xadc(%rbp)
movw %ax, -0x42(%rbp)
movw %ax, -0x44(%rbp)
movw %ax, -0x46(%rbp)
movw %ax, -0x48(%rbp)
movw %ax, -0x4a(%rbp)
movw %ax, -0x4c(%rbp)
movw %ax, -0x4e(%rbp)
movw %ax, -0x50(%rbp)
movzwl -0x42(%rbp), %eax
movd %eax, %xmm1
movzwl -0x44(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x46(%rbp), %eax
movd %eax, %xmm2
movzwl -0x48(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x4a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x4c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x4e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x50(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x60(%rbp)
movaps -0x60(%rbp), %xmm0
movaps %xmm0, -0x960(%rbp)
movw $0x40, -0x78a(%rbp)
movw -0x78a(%rbp), %ax
movw %ax, -0xada(%rbp)
movw %ax, -0x22(%rbp)
movw %ax, -0x24(%rbp)
movw %ax, -0x26(%rbp)
movw %ax, -0x28(%rbp)
movw %ax, -0x2a(%rbp)
movw %ax, -0x2c(%rbp)
movw %ax, -0x2e(%rbp)
movw %ax, -0x30(%rbp)
movzwl -0x22(%rbp), %eax
movd %eax, %xmm1
movzwl -0x24(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x26(%rbp), %eax
movd %eax, %xmm2
movzwl -0x28(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x2a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x2c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x2e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x30(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x40(%rbp)
movdqa -0x40(%rbp), %xmm0
movdqa %xmm0, -0x970(%rbp)
movl -0x7d8(%rbp), %edi
movl -0x7ac(%rbp), %esi
movl $0x10, %ecx
movq %rcx, %rdx
callq 0x1c3fa0
movq %rax, -0x8e8(%rbp)
cmpq $0x0, -0x8e8(%rbp)
jne 0x5419dc
movq $0x0, -0x798(%rbp)
jmp 0x542af6
movq -0x8e8(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x8280404, %ecx        # imm = 0x8280404
movl %ecx, 0xc(%rax)
movslq -0x7d8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x7e8(%rbp)
movslq -0x7d8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x7f0(%rbp)
movslq -0x7d8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x7f8(%rbp)
movslq -0x7d8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x800(%rbp)
movslq -0x7d8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x808(%rbp)
cmpq $0x0, -0x7e8(%rbp)
jne 0x541a81
movq $0x0, -0x798(%rbp)
jmp 0x542af6
cmpq $0x0, -0x7f0(%rbp)
jne 0x541a9b
movq $0x0, -0x798(%rbp)
jmp 0x542af6
cmpq $0x0, -0x7f8(%rbp)
jne 0x541ab5
movq $0x0, -0x798(%rbp)
jmp 0x542af6
cmpq $0x0, -0x800(%rbp)
jne 0x541acf
movq $0x0, -0x798(%rbp)
jmp 0x542af6
cmpq $0x0, -0x808(%rbp)
jne 0x541ae9
movq $0x0, -0x798(%rbp)
jmp 0x542af6
movq -0x7f8(%rbp), %rdi
movdqa -0x850(%rbp), %xmm0
movslq -0x7d8(%rbp), %rsi
callq 0x381e50
movq -0x7e8(%rbp), %rdi
movdqa -0x870(%rbp), %xmm0
movslq -0x7d8(%rbp), %rsi
callq 0x381e50
movdqa -0x850(%rbp), %xmm1
movdqa -0x820(%rbp), %xmm0
movdqa %xmm1, -0x5f0(%rbp)
movdqa %xmm0, -0x600(%rbp)
movdqa -0x5f0(%rbp), %xmm0
movdqa -0x600(%rbp), %xmm1
psubsw %xmm1, %xmm0
movdqa %xmm0, -0x980(%rbp)
movl -0x7d8(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x7b8(%rbp)
cmpl $0x0, -0x7b8(%rbp)
jl 0x541c06
movq -0x808(%rbp), %rax
movslq -0x7b8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x980(%rbp), %xmm0
movq %rax, -0x548(%rbp)
movdqa %xmm0, -0x560(%rbp)
movdqa -0x560(%rbp), %xmm0
movq -0x548(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x980(%rbp), %xmm1
movdqa -0x830(%rbp), %xmm0
movdqa %xmm1, -0x610(%rbp)
movdqa %xmm0, -0x620(%rbp)
movdqa -0x610(%rbp), %xmm0
movdqa -0x620(%rbp), %xmm1
psubsw %xmm1, %xmm0
movdqa %xmm0, -0x980(%rbp)
movl -0x7b8(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x7b8(%rbp)
jmp 0x541b6a
movl $0x0, -0x7bc(%rbp)
movl -0x7bc(%rbp), %eax
cmpl -0x7ac(%rbp), %eax
jge 0x5428c7
movq -0x7f8(%rbp), %rax
movl -0x7d8(%rbp), %ecx
decl %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x508(%rbp)
movq -0x508(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0xa10(%rbp)
movaps -0xa10(%rbp), %xmm0
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movdqa %xmm0, -0xa10(%rbp)
movq -0x7e0(%rbp), %rax
movq -0x7d0(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x7a8(%rbp), %rdx
movslq -0x7bc(%rbp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
imull -0x7d8(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xa18(%rbp)
movdqa -0x850(%rbp), %xmm0
movdqa %xmm0, -0x9c0(%rbp)
movdqa -0x870(%rbp), %xmm0
movdqa %xmm0, -0x9d0(%rbp)
movl $0x0, -0x7b8(%rbp)
movl -0x7b8(%rbp), %eax
cmpl -0x7d8(%rbp), %eax
jge 0x542095
movq -0x7f8(%rbp), %rax
movslq -0x7b8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x510(%rbp)
movq -0x510(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0xa00(%rbp)
movq -0x7e8(%rbp), %rax
movslq -0x7b8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x518(%rbp)
movq -0x518(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x990(%rbp)
movq -0xa18(%rbp), %rax
movslq -0x7b8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x520(%rbp)
movq -0x520(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0xa30(%rbp)
movq -0x808(%rbp), %rax
movslq -0x7b8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x528(%rbp)
movq -0x528(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0xa70(%rbp)
movaps -0xa00(%rbp), %xmm1
movaps -0x820(%rbp), %xmm0
movaps %xmm1, -0x630(%rbp)
movaps %xmm0, -0x640(%rbp)
movaps -0x630(%rbp), %xmm0
movaps -0x640(%rbp), %xmm1
psubsw %xmm1, %xmm0
movaps %xmm0, -0x9b0(%rbp)
movaps -0x990(%rbp), %xmm1
movaps -0x830(%rbp), %xmm0
movaps %xmm1, -0x650(%rbp)
movaps %xmm0, -0x660(%rbp)
movaps -0x650(%rbp), %xmm0
movaps -0x660(%rbp), %xmm1
psubsw %xmm1, %xmm0
movaps %xmm0, -0x9a0(%rbp)
movaps -0x9b0(%rbp), %xmm1
movaps -0x9a0(%rbp), %xmm0
movaps %xmm1, -0x490(%rbp)
movaps %xmm0, -0x4a0(%rbp)
movaps -0x490(%rbp), %xmm0
movaps -0x4a0(%rbp), %xmm1
pcmpgtw %xmm1, %xmm0
movdqa %xmm0, -0xa40(%rbp)
movdqa -0x950(%rbp), %xmm0
movdqa -0x940(%rbp), %xmm1
movdqa -0xa40(%rbp), %xmm2
callq 0x542b10
movdqa %xmm0, -0xa90(%rbp)
movq -0x8e8(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movdqa -0xa90(%rbp), %xmm0
movl -0x7b8(%rbp), %esi
movl -0x7d8(%rbp), %edx
movl -0x7bc(%rbp), %ecx
callq 0x542ba0
movdqa -0x9b0(%rbp), %xmm1
movdqa -0x9a0(%rbp), %xmm0
movdqa %xmm1, -0x310(%rbp)
movdqa %xmm0, -0x320(%rbp)
movdqa -0x310(%rbp), %xmm0
movdqa -0x320(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x990(%rbp)
movdqa -0x9c0(%rbp), %xmm1
movdqa -0xa70(%rbp), %xmm0
movdqa %xmm1, -0x6d0(%rbp)
movdqa %xmm0, -0x6e0(%rbp)
movdqa -0x6d0(%rbp), %xmm0
movdqa -0x6e0(%rbp), %xmm1
paddsw %xmm1, %xmm0
movdqa %xmm0, -0xa70(%rbp)
movdqa -0x9d0(%rbp), %xmm1
movdqa -0xa70(%rbp), %xmm0
movdqa %xmm1, -0x330(%rbp)
movdqa %xmm0, -0x340(%rbp)
movdqa -0x330(%rbp), %xmm0
movdqa -0x340(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x9d0(%rbp)
movdqa -0xa10(%rbp), %xmm1
movdqa -0xa30(%rbp), %xmm0
movdqa %xmm1, -0x6f0(%rbp)
movdqa %xmm0, -0x700(%rbp)
movdqa -0x6f0(%rbp), %xmm0
movdqa -0x700(%rbp), %xmm1
paddsw %xmm1, %xmm0
movdqa %xmm0, -0xa10(%rbp)
movdqa -0x990(%rbp), %xmm1
movdqa -0xa10(%rbp), %xmm0
movdqa %xmm1, -0x350(%rbp)
movdqa %xmm0, -0x360(%rbp)
movdqa -0x350(%rbp), %xmm0
movdqa -0x360(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x9c0(%rbp)
movq -0x7e8(%rbp), %rax
movslq -0x7b8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x990(%rbp), %xmm0
movq %rax, -0x568(%rbp)
movdqa %xmm0, -0x580(%rbp)
movdqa -0x580(%rbp), %xmm0
movq -0x568(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x7f0(%rbp), %rax
movslq -0x7b8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x9c0(%rbp), %xmm0
movq %rax, -0x588(%rbp)
movdqa %xmm0, -0x5a0(%rbp)
movdqa -0x5a0(%rbp), %xmm0
movq -0x588(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x7f8(%rbp), %rax
movslq -0x7b8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0xa10(%rbp), %xmm0
movq %rax, -0x5a8(%rbp)
movdqa %xmm0, -0x5c0(%rbp)
movdqa -0x5c0(%rbp), %xmm0
movq -0x5a8(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0xa00(%rbp), %xmm0
movdqa %xmm0, -0xa10(%rbp)
movl -0x7b8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7b8(%rbp)
jmp 0x541cd0
movaps -0x9c0(%rbp), %xmm0
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movdqa %xmm0, -0x9c0(%rbp)
movq -0x808(%rbp), %rax
movq %rax, -0x530(%rbp)
movq -0x530(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0xa70(%rbp)
movdqa -0x9c0(%rbp), %xmm1
movdqa -0xa70(%rbp), %xmm0
movdqa %xmm1, -0x710(%rbp)
movdqa %xmm0, -0x720(%rbp)
movdqa -0x710(%rbp), %xmm0
movdqa -0x720(%rbp), %xmm1
paddsw %xmm1, %xmm0
movdqa %xmm0, -0xa70(%rbp)
movdqa -0x9d0(%rbp), %xmm1
movdqa -0xa70(%rbp), %xmm0
movdqa %xmm1, -0x370(%rbp)
movdqa %xmm0, -0x380(%rbp)
movdqa -0x370(%rbp), %xmm0
movdqa -0x380(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x9d0(%rbp)
movl $0x0, -0x7b8(%rbp)
movl -0x7b8(%rbp), %eax
movl -0x7d4(%rbp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jge 0x542203
movaps -0x9d0(%rbp), %xmm0
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movdqa %xmm0, -0xab0(%rbp)
movdqa -0xab0(%rbp), %xmm1
movdqa -0x8e0(%rbp), %xmm0
movdqa %xmm1, -0x730(%rbp)
movdqa %xmm0, -0x740(%rbp)
movdqa -0x730(%rbp), %xmm0
movdqa -0x740(%rbp), %xmm1
paddsw %xmm1, %xmm0
movdqa %xmm0, -0xab0(%rbp)
movdqa -0x9d0(%rbp), %xmm1
movdqa -0xab0(%rbp), %xmm0
movdqa %xmm1, -0x390(%rbp)
movdqa %xmm0, -0x3a0(%rbp)
movdqa -0x390(%rbp), %xmm0
movdqa -0x3a0(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x9d0(%rbp)
movl -0x7b8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7b8(%rbp)
jmp 0x54214c
movaps -0x9d0(%rbp), %xmm0
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movdqa %xmm0, -0x9d0(%rbp)
movdqa -0x9d0(%rbp), %xmm1
movdqa -0x8d0(%rbp), %xmm0
movdqa %xmm1, -0x750(%rbp)
movdqa %xmm0, -0x760(%rbp)
movdqa -0x750(%rbp), %xmm0
movdqa -0x760(%rbp), %xmm1
paddsw %xmm1, %xmm0
movdqa %xmm0, -0x9d0(%rbp)
movdqa -0x9d0(%rbp), %xmm1
movdqa -0x9c0(%rbp), %xmm0
movdqa %xmm1, -0x3b0(%rbp)
movdqa %xmm0, -0x3c0(%rbp)
movdqa -0x3b0(%rbp), %xmm0
movdqa -0x3c0(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0xa00(%rbp)
movdqa -0xa00(%rbp), %xmm1
movdqa -0x850(%rbp), %xmm0
movdqa %xmm1, -0x3d0(%rbp)
movdqa %xmm0, -0x3e0(%rbp)
movdqa -0x3d0(%rbp), %xmm0
movdqa -0x3e0(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0xa00(%rbp)
movl $0x0, -0x7b8(%rbp)
movl -0x7b8(%rbp), %eax
cmpl -0x7d8(%rbp), %eax
jge 0x54276f
movq -0x8e8(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movl -0x7b8(%rbp), %esi
movl -0x7d8(%rbp), %edx
movl -0x7bc(%rbp), %ecx
callq 0x542c00
movaps %xmm0, -0xa90(%rbp)
movq -0x7f8(%rbp), %rax
movslq -0x7b8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x538(%rbp)
movq -0x538(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0xa10(%rbp)
movq -0x7f0(%rbp), %rax
movslq -0x7b8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x540(%rbp)
movq -0x540(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x9c0(%rbp)
movaps -0xa00(%rbp), %xmm1
movaps -0x820(%rbp), %xmm0
movaps %xmm1, -0x670(%rbp)
movaps %xmm0, -0x680(%rbp)
movaps -0x670(%rbp), %xmm0
movaps -0x680(%rbp), %xmm1
psubsw %xmm1, %xmm0
movaps %xmm0, -0x9f0(%rbp)
movaps -0x9d0(%rbp), %xmm1
movaps -0x830(%rbp), %xmm0
movaps %xmm1, -0x690(%rbp)
movaps %xmm0, -0x6a0(%rbp)
movaps -0x690(%rbp), %xmm0
movaps -0x6a0(%rbp), %xmm1
psubsw %xmm1, %xmm0
movaps %xmm0, -0x9e0(%rbp)
movaps -0x9f0(%rbp), %xmm1
movaps -0x9e0(%rbp), %xmm0
movaps %xmm1, -0x3f0(%rbp)
movaps %xmm0, -0x400(%rbp)
movaps -0x3f0(%rbp), %xmm0
movaps -0x400(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movaps %xmm0, -0x9d0(%rbp)
movaps -0x9f0(%rbp), %xmm1
movaps -0x9e0(%rbp), %xmm0
movaps %xmm1, -0x4b0(%rbp)
movaps %xmm0, -0x4c0(%rbp)
movaps -0x4b0(%rbp), %xmm0
movaps -0x4c0(%rbp), %xmm1
pcmpgtw %xmm1, %xmm0
movaps %xmm0, -0xa40(%rbp)
movaps -0x970(%rbp), %xmm0
movaps -0x960(%rbp), %xmm1
movaps -0xa40(%rbp), %xmm2
callq 0x542b10
movaps %xmm0, -0xaa0(%rbp)
movaps -0x9c0(%rbp), %xmm1
movaps -0x9d0(%rbp), %xmm0
movaps %xmm1, -0x410(%rbp)
movaps %xmm0, -0x420(%rbp)
movaps -0x410(%rbp), %xmm0
movaps -0x420(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movaps %xmm0, -0xa00(%rbp)
movaps -0xa00(%rbp), %xmm1
movaps -0x850(%rbp), %xmm0
movaps %xmm1, -0x430(%rbp)
movaps %xmm0, -0x440(%rbp)
movaps -0x430(%rbp), %xmm0
movaps -0x440(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movaps %xmm0, -0xa00(%rbp)
movaps -0xa00(%rbp), %xmm1
movaps -0x850(%rbp), %xmm0
movaps %xmm1, -0x2b0(%rbp)
movaps %xmm0, -0x2c0(%rbp)
movaps -0x2b0(%rbp), %xmm0
movaps -0x2c0(%rbp), %xmm1
pcmpeqw %xmm1, %xmm0
movaps %xmm0, -0xa60(%rbp)
movaps -0xa00(%rbp), %xmm1
movaps -0xa10(%rbp), %xmm0
movaps %xmm1, -0x2d0(%rbp)
movaps %xmm0, -0x2e0(%rbp)
movaps -0x2d0(%rbp), %xmm0
movaps -0x2e0(%rbp), %xmm1
pcmpeqw %xmm1, %xmm0
movaps %xmm0, -0xa40(%rbp)
movaps -0xa00(%rbp), %xmm1
movaps -0x9d0(%rbp), %xmm0
movaps %xmm1, -0x2f0(%rbp)
movaps %xmm0, -0x300(%rbp)
movaps -0x2f0(%rbp), %xmm0
movaps -0x300(%rbp), %xmm1
pcmpeqw %xmm1, %xmm0
movdqa %xmm0, -0xa50(%rbp)
movdqa -0x910(%rbp), %xmm0
movdqa -0x920(%rbp), %xmm1
movdqa -0xa50(%rbp), %xmm2
callq 0x542b10
movdqa -0x930(%rbp), %xmm1
movdqa -0xa40(%rbp), %xmm2
callq 0x542b10
movdqa %xmm0, -0xa80(%rbp)
movdqa -0xa80(%rbp), %xmm0
movdqa -0x900(%rbp), %xmm1
movdqa -0xa60(%rbp), %xmm2
callq 0x542b10
movdqa %xmm0, -0xa80(%rbp)
movdqa -0xa80(%rbp), %xmm1
movdqa -0xa90(%rbp), %xmm0
movdqa %xmm1, -0x250(%rbp)
movdqa %xmm0, -0x260(%rbp)
movdqa -0x250(%rbp), %xmm0
por -0x260(%rbp), %xmm0
movdqa %xmm0, -0xa80(%rbp)
movdqa -0xa80(%rbp), %xmm1
movdqa -0xaa0(%rbp), %xmm0
movdqa %xmm1, -0x270(%rbp)
movdqa %xmm0, -0x280(%rbp)
movdqa -0x270(%rbp), %xmm0
por -0x280(%rbp), %xmm0
movdqa %xmm0, -0xa80(%rbp)
movq -0x8e8(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movdqa -0xa80(%rbp), %xmm0
movl -0x7b8(%rbp), %esi
movl -0x7d8(%rbp), %edx
movl -0x7bc(%rbp), %ecx
callq 0x542ba0
movq -0x7f8(%rbp), %rax
movslq -0x7b8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0xa00(%rbp), %xmm0
movq %rax, -0x5c8(%rbp)
movdqa %xmm0, -0x5e0(%rbp)
movdqa -0x5e0(%rbp), %xmm0
movq -0x5c8(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x890(%rbp), %xmm1
movdqa -0xa00(%rbp), %xmm0
movdqa %xmm1, -0x230(%rbp)
movdqa %xmm0, -0x240(%rbp)
movdqa -0x230(%rbp), %xmm0
movdqa -0x240(%rbp), %xmm1
pminsw %xmm1, %xmm0
movdqa %xmm0, -0x890(%rbp)
movdqa -0x8a0(%rbp), %xmm1
movdqa -0xa00(%rbp), %xmm0
movdqa %xmm1, -0x450(%rbp)
movdqa %xmm0, -0x460(%rbp)
movdqa -0x450(%rbp), %xmm0
movdqa -0x460(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x8a0(%rbp)
movdqa -0xa00(%rbp), %xmm1
movdqa -0x8b0(%rbp), %xmm0
movdqa %xmm1, -0x470(%rbp)
movdqa %xmm0, -0x480(%rbp)
movdqa -0x470(%rbp), %xmm0
movdqa -0x480(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x8b0(%rbp)
movl -0x7b8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7b8(%rbp)
jmp 0x5422d5
movaps -0x8b0(%rbp), %xmm1
movaps -0x8c0(%rbp), %xmm0
movaps %xmm1, -0x4d0(%rbp)
movaps %xmm0, -0x4e0(%rbp)
movaps -0x4d0(%rbp), %xmm0
movaps -0x4e0(%rbp), %xmm1
pcmpgtw %xmm1, %xmm0
movdqa %xmm0, -0xac0(%rbp)
movdqa -0xac0(%rbp), %xmm0
movdqa %xmm0, -0x210(%rbp)
movdqa -0x210(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x5428b1
movaps -0x8b0(%rbp), %xmm0
callq 0x542c50
movw %ax, -0x852(%rbp)
movw -0x852(%rbp), %ax
movw %ax, -0x78c(%rbp)
movw -0x78c(%rbp), %ax
movw %ax, -0xaf0(%rbp)
movw %ax, -0x2(%rbp)
movw %ax, -0x4(%rbp)
movw %ax, -0x6(%rbp)
movw %ax, -0x8(%rbp)
movw %ax, -0xa(%rbp)
movw %ax, -0xc(%rbp)
movw %ax, -0xe(%rbp)
movw %ax, -0x10(%rbp)
movzwl -0x2(%rbp), %eax
movd %eax, %xmm1
movzwl -0x4(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x6(%rbp), %eax
movd %eax, %xmm2
movzwl -0x8(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0xa(%rbp), %eax
movd %eax, %xmm0
movzwl -0xc(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0xe(%rbp), %eax
movd %eax, %xmm3
movzwl -0x10(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x20(%rbp)
movdqa -0x20(%rbp), %xmm0
movdqa %xmm0, -0x8c0(%rbp)
movl -0x7bc(%rbp), %eax
movl %eax, -0x7c4(%rbp)
movq -0x800(%rbp), %rdi
movq -0x7f8(%rbp), %rsi
movslq -0x7d8(%rbp), %rdx
shlq $0x4, %rdx
callq 0x19e0a0
jmp 0x5428b3
movl -0x7bc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7bc(%rbp)
jmp 0x541c10
movq -0x800(%rbp), %rax
movq %rax, -0xac8(%rbp)
movl -0x7d8(%rbp), %eax
imull -0x7d4(%rbp), %eax
movl %eax, -0xacc(%rbp)
movl -0x7c8(%rbp), %eax
movl %eax, -0x7c0(%rbp)
movl $0x0, -0x7b8(%rbp)
movl -0x7b8(%rbp), %eax
cmpl -0xacc(%rbp), %eax
jge 0x54299e
movq -0xac8(%rbp), %rax
movswl (%rax), %eax
movswl -0x852(%rbp), %ecx
cmpl %ecx, %eax
jne 0x542976
movl -0x7b8(%rbp), %eax
cltd
idivl -0x7d4(%rbp)
movl %eax, -0xaf4(%rbp)
movl -0x7b8(%rbp), %eax
cltd
idivl -0x7d4(%rbp)
movl -0xaf4(%rbp), %eax
imull -0x7d8(%rbp), %edx
addl %edx, %eax
movl %eax, -0xad0(%rbp)
movl -0xad0(%rbp), %eax
cmpl -0x7c0(%rbp), %eax
jge 0x542974
movl -0xad0(%rbp), %eax
movl %eax, -0x7c0(%rbp)
jmp 0x542976
jmp 0x542978
movl -0x7b8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7b8(%rbp)
movq -0xac8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0xac8(%rbp)
jmp 0x5428fe
movaps -0x890(%rbp), %xmm1
movaps -0x870(%rbp), %xmm0
movaps %xmm1, -0x1f0(%rbp)
movaps %xmm0, -0x200(%rbp)
movaps -0x200(%rbp), %xmm1
movaps -0x1f0(%rbp), %xmm0
movaps %xmm1, -0x1d0(%rbp)
movaps %xmm0, -0x1e0(%rbp)
movaps -0x1d0(%rbp), %xmm1
movaps -0x1e0(%rbp), %xmm0
pcmpgtw %xmm0, %xmm1
movaps -0x8a0(%rbp), %xmm2
movaps -0x880(%rbp), %xmm0
movaps %xmm2, -0x4f0(%rbp)
movaps %xmm0, -0x500(%rbp)
movaps -0x4f0(%rbp), %xmm0
movaps -0x500(%rbp), %xmm2
pcmpgtw %xmm2, %xmm0
movdqa %xmm1, -0x290(%rbp)
movdqa %xmm0, -0x2a0(%rbp)
movdqa -0x290(%rbp), %xmm0
por -0x2a0(%rbp), %xmm0
movdqa %xmm0, -0x220(%rbp)
movdqa -0x220(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x542a7c
movq -0x8e8(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movw $0x0, -0x852(%rbp)
movl $0x0, -0x7c0(%rbp)
movl $0x0, -0x7c4(%rbp)
movswl -0x852(%rbp), %ecx
movq -0x8e8(%rbp), %rax
movl %ecx, (%rax)
movl -0x7c0(%rbp), %ecx
movq -0x8e8(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x7c4(%rbp), %ecx
movq -0x8e8(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x808(%rbp), %rdi
callq 0x1c3590
movq -0x800(%rbp), %rdi
callq 0x1c3590
movq -0x7f8(%rbp), %rdi
callq 0x1c3590
movq -0x7f0(%rbp), %rdi
callq 0x1c3590
movq -0x7e8(%rbp), %rdi
callq 0x1c3590
movq -0x8e8(%rbp), %rax
movq %rax, -0x798(%rbp)
movq -0x798(%rbp), %rax
addq $0xb00, %rsp            # imm = 0xB00
popq %rbp
retq
nopw %cs:(%rax,%rax)