// File: /workspace/github_cpp_makefile_star2_O1/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 $0x48, %rsp
movq %r8, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
movl %edx, %ebp
movq %rdi, %r14
cmpl %edx, %esi
jle 0x2aee2
movl %esi, 0x8(%rsp)
jmp 0x2b162
leaq 0x6e41f(%rip), %r12     # 0x99308
movl %esi, %ebx
movl %esi, 0x34(%rsp)
movl %esi, 0x8(%rsp)
movl %ebp, 0xc(%rsp)
movq (%r12), %rdi
movslq %ebx, %r15
movq (%r14), %rax
shlq $0x4, %r15
movq (%rax,%r15), %rax
movq 0x40(%rax), %rcx
movq %rcx, 0x38(%rsp)
movq 0x48(%rax), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x2af35
movq 0x6e081(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x2af31
incl 0x8(%rax)
jmp 0x2af35
lock
incl 0x8(%rax)
leaq 0x38(%rsp), %rsi
callq 0xdb52
movl %eax, %r13d
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2af51
callq 0xdcba
testb %r13b, %r13b
je 0x2af67
movq %r14, %rdi
movl %ebx, %esi
callq 0x27318
movl %eax, %ebx
jmp 0x2b14f
movq %r12, %rbp
movq (%r14), %rax
movq (%rax,%r15), %rax
movq 0x40(%rax), %r12
movq 0x48(%rax), %rdi
testq %rdi, %rdi
je 0x2af93
movq 0x6e023(%rip), %rax     # 0x98fa8
cmpb $0x0, (%rax)
je 0x2af8f
incl 0x8(%rdi)
jmp 0x2af93
lock
incl 0x8(%rdi)
movq 0x28(%rsp), %rax
movq (%rax), %r13
testq %rdi, %rdi
je 0x2afa5
callq 0xdcba
cmpq %r13, %r12
je 0x2afd0
movq (%r14), %rax
movq (%rax,%r15), %rcx
movq 0x40(%rcx), %rax
movq 0x48(%rcx), %r13
testq %r13, %r13
je 0x2b01f
movq 0x6dfe3(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x2b01a
incl 0x8(%r13)
jmp 0x2b01f
movl 0x8(%rsp), %edx
cmpl %ebx, %edx
movq %rbp, %r12
movl 0xc(%rsp), %ebp
jge 0x2b00e
leal -0x1(%rbx), %ecx
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x27d96
movq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x16a7e
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x2b00e
movq %rsp, %rdi
callq 0x168f8
leal 0x1(%rbx), %eax
movl %eax, 0x8(%rsp)
jmp 0x2b14f
lock
incl 0x8(%r13)
testq %rax, %rax
je 0x2b053
movq (%r14), %rcx
movq (%rcx,%r15), %rdx
movq 0x40(%rdx), %rcx
movq 0x48(%rdx), %rdx
movq %rdx, 0x18(%rsp)
testq %rdx, %rdx
je 0x2b061
movq 0x6df64(%rip), %rdx     # 0x98fa8
cmpb $0x0, (%rdx)
je 0x2b058
movq 0x18(%rsp), %rdx
incl 0x8(%rdx)
jmp 0x2b061
xorl %r12d, %r12d
jmp 0x2b073
movq 0x18(%rsp), %rdx
lock
incl 0x8(%rdx)
movl 0x20(%rcx), %ecx
movq 0x28(%rsp), %rdx
movq (%rdx), %rdx
cmpl 0x20(%rdx), %ecx
sete %r12b
testq %rax, %rax
je 0x2b08a
cmpq $0x0, 0x18(%rsp)
je 0x2b08a
movq 0x18(%rsp), %rdi
callq 0xdcba
testq %r13, %r13
je 0x2b097
movq %r13, %rdi
callq 0xdcba
testb %r12b, %r12b
jne 0x2b15e
movq (%r14), %rax
movq (%rax,%r15), %rcx
movq 0x40(%rcx), %rax
movq 0x48(%rcx), %r13
testq %r13, %r13
movq %rbp, %r12
je 0x2b0ce
movq 0x6deea(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x2b0c9
incl 0x8(%r13)
jmp 0x2b0ce
lock
incl 0x8(%r13)
testq %rax, %rax
movl 0xc(%rsp), %ebp
je 0x2b106
movq (%r14), %rcx
movq (%rcx,%r15), %rdx
movq 0x40(%rdx), %rcx
movq 0x48(%rdx), %rdx
movq %rdx, 0x10(%rsp)
testq %rdx, %rdx
je 0x2b114
movq 0x6deb1(%rip), %rdx     # 0x98fa8
cmpb $0x0, (%rdx)
je 0x2b10b
movq 0x10(%rsp), %rdx
incl 0x8(%rdx)
jmp 0x2b114
xorl %r15d, %r15d
jmp 0x2b126
movq 0x10(%rsp), %rdx
lock
incl 0x8(%rdx)
movl 0x20(%rcx), %ecx
movq 0x28(%rsp), %rdx
movq (%rdx), %rdx
cmpl 0x20(%rdx), %ecx
setl %r15b
testq %rax, %rax
je 0x2b13d
cmpq $0x0, 0x10(%rsp)
je 0x2b13d
movq 0x10(%rsp), %rdi
callq 0xdcba
testq %r13, %r13
je 0x2b14a
movq %r13, %rdi
callq 0xdcba
testb %r15b, %r15b
jne 0x2b1a7
leal 0x1(%rbx), %eax
cmpl %ebp, %ebx
movl %eax, %ebx
jl 0x2aef7
jmp 0x2b162
movl 0xc(%rsp), %ebp
movl 0x8(%rsp), %edx
cmpl %ebp, %edx
jg 0x2b198
movq %rsp, %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %ecx
callq 0x27d96
movq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x16a7e
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x2b198
movq %rsp, %rdi
callq 0x168f8
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x20(%rsp), %r15
movq (%r15), %rsi
movq %r15, %rdi
callq 0x2c1ce
movq %rsp, %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl 0x34(%rsp), %edx
movl %ebp, %ecx
callq 0x27d96
movq %r15, %rdi
movq %rbx, %rsi
callq 0x16a7e
jmp 0x2b187
jmp 0x2b1dc
jmp 0x2b1dc
movq %rax, %rbx
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x2b204
movq %rsp, %rdi
callq 0x168f8
jmp 0x2b204
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2b204
callq 0xdcba
movq %rbx, %rdi
callq 0xa510