// File: /workspace/github_c_makefile_star2_O0/dnbaker[P]fastiota/testfastiota.cpp
// Function: main
int main() {
    int n = 400;
    std::vector<uint32_t> dat(n), datcmp(dat);
    uint32_t *ptr = dat.data();
    fastiota32(ptr, n, 13);
    std::iota(datcmp.begin(), datcmp.end(), 13u);
    assert(std::equal(dat.begin(), dat.end(), datcmp.begin()));
    for(uint32_t *s = ptr; s < ptr + n; ++s) fprintf(stderr, "%u,", *s);
    fputc('\n', stderr);
    std::vector<uint64_t> d64(n), dc64(n);
    fastiota::iota(d64.data(), d64.size(), 420);
    std::iota(dc64.data(), dc64.data() + n, uint64_t(420));
    for(auto s = d64.data(); s < d64.data() + n; ++s) fprintf(stderr, "%lu,", (unsigned long)*s);
    assert(std::equal(d64.begin(), d64.end(), d64.begin()));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movl $0x0, -0x4(%rbp)
movl $0x190, -0x8(%rbp)      # imm = 0x190
movslq -0x8(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0x21(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x21e0
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
leaq -0x20(%rbp), %rdi
callq 0x2200
jmp 0x124d
leaq -0x21(%rbp), %rdi
callq 0x2270
leaq -0x50(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x2290
jmp 0x1265
leaq -0x20(%rbp), %rdi
callq 0x2380
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movslq -0x8(%rbp), %rsi
movl $0xd, %edx
callq 0x16c0
jmp 0x1286
leaq -0x50(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x2400
movq -0x100(%rbp), %rdi
movq %rax, -0x60(%rbp)
callq 0x2430
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
movl $0xd, %edx
callq 0x23a0
jmp 0x12be
leaq -0x20(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x2400
movq -0x110(%rbp), %rdi
movq %rax, -0x70(%rbp)
callq 0x2430
movq %rax, -0x78(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x2400
movq %rax, -0x80(%rbp)
movq -0x70(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq -0x80(%rbp), %rdx
callq 0x2460
movb %al, -0x101(%rbp)
jmp 0x1308
movb -0x101(%rbp), %al
testb $0x1, %al
jne 0x1314
jmp 0x1316
jmp 0x1371
leaq 0x2d3f(%rip), %rdi      # 0x405c
leaq 0x2d6b(%rip), %rsi      # 0x408f
movl $0xc, %edx
leaq 0x2d70(%rip), %rcx      # 0x40a0
callq 0x1080
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x21(%rbp), %rdi
callq 0x2270
jmp 0x16ab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x16a2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x1699
movq -0x58(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq -0x58(%rbp), %rcx
movslq -0x8(%rbp), %rdx
shlq $0x2, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0x13cc
movq 0x5c42(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
movq -0x88(%rbp), %rax
movl (%rax), %edx
leaq 0x2cfa(%rip), %rsi      # 0x40ab
movb $0x0, %al
callq 0x10d0
movq -0x88(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x88(%rbp)
jmp 0x137c
movq 0x5c0d(%rip), %rax      # 0x6fe0
movq (%rax), %rsi
movl $0xa, %edi
callq 0x10c0
jmp 0x13e2
movslq -0x8(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq -0xa1(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x24b0
movq -0x120(%rbp), %rsi
movq -0x118(%rbp), %rdx
leaq -0xa0(%rbp), %rdi
callq 0x24d0
jmp 0x141c
leaq -0xa1(%rbp), %rdi
callq 0x2540
movslq -0x8(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq -0xc1(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x24b0
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
leaq -0xc0(%rbp), %rdi
callq 0x24d0
jmp 0x1462
leaq -0xc1(%rbp), %rdi
callq 0x2540
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x25a0
movq -0x140(%rbp), %rdi
movq %rax, -0x138(%rbp)
callq 0x25c0
movq -0x138(%rbp), %rdi
movq %rax, %rsi
movl $0x1a4, %edx            # imm = 0x1A4
movl $0x1, %ecx
callq 0x2560
jmp 0x14af
leaq -0xc0(%rbp), %rdi
movq %rdi, -0x150(%rbp)
callq 0x25a0
movq -0x150(%rbp), %rdi
movq %rax, -0x148(%rbp)
callq 0x25a0
movq -0x148(%rbp), %rdi
movslq -0x8(%rbp), %rcx
leaq (%rax,%rcx,8), %rsi
movl $0x1a4, %edx            # imm = 0x1A4
callq 0x25e0
jmp 0x14f0
leaq -0xa0(%rbp), %rdi
callq 0x25a0
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x25a0
movq %rax, %rcx
movq -0x158(%rbp), %rax
movslq -0x8(%rbp), %rdx
shlq $0x3, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0x15c8
movq 0x5a9e(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
movq -0xd0(%rbp), %rax
movq (%rax), %rdx
leaq 0x2b59(%rip), %rsi      # 0x40af
movb $0x0, %al
callq 0x10d0
movq -0xd0(%rbp), %rax
addq $0x8, %rax
movq %rax, -0xd0(%rbp)
jmp 0x1503
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xa1(%rbp), %rdi
callq 0x2540
jmp 0x1699
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xc1(%rbp), %rdi
callq 0x2540
jmp 0x168d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x26e0
jmp 0x168d
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x2680
movq -0x168(%rbp), %rdi
movq %rax, -0xd8(%rbp)
callq 0x26b0
movq -0x168(%rbp), %rdi
movq %rax, -0xe0(%rbp)
callq 0x2680
movq %rax, -0xe8(%rbp)
movq -0xd8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
callq 0x2630
movb %al, -0x159(%rbp)
jmp 0x162a
movb -0x159(%rbp), %al
testb $0x1, %al
jne 0x1636
jmp 0x1638
jmp 0x1657
leaq 0x2a75(%rip), %rdi      # 0x40b4
leaq 0x2a49(%rip), %rsi      # 0x408f
movl $0x13, %edx
leaq 0x2a4e(%rip), %rcx      # 0x40a0
callq 0x1080
leaq -0xc0(%rbp), %rdi
callq 0x26e0
leaq -0xa0(%rbp), %rdi
callq 0x26e0
leaq -0x50(%rbp), %rdi
callq 0x2740
leaq -0x20(%rbp), %rdi
callq 0x2740
movl -0x4(%rbp), %eax
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
leaq -0xa0(%rbp), %rdi
callq 0x26e0
leaq -0x50(%rbp), %rdi
callq 0x2740
leaq -0x20(%rbp), %rdi
callq 0x2740
movq -0x30(%rbp), %rdi
callq 0x10f0
nopw %cs:(%rax,%rax)