// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/sw_striped_sse2_128_32.c
// Function: parasail_sw_rowcol_striped_profile_sse2_128_32
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 k = 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;
#ifdef PARASAIL_ROWCOL
    int32_t offset = 0;
    int32_t position = 0;
#endif
    __m128i* restrict vProfile = NULL;
    __m128i* restrict pvHStore = NULL;
    __m128i* restrict pvHLoad = NULL;
    __m128i* restrict pvHMax = NULL;
    __m128i* restrict pvE = NULL;
    __m128i vGapO;
    __m128i vGapE;
    __m128i vZero;
    __m128i vNegInf;
    int32_t score = 0;
    __m128i vMaxH;
    __m128i vMaxHUnit;
    int32_t maxp = 0;
    /*int32_t stop = 0;*/
    parasail_result_t *result = NULL;

    /* validate inputs */
    PARASAIL_CHECK_NULL(profile);
    PARASAIL_CHECK_NULL(profile->profile32.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;
    k = 0;
    end_query = 0;
    end_ref = 0;
    s1Len = profile->s1Len;
    matrix = profile->matrix;
    segWidth = 4; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
#ifdef PARASAIL_ROWCOL
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
#endif
    vProfile = (__m128i*)profile->profile32.score;
    vGapO = _mm_set1_epi32(open);
    vGapE = _mm_set1_epi32(gap);
    vZero = _mm_setzero_si128();
    vNegInf = _mm_set1_epi32(NEG_INF);
    score = NEG_INF;
    vMaxH = vNegInf;
    vMaxHUnit = vNegInf;
    maxp = INT32_MAX - (int32_t)(matrix->max+1);
    /*stop = profile->stop == INT32_MAX ?  INT32_MAX : (int32_t)profile->stop;*/

    /* initialize result */
#ifdef PARASAIL_TABLE
    result = parasail_result_new_table1(segLen*segWidth, s2Len);
#else
#ifdef PARASAIL_ROWCOL
    result = parasail_result_new_rowcol1(segLen*segWidth, s2Len);
#else
    result = parasail_result_new();
#endif
#endif
    if (!result) return NULL;

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SW | PARASAIL_FLAG_STRIPED
        | PARASAIL_FLAG_BITS_32 | PARASAIL_FLAG_LANES_4;
#ifdef PARASAIL_TABLE
    result->flag |= PARASAIL_FLAG_TABLE;
#endif
#ifdef PARASAIL_ROWCOL
    result->flag |= PARASAIL_FLAG_ROWCOL;
#endif

    /* initialize heap variables */
    pvHStore = parasail_memalign___m128i(16, segLen);
    pvHLoad =  parasail_memalign___m128i(16, segLen);
    pvHMax = parasail_memalign___m128i(16, segLen);
    pvE = parasail_memalign___m128i(16, segLen);

    /* validate heap variables */
    if (!pvHStore) return NULL;
    if (!pvHLoad) return NULL;
    if (!pvHMax) return NULL;
    if (!pvE) return NULL;

    /* initialize H and E */
    parasail_memset___m128i(pvHStore, vZero, segLen);
    parasail_memset___m128i(pvE, _mm_set1_epi32(-open), segLen);

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m128i vE;
        __m128i vF;
        __m128i vH;
        const __m128i* vP = NULL;
        __m128i* pv = NULL;

        /* Initialize F value to 0.  Any errors to vH values will be
         * corrected in the Lazy_F loop. */
        vF = vZero;

        /* load final segment of pvHStore and shift left by 4 bytes */
        vH = _mm_load_si128(&pvHStore[segLen - 1]);
        vH = _mm_slli_si128(vH, 4);

        /* Correct part of the vProfile */
        vP = vProfile + matrix->mapper[(unsigned char)s2[j]] * segLen;

        if (end_ref == j-2) {
            /* Swap in the max buffer. */
            pv = pvHMax;
            pvHMax = pvHLoad;
            pvHLoad = pvHStore;
            pvHStore = pv;
        }
        else {
            /* Swap the 2 H buffers. */
            pv = pvHLoad;
            pvHLoad = pvHStore;
            pvHStore = pv;
        }

        /* inner loop to process the query sequence */
        for (i=0; i<segLen; ++i) {
            vH = _mm_add_epi32(vH, _mm_load_si128(vP + i));
            vE = _mm_load_si128(pvE + i);

            /* Get max from vH, vE and vF. */
            vH = _mm_max_epi32_rpl(vH, vE);
            vH = _mm_max_epi32_rpl(vH, vF);
            vH = _mm_max_epi32_rpl(vH, vZero);
            /* Save vH values. */
            _mm_store_si128(pvHStore + i, vH);
#ifdef PARASAIL_TABLE
            arr_store_si128(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif
            vMaxH = _mm_max_epi32_rpl(vH, vMaxH);

            /* Update vE value. */
            vH = _mm_sub_epi32(vH, vGapO);
            vE = _mm_sub_epi32(vE, vGapE);
            vE = _mm_max_epi32_rpl(vE, vH);
            _mm_store_si128(pvE + i, vE);

            /* Update vF value. */
            vF = _mm_sub_epi32(vF, vGapE);
            vF = _mm_max_epi32_rpl(vF, vH);

            /* Load the next vH. */
            vH = _mm_load_si128(pvHLoad + i);
        }

        /* Lazy_F loop: has been revised to disallow adjecent insertion and
         * then deletion, so don't update E(i, i), learn from SWPS3 */
        for (k=0; k<segWidth; ++k) {
            vF = _mm_slli_si128(vF, 4);
            for (i=0; i<segLen; ++i) {
                vH = _mm_load_si128(pvHStore + i);
                vH = _mm_max_epi32_rpl(vH,vF);
                _mm_store_si128(pvHStore + i, vH);
#ifdef PARASAIL_TABLE
                arr_store_si128(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif
                vMaxH = _mm_max_epi32_rpl(vH, vMaxH);
                vH = _mm_sub_epi32(vH, vGapO);
                vF = _mm_sub_epi32(vF, vGapE);
                if (! _mm_movemask_epi8(_mm_cmpgt_epi32(vF, vH))) goto end;
                /*vF = _mm_max_epi32_rpl(vF, vH);*/
            }
        }
end:
        {
        }

#ifdef PARASAIL_ROWCOL
        /* extract last value from the column */
        {
            vH = _mm_load_si128(pvHStore + offset);
            for (k=0; k<position; ++k) {
                vH = _mm_slli_si128(vH, 4);
            }
            result->rowcols->score_row[j] = (int32_t) _mm_extract_epi32_rpl (vH, 3);
        }
#endif

        {
            __m128i vCompare = _mm_cmpgt_epi32(vMaxH, vMaxHUnit);
            if (_mm_movemask_epi8(vCompare)) {
                score = _mm_hmax_epi32_rpl(vMaxH);
                /* if score has potential to overflow, abort early */
                if (score > maxp) {
                    result->flag |= PARASAIL_FLAG_SATURATED;
                    break;
                }
                vMaxHUnit = _mm_set1_epi32(score);
                end_ref = j;
            }
        }

        /*if (score == stop) break;*/
    }

#ifdef PARASAIL_ROWCOL
    for (i=0; i<segLen; ++i) {
        __m128i vH = _mm_load_si128(pvHStore+i);
        arr_store_col(result->rowcols->score_col, vH, i, segLen);
    }
#endif

    if (score == INT32_MAX) {
        result->flag |= PARASAIL_FLAG_SATURATED;
    }

    if (parasail_result_is_saturated(result)) {
        score = INT32_MAX;
        end_query = 0;
        end_ref = 0;
    }
    else {
        if (end_ref == j-1) {
            /* end_ref was the last store column */
            __m128i *pv = pvHMax;
            pvHMax = pvHStore;
            pvHStore = pv;
        }
        else if (end_ref == j-2) {
            /* end_ref was the last load column */
            __m128i *pv = pvHMax;
            pvHMax = pvHLoad;
            pvHLoad = pv;
        }
        /* Trace the alignment ending position on read. */
        {
            int32_t *t = (int32_t*)pvHMax;
            int32_t column_len = segLen * segWidth;
            end_query = s1Len - 1;
            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;
                    }
                }
            }
        }
    }

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

    parasail_free(pvE);
    parasail_free(pvHMax);
    parasail_free(pvHLoad);
    parasail_free(pvHStore);

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, 0x48(%rsp)
testq %rdi, %rdi
je 0x36586f
movq 0x48(%rdi), %rax
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0x36590b
movq 0x10(%rdi), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x365a4e
movl 0x8(%rdi), %eax
testl %eax, %eax
jle 0x365a58
cmpq $0x0, 0x48(%rsp)
je 0x365a62
movl %edx, %ebp
testl %edx, %edx
jle 0x365a6c
movl %ecx, %r12d
testl %ecx, %ecx
js 0x365a76
movl %r8d, %r13d
testl %r8d, %r8d
js 0x365a80
movq %rax, %r14
addq $0x3, %r14
movq %r14, %r15
shrq $0x2, %r15
decl %eax
movl %eax, 0x10(%rsp)
xorl %edx, %edx
divl %r15d
movl %eax, 0x14(%rsp)
movl %edx, 0xc(%rsp)
movl $0x7ffffffe, %ecx       # imm = 0x7FFFFFFE
movq 0x40(%rsp), %rax
subl 0x1c(%rax), %ecx
movl %ecx, 0x34(%rsp)
andl $0x7ffffffc, %r14d      # imm = 0x7FFFFFFC
movl %r14d, %edi
movl %ebp, %esi
callq 0x20ac53
testq %rax, %rax
je 0x365553
movq %rax, %rbx
movl %r13d, 0x50(%rsp)
movl %r12d, 0x18(%rsp)
movq %r14, 0x60(%rsp)
orl $0x4440804, 0xc(%rax)   # imm = 0x4440804
movl $0x10, %edi
movq %r15, %rsi
callq 0x2f600c
movq %rax, %r13
movl $0x10, %edi
movq %r15, %rsi
callq 0x2f600c
movq %rax, %r14
movl $0x10, %edi
movq %r15, %rsi
callq 0x2f600c
movq %rax, %r12
movl $0x10, %edi
movq %r15, %rsi
callq 0x2f600c
movq %r15, %rcx
movq %rax, %r15
movq %r13, %xmm0
movq %r14, %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movq %r12, %xmm1
movq %rax, %xmm2
punpcklqdq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0]
pxor %xmm2, %xmm2
pcmpeqd %xmm2, %xmm0
pcmpeqd %xmm2, %xmm1
movdqa %xmm0, %xmm2
shufps $0xdd, %xmm1, %xmm2     # xmm2 = xmm2[1,3],xmm1[1,3]
shufps $0x88, %xmm1, %xmm0     # xmm0 = xmm0[0,2],xmm1[0,2]
andps %xmm2, %xmm0
movmskps %xmm0, %eax
testl %eax, %eax
je 0x36556a
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x0, 0x20(%rsp)
movq %rbp, 0x38(%rsp)
movq %r12, %rbp
movq %rbx, 0x28(%rsp)
movl $0x3, %ebx
subl 0x14(%rsp), %ebx
movd 0x18(%rsp), %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa %xmm0, 0x70(%rsp)
movd 0x50(%rsp), %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa %xmm0, 0x50(%rsp)
pxor %xmm0, %xmm0
movq %r13, %rdi
movq %rcx, %r12
movq %rcx, %rsi
callq 0x2f6015
movl 0x18(%rsp), %eax
negl %eax
movd %eax, %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movq %r15, %rdi
movq %r12, %rsi
callq 0x2f6015
movdqa 0x50(%rsp), %xmm9
movdqa 0x70(%rsp), %xmm8
pxor %xmm7, %xmm7
leal -0x1(%r12), %ecx
movl 0xc(%rsp), %edx
movl 0x38(%rsp), %esi
movq %r12, %rdi
shlq $0x4, %rdi
movl $0xc0000000, 0xc(%rsp)  # imm = 0xC0000000
movdqa 0x264b63(%rip), %xmm1   # 0x5ca170
shlq $0x4, %rcx
movq %r12, 0x18(%rsp)
movl %r12d, %eax
shlq $0x4, %rdx
xorl %r8d, %r8d
movdqa %xmm1, %xmm0
movq %r13, %r12
movdqa (%r13,%rcx), %xmm3
pslldq $0x4, %xmm3             # xmm3 = zero,zero,zero,zero,xmm3[0,1,2,3,4,5,6,7,8,9,10,11]
movq 0x40(%rsp), %r9
movq 0x10(%r9), %r9
movq 0x48(%rsp), %r10
movzbl (%r10,%r8), %r10d
movslq (%r9,%r10,4), %r9
imulq %rax, %r9
shlq $0x4, %r9
addq 0x68(%rsp), %r9
leal -0x2(%r8), %r10d
cmpl %r10d, 0x20(%rsp)
movq %r14, %r13
cmoveq %rbp, %r13
xorps %xmm2, %xmm2
xorl %r11d, %r11d
paddd (%r9,%r11), %xmm3
movdqa (%r15,%r11), %xmm4
movdqa %xmm3, %xmm5
pcmpgtd %xmm4, %xmm5
pand %xmm5, %xmm3
pandn %xmm4, %xmm5
por %xmm3, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm2, %xmm6
pand %xmm6, %xmm5
pandn %xmm2, %xmm6
por %xmm5, %xmm6
movdqa %xmm6, %xmm3
pcmpgtd %xmm7, %xmm3
pand %xmm6, %xmm3
movdqa %xmm3, (%r13,%r11)
movdqa %xmm3, %xmm5
pcmpgtd %xmm0, %xmm5
movdqa %xmm3, %xmm6
pand %xmm5, %xmm6
pandn %xmm0, %xmm5
movdqa %xmm5, %xmm0
por %xmm6, %xmm0
psubd %xmm8, %xmm3
psubd %xmm9, %xmm4
movdqa %xmm4, %xmm5
pcmpgtd %xmm3, %xmm5
pand %xmm5, %xmm4
pandn %xmm3, %xmm5
por %xmm4, %xmm5
movdqa %xmm5, (%r15,%r11)
psubd %xmm9, %xmm2
movdqa %xmm2, %xmm4
pcmpgtd %xmm3, %xmm2
pand %xmm2, %xmm4
pandn %xmm3, %xmm2
por %xmm4, %xmm2
movdqa (%r12,%r11), %xmm3
addq $0x10, %r11
cmpq %r11, %rdi
jne 0x36566d
cmpl %r10d, 0x20(%rsp)
cmoveq %r14, %rbp
movq %rbp, %r14
xorl %r9d, %r9d
pslldq $0x4, %xmm2             # xmm2 = zero,zero,zero,zero,xmm2[0,1,2,3,4,5,6,7,8,9,10,11]
xorl %r10d, %r10d
movdqa (%r13,%r10), %xmm3
movdqa %xmm3, %xmm4
pcmpgtd %xmm2, %xmm4
pand %xmm4, %xmm3
pandn %xmm2, %xmm4
por %xmm3, %xmm4
movdqa %xmm4, (%r13,%r10)
movdqa %xmm4, %xmm3
pcmpgtd %xmm0, %xmm3
movdqa %xmm4, %xmm5
pand %xmm3, %xmm5
pandn %xmm0, %xmm3
movdqa %xmm3, %xmm0
por %xmm5, %xmm0
psubd %xmm8, %xmm4
psubd %xmm9, %xmm2
movdqa %xmm2, %xmm3
pcmpgtd %xmm4, %xmm3
movmskps %xmm3, %r11d
testl %r11d, %r11d
je 0x3657a2
addq $0x10, %r10
cmpq %r10, %rdi
jne 0x365737
incl %r9d
cmpl $0x4, %r9d
jne 0x36572f
movdqa (%r13,%rdx), %xmm2
cmpl $0x2, 0x14(%rsp)
ja 0x3657c0
xorl %r9d, %r9d
pslldq $0x4, %xmm2             # xmm2 = zero,zero,zero,zero,xmm2[0,1,2,3,4,5,6,7,8,9,10,11]
incl %r9d
cmpl %ebx, %r9d
jl 0x3657b3
pshufd $0xff, %xmm2, %xmm2     # xmm2 = xmm2[3,3,3,3]
movq 0x28(%rsp), %r9
movq 0x10(%r9), %r9
movq (%r9), %r9
movd %xmm2, (%r9,%r8,4)
movdqa %xmm0, %xmm2
pcmpgtd %xmm1, %xmm2
movmskps %xmm2, %r9d
testl %r9d, %r9d
je 0x365849
movdqa %xmm0, %xmm1
psrldq $0x8, %xmm1             # xmm1 = xmm1[8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero
movdqa %xmm0, %xmm2
pcmpgtd %xmm1, %xmm2
movdqa %xmm0, %xmm3
pand %xmm2, %xmm3
pandn %xmm1, %xmm2
por %xmm3, %xmm2
movdqa %xmm2, %xmm3
psrldq $0x4, %xmm3             # xmm3 = xmm3[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movdqa %xmm2, %xmm1
pcmpgtd %xmm3, %xmm1
pand %xmm1, %xmm2
pandn %xmm3, %xmm1
por %xmm2, %xmm1
movd %xmm1, %r9d
cmpl 0x34(%rsp), %r9d
jg 0x365879
movl %r9d, 0xc(%rsp)
movq %r14, %rbp
pshufd $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0]
movl %r8d, %r9d
movq %r9, 0x20(%rsp)
jmp 0x36584c
movq %r14, %rbp
incq %r8
movq %r12, %r14
cmpq %rsi, %r8
jne 0x365624
movq 0x28(%rsp), %rbx
movq %rbp, %r14
movq 0x38(%rsp), %rbp
movl 0xc(%rsp), %r9d
jmp 0x365885
callq 0x1b6b87
jmp 0x365553
movq 0x28(%rsp), %rbx
orb $0x40, 0xc(%rbx)
movl %r8d, %ebp
leaq (,%rax,4), %rcx
leaq (%rcx,%rcx,2), %rdx
leaq (,%rax,8), %rsi
xorl %edi, %edi
movdqa (%r13,%rdi,4), %xmm0
movq 0x10(%rbx), %r8
movq 0x8(%r8), %r8
movd %xmm0, (%r8,%rdi)
addq %rdi, %r8
pshufd $0x55, %xmm0, %xmm1     # xmm1 = xmm0[1,1,1,1]
movd %xmm1, (%rcx,%r8)
pshufd $0xee, %xmm0, %xmm1     # xmm1 = xmm0[2,3,2,3]
movd %xmm1, (%rsi,%r8)
pshufd $0xff, %xmm0, %xmm0     # xmm0 = xmm0[3,3,3,3]
movd %xmm0, (%rdx,%r8)
addq $0x4, %rdi
decq %rax
jne 0x36589b
movl %r9d, 0xc(%rsp)
cmpl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
jne 0x3658ef
orb $0x40, 0xc(%rbx)
movq %rbx, %rdi
callq 0x20be2e
testl %eax, %eax
je 0x365915
xorl %edi, %edi
movl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
xorl %r8d, %r8d
jmp 0x365ac4
callq 0x1b6b61
jmp 0x365553
leal -0x1(%rbp), %ecx
addl $-0x2, %ebp
movq 0x20(%rsp), %rdi
cmpl %ebp, %edi
movq %r12, %rdx
cmoveq %r14, %rdx
movq %r14, %rax
cmoveq %r12, %rax
cmpl %ecx, %edi
cmovneq %r13, %r14
cmovneq %rdx, %r12
cmoveq %r13, %rax
movq 0x60(%rsp), %rsi
testl %esi, %esi
je 0x365a8a
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
je 0x365a9c
movd %r8d, %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movd %r9d, %xmm1
pshufd $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0]
movd 0x18(%rsp), %xmm2
pshufd $0x0, %xmm2, %xmm2      # xmm2 = xmm2[0,0,0,0]
movdqa 0x2c414e(%rip), %xmm3   # 0x629ad0
xorl %ecx, %ecx
movdqa 0x2c4154(%rip), %xmm4   # 0x629ae0
pshufd $0xf5, %xmm2, %xmm5     # xmm5 = xmm2[1,1,3,3]
movdqa 0x2c4157(%rip), %xmm6   # 0x629af0
movdqu (%rax,%rcx,4), %xmm7
pcmpeqd %xmm1, %xmm7
movdqa %xmm3, %xmm8
psrld $0x2, %xmm8
movdqa %xmm3, %xmm9
pand %xmm4, %xmm9
pshufd $0xf5, %xmm9, %xmm10    # xmm10 = xmm9[1,1,3,3]
pmuludq %xmm2, %xmm9
pshufd $0xe8, %xmm9, %xmm9     # xmm9 = xmm9[0,2,2,3]
pmuludq %xmm5, %xmm10
pshufd $0xe8, %xmm10, %xmm10   # xmm10 = xmm10[0,2,2,3]
punpckldq %xmm10, %xmm9   # xmm9 = xmm9[0],xmm10[0],xmm9[1],xmm10[1]
paddd %xmm8, %xmm9
movdqa %xmm0, %xmm8
pcmpgtd %xmm9, %xmm8
pand %xmm8, %xmm9
pandn %xmm0, %xmm8
por %xmm9, %xmm8
pand %xmm7, %xmm8
pandn %xmm0, %xmm7
movdqa %xmm7, %xmm0
por %xmm8, %xmm0
addq $0x4, %rcx
paddd %xmm6, %xmm3
cmpq %rcx, %rsi
jne 0x365999
pshufd $0xee, %xmm0, %xmm1     # xmm1 = xmm0[2,3,2,3]
movdqa %xmm1, %xmm2
pcmpgtd %xmm0, %xmm2
pand %xmm2, %xmm0
pandn %xmm1, %xmm2
por %xmm0, %xmm2
pshufd $0x55, %xmm2, %xmm0     # xmm0 = xmm2[1,1,1,1]
movdqa %xmm0, %xmm1
pcmpgtd %xmm2, %xmm1
pand %xmm1, %xmm2
pandn %xmm0, %xmm1
por %xmm2, %xmm1
movd %xmm1, %r8d
jmp 0x365abe
callq 0x1b6b3b
jmp 0x365553
callq 0x1b6b15
jmp 0x365553
callq 0x1b6aef
jmp 0x365553
callq 0x1b6ac9
jmp 0x365553
callq 0x1b6aa3
jmp 0x365553
callq 0x1b6a7d
jmp 0x365553
movq %r14, %r13
movq %rax, %r14
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
jmp 0x365ac4
xorl %ecx, %ecx
movl %r8d, %edx
movl %ecx, %r8d
shrl $0x2, %r8d
cmpl %edx, %r8d
cmovgel %edx, %r8d
cmpl %r9d, (%rax,%rcx,4)
cmovnel %edx, %r8d
incq %rcx
cmpl %ecx, %esi
jne 0x365a9e
movq %r14, %r13
movq %rax, %r14
movl %r9d, (%rbx)
movl %r8d, 0x4(%rbx)
movl %edi, 0x8(%rbx)
movq %r15, %rdi
callq 0x20a60d
movq %r14, %rdi
callq 0x20a60d
movq %r12, %rdi
callq 0x20a60d
movq %r13, %rdi
callq 0x20a60d
jmp 0x365555
nop