// File: /workspace/github_cpp_makefile_star2_O1/Fohlen[P]cubescript-standalone/command.cpp
// Function: parselist(char const*&, char const*&, char const*&, char const*&, char const*&)
static bool parselist(const char *&s, const char *&start = liststart, const char *&end = listend, const char *&quotestart = listquotestart, const char *&quoteend = listquoteend)
{
    skiplist(s);
    switch(*s)
    {
        case '"': quotestart = s++; start = s; s = parsestring(s); end = s; if(*s == '"') s++; quoteend = s; break;
        case '(': case '[':
            quotestart = s;
            start = s+1;
            for(int braktype = *s++, brak = 1;;)
            {
                s += strcspn(s, "\"/;()[]\0");
                int c = *s++;
                switch(c)
                {
                    case '\0': s--; quoteend = end = s; return true;
                    case '"': s = parsestring(s); if(*s == '"') s++; break;
                    case '/': if(*s == '/') s += strcspn(s, "\n\0"); break;
                    case '(': case '[': if(c == braktype) brak++; break;
                    case ')': if(braktype == '(' && --brak <= 0) goto endblock; break;
                    case ']': if(braktype == '[' && --brak <= 0) goto endblock; break;
                } 
            }
        endblock:
            end = s-1;
            quoteend = s;
            break;
        case '\0': case ')': case ']': return false;
        default: quotestart = start = s; s = parseword(s); quoteend = end = s; break;
    }
    skiplist(s);
    if(*s == ';') s++;
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, -0x48(%rbp)
movq %rcx, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movq %rsi, -0x40(%rbp)
movq %rdi, %rbx
movq (%rdi), %r14
leaq 0xcea2(%rip), %rsi      # 0x1710b
movq %r14, %rdi
callq 0x2070
leaq (%r14,%rax), %r12
movq %r12, (%rbx)
cmpb $0x2f, (%r14,%rax)
jne 0xa2c2
leaq 0xc853(%rip), %r14      # 0x16ad9
leaq 0xce7e(%rip), %r15      # 0x1710b
cmpb $0x2f, 0x1(%r12)
jne 0xa2c2
movq %r12, %rdi
movq %r14, %rsi
callq 0x2030
movq %rax, %r13
addq %r12, %r13
movq %r13, (%rbx)
movq %r13, %rdi
movq %r15, %rsi
callq 0x2070
leaq (%rax,%r13), %r12
movq %r12, (%rbx)
cmpb $0x2f, (%rax,%r13)
je 0xa28d
movq (%rbx), %rcx
movzbl (%rcx), %edx
xorl %eax, %eax
cmpl $0x28, %edx
jg 0xa2eb
testl %edx, %edx
je 0xa5f0
cmpl $0x22, %edx
je 0xa53b
cmpl $0x28, %edx
je 0xa40d
jmp 0xa306
cmpl $0x29, %edx
je 0xa5f0
cmpl $0x5b, %edx
je 0xa40d
cmpl $0x5d, %edx
je 0xa5f0
movq -0x40(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movq (%rbx), %rcx
xorl %r15d, %r15d
leaq 0xc7c9(%rip), %r12      # 0x16aea
leaq 0xc3c0(%rip), %r13      # 0x166e8
movq %rcx, %r14
movq %rcx, %rdi
movq %r12, %rsi
callq 0x2030
leaq (%r14,%rax), %rcx
movb (%r14,%rax), %dl
movzbl %dl, %eax
cmpl $0x2e, %eax
jle 0xa37c
cmpl $0x5a, %eax
jle 0xa3af
cmpl $0x5b, %eax
je 0xa393
cmpl $0x5d, %eax
jne 0xa405
testl %r15d, %r15d
jle 0xa52f
decl %r15d
leaq 0x148d4(%rip), %rax     # 0x1ec40
cmpb $0x5b, (%r15,%rax)
je 0xa405
jmp 0xa52f
cmpl $0x1f, %eax
jle 0xa3de
addl $-0x20, %eax
cmpl $0x9, %eax
ja 0xa405
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
cmpl $0x63, %r15d
jg 0xa52f
movslq %r15d, %rax
incl %r15d
leaq 0x14896(%rip), %rsi     # 0x1ec40
movb %dl, (%rax,%rsi)
jmp 0xa405
cmpl $0x2f, %eax
jne 0xa3fc
cmpb $0x2f, 0x1(%rcx)
jne 0xa405
jmp 0xa52f
testl %r15d, %r15d
jle 0xa52f
decl %r15d
leaq 0x1486e(%rip), %rax     # 0x1ec40
cmpb $0x28, (%r15,%rax)
je 0xa405
jmp 0xa52f
leal -0x9(%rax), %edx
cmpl $0x2, %edx
jb 0xa52f
testl %eax, %eax
je 0xa52f
cmpl $0xd, %eax
jne 0xa405
jmp 0xa52f
cmpl $0x3b, %eax
je 0xa52f
incq %rcx
jmp 0xa328
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movq (%rbx), %rax
incq %rax
movq -0x40(%rbp), %rcx
movq %rax, (%rcx)
movq (%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rbx)
movb (%rax), %r15b
movl $0x1, %r12d
movq (%rbx), %r14
movq %r14, %rdi
leaq 0xc6b6(%rip), %rsi      # 0x16af7
callq 0x2030
leaq (%r14,%rax), %r13
incq %r13
movq %r13, (%rbx)
movb -0x1(%r13), %dl
movzbl %dl, %ecx
cmpl $0x28, %ecx
jle 0xa48e
cmpl $0x5a, %ecx
jg 0xa49e
cmpl $0x29, %ecx
je 0xa4d7
cmpl $0x2f, %ecx
jne 0xa50a
cmpb $0x2f, (%r13)
jne 0xa50a
movq %r13, %rdi
leaq 0xc655(%rip), %rsi      # 0x16ad9
callq 0x2030
addq %r13, %rax
jmp 0xa502
testl %ecx, %ecx
je 0xa4bd
cmpl $0x22, %ecx
je 0xa4ef
cmpl $0x28, %ecx
je 0xa4b0
jmp 0xa50a
cmpl $0x5b, %ecx
je 0xa4b0
cmpl $0x5d, %ecx
jne 0xa50a
cmpb $0x5b, %r15b
je 0xa4dd
jmp 0xa50a
xorl %eax, %eax
cmpb %r15b, %dl
sete %al
addl %eax, %r12d
jmp 0xa50a
addq %rax, %r14
movq %r14, (%rbx)
movq -0x30(%rbp), %rax
movq %r14, (%rax)
movq -0x48(%rbp), %rax
movq %r14, (%rax)
movb $0x1, %cl
xorl %eax, %eax
jmp 0xa50e
cmpb $0x28, %r15b
jne 0xa50a
leal -0x1(%r12), %ecx
cmpl $0x2, %r12d
jge 0xa507
xorl %eax, %eax
movl %ecx, %r12d
jmp 0xa50c
movq %r13, %rdi
callq 0x4f5c
movq %rax, (%rbx)
cmpb $0x22, (%rax)
jne 0xa50a
incq %rax
movq %rax, (%rbx)
jmp 0xa50a
movl %ecx, %r12d
movb $0x1, %al
xorl %ecx, %ecx
testb %al, %al
jne 0xa434
movb $0x1, %al
testb %cl, %cl
jne 0xa5f0
movq (%rbx), %rax
decq %rax
movq -0x30(%rbp), %rcx
movq %rax, (%rcx)
jmp 0xa573
movq %rcx, (%rbx)
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
jmp 0xa576
leaq 0x1(%rcx), %rax
movq %rax, (%rbx)
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movq (%rbx), %rax
movq -0x40(%rbp), %rcx
movq %rax, (%rcx)
movq (%rbx), %rdi
callq 0x4f5c
movq %rax, (%rbx)
movq -0x30(%rbp), %rcx
movq %rax, (%rcx)
movq (%rbx), %rax
cmpb $0x22, (%rax)
jne 0xa573
incq %rax
movq %rax, (%rbx)
movq (%rbx), %rcx
movq -0x48(%rbp), %rax
movq %rcx, (%rax)
movq (%rbx), %r14
leaq 0xcb84(%rip), %rsi      # 0x1710b
movq %r14, %rdi
callq 0x2070
leaq (%r14,%rax), %r12
movq %r12, (%rbx)
cmpb $0x2f, (%r14,%rax)
jne 0xa5e0
leaq 0xc535(%rip), %r14      # 0x16ad9
leaq 0xcb60(%rip), %r15      # 0x1710b
cmpb $0x2f, 0x1(%r12)
jne 0xa5e0
movq %r12, %rdi
movq %r14, %rsi
callq 0x2030
movq %rax, %r13
addq %r12, %r13
movq %r13, (%rbx)
movq %r13, %rdi
movq %r15, %rsi
callq 0x2070
leaq (%rax,%r13), %r12
movq %r12, (%rbx)
cmpb $0x2f, (%rax,%r13)
je 0xa5ab
movq (%rbx), %rcx
movb $0x1, %al
cmpb $0x3b, (%rcx)
jne 0xa5f0
incq %rcx
movq %rcx, (%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq