// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/Parser.cpp
// Function: parseSequence(std::vector<std::shared_ptr<TokenData>, std::allocator<std::shared_ptr<TokenData>>> const&, int, int, std::shared_ptr<OperatorData>, std::vector<std::unique_ptr<AstNodeBase, std::default_delete<AstNodeBase>>, std::allocator<std::unique_ptr<AstNodeBase, std::default_delete<AstNodeBase>>>>&)
void parseSequence(const vector<Token>& tokens, int left, int right, Operator splitter, vector<AstNode>& out)
{
	int start=left;
	
	for (int i=left; i<=right; i++)
	{
		if (ops->isOpenBrac(tokens[i]->getOp()))
		{
			i=skipBrace(tokens, i);
		}
		else if (tokens[i]->getOp()==splitter)
		{
			if (start<=i-1)
				out.push_back(parseExpression(tokens, start, i-1));
			start=i+1;
		}
		else if (tokens[i]->getOp() && tokens[i]->getOp()->getPrecedence()==splitter->getPrecedence())
		{
			break;
		}
		else if (tokens[i]->getOp() && tokens[i]->getOp()->getPrecedence()<splitter->getPrecedence())
		{
			out.clear();
			out.push_back(parseExpression(tokens, left, right));
			return;
		}
	}
	
	if (start<=right)
		out.push_back(parseExpression(tokens, start, right));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
movl %edx, %ebp
movq %rdi, %r14
movl %esi, 0x1c(%rsp)
movl %esi, 0x34(%rsp)
movl %esi, %r12d
movl %edx, 0x4(%rsp)
cmpl %ebp, %r12d
jg 0x2196b
leaq 0x58b3c(%rip), %rax     # 0x7a2f0
movq (%rax), %r15
movslq %r12d, %r13
movq (%r14), %rax
shlq $0x4, %r13
movq (%rax,%r13), %rsi
addq $0x40, %rsi
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0xc950
movq %r15, %rdi
movq %rbx, %rsi
callq 0xc7ec
movl %eax, %r15d
leaq 0x50(%rsp), %rdi
callq 0xc984
testb %r15b, %r15b
je 0x21806
movq %r14, %rdi
movl %r12d, %esi
callq 0x1f29d
movl %eax, %r12d
jmp 0x21963
movq (%r14), %rax
movq (%rax,%r13), %rsi
addq $0x40, %rsi
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0xc950
movq 0x8(%rsp), %r15
movq 0x28(%rsp), %rax
movq (%rax), %rbp
leaq 0x10(%rsp), %rdi
callq 0xc984
cmpq %rbp, %r15
je 0x218a4
movq (%r14), %rax
movq (%rax,%r13), %rsi
addq $0x40, %rsi
movq %rbx, %rdi
callq 0xc950
cmpq $0x0, 0x8(%rsp)
je 0x218e6
movq (%r14), %rax
movq (%rax,%r13), %rsi
addq $0x40, %rsi
leaq 0x38(%rsp), %rdi
callq 0xc950
movq 0x38(%rsp), %rax
movl 0x20(%rax), %ebp
movq 0x28(%rsp), %rax
movq (%rax), %rax
movl 0x20(%rax), %r15d
leaq 0x40(%rsp), %rdi
callq 0xc984
leaq 0x10(%rsp), %rdi
callq 0xc984
cmpl %r15d, %ebp
movl 0x4(%rsp), %ebp
jne 0x218f4
jmp 0x2196b
movl 0x1c(%rsp), %edx
cmpl %r12d, %edx
movl 0x4(%rsp), %ebp
jge 0x218db
leal -0x1(%r12), %ecx
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f970
movq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x12fa6
movq %rbx, %rdi
callq 0x11c58
leal 0x1(%r12), %eax
movl %eax, 0x1c(%rsp)
jmp 0x21963
leaq 0x10(%rsp), %rdi
callq 0xc984
movl 0x4(%rsp), %ebp
movq (%r14), %rax
movq (%rax,%r13), %rsi
addq $0x40, %rsi
leaq 0x8(%rsp), %rdi
callq 0xc950
cmpq $0x0, 0x8(%rsp)
je 0x21959
movq (%r14), %rax
movq (%rax,%r13), %rsi
addq $0x40, %rsi
leaq 0x38(%rsp), %rdi
callq 0xc950
movq 0x38(%rsp), %rax
movl 0x20(%rax), %ebp
movq 0x28(%rsp), %rax
movq (%rax), %rax
movl 0x20(%rax), %r15d
leaq 0x40(%rsp), %rdi
callq 0xc984
leaq 0x10(%rsp), %rdi
callq 0xc984
cmpl %r15d, %ebp
movl 0x4(%rsp), %ebp
jge 0x21963
jmp 0x21994
leaq 0x10(%rsp), %rdi
callq 0xc984
incl %r12d
jmp 0x217a4
movl 0x1c(%rsp), %edx
cmpl %ebp, %edx
jg 0x219cc
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %ecx
callq 0x1f970
movq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x12fa6
jmp 0x219c2
movq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x21f84
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl 0x34(%rsp), %edx
movl %ebp, %ecx
callq 0x1f970
movq %r15, %rdi
movq %rbx, %rsi
callq 0x12fa6
leaq 0x8(%rsp), %rdi
callq 0x11c58
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x219df
jmp 0x219df
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x11c58
jmp 0x219fb
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xc984
movq %rbx, %rdi
callq 0xa500