// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/nw_diag_sse2_128_32.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)] = (int32_t)_mm_extract_epi32_rpl(vWH, 3);
    }
    if (0 <= i+1 && i+1 < s1Len && 0 <= j-1 && j-1 < s2Len) {
        array[1LL*(i+1)*s2Len + (j-1)] = (int32_t)_mm_extract_epi32_rpl(vWH, 2);
    }
    if (0 <= i+2 && i+2 < s1Len && 0 <= j-2 && j-2 < s2Len) {
        array[1LL*(i+2)*s2Len + (j-2)] = (int32_t)_mm_extract_epi32_rpl(vWH, 1);
    }
    if (0 <= i+3 && i+3 < s1Len && 0 <= j-3 && j-3 < s2Len) {
        array[1LL*(i+3)*s2Len + (j-3)] = (int32_t)_mm_extract_epi32_rpl(vWH, 0);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movdqa %xmm0, -0x20(%rbp)
movl %esi, -0x24(%rbp)
movl %edx, -0x28(%rbp)
movl %ecx, -0x2c(%rbp)
movl %r8d, -0x30(%rbp)
movl -0x24(%rbp), %ecx
addl $0x0, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jg 0x3a3c85
movl -0x24(%rbp), %eax
addl $0x0, %eax
cmpl -0x28(%rbp), %eax
jge 0x3a3c85
movl -0x2c(%rbp), %ecx
subl $0x0, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jg 0x3a3c85
movl -0x2c(%rbp), %eax
subl $0x0, %eax
cmpl -0x30(%rbp), %eax
jge 0x3a3c85
movdqa -0x20(%rbp), %xmm0
movl $0x3, %edi
callq 0x3a3dc0
movl %eax, %edx
movq -0x8(%rbp), %rax
movl -0x24(%rbp), %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
shlq $0x0, %rcx
movslq -0x30(%rbp), %rsi
imulq %rsi, %rcx
movl -0x2c(%rbp), %esi
subl $0x0, %esi
movslq %esi, %rsi
addq %rsi, %rcx
movl %edx, (%rax,%rcx,4)
movl -0x24(%rbp), %ecx
addl $0x1, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jg 0x3a3cec
movl -0x24(%rbp), %eax
addl $0x1, %eax
cmpl -0x28(%rbp), %eax
jge 0x3a3cec
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jg 0x3a3cec
movl -0x2c(%rbp), %eax
subl $0x1, %eax
cmpl -0x30(%rbp), %eax
jge 0x3a3cec
movdqa -0x20(%rbp), %xmm0
movl $0x2, %edi
callq 0x3a3dc0
movl %eax, %edx
movq -0x8(%rbp), %rax
movl -0x24(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x0, %rcx
movslq -0x30(%rbp), %rsi
imulq %rsi, %rcx
movl -0x2c(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
addq %rsi, %rcx
movl %edx, (%rax,%rcx,4)
movl -0x24(%rbp), %ecx
addl $0x2, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jg 0x3a3d53
movl -0x24(%rbp), %eax
addl $0x2, %eax
cmpl -0x28(%rbp), %eax
jge 0x3a3d53
movl -0x2c(%rbp), %ecx
subl $0x2, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jg 0x3a3d53
movl -0x2c(%rbp), %eax
subl $0x2, %eax
cmpl -0x30(%rbp), %eax
jge 0x3a3d53
movdqa -0x20(%rbp), %xmm0
movl $0x1, %edi
callq 0x3a3dc0
movl %eax, %edx
movq -0x8(%rbp), %rax
movl -0x24(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
shlq $0x0, %rcx
movslq -0x30(%rbp), %rsi
imulq %rsi, %rcx
movl -0x2c(%rbp), %esi
subl $0x2, %esi
movslq %esi, %rsi
addq %rsi, %rcx
movl %edx, (%rax,%rcx,4)
movl -0x24(%rbp), %ecx
addl $0x3, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jg 0x3a3db7
movl -0x24(%rbp), %eax
addl $0x3, %eax
cmpl -0x28(%rbp), %eax
jge 0x3a3db7
movl -0x2c(%rbp), %ecx
subl $0x3, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jg 0x3a3db7
movl -0x2c(%rbp), %eax
subl $0x3, %eax
cmpl -0x30(%rbp), %eax
jge 0x3a3db7
movdqa -0x20(%rbp), %xmm0
xorl %edi, %edi
callq 0x3a3dc0
movl %eax, %edx
movq -0x8(%rbp), %rax
movl -0x24(%rbp), %ecx
addl $0x3, %ecx
movslq %ecx, %rcx
shlq $0x0, %rcx
movslq -0x30(%rbp), %rsi
imulq %rsi, %rcx
movl -0x2c(%rbp), %esi
subl $0x3, %esi
movslq %esi, %rsi
addq %rsi, %rcx
movl %edx, (%rax,%rcx,4)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)