// File: /workspace/github_c_makefile_star2_O2/dnbaker[P]fastiota/fastiota.c
// Function: fastiota32
FASTIOTA_EXPORT uint32_t *fastiota32(uint32_t *start, size_t nelem, uint32_t sv) {
#define CASEN *start++ = sv++; __attribute__((fallthrough));
    {
        const size_t leftover = VECSIZE / sizeof(uint32_t) - (uint64_t)start % (VECSIZE / sizeof(uint32_t));
        if(leftover && leftover != VECSIZE / sizeof(uint32_t)) {
            nelem -= leftover;
            switch(leftover) {
                case 15: CASEN case 14: CASEN case 13: CASEN case 12: CASEN case 11: CASEN case 10: CASEN case 9: CASEN case 8: CASEN case 7: CASEN case 6: CASEN case 5: CASEN case 4: CASEN case 3: CASEN case 2: CASEN case 1: CASEN
                default: ;
            }
        }
    }
    uint32_t *const end = start + nelem, *const origstart = start;
#if __AVX512F__
    __m512i m = init_start(_mm512_set_epi32, sv);
    const __m512i inc = _mm512_set1_epi32(sizeof(m) / sizeof(uint32_t));
    assert((uint64_t)start % sizeof(m) == 0);
    UNROLL4
    while(end - start >= (signed_size_t)(sizeof(m) / sizeof(uint32_t))) {
        _mm512_store_si512((void *)start, m);
        m = _mm512_add_epi32(m, inc);
        start += sizeof(m) / sizeof(uint32_t);
    }
    sv += (start - origstart);
#elif __AVX2__
    __m256i m = init_start(_mm256_set_epi32, sv);
    assert((uint64_t)start % sizeof(m) == 0);
    const __m256i inc = _mm256_set1_epi32(sizeof(m) / sizeof(uint32_t));
    UNROLL4
    while(end - start >= (signed_size_t)(sizeof(m) / sizeof(uint32_t))) {
        _mm256_store_si256((__m256i *)start, m);
        m = _mm256_add_epi32(m, inc);
        start += sizeof(m) / sizeof(uint32_t);
    }
    sv += (start - origstart);
#elif __SSE2__
    __m128i m = init_start(_mm_set_epi32, sv);
    assert((uint64_t)start % sizeof(m) == 0);
    const __m128i inc = _mm_set1_epi32(sizeof(m) / sizeof(uint32_t));
    UNROLL4
    while(end - start >= (signed_size_t)(sizeof(m) / sizeof(uint32_t))) {
        _mm_store_si128((__m128i *)start, m);
        m = _mm_add_epi32(m, inc);
        start += sizeof(m) / sizeof(uint32_t);
    }
    sv += (start - origstart);
#endif
    while(start < end) *start++ = sv++;
    return origstart;
}

// Assembly:
pushq %rax
movq %rdi, %rcx
andq $0xf, %rcx
je 0x184f
movq %rdi, %rax
orq $-0x10, %rax
decq %rcx
leaq 0xa35(%rip), %r8        # 0x2200
movslq (%r8,%rcx,4), %rcx
addq %r8, %rcx
jmpq *%rcx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
addq %rax, %rsi
movl %edx, (%rdi)
addq $0x4, %rdi
incl %edx
testb $0x3f, %dil
jne 0x19b2
leaq (%rdi,%rsi,4), %rax
vpbroadcastd %edx, %ymm0
vpaddd 0x855(%rip), %ymm0, %ymm1 # 0x20c0
vpmovsxbd 0xbeb(%rip), %zmm2 # 0x2460
vpermi2d %zmm0, %zmm1, %zmm2
vpaddd 0xbbd(%rip), %xmm0, %xmm1 # 0x2440
vpmovsxbd 0xbe3(%rip), %zmm3 # 0x2470
vpermi2d %zmm1, %zmm2, %zmm3
leal 0xd(%rdx), %ecx
movw $0x2000, %r8w           # imm = 0x2000
kmovd %r8d, %k1
vpbroadcastd %ecx, %zmm3 {%k1}
vpaddd 0xba2(%rip), %xmm0, %xmm1 # 0x2450
vpmovsxbq 0xc08(%rip), %zmm0 # 0x24c0
vpermi2q %zmm1, %zmm3, %zmm0
shlq $0x2, %rsi
vpbroadcastd 0xbe4(%rip), %zmm1 # 0x24b0
vpbroadcastd 0xbde(%rip), %zmm2 # 0x24b4
xorl %ecx, %ecx
vpbroadcastd 0xbd6(%rip), %zmm3 # 0x24b8
vpbroadcastd 0xbd0(%rip), %zmm4 # 0x24bc
movl $0x100, %r9d            # imm = 0x100
movq %rdi, %r8
cmpq $0x3d, %rsi
jl 0x1962
vmovdqa64 %zmm0, (%rdi,%rcx)
leaq -0x40(%rsi), %r10
cmpq $0x3d, %r10
jl 0x1967
vpaddd %zmm1, %zmm0, %zmm5
vmovdqa64 %zmm5, 0x40(%rdi,%rcx)
leaq -0x80(%rsi), %r10
cmpq $0x3d, %r10
jl 0x1974
vpaddd %zmm2, %zmm0, %zmm5
vmovdqa64 %zmm5, 0x80(%rdi,%rcx)
leaq -0xc0(%rsi), %r10
cmpq $0x3d, %r10
jl 0x1984
vpaddd %zmm3, %zmm0, %zmm5
vmovdqa64 %zmm5, 0xc0(%rdi,%rcx)
vpaddd %zmm4, %zmm0, %zmm0
addq %r9, %r8
addq %r9, %rcx
addq $-0x100, %rsi
jmp 0x18f5
addq %rdi, %rcx
jmp 0x1991
addq $0x40, %r8
addq %rdi, %rcx
addq $0x40, %rcx
jmp 0x1991
subq $-0x80, %r8
addq %rdi, %rcx
addq $0x80, %rcx
jmp 0x1991
addq %rdi, %rcx
addq $0xc0, %rcx
movq %rcx, %r8
subq %rdi, %r8
shrq $0x2, %r8
addl %r8d, %edx
cmpq %rax, %rcx
jae 0x19aa
movl %edx, (%rcx)
addq $0x4, %rcx
incl %edx
jmp 0x199b
movq %rdi, %rax
popq %rcx
vzeroupper
retq
leaq 0xb3f(%rip), %rdi       # 0x24f8
leaq 0xb59(%rip), %rsi       # 0x2519
leaq 0xb5d(%rip), %rcx       # 0x2524
pushq $0x32
popq %rdx
callq 0x1080