// File: /workspace/github_c_makefile_star2_O1/nh13[P]ksw/src/parasail/src/nw_trace_diag_sse2_128_8.c
// Function: parasail_nw_trace_diag_sse2_128_8
parasail_result_t* FNAME(
        const char * const restrict _s1, const int _s1Len,
        const char * const restrict _s2, const int s2Len,
        const int open, const int gap, const parasail_matrix_t *matrix)
{
    /* declare local variables */
    int32_t N = 0;
    int32_t PAD = 0;
    int32_t PAD2 = 0;
    int32_t s1Len_PAD = 0;
    int32_t s2Len_PAD = 0;
    int8_t * restrict s1 = NULL;
    int8_t * restrict s2B = NULL;
    int8_t * restrict _H_pr = NULL;
    int8_t * restrict _F_pr = NULL;
    int8_t * restrict s2 = NULL;
    int8_t * restrict H_pr = NULL;
    int8_t * restrict F_pr = NULL;
    parasail_result_t *result = NULL;
    int32_t i = 0;
    int32_t j = 0;
    int32_t s1Len = 0;
    int32_t end_query = 0;
    int32_t end_ref = 0;
    int8_t NEG_LIMIT = 0;
    int8_t POS_LIMIT = 0;
    int8_t score = 0;
    __m128i vNegLimit;
    __m128i vPosLimit;
    __m128i vSaturationCheckMin;
    __m128i vSaturationCheckMax;
    __m128i vNegInf;
    __m128i vOpen;
    __m128i vGap;
    __m128i vOne;
    __m128i vN;
    __m128i vGapN;
    __m128i vNegOne;
    __m128i vI;
    __m128i vJreset;
    __m128i vMax;
    __m128i vILimit;
    __m128i vILimit1;
    __m128i vJLimit;
    __m128i vJLimit1;
    __m128i vIBoundary;
    __m128i vTDiag;
    __m128i vTIns;
    __m128i vTDel;
    __m128i vTDiagE;
    __m128i vTInsE;
    __m128i vTDiagF;
    __m128i vTDelF;

    /* validate inputs */
    PARASAIL_CHECK_NULL(_s2);
    PARASAIL_CHECK_GT0(s2Len);
    PARASAIL_CHECK_GE0(open);
    PARASAIL_CHECK_GE0(gap);
    PARASAIL_CHECK_NULL(matrix);
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        PARASAIL_CHECK_NULL(_s1);
        PARASAIL_CHECK_GT0(_s1Len);
    }

    /* initialize stack variables */
    N = 16; /* number of values in vector */
    PAD = N-1;
    PAD2 = PAD*2;
    s1Len = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ? _s1Len : matrix->length;
    s1Len_PAD = s1Len+PAD;
    s2Len_PAD = s2Len+PAD;
    i = 0;
    j = 0;
    end_query = s1Len-1;
    end_ref = s2Len-1;
    NEG_LIMIT = (-open < matrix->min ? INT8_MIN + open : INT8_MIN - matrix->min) + 1;
    POS_LIMIT = INT8_MAX - matrix->max - 1;
    score = NEG_LIMIT;
    vNegLimit = _mm_set1_epi8(NEG_LIMIT);
    vPosLimit = _mm_set1_epi8(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vNegInf = _mm_set1_epi8(NEG_LIMIT);
    vOpen = _mm_set1_epi8(open);
    vGap  = _mm_set1_epi8(gap);
    vOne = _mm_set1_epi8(1);
    vN = _mm_set1_epi8(N);
    vGapN = _mm_set1_epi8(gap*N);
    vNegOne = _mm_set1_epi8(-1);
    vI = _mm_set_epi8(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
    vJreset = _mm_set_epi8(0,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15);
    vMax = vNegInf;
    vILimit = _mm_set1_epi8(s1Len);
    vILimit1 = _mm_subs_epi8(vILimit, vOne);
    vJLimit = _mm_set1_epi8(s2Len);
    vJLimit1 = _mm_subs_epi8(vJLimit, vOne);
    vIBoundary = _mm_set_epi8(
            -open-0*gap,
            -open-1*gap,
            -open-2*gap,
            -open-3*gap,
            -open-4*gap,
            -open-5*gap,
            -open-6*gap,
            -open-7*gap,
            -open-8*gap,
            -open-9*gap,
            -open-10*gap,
            -open-11*gap,
            -open-12*gap,
            -open-13*gap,
            -open-14*gap,
            -open-15*gap);
    vTDiag = _mm_set1_epi8(PARASAIL_DIAG);
    vTIns = _mm_set1_epi8(PARASAIL_INS);
    vTDel = _mm_set1_epi8(PARASAIL_DEL);
    vTDiagE = _mm_set1_epi8(PARASAIL_DIAG_E);
    vTInsE = _mm_set1_epi8(PARASAIL_INS_E);
    vTDiagF = _mm_set1_epi8(PARASAIL_DIAG_F);
    vTDelF = _mm_set1_epi8(PARASAIL_DEL_F);

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

    /* set known flags */
    result->flag |= PARASAIL_FLAG_NW | PARASAIL_FLAG_DIAG
        | PARASAIL_FLAG_TRACE
        | PARASAIL_FLAG_BITS_8 | PARASAIL_FLAG_LANES_16;

    /* initialize heap variables */
    s2B= parasail_memalign_int8_t(16, s2Len+PAD2);
    _H_pr = parasail_memalign_int8_t(16, s2Len+PAD2);
    _F_pr = parasail_memalign_int8_t(16, s2Len+PAD2);
    s2 = s2B+PAD; /* will allow later for negative indices */
    H_pr = _H_pr+PAD;
    F_pr = _F_pr+PAD;

    /* validate heap variables */
    if (!s2B) return NULL;
    if (!_H_pr) return NULL;
    if (!_F_pr) return NULL;

    /* convert _s1 from char to int in range 0-23 */
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        s1 = parasail_memalign_int8_t(16, s1Len+PAD);
        if (!s1) return NULL;
        for (i=0; i<s1Len; ++i) {
            s1[i] = matrix->mapper[(unsigned char)_s1[i]];
        }
        /* pad back of s1 with dummy values */
        for (i=s1Len; i<s1Len_PAD; ++i) {
            s1[i] = 0; /* point to first matrix row because we don't care */
        }
    }

    /* convert _s2 from char to int in range 0-23 */
    for (j=0; j<s2Len; ++j) {
        s2[j] = matrix->mapper[(unsigned char)_s2[j]];
    }
    /* pad front of s2 with dummy values */
    for (j=-PAD; j<0; ++j) {
        s2[j] = 0; /* point to first matrix row because we don't care */
    }
    /* pad back of s2 with dummy values */
    for (j=s2Len; j<s2Len_PAD; ++j) {
        s2[j] = 0; /* point to first matrix row because we don't care */
    }

    /* set initial values for stored row */
    for (j=0; j<s2Len; ++j) {
        H_pr[j] = -open - j*gap;
        F_pr[j] = NEG_LIMIT;
    }
    /* pad front of stored row values */
    for (j=-PAD; j<0; ++j) {
        H_pr[j] = NEG_LIMIT;
        F_pr[j] = NEG_LIMIT;
    }
    /* pad back of stored row values */
    for (j=s2Len; j<s2Len+PAD; ++j) {
        H_pr[j] = NEG_LIMIT;
        F_pr[j] = NEG_LIMIT;
    }
    H_pr[-1] = 0; /* upper left corner */

    /* iterate over query sequence */
    for (i=0; i<s1Len; i+=N) {
        __m128i vNH = vNegInf;
        __m128i vWH = vNegInf;
        __m128i vE = vNegInf;
        __m128i vE_opn = vNegInf;
        __m128i vE_ext = vNegInf;
        __m128i vF = vNegInf;
        __m128i vF_opn = vNegInf;
        __m128i vF_ext = vNegInf;
        __m128i vJ = vJreset;
        const int * const restrict matrow0 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+0] : ((i+0 >= s1Len) ? s1Len-1 : i+0))];
        const int * const restrict matrow1 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+1] : ((i+1 >= s1Len) ? s1Len-1 : i+1))];
        const int * const restrict matrow2 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+2] : ((i+2 >= s1Len) ? s1Len-1 : i+2))];
        const int * const restrict matrow3 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+3] : ((i+3 >= s1Len) ? s1Len-1 : i+3))];
        const int * const restrict matrow4 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+4] : ((i+4 >= s1Len) ? s1Len-1 : i+4))];
        const int * const restrict matrow5 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+5] : ((i+5 >= s1Len) ? s1Len-1 : i+5))];
        const int * const restrict matrow6 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+6] : ((i+6 >= s1Len) ? s1Len-1 : i+6))];
        const int * const restrict matrow7 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+7] : ((i+7 >= s1Len) ? s1Len-1 : i+7))];
        const int * const restrict matrow8 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+8] : ((i+8 >= s1Len) ? s1Len-1 : i+8))];
        const int * const restrict matrow9 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+9] : ((i+9 >= s1Len) ? s1Len-1 : i+9))];
        const int * const restrict matrow10 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+10] : ((i+10 >= s1Len) ? s1Len-1 : i+10))];
        const int * const restrict matrow11 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+11] : ((i+11 >= s1Len) ? s1Len-1 : i+11))];
        const int * const restrict matrow12 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+12] : ((i+12 >= s1Len) ? s1Len-1 : i+12))];
        const int * const restrict matrow13 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+13] : ((i+13 >= s1Len) ? s1Len-1 : i+13))];
        const int * const restrict matrow14 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+14] : ((i+14 >= s1Len) ? s1Len-1 : i+14))];
        const int * const restrict matrow15 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+15] : ((i+15 >= s1Len) ? s1Len-1 : i+15))];
        vNH = _mm_srli_si128(vNH, 1);
        vNH = _mm_insert_epi8_rpl(vNH, H_pr[-1], 15);
        vWH = _mm_srli_si128(vWH, 1);
        vWH = _mm_insert_epi8_rpl(vWH, -open - i*gap, 15);
        H_pr[-1] = -open - (i+N)*gap;
        /* iterate over database sequence */
        for (j=0; j<s2Len+PAD; ++j) {
            __m128i vMat;
            __m128i vNWH = vNH;
            vNH = _mm_srli_si128(vWH, 1);
            vNH = _mm_insert_epi8_rpl(vNH, H_pr[j], 15);
            vF = _mm_srli_si128(vF, 1);
            vF = _mm_insert_epi8_rpl(vF, F_pr[j], 15);
            vF_opn = _mm_subs_epi8(vNH, vOpen);
            vF_ext = _mm_subs_epi8(vF, vGap);
            vF = _mm_max_epi8_rpl(vF_opn, vF_ext);
            vE_opn = _mm_subs_epi8(vWH, vOpen);
            vE_ext = _mm_subs_epi8(vE, vGap);
            vE = _mm_max_epi8_rpl(vE_opn, vE_ext);
            vMat = _mm_set_epi8(
                    matrow0[s2[j-0]],
                    matrow1[s2[j-1]],
                    matrow2[s2[j-2]],
                    matrow3[s2[j-3]],
                    matrow4[s2[j-4]],
                    matrow5[s2[j-5]],
                    matrow6[s2[j-6]],
                    matrow7[s2[j-7]],
                    matrow8[s2[j-8]],
                    matrow9[s2[j-9]],
                    matrow10[s2[j-10]],
                    matrow11[s2[j-11]],
                    matrow12[s2[j-12]],
                    matrow13[s2[j-13]],
                    matrow14[s2[j-14]],
                    matrow15[s2[j-15]]
                    );
            vNWH = _mm_adds_epi8(vNWH, vMat);
            vWH = _mm_max_epi8_rpl(vNWH, vE);
            vWH = _mm_max_epi8_rpl(vWH, vF);
            /* as minor diagonal vector passes across the j=-1 boundary,
             * assign the appropriate boundary conditions */
            {
                __m128i cond = _mm_cmpeq_epi8(vJ,vNegOne);
                vWH = _mm_blendv_epi8_rpl(vWH, vIBoundary, cond);
                vF = _mm_blendv_epi8_rpl(vF, vNegInf, cond);
                vE = _mm_blendv_epi8_rpl(vE, vNegInf, cond);
            }
            /* cannot start checking sat until after J clears boundary */
            if (j > PAD) {
                vSaturationCheckMin = _mm_min_epi8_rpl(vSaturationCheckMin, vWH);
                vSaturationCheckMax = _mm_max_epi8_rpl(vSaturationCheckMax, vWH);
            }
            /* trace table */
            {
                __m128i case1 = _mm_cmpeq_epi8(vWH, vNWH);
                __m128i case2 = _mm_cmpeq_epi8(vWH, vF);
                __m128i vT = _mm_blendv_epi8_rpl(
                        _mm_blendv_epi8_rpl(vTIns, vTDel, case2),
                        vTDiag,
                        case1);
                __m128i condE = _mm_cmpgt_epi8(vE_opn, vE_ext);
                __m128i condF = _mm_cmpgt_epi8(vF_opn, vF_ext);
                __m128i vET = _mm_blendv_epi8_rpl(vTInsE, vTDiagE, condE);
                __m128i vFT = _mm_blendv_epi8_rpl(vTDelF, vTDiagF, condF);
                vT = _mm_or_si128(vT, vET);
                vT = _mm_or_si128(vT, vFT);
                arr_store_si128(result->trace->trace_table, vT, i, s1Len, j, s2Len);
            }
            H_pr[j-15] = (int8_t)_mm_extract_epi8_rpl(vWH,0);
            F_pr[j-15] = (int8_t)_mm_extract_epi8_rpl(vF,0);
            /* as minor diagonal vector passes across table, extract
               last table value at the i,j bound */
            {
                __m128i cond_valid_I = _mm_cmpeq_epi8(vI, vILimit1);
                __m128i cond_valid_J = _mm_cmpeq_epi8(vJ, vJLimit1);
                __m128i cond_all = _mm_and_si128(cond_valid_I, cond_valid_J);
                vMax = _mm_blendv_epi8_rpl(vMax, vWH, cond_all);
            }
            vJ = _mm_adds_epi8(vJ, vOne);
        }
        vI = _mm_adds_epi8(vI, vN);
        vIBoundary = _mm_subs_epi8(vIBoundary, vGapN);
    }

    /* max in vMax */
    for (i=0; i<N; ++i) {
        int8_t value;
        value = (int8_t) _mm_extract_epi8_rpl(vMax, 15);
        if (value > score) {
            score = value;
        }
        vMax = _mm_slli_si128(vMax, 1);
    }

    if (_mm_movemask_epi8(_mm_or_si128(
            _mm_cmplt_epi8(vSaturationCheckMin, vNegLimit),
            _mm_cmpgt_epi8(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(_F_pr);
    parasail_free(_H_pr);
    parasail_free(s2B);
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        parasail_free(s1);
    }

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2c8, %rsp            # imm = 0x2C8
testq %rdx, %rdx
je 0x39534e
movl %ecx, %r14d
testl %ecx, %ecx
jle 0x395355
movl %r8d, %ebp
testl %r8d, %r8d
js 0x39535c
testl %r9d, %r9d
js 0x395363
movq 0x300(%rsp), %r8
testq %r8, %r8
je 0x39536a
movq %r9, 0xb0(%rsp)
movl 0x30(%r8), %eax
testl %eax, %eax
jne 0x393fe6
testq %rdi, %rdi
je 0x395371
movl %esi, %ebx
testl %esi, %esi
jle 0x395378
testl %eax, %eax
je 0x393fea
movl 0x34(%r8), %ebx
movq %rdi, 0xe0(%rsp)
movq %rdx, 0x40(%rsp)
movl %ebp, %esi
negl %esi
movl 0x20(%r8), %eax
movl %eax, %ecx
negb %cl
movl %esi, 0x2c(%rsp)
cmpl %esi, %eax
movzbl %cl, %r12d
cmovgl %ebp, %r12d
movb $0x7e, %r15b
subb 0x1c(%r8), %r15b
movl $0x10, %edx
movl $0x1, %ecx
movl %ebx, %edi
movl %r14d, %esi
callq 0x2097d1
testq %rax, %rax
je 0x39537d
movb %r15b, 0xa0(%rsp)
movq %rbx, 0x30(%rsp)
movq %rax, 0x58(%rsp)
orl $0x10181001, 0xc(%rax)  # imm = 0x10181001
leal 0x1e(%r14), %r13d
movl $0x10, %edi
movq %r13, %rsi
callq 0x2094c8
movq %rax, %r15
movl $0x10, %edi
movq %r13, %rsi
callq 0x2094c8
movq %rax, %rbx
movl $0x10, %edi
movq %r13, %rsi
callq 0x2094c8
testq %r15, %r15
sete %dl
testq %rbx, %rbx
sete %cl
orb %dl, %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x39537d
movq %rax, 0xc0(%rsp)
movq 0x300(%rsp), %rdi
cmpl $0x0, 0x30(%rdi)
movq %rbx, 0x98(%rsp)
je 0x3940cc
movq $0x0, 0x8(%rsp)
movq 0x30(%rsp), %rbx
jmp 0x394150
movq 0x30(%rsp), %rbx
leal 0xf(%rbx), %r13d
movslq %r13d, %rsi
movl $0x10, %edi
callq 0x2094c8
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x39537d
testl %ebx, %ebx
movq 0x300(%rsp), %rdi
movq 0x8(%rsp), %r8
movq 0xe0(%rsp), %r9
jle 0x394125
movl %ebx, %eax
xorl %ecx, %ecx
movq 0x10(%rdi), %rdx
movzbl (%r9,%rcx), %esi
movb (%rdx,%rsi,4), %dl
movb %dl, (%r8,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0x39410d
movslq %ebx, %rax
movq %r8, %rdi
addq %rax, %rdi
leal 0x1(%rbx), %eax
cmpl %eax, %r13d
cmovgl %r13d, %eax
movl %ebx, %edx
notl %edx
addl %eax, %edx
incq %rdx
xorl %esi, %esi
callq 0x19e090
movq 0x300(%rsp), %rdi
leal 0xf(%r14), %r10d
addb $-0x7f, %r12b
movl %r12d, 0x28(%rsp)
movzbl %r12b, %eax
movd %eax, %xmm0
movzbl 0xa0(%rsp), %eax
movd %eax, %xmm1
movq 0xb0(%rsp), %r8
movl 0x2c(%rsp), %r9d
movl %r9d, %eax
subl %r8d, %eax
subl %r8d, %eax
leal (,%r8,4), %edx
movl %r9d, %ecx
subl %edx, %ecx
leal (,%r8,8), %esi
movl %r9d, %edx
subl %esi, %edx
leal -0x1(%rbx), %esi
movl %esi, 0x4(%rsp)
movd %ebx, %xmm2
punpcklbw %xmm2, %xmm2    # xmm2 = xmm2[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm2, %xmm2      # xmm2 = xmm2[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm2, %xmm3      # xmm3 = xmm2[0,0,0,0]
pcmpeqd %xmm2, %xmm2
paddsb %xmm2, %xmm3
movdqa %xmm3, 0x260(%rsp)
movd %r14d, %xmm3
punpcklbw %xmm3, %xmm3    # xmm3 = xmm3[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm3, %xmm3      # xmm3 = xmm3[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm3, %xmm3      # xmm3 = xmm3[0,0,0,0]
paddsb %xmm2, %xmm3
movdqa %xmm3, 0x290(%rsp)
movd %edx, %xmm5
imull $0xf7, %r8d, %edx
subl %ebp, %edx
movd %edx, %xmm4
imull $0xf6, %r8d, %edx
subl %ebp, %edx
movd %edx, %xmm7
imull $0xf5, %r8d, %edx
subl %ebp, %edx
movd %edx, %xmm2
imull $0xf4, %r8d, %edx
subl %ebp, %edx
movd %edx, %xmm8
imull $0xf3, %r8d, %edx
subl %ebp, %edx
movd %edx, %xmm3
imull $0xf2, %r8d, %edx
subl %ebp, %edx
movd %edx, %xmm6
imull $0xf1, %r8d, %edx
subl %ebp, %edx
movd %edx, %xmm9
leal -0x1(%r14), %edx
movl %edx, 0xcc(%rsp)
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa %xmm0, 0xa0(%rsp)
punpcklbw %xmm1, %xmm1    # xmm1 = xmm1[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm1, %xmm0      # xmm0 = xmm1[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa %xmm0, 0x190(%rsp)
punpcklbw %xmm5, %xmm4    # xmm4 = xmm4[0],xmm5[0],xmm4[1],xmm5[1],xmm4[2],xmm5[2],xmm4[3],xmm5[3],xmm4[4],xmm5[4],xmm4[5],xmm5[5],xmm4[6],xmm5[6],xmm4[7],xmm5[7]
movd %ebp, %xmm0
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
punpcklbw %xmm7, %xmm2    # xmm2 = xmm2[0],xmm7[0],xmm2[1],xmm7[1],xmm2[2],xmm7[2],xmm2[3],xmm7[3],xmm2[4],xmm7[4],xmm2[5],xmm7[5],xmm2[6],xmm7[6],xmm2[7],xmm7[7]
movd %r8d, %xmm1
punpcklbw %xmm1, %xmm1    # xmm1 = xmm1[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0]
punpcklwd %xmm4, %xmm2    # xmm2 = xmm2[0],xmm4[0],xmm2[1],xmm4[1],xmm2[2],xmm4[2],xmm2[3],xmm4[3]
movdqa %xmm1, 0x280(%rsp)
psllw $0x4, %xmm1
pand 0x261989(%rip), %xmm1   # 0x5f5c50
movdqa %xmm1, 0x250(%rsp)
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa %xmm0, 0x270(%rsp)
punpcklbw %xmm8, %xmm3    # xmm3 = xmm3[0],xmm8[0],xmm3[1],xmm8[1],xmm3[2],xmm8[2],xmm3[3],xmm8[3],xmm3[4],xmm8[4],xmm3[5],xmm8[5],xmm3[6],xmm8[6],xmm3[7],xmm8[7]
movd %ecx, %xmm0
imull $0xfb, %r8d, %ecx
subl %ebp, %ecx
punpcklbw %xmm6, %xmm9    # xmm9 = xmm9[0],xmm6[0],xmm9[1],xmm6[1],xmm9[2],xmm6[2],xmm9[3],xmm6[3],xmm9[4],xmm6[4],xmm9[5],xmm6[5],xmm9[6],xmm6[6],xmm9[7],xmm6[7]
movd %ecx, %xmm1
imull $0xfa, %r8d, %ecx
subl %ebp, %ecx
punpcklwd %xmm3, %xmm9    # xmm9 = xmm9[0],xmm3[0],xmm9[1],xmm3[1],xmm9[2],xmm3[2],xmm9[3],xmm3[3]
movd %ecx, %xmm3
imull $0xf9, %r8d, %ecx
subl %ebp, %ecx
punpckldq %xmm2, %xmm9    # xmm9 = xmm9[0],xmm2[0],xmm9[1],xmm2[1]
movd %ecx, %xmm2
movl %r9d, %ecx
subl %r8d, %ecx
punpcklbw %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3],xmm1[4],xmm0[4],xmm1[5],xmm0[5],xmm1[6],xmm0[6],xmm1[7],xmm0[7]
movd %eax, %xmm0
imull $0xfd, %r8d, %eax
subl %ebp, %eax
punpcklbw %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1],xmm2[2],xmm3[2],xmm2[3],xmm3[3],xmm2[4],xmm3[4],xmm2[5],xmm3[5],xmm2[6],xmm3[6],xmm2[7],xmm3[7]
punpcklwd %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3]
movd %eax, %xmm1
punpcklbw %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3],xmm1[4],xmm0[4],xmm1[5],xmm0[5],xmm1[6],xmm0[6],xmm1[7],xmm0[7]
movd %ecx, %xmm0
movd %r9d, %xmm3
punpcklbw %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3],xmm0[4],xmm3[4],xmm0[5],xmm3[5],xmm0[6],xmm3[6],xmm0[7],xmm3[7]
punpcklwd %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3]
punpckldq %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
punpcklqdq %xmm2, %xmm9    # xmm9 = xmm9[0],xmm2[0]
movdqa %xmm9, 0xe0(%rsp)
cmpl $0x2, %r14d
movl $0x1, %r13d
cmovgel %r14d, %r13d
xorl %eax, %eax
movq 0x40(%rsp), %rsi
movq 0x10(%rdi), %rcx
movzbl (%rsi,%rax), %edx
movb (%rcx,%rdx,4), %cl
movb %cl, 0xf(%r15,%rax)
incq %rax
cmpq %rax, %r13
jne 0x39437d
xorl %r12d, %r12d
movq %r12, 0x7(%r15)
movq %r12, (%r15)
movl %r14d, %ebx
leaq (%rbx,%r15), %rdi
addq $0xf, %rdi
leal 0x1(%r14), %eax
cmpl %eax, %r10d
movl %r10d, 0x40(%rsp)
cmovgl %r10d, %eax
movl %r14d, %edx
notl %edx
addl %eax, %edx
incq %rdx
xorl %esi, %esi
callq 0x19e090
negb %bpl
movq 0xb0(%rsp), %rax
movl 0x28(%rsp), %edx
movq 0x98(%rsp), %rcx
movq 0xc0(%rsp), %rdi
movb %bpl, 0xf(%rcx,%r12)
movb %dl, 0xf(%rdi,%r12)
incq %r12
subb %al, %bpl
cmpq %r12, %r13
jne 0x3943ea
xorl %eax, %eax
movb %dl, (%rcx,%rax)
movb %dl, (%rdi,%rax)
incq %rax
cmpq $0xf, %rax
jne 0x394401
leaq 0xf(%rbx), %rax
movq 0x300(%rsp), %rsi
movl 0x40(%rsp), %r8d
movb %dl, (%rcx,%rax)
movb %dl, (%rdi,%rax)
incq %rax
incl %r14d
cmpl %r14d, %r8d
jg 0x394421
movb $0x0, 0xe(%rcx)
movdqa 0xa0(%rsp), %xmm0
movdqa %xmm0, %xmm1
movdqa %xmm0, 0x180(%rsp)
movdqa 0x190(%rsp), %xmm0
movdqa %xmm0, 0x170(%rsp)
movq 0x30(%rsp), %rax
testl %eax, %eax
jle 0x395290
movdqa 0xa0(%rsp), %xmm0
movdqa %xmm0, %xmm1
psrldq $0x1, %xmm1             # xmm1 = xmm1[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],zero
cmpl $0x2, %r8d
movl $0x1, %r9d
cmovgel %r8d, %r9d
movl %eax, %ecx
movq %rbx, %rdi
shlq $0x4, %rdi
leaq -0x1(%rbx), %rax
movq %rax, 0x168(%rsp)
leaq (%rbx,%rbx,4), %rax
leaq (%rax,%rax,2), %rdx
addq $-0xf, %rdx
movq %rdx, 0x158(%rsp)
leaq (%rbx,%rbx), %rdx
negq %rdx
movq %rdi, 0x1b0(%rsp)
addq %rdi, %rdx
addq $-0xe, %rdx
movq %rdx, 0x150(%rsp)
leaq (%rbx,%rbx,2), %rdx
leaq -0xd(%rbx,%rdx,4), %rdi
movq %rdi, 0x148(%rsp)
leaq -0xc(,%rdx,4), %rdi
movq %rdi, 0x140(%rsp)
leaq -0xb(%rbx,%rax,2), %rdi
movq %rdi, 0x138(%rsp)
leaq -0xa(%rax,%rax), %rax
movq %rax, 0x130(%rsp)
leaq -0x9(%rbx,%rbx,8), %rax
movq %rax, 0x128(%rsp)
leaq (,%rbx,8), %rax
leaq -0x8(,%rbx,8), %rdi
movq %rdi, 0x118(%rsp)
subq %rbx, %rax
addq $-0x7, %rax
movq %rax, 0x120(%rsp)
leaq -0x6(,%rdx,2), %rax
movq %rax, 0x110(%rsp)
leaq (%rbx,%rbx,4), %rax
addq $-0x5, %rax
movq %rax, 0x108(%rsp)
movdqa 0x261547(%rip), %xmm2   # 0x5f5ab0
pand 0x2616ef(%rip), %xmm1   # 0x5f5c60
movdqa %xmm1, 0x240(%rsp)
movaps 0x190(%rsp), %xmm1
movaps %xmm1, 0x170(%rsp)
movdqa %xmm0, 0x180(%rsp)
movdqa %xmm0, %xmm1
leaq -0x4(,%rbx,4), %rax
movq %rax, 0x100(%rsp)
leaq -0x3(%rbx,%rbx,2), %rax
movq %rax, 0xf8(%rsp)
leaq -0x2(,%rbx,2), %rax
movq %rax, 0xf0(%rsp)
movq $0x0, 0x160(%rsp)
xorl %r11d, %r11d
movq %r9, 0x1b8(%rsp)
movl 0x30(%rsi), %r10d
movl %r11d, %eax
testl %r10d, %r10d
movq 0x8(%rsp), %r14
jne 0x3945f1
movsbl (%r14,%r11), %eax
movq %r11, %rdi
orq $0x1, %rdi
testl %r10d, %r10d
movl 0x4(%rsp), %edx
je 0x39460d
cmpq %rcx, %rdi
movl %edx, %r8d
cmovbl %edi, %r8d
jmp 0x394612
movsbl (%r14,%rdi), %r8d
movl %r8d, 0x40(%rsp)
movq %r11, %r8
orq $0x2, %r8
testl %r10d, %r10d
movl %eax, 0xb8(%rsp)
je 0x394635
cmpq %rcx, %r8
movl %edx, %eax
cmovbl %r8d, %eax
jmp 0x39463a
movsbl (%r14,%r8), %eax
movl %eax, 0x30(%rsp)
movq %r11, %rax
orq $0x3, %rax
testl %r10d, %r10d
je 0x394654
cmpq %rcx, %rax
movl %edx, %ebp
cmovbl %eax, %ebp
jmp 0x394659
movsbl (%r14,%rax), %ebp
movl %ebp, 0x20(%rsp)
movq %r11, %r12
orq $0x4, %r12
testl %r10d, %r10d
je 0x394674
cmpq %rcx, %r12
movl %edx, %ebp
cmovbl %r12d, %ebp
jmp 0x394679
movsbl (%r14,%r12), %ebp
movl %ebp, 0x18(%rsp)
movq %r11, %r13
orq $0x5, %r13
testl %r10d, %r10d
je 0x394694
cmpq %rcx, %r13
movl %edx, %ebp
cmovbl %r13d, %ebp
jmp 0x394699
movsbl (%r14,%r13), %ebp
movl %ebp, 0x10(%rsp)
movq %r8, 0x230(%rsp)
movq %rdi, 0x238(%rsp)
movq %r11, %rdi
orq $0x6, %rdi
testl %r10d, %r10d
movq %r12, 0x220(%rsp)
movq %r13, 0x218(%rsp)
je 0x3946d5
cmpq %rcx, %rdi
movl %edx, %r8d
cmovbl %edi, %r8d
jmp 0x3946da
movsbl (%r14,%rdi), %r8d
movl %r8d, 0x90(%rsp)
movq 0x8(%rsi), %r8
movq %r8, 0x1c0(%rsp)
movl 0x18(%rsi), %r13d
movq %r11, %rsi
orq $0x7, %rsi
testl %r10d, %r10d
je 0x39470a
cmpq %rcx, %rsi
movl %edx, %r8d
cmovbl %esi, %r8d
jmp 0x39470f
movsbl (%r14,%rsi), %r8d
movl %r8d, 0x88(%rsp)
movq %r11, %rbp
orq $0x8, %rbp
testl %r10d, %r10d
je 0x39472f
cmpq %rcx, %rbp
movl %edx, %r8d
cmovbl %ebp, %r8d
jmp 0x394734
movsbl (%r14,%rbp), %r8d
movl %r8d, 0x80(%rsp)
movq %rdi, 0x210(%rsp)
movq %r11, %rdi
orq $0x9, %rdi
testl %r10d, %r10d
movq %rdi, 0x1f8(%rsp)
je 0x394769
cmpq %rcx, %rdi
movl %edx, %r8d
cmovbl %edi, %r8d
movl %r8d, 0x78(%rsp)
jmp 0x394772
movsbl (%r14,%rdi), %edi
movl %edi, 0x78(%rsp)
movq %rax, 0x228(%rsp)
movq %r11, %rdi
orq $0xa, %rdi
testl %r10d, %r10d
je 0x394790
cmpq %rcx, %rdi
movl %edx, %eax
cmovbl %edi, %eax
jmp 0x394795
movsbl (%r14,%rdi), %eax
movl %eax, 0x70(%rsp)
movq %rbp, 0x200(%rsp)
movq %r11, %rbp
orq $0xb, %rbp
testl %r10d, %r10d
movq %rbp, 0x1e8(%rsp)
je 0x3947bf
cmpq %rcx, %rbp
movl %edx, %eax
cmovbl %ebp, %eax
jmp 0x3947c4
movsbl (%r14,%rbp), %eax
movl %eax, 0x68(%rsp)
movq %r11, %rbp
orq $0xc, %rbp
testl %r10d, %r10d
je 0x3947e0
cmpq %rcx, %rbp
cmovbl %ebp, %edx
movl %edx, 0x60(%rsp)
jmp 0x3947e9
movsbl (%r14,%rbp), %eax
movl %eax, 0x60(%rsp)
movq %r11, %rax
orq $0xd, %rax
testl %r10d, %r10d
movq %rax, 0x1d8(%rsp)
je 0x394810
cmpq %rcx, %rax
movl 0x4(%rsp), %edx
cmovbl %eax, %edx
movl %edx, 0xd0(%rsp)
jmp 0x39481c
movsbl (%r14,%rax), %eax
movl %eax, 0xd0(%rsp)
movq %rsi, 0x208(%rsp)
movq %r11, %rax
orq $0xe, %rax
testl %r10d, %r10d
movq %rax, 0x1c8(%rsp)
je 0x394848
cmpq %rcx, %rax
movl 0x4(%rsp), %edx
cmovbl %eax, %edx
movl %edx, 0x50(%rsp)
jmp 0x394855
movq 0x8(%rsp), %rsi
movsbl (%rsi,%rax), %eax
movl %eax, 0x50(%rsp)
movq %r11, %rax
orq $0xf, %rax
testl %r10d, %r10d
movq %rdi, 0x1f0(%rsp)
movq %rbp, 0x1e0(%rsp)
movq %rax, 0x1d0(%rsp)
movq %r11, 0x1a0(%rsp)
je 0x39488f
cmpq %rcx, %rax
movl 0x4(%rsp), %r10d
cmovbl %eax, %r10d
jmp 0x394899
movq 0x8(%rsp), %r10
movsbl (%r10,%rax), %r10d
movl 0xb8(%rsp), %eax
imull %r13d, %eax
movl 0x40(%rsp), %edx
imull %r13d, %edx
movl %edx, 0x40(%rsp)
movl 0x30(%rsp), %edx
imull %r13d, %edx
movl %edx, 0x30(%rsp)
movl 0x20(%rsp), %edx
imull %r13d, %edx
movl %edx, 0x20(%rsp)
movl 0x18(%rsp), %edx
imull %r13d, %edx
movl %edx, 0x18(%rsp)
movl 0x10(%rsp), %edx
imull %r13d, %edx
movl %edx, 0x10(%rsp)
movl 0x90(%rsp), %r8d
imull %r13d, %r8d
movl 0x88(%rsp), %r14d
imull %r13d, %r14d
movl 0x80(%rsp), %ebp
imull %r13d, %ebp
movl 0x78(%rsp), %edi
imull %r13d, %edi
movl 0x70(%rsp), %r11d
imull %r13d, %r11d
movl 0x68(%rsp), %edx
imull %r13d, %edx
movl 0x60(%rsp), %r12d
imull %r13d, %r12d
movl 0xd0(%rsp), %esi
imull %r13d, %esi
movl 0x50(%rsp), %r9d
imull %r13d, %r9d
imull %r13d, %r10d
movl %r10d, 0xd0(%rsp)
movslq %eax, %r10
movq 0x1c0(%rsp), %r13
leaq (,%r10,4), %rax
addq %r13, %rax
movq %rax, 0xb8(%rsp)
movslq 0x40(%rsp), %r10
leaq (%r13,%r10,4), %rax
movq %rax, 0x90(%rsp)
movslq 0x30(%rsp), %r10
leaq (%r13,%r10,4), %rax
movq %rax, 0x88(%rsp)
movslq 0x20(%rsp), %r10
leaq (%r13,%r10,4), %rax
movq %rax, 0x20(%rsp)
movslq 0x18(%rsp), %r10
leaq (%r13,%r10,4), %rax
movq %rax, 0x18(%rsp)
movslq 0x10(%rsp), %r10
leaq (%r13,%r10,4), %rax
movq %rax, 0x10(%rsp)
movslq %r8d, %r8
leaq (%r13,%r8,4), %rax
movq %rax, 0x80(%rsp)
movslq %r14d, %r8
leaq (%r13,%r8,4), %rax
movq %rax, 0x78(%rsp)
movslq %ebp, %r8
leaq (%r13,%r8,4), %rax
movq %rax, 0x70(%rsp)
movslq %edi, %rdi
leaq (%r13,%rdi,4), %rax
movq %rax, 0x68(%rsp)
movslq %r11d, %r8
leaq (%r13,%r8,4), %rax
movq %rax, 0x60(%rsp)
movslq %edx, %r8
leaq (%r13,%r8,4), %rbp
movslq %r12d, %rdx
leaq (%r13,%rdx,4), %r8
movslq %esi, %rdx
leaq (%r13,%rdx,4), %r14
movslq %r9d, %rdx
leaq (%r13,%rdx,4), %rsi
movslq 0xd0(%rsp), %rdx
leaq (%r13,%rdx,4), %r13
movq 0x1a0(%rsp), %r11
leaq 0x10(%r11), %rax
movq %rax, 0x50(%rsp)
movl %eax, %edx
movq 0xb0(%rsp), %rdi
imull %edi, %edx
movl 0x2c(%rsp), %r9d
movl %r9d, %r12d
subl %edx, %r12d
movq 0x98(%rsp), %r10
movzbl 0xe(%r10), %edx
movb %r12b, 0xe(%r10)
imull %edi, %r11d
subl %r11d, %r9d
movd %r9d, %xmm10
movd %edx, %xmm5
pslldq $0xf, %xmm10            # xmm10 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm10[0]
movdqa 0x240(%rsp), %xmm0
por %xmm0, %xmm10
pslldq $0xf, %xmm5             # xmm5 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm5[0]
por %xmm0, %xmm5
movdqa %xmm2, 0xd0(%rsp)
pcmpeqb 0x260(%rsp), %xmm2
movdqa %xmm2, 0x1a0(%rsp)
movdqa 0x2611c0(%rip), %xmm8   # 0x5f5c70
movdqa 0xa0(%rsp), %xmm4
movdqa %xmm4, %xmm0
xorl %eax, %eax
movq 0xc0(%rsp), %rdi
movq 0x1b8(%rsp), %r9
movq 0x1c8(%rsp), %r11
movdqa %xmm1, 0x40(%rsp)
movdqa %xmm5, 0x30(%rsp)
movzbl 0xf(%r10,%rax), %edx
movd %edx, %xmm3
movzbl 0xf(%rdi,%rax), %edx
movd %edx, %xmm6
movsbq 0xf(%r15,%rax), %rdx
movq 0xb8(%rsp), %rdi
movd (%rdi,%rdx,4), %xmm5
movsbq 0xe(%r15,%rax), %rdx
movq 0x90(%rsp), %rdi
movd (%rdi,%rdx,4), %xmm15
movsbq 0xd(%r15,%rax), %rdx
movq 0x88(%rsp), %rdi
movd (%rdi,%rdx,4), %xmm13
movsbq 0xc(%r15,%rax), %rdx
movq 0x20(%rsp), %rdi
movd (%rdi,%rdx,4), %xmm11
movsbq 0xb(%r15,%rax), %rdx
movq 0x18(%rsp), %rdi
movd (%rdi,%rdx,4), %xmm7
movsbq 0xa(%r15,%rax), %rdx
movq 0x10(%rsp), %rdi
movd (%rdi,%rdx,4), %xmm9
movsbq 0x9(%r15,%rax), %rdx
movq 0x80(%rsp), %rdi
movd (%rdi,%rdx,4), %xmm1
movsbq 0x8(%r15,%rax), %rdx
movq 0x78(%rsp), %rdi
movd (%rdi,%rdx,4), %xmm12
movsbq 0x7(%r15,%rax), %rdx
movq 0x70(%rsp), %rdi
movd (%rdi,%rdx,4), %xmm2
movsbq 0x6(%r15,%rax), %rdx
movq 0x68(%rsp), %rdi
movd (%rdi,%rdx,4), %xmm14
movsbq 0x5(%r15,%rax), %rdx
punpcklbw %xmm5, %xmm15   # xmm15 = xmm15[0],xmm5[0],xmm15[1],xmm5[1],xmm15[2],xmm5[2],xmm15[3],xmm5[3],xmm15[4],xmm5[4],xmm15[5],xmm5[5],xmm15[6],xmm5[6],xmm15[7],xmm5[7]
movq 0x60(%rsp), %rdi
movd (%rdi,%rdx,4), %xmm5
movsbq 0x4(%r15,%rax), %rdx
punpcklbw %xmm13, %xmm11  # xmm11 = xmm11[0],xmm13[0],xmm11[1],xmm13[1],xmm11[2],xmm13[2],xmm11[3],xmm13[3],xmm11[4],xmm13[4],xmm11[5],xmm13[5],xmm11[6],xmm13[6],xmm11[7],xmm13[7]
movd (%rbp,%rdx,4), %xmm13
movsbq 0x3(%r15,%rax), %rdx
punpcklwd %xmm15, %xmm11  # xmm11 = xmm11[0],xmm15[0],xmm11[1],xmm15[1],xmm11[2],xmm15[2],xmm11[3],xmm15[3]
movd (%r8,%rdx,4), %xmm15
movsbq 0x2(%r15,%rax), %rdx
punpcklbw %xmm7, %xmm9    # xmm9 = xmm9[0],xmm7[0],xmm9[1],xmm7[1],xmm9[2],xmm7[2],xmm9[3],xmm7[3],xmm9[4],xmm7[4],xmm9[5],xmm7[5],xmm9[6],xmm7[6],xmm9[7],xmm7[7]
movd (%r14,%rdx,4), %xmm7
movsbq 0x1(%r15,%rax), %rdx
punpcklbw %xmm1, %xmm12   # xmm12 = xmm12[0],xmm1[0],xmm12[1],xmm1[1],xmm12[2],xmm1[2],xmm12[3],xmm1[3],xmm12[4],xmm1[4],xmm12[5],xmm1[5],xmm12[6],xmm1[6],xmm12[7],xmm1[7]
movd (%rsi,%rdx,4), %xmm1
movsbq (%r15,%rax), %rdx
punpcklwd %xmm9, %xmm12   # xmm12 = xmm12[0],xmm9[0],xmm12[1],xmm9[1],xmm12[2],xmm9[2],xmm12[3],xmm9[3]
movd (%r13,%rdx,4), %xmm9
punpckldq %xmm11, %xmm12  # xmm12 = xmm12[0],xmm11[0],xmm12[1],xmm11[1]
punpcklbw %xmm2, %xmm14   # xmm14 = xmm14[0],xmm2[0],xmm14[1],xmm2[1],xmm14[2],xmm2[2],xmm14[3],xmm2[3],xmm14[4],xmm2[4],xmm14[5],xmm2[5],xmm14[6],xmm2[6],xmm14[7],xmm2[7]
punpcklbw %xmm5, %xmm13   # xmm13 = xmm13[0],xmm5[0],xmm13[1],xmm5[1],xmm13[2],xmm5[2],xmm13[3],xmm5[3],xmm13[4],xmm5[4],xmm13[5],xmm5[5],xmm13[6],xmm5[6],xmm13[7],xmm5[7]
movdqa %xmm3, %xmm5
punpcklwd %xmm14, %xmm13  # xmm13 = xmm13[0],xmm14[0],xmm13[1],xmm14[1],xmm13[2],xmm14[2],xmm13[3],xmm14[3]
punpcklbw %xmm15, %xmm7   # xmm7 = xmm7[0],xmm15[0],xmm7[1],xmm15[1],xmm7[2],xmm15[2],xmm7[3],xmm15[3],xmm7[4],xmm15[4],xmm7[5],xmm15[5],xmm7[6],xmm15[6],xmm7[7],xmm15[7]
punpcklbw %xmm1, %xmm9    # xmm9 = xmm9[0],xmm1[0],xmm9[1],xmm1[1],xmm9[2],xmm1[2],xmm9[3],xmm1[3],xmm9[4],xmm1[4],xmm9[5],xmm1[5],xmm9[6],xmm1[6],xmm9[7],xmm1[7]
punpcklwd %xmm7, %xmm9    # xmm9 = xmm9[0],xmm7[0],xmm9[1],xmm7[1],xmm9[2],xmm7[2],xmm9[3],xmm7[3]
punpckldq %xmm13, %xmm9   # xmm9 = xmm9[0],xmm13[0],xmm9[1],xmm13[1]
punpcklqdq %xmm12, %xmm9   # xmm9 = xmm9[0],xmm12[0]
paddsb 0x30(%rsp), %xmm9
movdqa %xmm10, %xmm1
psrldq $0x1, %xmm1             # xmm1 = xmm1[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],zero
pslldq $0xf, %xmm5             # xmm5 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm5[0]
por %xmm1, %xmm5
psrldq $0x1, %xmm0             # xmm0 = xmm0[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],zero
pslldq $0xf, %xmm6             # xmm6 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm6[0]
por %xmm0, %xmm6
movdqa %xmm5, %xmm3
movdqa 0x270(%rsp), %xmm2
psubsb %xmm2, %xmm3
movdqa 0x280(%rsp), %xmm1
psubsb %xmm1, %xmm6
movdqa %xmm3, %xmm11
pcmpgtb %xmm6, %xmm11
movdqa %xmm11, %xmm0
pandn %xmm6, %xmm0
pand %xmm11, %xmm3
por %xmm0, %xmm3
psubsb %xmm2, %xmm10
psubsb %xmm1, %xmm4
movdqa %xmm10, %xmm12
pcmpgtb %xmm4, %xmm12
movdqa %xmm12, %xmm0
pandn %xmm4, %xmm0
pand %xmm12, %xmm10
movdqa %xmm10, %xmm6
por %xmm0, %xmm6
movdqa %xmm9, %xmm0
pcmpgtb %xmm6, %xmm0
movdqa %xmm9, %xmm1
pand %xmm0, %xmm1
pandn %xmm6, %xmm0
por %xmm1, %xmm0
movdqa %xmm0, %xmm1
pcmpgtb %xmm3, %xmm1
pand %xmm1, %xmm0
pandn %xmm3, %xmm1
por %xmm0, %xmm1
movdqa %xmm8, %xmm15
pcmpeqb 0x260ef5(%rip), %xmm15  # 0x5f5c00
movdqa %xmm15, %xmm0
pandn %xmm1, %xmm0
movdqa 0xe0(%rsp), %xmm10
pand %xmm15, %xmm10
por %xmm0, %xmm10
cmpq $0x10, %rax
jb 0x394d82
movdqa 0x170(%rsp), %xmm2
movdqa %xmm2, %xmm0
pcmpgtb %xmm10, %xmm0
movdqa %xmm10, %xmm1
pand %xmm0, %xmm1
pandn %xmm2, %xmm0
por %xmm1, %xmm0
movdqa 0x180(%rsp), %xmm2
movdqa %xmm2, %xmm1
pcmpgtb %xmm10, %xmm1
pand %xmm1, %xmm2
pandn %xmm10, %xmm1
por %xmm1, %xmm2
movdqa %xmm2, 0x180(%rsp)
movdqa %xmm0, 0x170(%rsp)
movdqa %xmm15, %xmm0
pandn %xmm3, %xmm0
movdqa 0xa0(%rsp), %xmm4
pand %xmm15, %xmm4
por %xmm4, %xmm0
pcmpeqb %xmm10, %xmm9
movdqa %xmm10, %xmm1
pcmpeqb %xmm0, %xmm1
movdqa 0x20159d(%rip), %xmm3   # 0x596350
movdqa %xmm3, %xmm2
psubb %xmm1, %xmm2
movdqa %xmm9, %xmm1
pandn %xmm2, %xmm1
pand 0x2013a3(%rip), %xmm9   # 0x596170
por %xmm1, %xmm9
pand 0x262895(%rip), %xmm12  # 0x5f7670
pand 0x26289c(%rip), %xmm11  # 0x5f7680
por %xmm12, %xmm11
por %xmm9, %xmm11
pxor 0x2629b9(%rip), %xmm11  # 0x5f77b0
movq 0x58(%rsp), %rdx
movq 0x10(%rdx), %rdx
movq (%rdx), %r12
pextrw $0x7, %xmm11, %edx
cmpq %rbx, %rax
jae 0x394e1c
movq 0x160(%rsp), %rdi
addq %r12, %rdi
movb %dh, (%rax,%rdi)
cmpq %rcx, 0x238(%rsp)
setae %dil
leaq -0x1(%rax), %r10
cmpq %rbx, %r10
setae %r10b
orb %dil, %r10b
jne 0x394e46
movq 0x168(%rsp), %rdi
addq %r12, %rdi
movb %dl, (%rax,%rdi)
cmpq %rcx, 0x230(%rsp)
jae 0x394e7e
leaq -0x2(%rax), %rdx
cmpq $0x2, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x394e7e
pextrw $0x6, %xmm11, %edx
movq 0xf0(%rsp), %rdi
addq %r12, %rdi
movb %dh, (%rax,%rdi)
cmpq %rcx, 0x228(%rsp)
movq 0x98(%rsp), %r10
jae 0x394ebe
leaq -0x3(%rax), %rdx
cmpq $0x3, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x394ebe
pextrw $0x6, %xmm11, %edx
movq 0xf8(%rsp), %rdi
addq %r12, %rdi
movb %dl, (%rax,%rdi)
cmpq %rcx, 0x220(%rsp)
jae 0x394ef6
leaq -0x4(%rax), %rdx
cmpq $0x4, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x394ef6
pextrw $0x5, %xmm11, %edx
movq 0x100(%rsp), %rdi
addq %r12, %rdi
movb %dh, (%rax,%rdi)
cmpq %rcx, 0x218(%rsp)
jae 0x394f2e
leaq -0x5(%rax), %rdx
cmpq $0x5, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x394f2e
pextrw $0x5, %xmm11, %edx
movq 0x108(%rsp), %rdi
addq %r12, %rdi
movb %dl, (%rax,%rdi)
cmpq %rcx, 0x210(%rsp)
jae 0x394f66
leaq -0x6(%rax), %rdx
cmpq $0x6, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x394f66
pextrw $0x4, %xmm11, %edx
movq 0x110(%rsp), %rdi
addq %r12, %rdi
movb %dh, (%rax,%rdi)
cmpq %rcx, 0x208(%rsp)
jae 0x394f9e
leaq -0x7(%rax), %rdx
cmpq $0x7, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x394f9e
pextrw $0x4, %xmm11, %edx
movq 0x120(%rsp), %rdi
addq %r12, %rdi
movb %dl, (%rax,%rdi)
cmpq %rcx, 0x200(%rsp)
jae 0x394fd6
leaq -0x8(%rax), %rdx
cmpq $0x8, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x394fd6
pextrw $0x3, %xmm11, %edx
movq 0x118(%rsp), %rdi
addq %r12, %rdi
movb %dh, (%rax,%rdi)
cmpq %rcx, 0x1f8(%rsp)
jae 0x39500e
leaq -0x9(%rax), %rdx
cmpq $0x9, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x39500e
pextrw $0x3, %xmm11, %edx
movq 0x128(%rsp), %rdi
addq %r12, %rdi
movb %dl, (%rax,%rdi)
cmpq %rcx, 0x1f0(%rsp)
jae 0x395046
leaq -0xa(%rax), %rdx
cmpq $0xa, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x395046
pextrw $0x2, %xmm11, %edx
movq 0x130(%rsp), %rdi
addq %r12, %rdi
movb %dh, (%rax,%rdi)
cmpq %rcx, 0x1e8(%rsp)
jae 0x39507e
leaq -0xb(%rax), %rdx
cmpq $0xb, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x39507e
pextrw $0x2, %xmm11, %edx
movq 0x138(%rsp), %rdi
addq %r12, %rdi
movb %dl, (%rax,%rdi)
cmpq %rcx, 0x1e0(%rsp)
jae 0x3950b8
leaq -0xc(%rax), %rdx
cmpq $0xc, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x3950b8
movd %xmm11, %edx
shrl $0x18, %edx
movq 0x140(%rsp), %rdi
addq %r12, %rdi
movb %dl, (%rax,%rdi)
cmpq %rcx, 0x1d8(%rsp)
jae 0x3950f2
leaq -0xd(%rax), %rdx
cmpq $0xd, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x3950f2
movd %xmm11, %edx
shrl $0x10, %edx
movq 0x148(%rsp), %rdi
addq %r12, %rdi
movb %dl, (%rax,%rdi)
cmpq %rcx, %r11
jae 0x395124
leaq -0xe(%rax), %rdx
cmpq $0xe, %rax
setae %dil
cmpq %rbx, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x395124
movd %xmm11, %edx
movq 0x150(%rsp), %rdi
addq %r12, %rdi
movb %dh, (%rax,%rdi)
cmpq %rcx, 0x1d0(%rsp)
jae 0x395156
leaq -0xf(%rax), %rdx
cmpq $0xf, %rax
setb %dil
cmpq %rbx, %rdx
setge %dl
orb %dil, %dl
jne 0x395156
movd %xmm11, %edx
addq 0x158(%rsp), %r12
movb %dl, (%rax,%r12)
pandn %xmm6, %xmm15
por %xmm15, %xmm4
movdqa %xmm10, 0x2b0(%rsp)
movb 0x2b0(%rsp), %dl
movb %dl, (%r10,%rax)
movd %xmm0, %edx
movq 0xc0(%rsp), %rdi
movb %dl, (%rdi,%rax)
movdqa %xmm8, %xmm1
pcmpeqb 0x290(%rsp), %xmm1
pand 0x1a0(%rsp), %xmm1
movdqa %xmm10, %xmm2
pand %xmm1, %xmm2
pandn 0x40(%rsp), %xmm1
por %xmm2, %xmm1
paddsb %xmm3, %xmm8
incq %rax
cmpq %rax, %r9
jne 0x394ad7
movdqa 0xd0(%rsp), %xmm2
paddsb 0x200fc0(%rip), %xmm2   # 0x596190
movdqa 0xe0(%rsp), %xmm0
psubsb 0x250(%rsp), %xmm0
movdqa %xmm0, 0xe0(%rsp)
movq 0x1b0(%rsp), %rax
addq %rax, 0x160(%rsp)
addq %rax, 0x168(%rsp)
addq %rax, 0x158(%rsp)
addq %rax, 0x150(%rsp)
addq %rax, 0x148(%rsp)
addq %rax, 0x140(%rsp)
addq %rax, 0x138(%rsp)
addq %rax, 0x130(%rsp)
addq %rax, 0x128(%rsp)
addq %rax, 0x118(%rsp)
addq %rax, 0x120(%rsp)
addq %rax, 0x110(%rsp)
addq %rax, 0x108(%rsp)
addq %rax, 0x100(%rsp)
addq %rax, 0xf8(%rsp)
addq %rax, 0xf0(%rsp)
movq 0x50(%rsp), %rax
movq %rax, %r11
cmpq %rcx, %rax
movq 0x300(%rsp), %rsi
movl 0x28(%rsp), %edx
jb 0x3945db
movl $0x10, %eax
movq 0x8(%rsp), %rbx
movdqa %xmm1, 0x2a0(%rsp)
movzbl 0x2af(%rsp), %ecx
movzbl %dl, %edx
cmpb %dl, %cl
cmovgl %ecx, %edx
pslldq $0x1, %xmm1             # xmm1 = zero,xmm1[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
decl %eax
jne 0x39529a
movdqa 0xa0(%rsp), %xmm0
pcmpgtb 0x170(%rsp), %xmm0
movdqa 0x180(%rsp), %xmm1
pcmpgtb 0x190(%rsp), %xmm1
por %xmm0, %xmm1
pmovmskb %xmm1, %eax
testl %eax, %eax
movq 0x58(%rsp), %rcx
movl 0xcc(%rsp), %esi
je 0x395308
orb $0x40, 0xc(%rcx)
xorl %edx, %edx
xorl %esi, %esi
movl $0x0, 0x4(%rsp)
movsbl %dl, %eax
movl %eax, (%rcx)
movl 0x4(%rsp), %eax
movl %eax, 0x4(%rcx)
movl %esi, 0x8(%rcx)
callq 0x2094b5
movq 0x98(%rsp), %rdi
callq 0x2094b5
movq %r15, %rdi
callq 0x2094b5
movq 0x300(%rsp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x395347
movq %rbx, %rdi
callq 0x2094b5
movq 0x58(%rsp), %rax
jmp 0x39537f
callq 0x1be44f
jmp 0x39537d
callq 0x1be429
jmp 0x39537d
callq 0x1be403
jmp 0x39537d
callq 0x1be3dd
jmp 0x39537d
callq 0x1be3b7
jmp 0x39537d
callq 0x1be391
jmp 0x39537d
callq 0x1be36b
xorl %eax, %eax
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)