// File: /workspace/github_cpp_makefile_star2_O3/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 $0x38, %rsp
movq %r8, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movl %edx, %ebp
movq %rdi, %r14
cmpl %edx, %esi
jle 0x2b2d2
movl %esi, 0x8(%rsp)
jmp 0x2b53a
movq 0x6eccf(%rip), %r12     # 0x99fa8
movl %esi, %ebx
movl %esi, 0x24(%rsp)
movl %esi, 0x8(%rsp)
movl %ebp, 0xc(%rsp)
leaq 0x6f01a(%rip), %rax     # 0x9a308
movq (%rax), %rdi
movslq %ebx, %r15
movq (%r14), %rax
shlq $0x4, %r15
movq (%rax,%r15), %rax
movq 0x40(%rax), %rcx
movq %rcx, 0x28(%rsp)
movq 0x48(%rax), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x2b326
cmpb $0x0, (%r12)
je 0x2b322
incl 0x8(%rax)
jmp 0x2b326
lock
incl 0x8(%rax)
leaq 0x28(%rsp), %rsi
callq 0xdb74
movl %eax, %r13d
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2b342
callq 0xdce4
testb %r13b, %r13b
je 0x2b358
movq %r14, %rdi
movl %ebx, %esi
callq 0x27556
movl %eax, %ebx
jmp 0x2b527
movq (%r14), %rax
movq (%rax,%r15), %rax
movq 0x40(%rax), %rbp
movq 0x48(%rax), %rdi
testq %rdi, %rdi
je 0x2b378
cmpb $0x0, (%r12)
je 0x2b384
incl 0x8(%rdi)
jmp 0x2b388
movq 0x10(%rsp), %rax
cmpq (%rax), %rbp
jne 0x2b3c2
jmp 0x2b3ca
lock
incl 0x8(%rdi)
movq 0x10(%rsp), %rax
movq (%rax), %r12
callq 0xdce4
cmpq %r12, %rbp
movq 0x6ec09(%rip), %r12     # 0x99fa8
je 0x2b3ca
movq (%r14), %rax
movq (%rax,%r15), %rax
movq 0x40(%rax), %rbp
movq 0x48(%rax), %r13
testq %r13, %r13
je 0x2b3c2
cmpb $0x0, (%r12)
je 0x2b411
incl 0x8(%r13)
jmp 0x2b416
movb $0x1, %r12b
xorl %r13d, %r13d
jmp 0x2b419
movl 0x8(%rsp), %edx
cmpl %ebx, %edx
movl 0xc(%rsp), %ebp
jge 0x2b405
leal -0x1(%rbx), %ecx
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x280bb
movq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x16d06
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x2b405
movq %rsp, %rdi
callq 0x16b80
leal 0x1(%rbx), %eax
movl %eax, 0x8(%rsp)
jmp 0x2b527
lock
incl 0x8(%r13)
xorl %r12d, %r12d
testq %rbp, %rbp
je 0x2b443
movq (%r14), %rax
movq (%rax,%r15), %rcx
movq 0x40(%rcx), %rax
movq 0x48(%rcx), %rdi
testq %rdi, %rdi
je 0x2b447
movq 0x6eb6f(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x2b45b
incl 0x8(%rdi)
jmp 0x2b45f
xorl %ebp, %ebp
jmp 0x2b476
movl 0x20(%rax), %eax
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
cmpl 0x20(%rcx), %eax
sete %bpl
jmp 0x2b476
lock
incl 0x8(%rdi)
movl 0x20(%rax), %eax
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
cmpl 0x20(%rcx), %eax
sete %bpl
callq 0xdce4
testb %r12b, %r12b
jne 0x2b483
movq %r13, %rdi
callq 0xdce4
testb %bpl, %bpl
movq 0x6eb1b(%rip), %r12     # 0x99fa8
jne 0x2b536
movq (%r14), %rax
movq (%rax,%r15), %rcx
movq 0x40(%rcx), %rax
movq 0x48(%rcx), %r13
testq %r13, %r13
je 0x2b4b9
cmpb $0x0, (%r12)
je 0x2b4b4
incl 0x8(%r13)
jmp 0x2b4b9
lock
incl 0x8(%r13)
testq %rax, %rax
je 0x2b4de
movq (%r14), %rax
movq (%rax,%r15), %rcx
movq 0x40(%rcx), %rax
movq 0x48(%rcx), %rdi
testq %rdi, %rdi
je 0x2b4e2
cmpb $0x0, (%r12)
je 0x2b4f6
incl 0x8(%rdi)
jmp 0x2b4fa
xorl %ebp, %ebp
jmp 0x2b511
movl 0x20(%rax), %eax
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
cmpl 0x20(%rcx), %eax
setl %bpl
jmp 0x2b511
lock
incl 0x8(%rdi)
movl 0x20(%rax), %eax
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
cmpl 0x20(%rcx), %eax
setl %bpl
callq 0xdce4
testq %r13, %r13
je 0x2b51e
movq %r13, %rdi
callq 0xdce4
testb %bpl, %bpl
movl 0xc(%rsp), %ebp
jne 0x2b57f
leal 0x1(%rbx), %eax
cmpl %ebp, %ebx
movl %eax, %ebx
jl 0x2b2e7
jmp 0x2b53a
movl 0xc(%rsp), %ebp
movl 0x8(%rsp), %edx
cmpl %ebp, %edx
jg 0x2b570
movq %rsp, %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %ecx
callq 0x280bb
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x16d06
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x2b570
movq %rsp, %rdi
callq 0x16b80
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rsp), %r15
movq (%r15), %rsi
movq %r15, %rdi
callq 0x2c492
movq %rsp, %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl 0x24(%rsp), %edx
movl %ebp, %ecx
callq 0x280bb
movq %r15, %rdi
movq %rbx, %rsi
callq 0x16d06
jmp 0x2b55f
jmp 0x2b5b4
jmp 0x2b5b4
movq %rax, %rbx
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x2b5dc
movq %rsp, %rdi
callq 0x16b80
jmp 0x2b5dc
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2b5dc
callq 0xdce4
movq %rbx, %rdi
callq 0xa510