// File: /workspace/github_cpp_makefile_star2_O3/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 0xd940(%rip), %rsi      # 0x1826b
movq %r14, %rdi
callq 0x2070
leaq (%r14,%rax), %r13
movq %r13, (%rbx)
movb (%r14,%rax), %al
cmpb $0x2f, %al
jne 0xa985
leaq 0xd2f0(%rip), %r15      # 0x17c39
leaq 0xd91b(%rip), %r14      # 0x1826b
cmpb $0x2f, 0x1(%r13)
jne 0xa9c6
movq %r13, %rdi
movq %r15, %rsi
callq 0x2030
movq %rax, %r12
addq %r13, %r12
movq %r12, (%rbx)
movq %r12, %rdi
movq %r14, %rsi
callq 0x2070
leaq (%r12,%rax), %r13
movq %r13, (%rbx)
movb (%rax,%r12), %al
cmpb $0x2f, %al
je 0xa950
movzbl %al, %ecx
xorl %eax, %eax
cmpl $0x28, %ecx
jg 0xa9ab
testl %ecx, %ecx
je 0xac81
cmpl $0x22, %ecx
je 0xabc2
cmpl $0x28, %ecx
je 0xaab8
jmp 0xa9c6
cmpl $0x29, %ecx
je 0xac81
cmpl $0x5b, %ecx
je 0xaab8
cmpl $0x5d, %ecx
je 0xac81
movq -0x40(%rbp), %rax
movq %r13, (%rax)
movq -0x38(%rbp), %rax
movq %r13, (%rax)
movq (%rbx), %rcx
xorl %r12d, %r12d
leaq 0xd269(%rip), %r14      # 0x17c4a
leaq 0xce60(%rip), %r13      # 0x17848
movq %rcx, %r15
movq %rcx, %rdi
movq %r14, %rsi
callq 0x2030
leaq (%r15,%rax), %rcx
movb (%r15,%rax), %dl
movzbl %dl, %eax
cmpl $0x2e, %eax
jle 0xaa35
cmpl $0x5a, %eax
jle 0xaa64
cmpl $0x5b, %eax
je 0xaa4c
cmpl $0x5d, %eax
jne 0xaaa1
testl %r12d, %r12d
jle 0xaaa9
decl %r12d
leaq 0x15214(%rip), %rax     # 0x1fc40
cmpb $0x5b, (%r12,%rax)
je 0xaaa1
jmp 0xaaa9
cmpl $0x1f, %eax
jle 0xaa89
addl $-0x20, %eax
cmpl $0x9, %eax
ja 0xaaa1
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
cmpl $0x63, %r12d
jg 0xaaa9
movslq %r12d, %rax
incl %r12d
leaq 0x151e1(%rip), %rsi     # 0x1fc40
movb %dl, (%rax,%rsi)
jmp 0xaaa1
cmpl $0x2f, %eax
jne 0xaa9c
cmpb $0x2f, 0x1(%rcx)
jne 0xaaa1
jmp 0xaaa9
testl %r12d, %r12d
jle 0xaaa9
decl %r12d
leaq 0x151c0(%rip), %rax     # 0x1fc40
cmpb $0x28, (%r12,%rax)
je 0xaaa1
jmp 0xaaa9
leal -0x9(%rax), %edx
cmpl $0x2, %edx
jb 0xaaa9
testl %eax, %eax
je 0xaaa9
cmpl $0xd, %eax
jne 0xaaa1
jmp 0xaaa9
cmpl $0x3b, %eax
je 0xaaa9
incq %rcx
jmp 0xa9e8
movq %rcx, (%rbx)
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
jmp 0xac03
movq -0x38(%rbp), %rax
movq %r13, (%rax)
movq (%rbx), %rax
incq %rax
movq -0x40(%rbp), %rcx
movq %rax, (%rcx)
movq (%rbx), %rax
leaq 0x1(%rax), %r12
movq %r12, (%rbx)
movb (%rax), %r15b
movl $0x1, %r14d
leaq 0xd171(%rip), %r13      # 0x17c57
movq %r12, %rdi
movq %r13, %rsi
callq 0x2030
leaq (%r12,%rax), %rcx
addq %rax, %r12
incq %r12
movq %r12, (%rbx)
movb -0x1(%r12), %dl
movzbl %dl, %eax
cmpl $0x2e, %eax
jg 0xab22
cmpl $0x27, %eax
jle 0xab56
cmpl $0x28, %eax
je 0xab49
cmpl $0x29, %eax
jne 0xaae6
cmpb $0x28, %r15b
jne 0xaae6
jmp 0xab37
cmpl $0x2f, %eax
je 0xab7d
cmpl $0x5b, %eax
je 0xab49
cmpl $0x5d, %eax
jne 0xaae6
cmpb $0x5b, %r15b
jne 0xaae6
leal -0x1(%r14), %eax
cmpl $0x2, %r14d
movl %eax, %r14d
jge 0xaae6
jmp 0xabf9
xorl %eax, %eax
cmpb %r15b, %dl
sete %al
addl %eax, %r14d
jmp 0xaae6
cmpl $0x22, %eax
jne 0xaba2
movq %r12, %rdi
callq 0x4f49
movq %rax, %r12
movq %rax, (%rbx)
cmpb $0x22, (%rax)
jne 0xaae6
incq %r12
movq %r12, (%rbx)
jmp 0xaae6
cmpb $0x2f, (%r12)
jne 0xaae6
movq %r12, %rdi
leaq 0xd0a7(%rip), %rsi      # 0x17c39
callq 0x2030
addq %rax, %r12
movq %r12, (%rbx)
jmp 0xaae6
testl %eax, %eax
jne 0xaae6
movq %rcx, (%rbx)
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x48(%rbp), %rax
movq %rcx, (%rax)
movb $0x1, %al
jmp 0xac81
leaq 0x1(%r13), %rax
movq %rax, (%rbx)
movq -0x38(%rbp), %rax
movq %r13, (%rax)
movq (%rbx), %rdi
movq -0x40(%rbp), %rax
movq %rdi, (%rax)
callq 0x4f49
movq %rax, (%rbx)
movq -0x30(%rbp), %rcx
movq %rax, (%rcx)
movq (%rbx), %rcx
cmpb $0x22, (%rcx)
jne 0xac03
incq %rcx
movq %rcx, (%rbx)
jmp 0xac03
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq (%rbx), %rcx
movq -0x48(%rbp), %rax
movq %rcx, (%rax)
movq (%rbx), %r15
leaq 0xd657(%rip), %rsi      # 0x1826b
movq %r15, %rdi
callq 0x2070
leaq (%r15,%rax), %r14
movq %r14, (%rbx)
movb (%r15,%rax), %cl
cmpb $0x2f, %cl
jne 0xac74
leaq 0xd006(%rip), %r15      # 0x17c39
leaq 0xd631(%rip), %r12      # 0x1826b
cmpb $0x2f, 0x1(%r14)
jne 0xabbb
movq %r14, %rdi
movq %r15, %rsi
callq 0x2030
movq %rax, %r13
addq %r14, %r13
movq %r13, (%rbx)
movq %r13, %rdi
movq %r12, %rsi
callq 0x2070
leaq (%rax,%r13), %r14
movq %r14, (%rbx)
movb (%rax,%r13), %cl
cmpb $0x2f, %cl
je 0xac3a
movb $0x1, %al
cmpb $0x3b, %cl
jne 0xac81
incq %r14
movq %r14, (%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq