// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/nw_stats_diag_sse2_128_16.c
// Function: arr_store_rowcol
static inline void arr_store_rowcol(
        int *row,
        int *col,
        __m128i vWH,
        int32_t i,
        int32_t s1Len,
        int32_t j,
        int32_t s2Len)
{
    if (i+0 == s1Len-1 && 0 <= j-0 && j-0 < s2Len) {
        row[j-0] = (int16_t)_mm_extract_epi16(vWH, 7);
    }
    if (j-0 == s2Len-1 && 0 <= i+0 && i+0 < s1Len) {
        col[(i+0)] = (int16_t)_mm_extract_epi16(vWH, 7);
    }
    if (i+1 == s1Len-1 && 0 <= j-1 && j-1 < s2Len) {
        row[j-1] = (int16_t)_mm_extract_epi16(vWH, 6);
    }
    if (j-1 == s2Len-1 && 0 <= i+1 && i+1 < s1Len) {
        col[(i+1)] = (int16_t)_mm_extract_epi16(vWH, 6);
    }
    if (i+2 == s1Len-1 && 0 <= j-2 && j-2 < s2Len) {
        row[j-2] = (int16_t)_mm_extract_epi16(vWH, 5);
    }
    if (j-2 == s2Len-1 && 0 <= i+2 && i+2 < s1Len) {
        col[(i+2)] = (int16_t)_mm_extract_epi16(vWH, 5);
    }
    if (i+3 == s1Len-1 && 0 <= j-3 && j-3 < s2Len) {
        row[j-3] = (int16_t)_mm_extract_epi16(vWH, 4);
    }
    if (j-3 == s2Len-1 && 0 <= i+3 && i+3 < s1Len) {
        col[(i+3)] = (int16_t)_mm_extract_epi16(vWH, 4);
    }
    if (i+4 == s1Len-1 && 0 <= j-4 && j-4 < s2Len) {
        row[j-4] = (int16_t)_mm_extract_epi16(vWH, 3);
    }
    if (j-4 == s2Len-1 && 0 <= i+4 && i+4 < s1Len) {
        col[(i+4)] = (int16_t)_mm_extract_epi16(vWH, 3);
    }
    if (i+5 == s1Len-1 && 0 <= j-5 && j-5 < s2Len) {
        row[j-5] = (int16_t)_mm_extract_epi16(vWH, 2);
    }
    if (j-5 == s2Len-1 && 0 <= i+5 && i+5 < s1Len) {
        col[(i+5)] = (int16_t)_mm_extract_epi16(vWH, 2);
    }
    if (i+6 == s1Len-1 && 0 <= j-6 && j-6 < s2Len) {
        row[j-6] = (int16_t)_mm_extract_epi16(vWH, 1);
    }
    if (j-6 == s2Len-1 && 0 <= i+6 && i+6 < s1Len) {
        col[(i+6)] = (int16_t)_mm_extract_epi16(vWH, 1);
    }
    if (i+7 == s1Len-1 && 0 <= j-7 && j-7 < s2Len) {
        row[j-7] = (int16_t)_mm_extract_epi16(vWH, 0);
    }
    if (j-7 == s2Len-1 && 0 <= i+7 && i+7 < s1Len) {
        col[(i+7)] = (int16_t)_mm_extract_epi16(vWH, 0);
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
leal -0x1(%rcx), %eax
cmpl %edx, %eax
setne %r10b
testl %r8d, %r8d
sets %r11b
cmpl %r9d, %r8d
setge %bl
orb %r11b, %bl
orb %r10b, %bl
pextrw $0x7, %xmm0, %r11d
movl %r8d, %r10d
jne 0x325eb6
movswl %r11w, %ebx
movl %ebx, (%rdi,%r10,4)
cmpl %ecx, %edx
jge 0x325ed1
testl %edx, %edx
js 0x325ed1
leal -0x1(%r9), %ebx
cmpl %r8d, %ebx
jne 0x325ed1
movswl %r11w, %r11d
movl %edx, %ebx
movl %r11d, (%rsi,%rbx,4)
leal 0x1(%rdx), %r11d
cmpl %eax, %r11d
setne %bl
testl %r8d, %r8d
setle %bpl
cmpl %r9d, %r8d
setg %r14b
orb %bpl, %r14b
orb %bl, %r14b
pextrw $0x6, %xmm0, %ebx
jne 0x325efe
movswl %bx, %ebp
movl %ebp, -0x4(%rdi,%r10,4)
cmpl %ecx, %r11d
jge 0x325f18
cmpl $-0x1, %edx
jl 0x325f18
cmpl %r9d, %r8d
jne 0x325f18
movswl %bx, %r10d
movl %r11d, %r11d
movl %r10d, (%rsi,%r11,4)
leal 0x2(%rdx), %r10d
pextrw $0x5, %xmm0, %r11d
cmpl %eax, %r10d
jne 0x325f4c
leal -0x2(%r8), %ebx
cmpl $0x2, %r8d
setge %bpl
cmpl %r9d, %ebx
setl %r14b
andb %bpl, %r14b
cmpb $0x1, %r14b
jne 0x325f4c
movswl %r11w, %ebp
movl %ebx, %ebx
movl %ebp, (%rdi,%rbx,4)
cmpl %ecx, %r10d
jge 0x325f6a
cmpl $-0x2, %edx
jl 0x325f6a
leal -0x1(%r8), %ebx
cmpl %r9d, %ebx
jne 0x325f6a
movswl %r11w, %r11d
movl %r10d, %r10d
movl %r11d, (%rsi,%r10,4)
leal 0x3(%rdx), %r10d
pextrw $0x4, %xmm0, %r11d
cmpl %eax, %r10d
jne 0x325f9e
leal -0x3(%r8), %ebx
cmpl $0x3, %r8d
setge %bpl
cmpl %r9d, %ebx
setl %r14b
andb %bpl, %r14b
cmpb $0x1, %r14b
jne 0x325f9e
movswl %r11w, %ebp
movl %ebx, %ebx
movl %ebp, (%rdi,%rbx,4)
cmpl %ecx, %r10d
jge 0x325fbc
cmpl $-0x3, %edx
jl 0x325fbc
leal -0x2(%r8), %ebx
cmpl %r9d, %ebx
jne 0x325fbc
movswl %r11w, %r11d
movl %r10d, %r10d
movl %r11d, (%rsi,%r10,4)
leal 0x4(%rdx), %r10d
pextrw $0x3, %xmm0, %r11d
cmpl %eax, %r10d
jne 0x325ff0
leal -0x4(%r8), %ebx
cmpl $0x4, %r8d
setge %bpl
cmpl %r9d, %ebx
setl %r14b
andb %bpl, %r14b
cmpb $0x1, %r14b
jne 0x325ff0
movswl %r11w, %ebp
movl %ebx, %ebx
movl %ebp, (%rdi,%rbx,4)
cmpl %ecx, %r10d
jge 0x32600e
cmpl $-0x4, %edx
jl 0x32600e
leal -0x3(%r8), %ebx
cmpl %r9d, %ebx
jne 0x32600e
movswl %r11w, %r11d
movl %r10d, %r10d
movl %r11d, (%rsi,%r10,4)
leal 0x5(%rdx), %r10d
pextrw $0x2, %xmm0, %r11d
cmpl %eax, %r10d
jne 0x326042
leal -0x5(%r8), %ebx
cmpl $0x5, %r8d
setge %bpl
cmpl %r9d, %ebx
setl %r14b
andb %bpl, %r14b
cmpb $0x1, %r14b
jne 0x326042
movswl %r11w, %ebp
movl %ebx, %ebx
movl %ebp, (%rdi,%rbx,4)
cmpl %ecx, %r10d
jge 0x326060
cmpl $-0x5, %edx
jl 0x326060
leal -0x4(%r8), %ebx
cmpl %r9d, %ebx
jne 0x326060
movswl %r11w, %r11d
movl %r10d, %r10d
movl %r11d, (%rsi,%r10,4)
leal 0x6(%rdx), %r10d
pextrw $0x1, %xmm0, %r11d
cmpl %eax, %r10d
jne 0x326094
leal -0x6(%r8), %ebx
cmpl $0x6, %r8d
setge %bpl
cmpl %r9d, %ebx
setl %r14b
andb %bpl, %r14b
cmpb $0x1, %r14b
jne 0x326094
movswl %r11w, %ebp
movl %ebx, %ebx
movl %ebp, (%rdi,%rbx,4)
cmpl %ecx, %r10d
jge 0x3260b2
cmpl $-0x6, %edx
jl 0x3260b2
leal -0x5(%r8), %ebx
cmpl %r9d, %ebx
jne 0x3260b2
movswl %r11w, %r11d
movl %r10d, %r10d
movl %r11d, (%rsi,%r10,4)
leal 0x7(%rdx), %r10d
movd %xmm0, %r11d
cmpl %eax, %r10d
jne 0x3260e4
leal -0x7(%r8), %eax
cmpl $0x7, %r8d
setge %bl
cmpl %r9d, %eax
setl %bpl
andb %bl, %bpl
cmpb $0x1, %bpl
jne 0x3260e4
movswl %r11w, %ebx
movl %eax, %eax
movl %ebx, (%rdi,%rax,4)
cmpl %ecx, %r10d
jge 0x326101
cmpl $-0x7, %edx
jl 0x326101
addl $-0x6, %r8d
cmpl %r9d, %r8d
jne 0x326101
movswl %r11w, %eax
movl %r10d, %ecx
movl %eax, (%rsi,%rcx,4)
popq %rbx
popq %r14
popq %rbp
retq
nop