// File: /workspace/github_cpp_makefile_star2_O1/Fohlen[P]cubescript-standalone/command.cpp
// Function: loopconc(ident*, int, unsigned int*, bool)
char *loopconc(ident *id, int n, uint *body, bool space)
{
    identstack stack;
    vector<char> s;
    loopi(n)
    {
        setiter(*id, i, stack);
        tagval v;
        executeret(body, v);
        const char *vstr = v.getstr();
        int len = strlen(vstr);
        if(space && i) s.add(' ');
        s.put(vstr, len);
        freearg(v);
    }
    if(n > 0) poparg(*id);
    s.add('\0');
    return newstring(s.getbuf(), s.length()-1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %ecx, -0x2c(%rbp)
movq %rdx, -0x60(%rbp)
movl %esi, %r15d
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
testl %esi, %esi
jle 0x9d3c
movl -0x2c(%rbp), %eax
xorb $0x1, %al
movl %eax, -0x2c(%rbp)
xorl %r14d, %r14d
testl %r14d, %r14d
je 0x9bd1
movl 0x10(%rbx), %eax
cmpl $0x1, %eax
je 0x9bcb
cmpl $0x3, %eax
jne 0x9b9c
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x9b9c
callq 0x152d7
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x9bc4
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0x9bbc
callq 0x152d7
movq $0x0, 0x18(%rbx)
movl $0x1, 0x10(%rbx)
movl %r14d, 0x20(%rbx)
jmp 0x9c2a
movq 0x20(%rbx), %rax
movq %rax, -0x78(%rbp)
movl 0x10(%rbx), %eax
movl %eax, -0x70(%rbp)
movq 0x28(%rbx), %rax
movq %rax, -0x68(%rbp)
leaq -0x78(%rbp), %rax
movq %rax, 0x28(%rbx)
movl $0x1, 0x10(%rbx)
movq $0x0, 0x20(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x9c26
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0x9c1e
callq 0x152d7
movq $0x0, 0x18(%rbx)
andb $-0x21, 0x38(%rbx)
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x531b
movl -0x48(%rbp), %eax
decl %eax
leaq 0xd4cc(%rip), %r13      # 0x1710f
cmpl $0x5, %eax
ja 0x9ccf
leaq 0xca4d(%rip), %rcx      # 0x166a0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0xd4ae(%rip), %r13      # 0x1710f
jmpq *%rax
movq -0x50(%rbp), %r13
jmp 0x9ccf
movss -0x50(%rbp), %xmm0
callq 0x4d63
movq %rax, %r13
jmp 0x9ccf
movl -0x50(%rbp), %edx
movl 0x14b13(%rip), %eax     # 0x1e794
incl %eax
andl $0x3, %eax
movl %eax, 0x14b08(%rip)     # 0x1e794
movl %eax, %ecx
shll $0x8, %ecx
leal (%rcx,%rax,4), %eax
leaq 0x14b05(%rip), %rcx     # 0x1e7a0
addq %rcx, %rax
movq %rax, -0x58(%rbp)
leaq -0x58(%rbp), %rdi
leaq 0xd094(%rip), %rsi      # 0x16d41
xorl %eax, %eax
callq 0x128d0
movl 0x14ada(%rip), %eax     # 0x1e794
movq %rax, %rcx
shlq $0x8, %rcx
leaq (%rcx,%rax,4), %r13
leaq 0x14ad4(%rip), %rax     # 0x1e7a0
addq %rax, %r13
movq %r13, %rdi
callq 0x2080
movq %rax, %r12
testl %r14d, %r14d
sete %al
orb -0x2c(%rbp), %al
jne 0x9cf6
movb $0x20, -0x58(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x12760
leaq -0x40(%rbp), %rdi
movq %r13, %rsi
movl %r12d, %edx
callq 0x1279e
movl -0x48(%rbp), %eax
cmpl $0x5, %eax
je 0x9d1d
cmpl $0x3, %eax
jne 0x9d30
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
jne 0x9d2b
jmp 0x9d30
movq -0x50(%rbp), %rdi
cmpl $0x0, -0x4(%rdi)
jne 0x9d30
addq $-0x4, %rdi
callq 0x152d7
incl %r14d
cmpl %r14d, %r15d
jne 0x9b7c
testl %r15d, %r15d
jle 0x9d9c
movq 0x28(%rbx), %r14
testq %r14, %r14
je 0x9d9c
cmpl $0x3, 0x10(%rbx)
jne 0x9d5e
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x9d5e
callq 0x152d7
movl 0x8(%r14), %eax
movl %eax, 0x10(%rbx)
movq (%r14), %rax
movq %rax, 0x20(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x9d94
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0x9d8c
callq 0x152d7
movq $0x0, 0x18(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x28(%rbx)
leaq -0x50(%rbp), %rsi
movb $0x0, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0x12760
movq -0x40(%rbp), %rbx
movslq -0x34(%rbp), %r15
movq %r15, %rdi
callq 0x152b1
movq %rax, %r14
movq %rbx, %rdi
callq 0x2080
movq %rax, %r12
incq %r12
cmpq %r15, %r12
cmovaeq %r15, %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2130
movb $0x0, -0x1(%r14,%r12)
movl $0x0, -0x34(%rbp)
testq %rbx, %rbx
je 0x9dfc
movq %rbx, %rdi
callq 0x152d7
movq %r14, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9e18
jmp 0x9e18
jmp 0x9e18
jmp 0x9e18
jmp 0x9e18
movq %rax, %rbx
movl $0x0, -0x34(%rbp)
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x9e30
callq 0x152d7
movq %rbx, %rdi
callq 0x23a0