// File: /workspace/github_c_makefile_star2_O0/dnbaker[P]fastiota/fastiota.c
// Function: fastiota32_inc
FASTIOTA_EXPORT uint32_t *fastiota32_inc(uint32_t *start, size_t nelem, uint32_t sv, uint32_t incv) {
    if(incv == 1) return fastiota32(start, nelem, sv);
    uint32_t *const end = start + nelem, *const origstart = start;
#if __AVX512F__
    __m512i m = init_start_val(_mm512_set_epi32, sv, incv);
    const __m512i inc = _mm512_set1_epi32(sizeof(m) / sizeof(uint32_t));
    if((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);
        }
    } else {
        UNROLL4
        while(end - start >= (signed_size_t)(sizeof(m) / sizeof(uint32_t))) {
            _mm512_storeu_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_val(_mm256_set_epi32, sv, incv);
    const __m256i inc = _mm256_set1_epi32((signed_size_t)(sizeof(m) / sizeof(uint32_t)));
    if((uint64_t)start % sizeof(m) == 0) {
        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);
        }
    } else {
        UNROLL4
        while(end - start >= (signed_size_t)(sizeof(m) / sizeof(uint32_t))) {
            _mm256_storeu_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_val(_mm_set_epi32, sv, incv);
    const __m128i inc = _mm_set1_epi32(sizeof(m) / sizeof(uint32_t));
    if((uint64_t)start % sizeof(m) == 0) {
        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);
        }
    } else {
        UNROLL4
        while(end - start >= (signed_size_t)(sizeof(m) / sizeof(uint32_t))) {
            _mm_storeu_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 %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
andq $-0x40, %rsp
subq $0x400, %rsp            # imm = 0x400
movq %rdi, 0xf0(%rsp)
movq %rsi, 0xe8(%rsp)
movl %edx, 0xe4(%rsp)
movl %ecx, 0xe0(%rsp)
cmpl $0x1, 0xe0(%rsp)
jne 0x3f79
movq 0xf0(%rsp), %rdi
movq 0xe8(%rsp), %rsi
movl 0xe4(%rsp), %edx
callq 0x3330
movq %rax, 0xf8(%rsp)
jmp 0x43eb
movq 0xf0(%rsp), %rax
movq 0xe8(%rsp), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, 0xd8(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movl 0xe4(%rsp), %r8d
movl %r8d, 0x3c(%rsp)
movl 0xe0(%rsp), %eax
movl %eax, %r10d
movq %r10, 0x28(%rsp)
leal (%r10,%r10,4), %esi
movl %esi, %edi
leal (%rdi,%rdi,2), %edx
movl %r8d, %ecx
addl %edx, %ecx
movl %ecx, 0x34(%rsp)
movl %eax, %ecx
addl %ecx, %ecx
movl %eax, %edx
shll $0x4, %edx
subl %ecx, %edx
movl %r8d, %ecx
addl %edx, %ecx
movl %ecx, 0x38(%rsp)
leal (%r10,%r10,2), %ecx
movl %ecx, %r9d
leal (%r10,%r9,4), %edx
movl %r8d, %r13d
addl %edx, %r13d
movl %r8d, %edx
leal (%rdx,%r9,4), %r12d
leal (%r10,%rdi,2), %r11d
movl %r8d, %r15d
addl %r11d, %r15d
leal (%rdx,%rdi,2), %r14d
leal (%r10,%r10,8), %edi
movl %r8d, %ebx
addl %edi, %ebx
movl %eax, %edi
shll $0x3, %edi
leal (%rdx,%r10,8), %r11d
subl %eax, %edi
movl %r8d, %r10d
addl %edi, %r10d
movq 0x28(%rsp), %rdi
leal (%rdx,%r9,2), %r9d
addl %esi, %r8d
movl 0x3c(%rsp), %esi
leal (%rdx,%rdi,4), %edi
addl %ecx, %esi
movq 0x28(%rsp), %rcx
leal (%rdx,%rcx,2), %edx
movl 0x3c(%rsp), %ecx
addl %eax, %ecx
movl 0x34(%rsp), %eax
movl %eax, 0x17c(%rsp)
movl 0x38(%rsp), %eax
movl %eax, 0x178(%rsp)
movl 0x3c(%rsp), %eax
movl %r13d, 0x174(%rsp)
movl %r12d, 0x170(%rsp)
movl %r15d, 0x16c(%rsp)
movl %r14d, 0x168(%rsp)
movl %ebx, 0x164(%rsp)
movl %r11d, 0x160(%rsp)
movl %r10d, 0x15c(%rsp)
movl %r9d, 0x158(%rsp)
movl %r8d, 0x154(%rsp)
movl %edi, 0x150(%rsp)
movl %esi, 0x14c(%rsp)
movl %edx, 0x148(%rsp)
movl %ecx, 0x144(%rsp)
movl %eax, 0x140(%rsp)
movl 0x144(%rsp), %edx
movl 0x148(%rsp), %ecx
movl 0x14c(%rsp), %eax
movl 0x154(%rsp), %r8d
movl 0x158(%rsp), %edi
movl 0x15c(%rsp), %esi
movl 0x164(%rsp), %r11d
movl 0x168(%rsp), %r10d
movl 0x16c(%rsp), %r9d
movl 0x174(%rsp), %r15d
movl 0x178(%rsp), %r14d
movl 0x17c(%rsp), %ebx
vmovd 0x170(%rsp), %xmm0
vpinsrd $0x1, %r15d, %xmm0, %xmm0
vpinsrd $0x2, %r14d, %xmm0, %xmm0
vpinsrd $0x3, %ebx, %xmm0, %xmm1
vmovd 0x160(%rsp), %xmm0
vpinsrd $0x1, %r11d, %xmm0, %xmm0
vpinsrd $0x2, %r10d, %xmm0, %xmm0
vpinsrd $0x3, %r9d, %xmm0, %xmm2
vmovaps %xmm2, %xmm0
vinserti128 $0x1, %xmm1, %ymm0, %ymm1
vmovd 0x150(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm2
vmovd 0x140(%rsp), %xmm0
vpinsrd $0x1, %edx, %xmm0, %xmm0
vpinsrd $0x2, %ecx, %xmm0, %xmm0
vpinsrd $0x3, %eax, %xmm0, %xmm3
vmovaps %xmm3, %xmm0
vinserti128 $0x1, %xmm2, %ymm0, %ymm2
vmovaps %ymm2, %ymm0
vinserti64x4 $0x1, %ymm1, %zmm0, %zmm0
vmovdqa64 %zmm0, 0x100(%rsp)
vmovdqa64 0x100(%rsp), %zmm0
vmovdqa64 %zmm0, 0x80(%rsp)
movl $0x10, 0x1fc(%rsp)
vpbroadcastd 0x1fc(%rsp), %zmm0
vmovdqa64 %zmm0, 0x180(%rsp)
vmovdqa64 0x180(%rsp), %zmm0
vmovdqa64 %zmm0, 0x40(%rsp)
movq 0xf0(%rsp), %rax
andq $0x3f, %rax
cmpq $0x0, %rax
jne 0x42c1
jmp 0x420e
movq 0xd8(%rsp), %rax
movq 0xf0(%rsp), %rcx
subq %rcx, %rax
sarq $0x2, %rax
cmpq $0x10, %rax
jl 0x42bc
movq 0xf0(%rsp), %rax
vmovdqa64 0x80(%rsp), %zmm0
movq %rax, 0x278(%rsp)
vmovdqa64 %zmm0, 0x200(%rsp)
vmovdqa64 0x200(%rsp), %zmm0
movq 0x278(%rsp), %rax
vmovdqa64 %zmm0, (%rax)
vmovdqa64 0x80(%rsp), %zmm1
vmovdqa64 0x40(%rsp), %zmm0
vmovdqa64 %zmm1, 0x340(%rsp)
vmovdqa64 %zmm0, 0x300(%rsp)
vmovdqa64 0x340(%rsp), %zmm0
vmovdqa64 0x300(%rsp), %zmm1
vpaddd %zmm1, %zmm0, %zmm0
vmovdqa64 %zmm0, 0x80(%rsp)
movq 0xf0(%rsp), %rax
addq $0x40, %rax
movq %rax, 0xf0(%rsp)
jmp 0x420e
jmp 0x4373
jmp 0x42c3
movq 0xd8(%rsp), %rax
movq 0xf0(%rsp), %rcx
subq %rcx, %rax
sarq $0x2, %rax
cmpq $0x10, %rax
jl 0x4371
movq 0xf0(%rsp), %rax
vmovdqa64 0x80(%rsp), %zmm0
movq %rax, 0x3c0(%rsp)
vmovdqa64 %zmm0, 0x380(%rsp)
vmovdqa64 0x380(%rsp), %zmm0
movq 0x3c0(%rsp), %rax
vmovdqu64 %zmm0, (%rax)
vmovdqa64 0x80(%rsp), %zmm1
vmovdqa64 0x40(%rsp), %zmm0
vmovdqa64 %zmm1, 0x2c0(%rsp)
vmovdqa64 %zmm0, 0x280(%rsp)
vmovdqa64 0x2c0(%rsp), %zmm0
vmovdqa64 0x280(%rsp), %zmm1
vpaddd %zmm1, %zmm0, %zmm0
vmovdqa64 %zmm0, 0x80(%rsp)
movq 0xf0(%rsp), %rax
addq $0x40, %rax
movq %rax, 0xf0(%rsp)
jmp 0x42c3
jmp 0x4373
movq 0xf0(%rsp), %rcx
movq 0xd0(%rsp), %rax
subq %rax, %rcx
sarq $0x2, %rcx
movl 0xe4(%rsp), %eax
addq %rcx, %rax
movl %eax, 0xe4(%rsp)
movq 0xf0(%rsp), %rax
cmpq 0xd8(%rsp), %rax
jae 0x43db
movl 0xe4(%rsp), %ecx
movl %ecx, %eax
addl $0x1, %eax
movl %eax, 0xe4(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, 0xf0(%rsp)
movl %ecx, (%rax)
jmp 0x439b
movq 0xd0(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq 0xf8(%rsp), %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
vzeroupper
retq
nopw %cs:(%rax,%rax)