// File: /workspace/github_cpp_makefile_star2_O1/Fohlen[P]cubescript-standalone/command.cpp
// Function: looplistconc(ident*, char const*, unsigned int const*, bool)
void looplistconc(ident *id, const char *list, const uint *body, bool space)
{
    if(id->type!=ID_ALIAS) return;
    identstack stack;
    vector<char> r;
    int n = 0;
    for(const char *s = list, *start, *end; parselist(s, start, end); n++)
    {
        char *val = newstring(start, end-start);
        setiter(*id, val, stack);

        if(n && space) r.add(' ');

        tagval v;
        executeret(body, v);
        const char *vstr = v.getstr();
        int len = strlen(vstr);
        r.put(vstr, len);
        freearg(v);
    }
    if(n) poparg(*id);
    r.add('\0');
    commandret->setstr(newstring(r.getbuf(), r.length()-1));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %ecx, -0x54(%rbp)
movq %rdx, -0x70(%rbp)
cmpl $0x4, (%rdi)
jne 0xb44e
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
leaq -0x78(%rbp), %rdi
movq %rsi, (%rdi)
leaq 0x13aa2(%rip), %rcx     # 0x1ebc0
leaq 0x13aa3(%rip), %r8      # 0x1ebc8
leaq -0x68(%rbp), %rsi
leaq -0x60(%rbp), %rdx
callq 0xa23b
testb %al, %al
je 0xb3da
movb %al, -0x29(%rbp)
xorl %ebx, %ebx
movl %ebx, -0x30(%rbp)
movq %r15, %r13
movq -0x68(%rbp), %r12
movq -0x60(%rbp), %r14
subq %r12, %r14
incq %r14
movq %r14, %rdi
callq 0x152b1
movq %rax, %rbx
movq %r12, %rdi
callq 0x2080
movq %rax, %r15
incq %r15
cmpq %r14, %r15
cmovaeq %r14, %r15
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x2130
movb $0x0, -0x1(%rbx,%r15)
movq %r13, %r15
movq 0x28(%r13), %rax
leaq -0x98(%rbp), %rdx
cmpq %rdx, %rax
movq %rbx, %r14
je 0xb1fb
movq 0x20(%r15), %rcx
movq %rcx, -0x98(%rbp)
movl 0x10(%r15), %ecx
movl %ecx, -0x90(%rbp)
movq %rax, -0x88(%rbp)
movq %rdx, 0x28(%r15)
movl $0x3, 0x10(%r15)
movq %r14, 0x20(%r15)
movq 0x18(%r15), %rax
testq %rax, %rax
movl -0x30(%rbp), %ebx
je 0xb1f4
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%r15), %rdi
cmpl $0xff, (%rdi)
jg 0xb1ec
callq 0x152d7
movq $0x0, 0x18(%r15)
andb $-0x21, 0x38(%r15)
jmp 0xb24c
cmpl $0x3, 0x10(%r15)
jne 0xb215
movq 0x20(%r15), %rdi
testq %rdi, %rdi
movl -0x30(%rbp), %ebx
je 0xb220
callq 0x152d7
jmp 0xb220
movl $0x3, 0x10(%r15)
movl -0x30(%rbp), %ebx
movq 0x18(%r15), %rax
testq %rax, %rax
je 0xb248
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%r15), %rdi
cmpl $0xff, (%rdi)
jg 0xb240
callq 0x152d7
movq $0x0, 0x18(%r15)
movq %r14, 0x20(%r15)
addl $-0x1, %ebx
setb %al
andb -0x54(%rbp), %al
cmpb $0x1, %al
jne 0xb26a
movb $0x20, -0x40(%rbp)
leaq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x12760
movq -0x70(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x531b
movl -0x38(%rbp), %eax
decl %eax
leaq 0xbe8c(%rip), %r13      # 0x1710f
cmpl $0x5, %eax
ja 0xb30f
leaq 0xb4ad(%rip), %rcx      # 0x16740
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0xbe6e(%rip), %r13      # 0x1710f
jmpq *%rax
movq -0x40(%rbp), %r13
jmp 0xb30f
movss -0x40(%rbp), %xmm0
callq 0x4d63
movq %rax, %r13
jmp 0xb30f
movl -0x40(%rbp), %edx
movl 0x134d3(%rip), %eax     # 0x1e794
incl %eax
andl $0x3, %eax
movl %eax, 0x134c8(%rip)     # 0x1e794
movl %eax, %ecx
shll $0x8, %ecx
leal (%rcx,%rax,4), %eax
leaq 0x134c5(%rip), %rcx     # 0x1e7a0
addq %rcx, %rax
movq %rax, -0x80(%rbp)
leaq -0x80(%rbp), %rdi
leaq 0xba54(%rip), %rsi      # 0x16d41
xorl %eax, %eax
callq 0x128d0
movl 0x1349a(%rip), %eax     # 0x1e794
movq %rax, %rcx
shlq $0x8, %rcx
leaq (%rcx,%rax,4), %r13
leaq 0x13494(%rip), %rax     # 0x1e7a0
addq %rax, %r13
movq %r13, %rdi
callq 0x2080
leaq -0x50(%rbp), %rdi
movq %r13, %rsi
movl %eax, %edx
callq 0x1279e
movl -0x38(%rbp), %eax
cmpl $0x5, %eax
je 0xb33d
cmpl $0x3, %eax
jne 0xb350
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
jne 0xb34b
jmp 0xb350
movq -0x40(%rbp), %rdi
cmpl $0x0, -0x4(%rdi)
jne 0xb350
addq $-0x4, %rdi
callq 0x152d7
leaq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x60(%rbp), %rdx
leaq 0x1385d(%rip), %rcx     # 0x1ebc0
leaq 0x1385e(%rip), %r8      # 0x1ebc8
callq 0xa23b
testb %al, %al
jne 0xb13f
cmpb $0x0, -0x29(%rbp)
je 0xb3da
movq 0x28(%r15), %r14
testq %r14, %r14
je 0xb3da
cmpl $0x3, 0x10(%r15)
jne 0xb39b
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0xb39b
callq 0x152d7
movl 0x8(%r14), %eax
movl %eax, 0x10(%r15)
movq (%r14), %rax
movq %rax, 0x20(%r15)
movq 0x18(%r15), %rax
testq %rax, %rax
je 0xb3d2
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%r15), %rdi
cmpl $0xff, (%rdi)
jg 0xb3ca
callq 0x152d7
movq $0x0, 0x18(%r15)
movq 0x10(%r14), %rax
movq %rax, 0x28(%r15)
leaq -0x40(%rbp), %rsi
movb $0x0, (%rsi)
leaq -0x50(%rbp), %rdi
callq 0x12760
movq 0x12e17(%rip), %r13     # 0x1e208
movq -0x50(%rbp), %rbx
movslq -0x44(%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 $0x3, 0x8(%r13)
movq %r14, (%r13)
movl $0x0, -0x44(%rbp)
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0xb44e
callq 0x152d7
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb469
jmp 0xb469
jmp 0xb469
jmp 0xb469
jmp 0xb469
jmp 0xb469
movq %rax, %rbx
movl $0x0, -0x44(%rbp)
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0xb481
callq 0x152d7
movq %rbx, %rdi
callq 0x23a0
nop