// File: /workspace/github_cpp_makefile_star2_O3/menhits[P]phplus/src/Lexer.cpp
// Function: lexString(std::shared_ptr<SourceFile>, std::vector<std::shared_ptr<TokenData>, std::allocator<std::shared_ptr<TokenData>>>&)
void lexString(shared_ptr<SourceFile> file, vector<Token>& tokens)
{
	string tokenTxt;
	int line=1;
	int charPos=1;
	
	TokenData::Type type=TokenData::WHITESPACE;
	
	for (int i=0; i<file->size(); i++)
	{
		CharClassifier::Type charType=charClassifier.get(file, i);
		TokenData::Type newType=CharClassifier::getTokenType(charType, type);
		
		if (newType!=type)
		{
			if (!tokenTxt.empty())
			{
				if (type==TokenData::OPERATOR)
				{
					vector<Operator> opMatches;
					ops->get(tokenTxt, opMatches);
					
					for (auto op: opMatches)
					{
						tokens.push_back(makeToken(op->getText(), file, line, charPos-tokenTxt.size(), type, op));
					}
				}
				else if (type==TokenData::LINE_COMMENT || type==TokenData::BLOCK_COMMENT)
				{
					// do nothing
				}
				else
				{
					Token token=makeToken(tokenTxt, file, line, charPos-tokenTxt.size(), type);
					
					if (type==TokenData::UNKNOWN)
					{
						PhplusError("invalid token '"+tokenTxt+"'", SOURCE_ERROR, token).log();
					}
					else
					{
						tokens.push_back(token);
					}
				}
			}
			tokenTxt="";
		}
		
		if (newType!=TokenData::WHITESPACE && newType!=TokenData::LINE_END)
		{
			if (newType==TokenData::STRING_LITERAL && (*file)[i]=='\\')
			{
				i++;
				if ((*file)[i]=='n')
					tokenTxt+='\n';
				else if ((*file)[i]=='"')
					tokenTxt+='"';
				else if ((*file)[i]=='t')
					tokenTxt+='\t';
				else if ((*file)[i]=='\\')
					tokenTxt+='\\';
				else
					throw PhplusError(string()+"invalid escape character '\\"+(*file)[i]+"'", SOURCE_ERROR, makeToken(tokenTxt+(*file)[i], file, line, charPos-tokenTxt.size(), type));
			}
			else
			{
				tokenTxt+=(*file)[i];
			}
		}
		
		type=newType;
		
		if ((*file)[i]=='\n')
		{
			line++;
			charPos=1;
		}
		else
		{
			charPos++;
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rsi, 0x78(%rsp)
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rdi, 0x20(%rsp)
movq (%rdi), %rbx
cmpl $0x0, 0x28(%rbx)
jle 0x20dd8
leaq 0x28(%rbx), %rbp
xorl %r13d, %r13d
movl $0x1, 0x1c(%rsp)
movl $0x1, %r14d
xorl %r15d, %r15d
movq 0x20(%rsp), %rdx
movq 0x8(%rdx), %r12
testq %r12, %r12
je 0x2075c
movq 0x7985e(%rip), %rax     # 0x99fa8
cmpb $0x0, (%rax)
je 0x20756
incl 0x8(%r12)
jmp 0x2075c
lock
incl 0x8(%r12)
cmpb $0x0, 0x79bed(%rip)     # 0x9a350
jne 0x20771
leaq 0x79bac(%rip), %rdi     # 0x9a318
callq 0x2052c
movslq %r15d, %rcx
movq 0x20(%rbx), %rax
movq %rcx, 0x10(%rsp)
movzbl (%rax,%rcx), %ecx
cmpl $0x2e, %ecx
movq %r13, 0x70(%rsp)
je 0x207cd
cmpl $0x5c, %ecx
je 0x207b6
cmpl $0x2f, %ecx
jne 0x2080c
movl (%rbp), %ecx
decl %ecx
cmpl %r15d, %ecx
jle 0x2080c
movl $0x8, %r13d
movq 0x10(%rsp), %rcx
cmpb $0x2f, 0x1(%rax,%rcx)
jne 0x2080c
jmp 0x20844
testl %r15d, %r15d
jle 0x2080c
movl %r15d, %ecx
movl $0x9, %r13d
cmpb $0x5c, -0x1(%rax,%rcx)
jne 0x2080c
jmp 0x20844
movl (%rbp), %ecx
decl %ecx
cmpl %r15d, %ecx
jle 0x2080c
movq 0x10(%rsp), %rcx
movb 0x1(%rax,%rcx), %al
movb %al, 0x80(%rsp)
leaq 0x79b2a(%rip), %rdi     # 0x9a318
leaq 0x80(%rsp), %rsi
callq 0x21536
testq %rax, %rax
je 0x2080c
movl $0x4, %r13d
cmpl $0x4, 0xc(%rax)
je 0x20844
movq 0x20(%rbx), %rax
movq 0x10(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x80(%rsp)
leaq 0x79af2(%rip), %rdi     # 0x9a318
leaq 0x80(%rsp), %rsi
callq 0x21536
testq %rax, %rax
je 0x2083e
movl 0xc(%rax), %r13d
jmp 0x20844
movl $0xa, %r13d
testq %r12, %r12
je 0x20851
movq %r12, %rdi
callq 0xdce4
movl %r13d, %edi
movq 0x70(%rsp), %r12
movl %r12d, %esi
callq 0x21246
movq 0x20(%rsp), %rbx
movl %eax, %ebp
cmpl %r12d, %eax
je 0x20d10
movq 0x30(%rsp), %rdx
testq %rdx, %rdx
je 0x20cf5
cmpl $0x5, %r12d
jne 0x20a78
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
leaq 0x79a61(%rip), %rax     # 0x9a308
movq (%rax), %r12
leaq 0x1b0(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movq 0x28(%rsp), %rsi
addq %rsi, %rdx
leaq 0x1a0(%rsp), %rbx
movq %rbx, %rdi
callq 0xde0c
movq %r12, %rdi
movq %rbx, %rsi
leaq 0x80(%rsp), %rdx
callq 0xd9a6
movl %ebp, 0x6c(%rsp)
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x20903
callq 0xa2b0
movq 0x80(%rsp), %rbx
movq 0x88(%rsp), %rbp
cmpq %rbp, %rbx
je 0x20ad9
movq (%rbx), %r13
movq 0x8(%rbx), %r12
testq %r12, %r12
je 0x20941
movq 0x79679(%rip), %rax     # 0x99fa8
cmpb $0x0, (%rax)
je 0x2093b
incl 0x8(%r12)
jmp 0x20941
lock
incl 0x8(%r12)
leaq 0x190(%rsp), %rax
movq %rax, 0x180(%rsp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x180(%rsp), %rdi
callq 0xde0c
movq 0x20(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x110(%rsp)
movq 0x8(%rcx), %rax
movq %rax, 0x118(%rsp)
testq %rax, %rax
je 0x2099f
movq 0x79617(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x2099b
incl 0x8(%rax)
jmp 0x2099f
lock
incl 0x8(%rax)
movl %r14d, %r8d
subl 0x30(%rsp), %r8d
movq %r13, 0x100(%rsp)
movq %r12, 0x108(%rsp)
testq %r12, %r12
je 0x209d5
movq 0x795e5(%rip), %rax     # 0x99fa8
cmpb $0x0, (%rax)
je 0x209cf
incl 0x8(%r12)
jmp 0x209d5
lock
incl 0x8(%r12)
leaq 0x100(%rsp), %rax
movq %rax, (%rsp)
leaq 0x48(%rsp), %r13
movq %r13, %rdi
leaq 0x180(%rsp), %rsi
leaq 0x110(%rsp), %rdx
movl 0x1c(%rsp), %ecx
movl $0x5, %r9d
callq 0x53c04
movq 0x78(%rsp), %rdi
movq %r13, %rsi
callq 0x218dc
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x20a24
callq 0xdce4
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x20a36
callq 0xdce4
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0x20a48
callq 0xdce4
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x20a62
callq 0xa2b0
testq %r12, %r12
je 0x20a6f
movq %r12, %rdi
callq 0xdce4
addq $0x10, %rbx
jmp 0x20913
movl %r12d, %eax
andl $-0x2, %eax
cmpl $0x6, %eax
je 0x20cf5
leaq 0x170(%rsp), %rax
movq %rax, 0x160(%rsp)
movq 0x28(%rsp), %rsi
addq %rsi, %rdx
leaq 0x160(%rsp), %rdi
callq 0xde0c
movq (%rbx), %rax
movq %rax, 0xf0(%rsp)
movq 0x8(%rbx), %rax
movq %rax, 0xf8(%rsp)
testq %rax, %rax
je 0x20af8
movq 0x794d9(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x20af4
incl 0x8(%rax)
jmp 0x20af8
leaq 0x80(%rsp), %rdi
callq 0x21386
movq 0x20(%rsp), %rbx
movl 0x6c(%rsp), %ebp
jmp 0x20cf5
lock
incl 0x8(%rax)
movl %r14d, %r8d
subl 0x30(%rsp), %r8d
xorps %xmm0, %xmm0
movaps %xmm0, 0x140(%rsp)
leaq 0x140(%rsp), %rax
movq %rax, (%rsp)
leaq 0x120(%rsp), %rdi
leaq 0x160(%rsp), %rsi
leaq 0xf0(%rsp), %rdx
movl 0x1c(%rsp), %ecx
movl %r12d, %r9d
callq 0x53c04
movq 0x148(%rsp), %rdi
testq %rdi, %rdi
je 0x20b4d
callq 0xdce4
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x20b5f
callq 0xdce4
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x20b79
callq 0xa2b0
cmpl $0xb, %r12d
jne 0x20be3
leaq 0x48(%rsp), %r12
movq %r12, %rdi
leaq 0x569ef(%rip), %rsi     # 0x7757d
leaq 0x28(%rsp), %rdx
callq 0xdc11
movq %r12, %rdi
leaq 0x5b6c8(%rip), %rsi     # 0x7c26a
callq 0xa560
leaq 0x80(%rsp), %r12
leaq 0xe0(%rsp), %rsi
movq %rsi, 0xd0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x20bfa
movq %rdx, 0xd0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe0(%rsp)
jmp 0x20c00
movq 0x78(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x213cc
jmp 0x20ce3
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xd8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x120(%rsp), %rcx
movq 0x128(%rsp), %rax
movq %rcx, 0xc0(%rsp)
movq %rax, 0xc8(%rsp)
testq %rax, %rax
je 0x20c55
movq 0x79361(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x20c51
incl 0x8(%rax)
jmp 0x20c55
lock
incl 0x8(%rax)
movq %r12, %rdi
leaq 0xd0(%rsp), %rsi
xorl %edx, %edx
leaq 0xc0(%rsp), %rcx
callq 0x203f4
movq %r12, %rdi
callq 0x20470
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x20c89
callq 0xdce4
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x20ca3
callq 0xa2b0
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x20cb5
callq 0xdce4
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x20ccf
callq 0xa2b0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x20ce3
callq 0xa2b0
movq 0x128(%rsp), %rdi
testq %rdi, %rdi
je 0x20cf5
callq 0xdce4
movq 0x30(%rsp), %rdx
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
leaq 0x56d47(%rip), %rcx     # 0x77a4f
xorl %r8d, %r8d
callq 0xa470
cmpl $0x2, %ebp
jb 0x20d86
movq (%rbx), %rax
movq 0x20(%rax), %rax
movq 0x10(%rsp), %rcx
movb (%rax,%rcx), %cl
cmpl $0x4, %ebp
jne 0x20d54
cmpb $0x5c, %cl
jne 0x20d54
movslq %r15d, %rcx
movb 0x1(%rax,%rcx), %al
incq %rcx
movq %rcx, 0x10(%rsp)
movzbl %al, %ecx
cmpl $0x6d, %ecx
jg 0x20d63
cmpl $0x22, %ecx
je 0x20d71
cmpl $0x5c, %ecx
je 0x20d71
jmp 0x20dea
movsbl %cl, %esi
leaq 0x28(%rsp), %rdi
callq 0xa290
jmp 0x20d86
movb $0xa, %al
cmpl $0x6e, %ecx
je 0x20d71
cmpl $0x74, %ecx
jne 0x20dea
movb $0x9, %al
movsbl %al, %esi
leaq 0x28(%rsp), %rdi
callq 0xa290
movq 0x10(%rsp), %rax
movl %eax, %r15d
movq %rbx, %rdx
movq (%rbx), %rbx
movq 0x20(%rbx), %rax
incl %r14d
xorl %ecx, %ecx
movq 0x10(%rsp), %rsi
cmpb $0xa, (%rax,%rsi)
sete %cl
movl $0x1, %eax
cmovel %eax, %r14d
addl %ecx, 0x1c(%rsp)
incl %r15d
movl %ebp, %eax
leaq 0x28(%rbx), %rbp
movl %eax, %r13d
cmpl 0x28(%rbx), %r15d
jl 0x2073a
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x20dd8
callq 0xa2b0
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r12
leaq 0x130(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq 0x57322(%rip), %rsi     # 0x78138
leaq 0x120(%rsp), %rdi
callq 0xa560
leaq 0x58(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x20e49
movups (%rcx), %xmm0
leaq 0x58(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x20e56
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rsp), %rcx
movsbl (%rax,%rcx), %edx
leaq 0x80(%rsp), %rdi
callq 0x21412
leaq 0x5b3cf(%rip), %rsi     # 0x7c26a
leaq 0x80(%rsp), %rdi
callq 0xa560
leaq 0x1e0(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x20ecd
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x20ee0
movq %rdx, 0x1d0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1e0(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x1d8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rsp), %rcx
movsbl (%rax,%rcx), %edx
leaq 0x208(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x21473
movq 0x20(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x150(%rsp)
movq 0x8(%rcx), %rax
movq %rax, 0x158(%rsp)
testq %rax, %rax
je 0x20f58
movq 0x7905e(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
jne 0x20f55
lock
incl 0x8(%rax)
jmp 0x20f58
incl 0x8(%rax)
subl 0x30(%rsp), %r14d
xorps %xmm0, %xmm0
leaq 0x1f0(%rsp), %rax
movaps %xmm0, (%rax)
movq %rax, (%rsp)
leaq 0x1c0(%rsp), %rdi
leaq 0x208(%rsp), %rsi
leaq 0x150(%rsp), %rdx
movl 0x1c(%rsp), %ecx
movl %r14d, %r8d
movq 0x70(%rsp), %r9
callq 0x53c04
movb $0x1, %bpl
leaq 0x1d0(%rsp), %rsi
leaq 0x1c0(%rsp), %rcx
movq %r12, %rdi
xorl %edx, %edx
callq 0x203f4
xorl %ebp, %ebp
leaq 0x7667a(%rip), %rsi     # 0x97638
leaq -0xc49f(%rip), %rdx     # 0x14b26
movq %r12, %rdi
callq 0xa4f0
movq %rax, %rbx
movq 0x1c8(%rsp), %rdi
testq %rdi, %rdi
je 0x20fea
callq 0xdce4
jmp 0x20fea
movq %rax, %rbx
movb $0x1, %bpl
movq 0x1f8(%rsp), %rdi
testq %rdi, %rdi
je 0x20ffc
callq 0xdce4
movq 0x158(%rsp), %rdi
testq %rdi, %rdi
je 0x2100e
callq 0xdce4
leaq 0x218(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2102c
callq 0xa2b0
jmp 0x2102c
movq %rax, %rbx
movb $0x1, %bpl
movq 0x1d0(%rsp), %rdi
cmpq %r13, %rdi
je 0x21046
callq 0xa2b0
jmp 0x21046
movq %rax, %rbx
movb $0x1, %bpl
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x21068
callq 0xa2b0
jmp 0x21068
movq %rax, %rbx
movb $0x1, %bpl
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x21084
callq 0xa2b0
jmp 0x21084
movq %rax, %rbx
movb $0x1, %bpl
movq 0x120(%rsp), %rdi
cmpq %r15, %rdi
je 0x21096
callq 0xa2b0
testb %bpl, %bpl
je 0x211a9
movq %r12, %rdi
callq 0xa240
jmp 0x211a9
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x14b26
jmp 0x210c1
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x210d3
callq 0xdce4
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x210f2
callq 0xa2b0
jmp 0x210f2
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2110d
callq 0xa2b0
jmp 0x2110d
jmp 0x2110a
movq %rax, %rbx
movq 0x128(%rsp), %rdi
testq %rdi, %rdi
jne 0x2119f
jmp 0x211a9
movq %rax, %rbx
movq 0x148(%rsp), %rdi
testq %rdi, %rdi
je 0x21138
callq 0xdce4
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x2114a
callq 0xdce4
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x211a9
callq 0xa2b0
jmp 0x211a9
jmp 0x211a6
movq %rax, %rbx
jmp 0x2118a
movq %rax, %rbx
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x2118a
callq 0xa2b0
leaq 0x38(%rsp), %r14
jmp 0x2121c
movq %rax, %rbx
testq %r12, %r12
je 0x211a9
movq %r12, %rdi
callq 0xdce4
jmp 0x211a9
movq %rax, %rbx
leaq 0x38(%rsp), %r14
jmp 0x21229
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x211cc
callq 0xdce4
jmp 0x211cc
movq %rax, %rbx
jmp 0x2120a
movq %rax, %rbx
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x211de
callq 0xdce4
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0x211f0
callq 0xdce4
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x2120a
callq 0xa2b0
leaq 0x38(%rsp), %r14
testq %r12, %r12
je 0x2121c
movq %r12, %rdi
callq 0xdce4
leaq 0x80(%rsp), %rdi
callq 0x21386
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x21238
callq 0xa2b0
movq %rbx, %rdi
callq 0xa510