// File: /workspace/github_cpp_makefile_star2_O3/menhits[P]phplus/src/Parser.cpp
// Function: parseTokenList(std::vector<std::shared_ptr<TokenData>, std::allocator<std::shared_ptr<TokenData>>> const&, int, int, std::vector<std::unique_ptr<AstNodeBase, std::default_delete<AstNodeBase>>, std::allocator<std::unique_ptr<AstNodeBase, std::default_delete<AstNodeBase>>>>&)
void parseTokenList(const vector<Token>& tokens, int left, int right, vector<AstNode>& nodes)
{
	int start=left;
	
	for (int i=left; i<=right; i++)
	{
		if (tokens[i]->getOp()==ops->import)
		{
			if (i==right || tokens[i+1]->getType()!=TokenData::STRING_LITERAL)
			{
				throw PhplusError("'"+ops->import->getText()+"' must be followed by a string literal", SOURCE_ERROR, tokens[i]);
			}
			
			string path=tokens[i+1]->getText();
			
			//this nonesens is required because my lexer is shit and includes the first quote but not the last one
			//instead of hardcoding that in, I figured I'd make it flexable so I don't break everthing when I fix the lexer
			
			while (path.size()>0 && path[0]=='"')
				path=path.substr(1, string::npos);
			
			while (path.size()>0 && path[path.size()-1]=='"')
				path=path.substr(0, path.size()-1);
			
			path=tokens[i]->getFile()->getDirPath()+"/"+path;
			
			try
			{
				importFile(nodes, path);
			}
			catch (PhplusError err)
			{
				err.log();
			}
			
			
			i+=2;
			start=i;
		}
		else
		{
			if (ops->isOpenBrac(tokens[i]->getOp()))
			{
				i=skipBrace(tokens, i);
			}
			
			bool tokenTakesRightInput=(tokens[i]->getOp() && tokens[i]->getOp()->takesRightInput());
			int next=i+1;
			bool nextTokenTakesLeftInput=(next<=right && tokens[next]->getOp() && tokens[next]->getOp()->takesLeftInput());
			
			if (i==right || (!tokenTakesRightInput && !nextTokenTakesLeftInput))
			{
				try
				{
					AstNode node=parseExpression(tokens, start, i);
					nodes.push_back(move(node));
				}
				catch (PhplusError err)
				{
					err.log();
				}
				
				start=next;
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rcx, 0x80(%rsp)
movl %edx, 0xc(%rsp)
movl %esi, 0x8(%rsp)
cmpl %edx, %esi
jle 0x26cb0
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %r15
movl 0x8(%rsp), %eax
movl %eax, %r12d
movq %rdi, 0x10(%rsp)
movslq %r12d, %r14
movq (%r15), %rax
movq %r14, %rbp
shlq $0x4, %rbp
movq (%rax,%rbp), %rax
movq 0x40(%rax), %rbx
movq 0x48(%rax), %rdi
testq %rdi, %rdi
je 0x26cee
movq 0x732c4(%rip), %rax     # 0x99fa8
cmpb $0x0, (%rax)
je 0x26d14
incl 0x8(%rdi)
jmp 0x26d18
leaq 0x73613(%rip), %rax     # 0x9a308
movq (%rax), %rdi
cmpq 0x180(%rdi), %rbx
je 0x26d77
movq %rbx, 0x70(%rsp)
movq $0x0, 0x78(%rsp)
jmp 0x26e9e
lock
incl 0x8(%rdi)
leaq 0x735e9(%rip), %r13     # 0x9a308
movq (%r13), %rax
movq 0x180(%rax), %r15
callq 0xdce4
cmpq %r15, %rbx
movq 0x10(%rsp), %r15
je 0x26d77
movq (%r13), %rdi
movq (%r15), %rax
movq (%rax,%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x48(%rax), %rax
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
testq %rax, %rax
je 0x26e9e
movq 0x73242(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x26e9a
incl 0x8(%rax)
jmp 0x26e9e
cmpl 0xc(%rsp), %r12d
je 0x272ed
movq (%r15), %rax
movq 0x10(%rax,%rbp), %rax
cmpl $0x4, 0x38(%rax)
jne 0x272ed
leaq 0x28(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0xde0c
movq 0x20(%rsp), %rcx
testq %rcx, %rcx
leaq 0x48(%rsp), %rbx
je 0x26e59
movq 0x18(%rsp), %rax
cmpb $0x22, (%rax)
jne 0x26e14
movl $0x1, %edx
leaq 0x38(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movq $-0x1, %rcx
callq 0xa2f0
movq %r14, %rdi
movq %r13, %rsi
callq 0xa370
movq 0x38(%rsp), %rdi
cmpq %rbx, %rdi
je 0x26e08
callq 0xa2b0
movq 0x20(%rsp), %rcx
testq %rcx, %rcx
jne 0x26dc8
jmp 0x26e59
movq 0x18(%rsp), %rax
cmpb $0x22, -0x1(%rax,%rcx)
jne 0x26e59
decq %rcx
leaq 0x38(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xa2f0
movq %r14, %rdi
movq %r13, %rsi
callq 0xa370
movq 0x38(%rsp), %rdi
cmpq %rbx, %rdi
je 0x26e4f
callq 0xa2b0
movq 0x20(%rsp), %rcx
testq %rcx, %rcx
jne 0x26e14
movq (%r15), %rax
movq (%rax,%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %r14
testq %r14, %r14
leaq 0xb8(%rsp), %r13
leaq 0xf8(%rsp), %rbp
je 0x26fa8
movq 0x73120(%rip), %rax     # 0x99fa8
cmpb $0x0, (%rax)
je 0x26fa3
incl 0x8(%r14)
jmp 0x26fa8
lock
incl 0x8(%rax)
leaq 0x70(%rsp), %rsi
callq 0xdb74
movl %eax, %ebp
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x26eb9
callq 0xdce4
testb %bpl, %bpl
je 0x26ecf
movq %r15, %rdi
movl %r12d, %esi
callq 0x27556
movl %eax, %r12d
movslq %eax, %r14
movq (%r15), %rax
shlq $0x4, %r14
movq (%rax,%r14), %rcx
movq 0x40(%rcx), %rax
movq 0x48(%rcx), %rbp
testq %rbp, %rbp
je 0x26efc
movq 0x730ba(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x26ef8
incl 0x8(%rbp)
jmp 0x26efc
lock
incl 0x8(%rbp)
testq %rax, %rax
je 0x26f26
movq (%r15), %rax
movq (%rax,%r14), %rcx
movq 0x40(%rcx), %rax
movq 0x48(%rcx), %rdi
testq %rdi, %rdi
je 0x26f2a
movq 0x7308c(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x26f37
incl 0x8(%rdi)
jmp 0x26f3b
xorl %ebx, %ebx
jmp 0x26f4b
movl 0x28(%rax), %eax
decl %eax
cmpl $0x2, %eax
setb %bl
jmp 0x26f4b
lock
incl 0x8(%rdi)
movl 0x28(%rax), %eax
decl %eax
cmpl $0x2, %eax
setb %bl
callq 0xdce4
testq %rbp, %rbp
je 0x26f58
movq %rbp, %rdi
callq 0xdce4
leal 0x1(%r12), %r14d
cmpl 0xc(%rsp), %r12d
jge 0x26f9b
movslq %r14d, %rax
movq (%r15), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %rdx
movq 0x40(%rdx), %rcx
movq 0x48(%rdx), %rbp
testq %rbp, %rbp
je 0x2714a
movq 0x7301e(%rip), %rdx     # 0x99fa8
cmpb $0x0, (%rdx)
je 0x27146
incl 0x8(%rbp)
jmp 0x2714a
xorl %r15d, %r15d
jmp 0x271a7
lock
incl 0x8(%r14)
movq %rbp, %rdi
callq 0x531a6
movq %rbp, %rdi
leaq 0x548b0(%rip), %rsi     # 0x7b86a
callq 0xa560
leaq 0x98(%rsp), %rsi
movq %rsi, 0x88(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x26ff3
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x26ff9
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x90(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
leaq 0x88(%rsp), %rdi
callq 0xa110
movq %rbx, 0x38(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2704e
movq %rdx, 0x38(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x48(%rsp)
jmp 0x27054
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x40(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0xa370
movq 0x38(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2708a
callq 0xa2b0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x270a4
callq 0xa2b0
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x270be
callq 0xa2b0
testq %r14, %r14
je 0x270cb
movq %r14, %rdi
callq 0xdce4
leaq 0xc8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0xde0c
movq 0x80(%rsp), %rdi
movq %r13, %rsi
callq 0x2b5e4
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x2711a
callq 0xa2b0
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x2712e
callq 0xa2b0
leal 0x2(%r12), %eax
addl $0x3, %r12d
movl %r12d, %r14d
movl %eax, 0x8(%rsp)
movl %eax, %r12d
jmp 0x271fd
lock
incl 0x8(%rbp)
testq %rcx, %rcx
je 0x27174
movq (%r15), %rcx
movq (%rcx,%rax), %rcx
movq 0x40(%rcx), %rax
movq 0x48(%rcx), %rdi
testq %rdi, %rdi
je 0x27179
movq 0x72e3e(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x27186
incl 0x8(%rdi)
jmp 0x2718a
xorl %r15d, %r15d
jmp 0x2719a
testl $0xfffffffd, 0x28(%rax) # imm = 0xFFFFFFFD
sete %r15b
jmp 0x2719a
lock
incl 0x8(%rdi)
testl $0xfffffffd, 0x28(%rax) # imm = 0xFFFFFFFD
sete %r15b
callq 0xdce4
testq %rbp, %rbp
je 0x271a7
movq %rbp, %rdi
callq 0xdce4
cmpl 0xc(%rsp), %r12d
je 0x271ba
orb %r15b, %bl
je 0x271ba
movq 0x10(%rsp), %r15
jmp 0x271fd
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
movq 0x10(%rsp), %r15
movq %r15, %rsi
movl 0x8(%rsp), %edx
movl %r12d, %ecx
callq 0x280bb
movq 0x80(%rsp), %rdi
movq %rbx, %rsi
callq 0x16d06
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
je 0x271f8
movq %rbx, %rdi
callq 0x16b80
movl %r14d, 0x8(%rsp)
cmpl 0xc(%rsp), %r12d
movl %r14d, %r12d
jl 0x26cbf
jmp 0x26c9e
movq %rdx, %rbp
movq %rax, %r13
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
je 0x27232
leaq 0x38(%rsp), %rdi
callq 0x16b80
jmp 0x27232
movq %rdx, %rbp
movq %rax, %r13
cmpl $0x1, %ebp
jne 0x2754e
movq %r13, %rdi
callq 0xa380
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
callq 0x14f76
movq %r13, %rdi
callq 0xa170
leaq 0x38(%rsp), %rdi
callq 0x20470
leaq 0x38(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
movl %r14d, 0x8(%rsp)
jmp 0x271b3
movq %rdx, %r14
movq %rax, %r13
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x272a3
callq 0xa2b0
jmp 0x272a3
movq %rdx, %r14
movq %rax, %r13
cmpl $0x1, %r14d
jne 0x2753a
movq %r13, %rdi
callq 0xa380
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
callq 0x14f76
movq %r13, %rdi
callq 0xa170
leaq 0x38(%rsp), %rdi
callq 0x20470
leaq 0x38(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
movq 0x10(%rsp), %r15
jmp 0x2711a
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r15
leaq 0x73007(%rip), %rax     # 0x9a308
movq (%rax), %rax
movq 0x180(%rax), %rax
leaq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rcx
movq %rcx, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0xde0c
leaq 0x54f3c(%rip), %rsi     # 0x7c26a
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x158ca
leaq 0x51241(%rip), %rsi     # 0x78585
leaq 0x38(%rsp), %rdi
callq 0xa560
leaq 0xe8(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x27372
movups (%rcx), %xmm0
movups %xmm0, (%r14)
jmp 0x27385
movq %rdx, 0xd8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe8(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0xe0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbp), %rcx
movq %rcx, 0xa8(%rsp)
movq 0x8(%rax,%rbp), %rax
movq %rax, 0xb0(%rsp)
testq %rax, %rax
je 0x273db
movq 0x72bdb(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
jne 0x273d8
lock
incl 0x8(%rax)
jmp 0x273db
incl 0x8(%rax)
movb $0x1, %bl
leaq 0xd8(%rsp), %rsi
leaq 0xa8(%rsp), %rcx
movq %r15, %rdi
xorl %edx, %edx
callq 0x203f4
xorl %ebx, %ebx
leaq 0x70238(%rip), %rsi     # 0x97638
leaq -0x128e1(%rip), %rdx    # 0x14b26
movq %r15, %rdi
callq 0xa4f0
jmp 0x27537
movq %rax, %r13
leaq 0x38(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
jmp 0x2753a
jmp 0x27444
movq %rax, %r13
leaq 0x38(%rsp), %rdi
callq 0x14b26
callq 0xa4c0
jmp 0x2754e
movq %rax, %rdi
callq 0xdcd8
movq %rax, %r13
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x27461
callq 0xdce4
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2747a
callq 0xa2b0
jmp 0x2747a
movq %rax, %r13
movb $0x1, %bl
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x2748e
callq 0xa2b0
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x274a2
callq 0xa2b0
testb %bl, %bl
jne 0x274e6
jmp 0x2754e
movq %rax, %r13
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x274e6
callq 0xa2b0
jmp 0x274e6
movq %rax, %r13
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x274f3
callq 0xa2b0
jmp 0x274f3
movq %rax, %r13
movq %r15, %rdi
callq 0xa240
jmp 0x2754e
movq %rax, %r13
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x27512
callq 0xa2b0
jmp 0x27512
movq %rax, %r13
testq %r14, %r14
je 0x2753a
movq %r14, %rdi
callq 0xdce4
jmp 0x2753a
movq %rax, %r13
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x2754e
callq 0xdce4
jmp 0x2754e
jmp 0x27537
movq %rax, %r13
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x2754e
callq 0xa2b0
movq %r13, %rdi
callq 0xa510