// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/nw_stats_diag_sse2_128_8.c
// Function: arr_store_si128
static inline void arr_store_si128(
        int *array,
        __m128i vWH,
        int32_t i,
        int32_t s1Len,
        int32_t j,
        int32_t s2Len)
{
    if (0 <= i+0 && i+0 < s1Len && 0 <= j-0 && j-0 < s2Len) {
        array[1LL*(i+0)*s2Len + (j-0)] = (int8_t)_mm_extract_epi8_rpl(vWH, 15);
    }
    if (0 <= i+1 && i+1 < s1Len && 0 <= j-1 && j-1 < s2Len) {
        array[1LL*(i+1)*s2Len + (j-1)] = (int8_t)_mm_extract_epi8_rpl(vWH, 14);
    }
    if (0 <= i+2 && i+2 < s1Len && 0 <= j-2 && j-2 < s2Len) {
        array[1LL*(i+2)*s2Len + (j-2)] = (int8_t)_mm_extract_epi8_rpl(vWH, 13);
    }
    if (0 <= i+3 && i+3 < s1Len && 0 <= j-3 && j-3 < s2Len) {
        array[1LL*(i+3)*s2Len + (j-3)] = (int8_t)_mm_extract_epi8_rpl(vWH, 12);
    }
    if (0 <= i+4 && i+4 < s1Len && 0 <= j-4 && j-4 < s2Len) {
        array[1LL*(i+4)*s2Len + (j-4)] = (int8_t)_mm_extract_epi8_rpl(vWH, 11);
    }
    if (0 <= i+5 && i+5 < s1Len && 0 <= j-5 && j-5 < s2Len) {
        array[1LL*(i+5)*s2Len + (j-5)] = (int8_t)_mm_extract_epi8_rpl(vWH, 10);
    }
    if (0 <= i+6 && i+6 < s1Len && 0 <= j-6 && j-6 < s2Len) {
        array[1LL*(i+6)*s2Len + (j-6)] = (int8_t)_mm_extract_epi8_rpl(vWH, 9);
    }
    if (0 <= i+7 && i+7 < s1Len && 0 <= j-7 && j-7 < s2Len) {
        array[1LL*(i+7)*s2Len + (j-7)] = (int8_t)_mm_extract_epi8_rpl(vWH, 8);
    }
    if (0 <= i+8 && i+8 < s1Len && 0 <= j-8 && j-8 < s2Len) {
        array[1LL*(i+8)*s2Len + (j-8)] = (int8_t)_mm_extract_epi8_rpl(vWH, 7);
    }
    if (0 <= i+9 && i+9 < s1Len && 0 <= j-9 && j-9 < s2Len) {
        array[1LL*(i+9)*s2Len + (j-9)] = (int8_t)_mm_extract_epi8_rpl(vWH, 6);
    }
    if (0 <= i+10 && i+10 < s1Len && 0 <= j-10 && j-10 < s2Len) {
        array[1LL*(i+10)*s2Len + (j-10)] = (int8_t)_mm_extract_epi8_rpl(vWH, 5);
    }
    if (0 <= i+11 && i+11 < s1Len && 0 <= j-11 && j-11 < s2Len) {
        array[1LL*(i+11)*s2Len + (j-11)] = (int8_t)_mm_extract_epi8_rpl(vWH, 4);
    }
    if (0 <= i+12 && i+12 < s1Len && 0 <= j-12 && j-12 < s2Len) {
        array[1LL*(i+12)*s2Len + (j-12)] = (int8_t)_mm_extract_epi8_rpl(vWH, 3);
    }
    if (0 <= i+13 && i+13 < s1Len && 0 <= j-13 && j-13 < s2Len) {
        array[1LL*(i+13)*s2Len + (j-13)] = (int8_t)_mm_extract_epi8_rpl(vWH, 2);
    }
    if (0 <= i+14 && i+14 < s1Len && 0 <= j-14 && j-14 < s2Len) {
        array[1LL*(i+14)*s2Len + (j-14)] = (int8_t)_mm_extract_epi8_rpl(vWH, 1);
    }
    if (0 <= i+15 && i+15 < s1Len && 0 <= j-15 && j-15 < s2Len) {
        array[1LL*(i+15)*s2Len + (j-15)] = (int8_t)_mm_extract_epi8_rpl(vWH, 0);
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
pextrw $0x7, %xmm0, %r10d
movl %r8d, %eax
movl %ecx, %r9d
cmpl %r8d, %ecx
jge 0x335833
cmpl %edx, %esi
jge 0x335833
movl %ecx, %r11d
orl %esi, %r11d
js 0x335833
movl %r10d, %r11d
shrl $0x8, %r11d
movsbl %r11b, %r11d
movl %esi, %ebx
imulq %rax, %rbx
leaq (%rdi,%rbx,4), %rbx
movl %r11d, (%rbx,%r9,4)
leal 0x1(%rsi), %r11d
cmpl $-0x1, %esi
setl %bl
cmpl %edx, %r11d
setge %bpl
testl %ecx, %ecx
setle %r14b
orb %bl, %r14b
orb %bpl, %r14b
cmpl %r8d, %ecx
setg %bl
orb %r14b, %bl
jne 0x33586f
movsbl %r10b, %r10d
movl %r11d, %r11d
imulq %rax, %r11
leaq (%rdi,%r11,4), %r11
movl %r10d, -0x4(%r11,%r9,4)
leal 0x2(%rsi), %r9d
cmpl $-0x2, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x3358c3
leal -0x2(%rcx), %r10d
cmpl $0x2, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x3358c3
pextrw $0x6, %xmm0, %r11d
shrl $0x8, %r11d
movsbl %r11b, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0x3(%rsi), %r9d
cmpl $-0x3, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x335913
leal -0x3(%rcx), %r10d
cmpl $0x3, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x335913
pextrw $0x6, %xmm0, %r11d
movsbl %r11b, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0x4(%rsi), %r9d
cmpl $-0x4, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x335967
leal -0x4(%rcx), %r10d
cmpl $0x4, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x335967
pextrw $0x5, %xmm0, %r11d
shrl $0x8, %r11d
movsbl %r11b, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0x5(%rsi), %r9d
cmpl $-0x5, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x3359b7
leal -0x5(%rcx), %r10d
cmpl $0x5, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x3359b7
pextrw $0x5, %xmm0, %r11d
movsbl %r11b, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0x6(%rsi), %r9d
cmpl $-0x6, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x335a0b
leal -0x6(%rcx), %r10d
cmpl $0x6, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x335a0b
pextrw $0x4, %xmm0, %r11d
shrl $0x8, %r11d
movsbl %r11b, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0x7(%rsi), %r9d
cmpl $-0x7, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x335a5b
leal -0x7(%rcx), %r10d
cmpl $0x7, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x335a5b
pextrw $0x4, %xmm0, %r11d
movsbl %r11b, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0x8(%rsi), %r9d
cmpl $-0x8, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x335aaf
leal -0x8(%rcx), %r10d
cmpl $0x8, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x335aaf
pextrw $0x3, %xmm0, %r11d
shrl $0x8, %r11d
movsbl %r11b, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0x9(%rsi), %r9d
cmpl $-0x9, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x335aff
leal -0x9(%rcx), %r10d
cmpl $0x9, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x335aff
pextrw $0x3, %xmm0, %r11d
movsbl %r11b, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0xa(%rsi), %r9d
cmpl $-0xa, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x335b53
leal -0xa(%rcx), %r10d
cmpl $0xa, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x335b53
pextrw $0x2, %xmm0, %r11d
shrl $0x8, %r11d
movsbl %r11b, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0xb(%rsi), %r9d
cmpl $-0xb, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x335ba3
leal -0xb(%rcx), %r10d
cmpl $0xb, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x335ba3
pextrw $0x2, %xmm0, %r11d
movsbl %r11b, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0xc(%rsi), %r9d
cmpl $-0xc, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x335bf2
leal -0xc(%rcx), %r10d
cmpl $0xc, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x335bf2
movd %xmm0, %r11d
sarl $0x18, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0xd(%rsi), %r9d
cmpl $-0xd, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x335c45
leal -0xd(%rcx), %r10d
cmpl $0xd, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x335c45
movd %xmm0, %r11d
shrl $0x10, %r11d
movsbl %r11b, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0xe(%rsi), %r9d
cmpl $-0xe, %esi
setge %r10b
cmpl %edx, %r9d
setl %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x335c98
leal -0xe(%rcx), %r10d
cmpl $0xe, %ecx
setge %r11b
cmpl %r8d, %r10d
setl %bl
andb %r11b, %bl
cmpb $0x1, %bl
jne 0x335c98
movd %xmm0, %r11d
shrl $0x8, %r11d
movsbl %r11b, %r11d
movl %r9d, %r9d
imulq %rax, %r9
movl %r10d, %r10d
leaq (%rdi,%r9,4), %r9
movl %r11d, (%r9,%r10,4)
leal 0xf(%rsi), %r9d
cmpl $-0xf, %esi
setge %sil
cmpl %edx, %r9d
setl %dl
andb %sil, %dl
cmpb $0x1, %dl
jne 0x335ce1
leal -0xf(%rcx), %edx
cmpl $0xf, %ecx
setge %cl
cmpl %r8d, %edx
setl %sil
andb %cl, %sil
cmpb $0x1, %sil
jne 0x335ce1
movd %xmm0, %ecx
movsbl %cl, %ecx
movl %r9d, %esi
imulq %rsi, %rax
movl %edx, %edx
leaq (%rdi,%rax,4), %rax
movl %ecx, (%rax,%rdx,4)
popq %rbx
popq %r14
popq %rbp
retq
nop