// File: /workspace/github_cpp_makefile_star2_O3/menhits[P]phplus/src/ResolveLiteral.cpp
// Function: resolveStringLiteral(std::shared_ptr<TokenData>)
Action resolveStringLiteral(Token token)
{
	string text=token->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 (text.size()>0 && text[0]=='"')
		text=text.substr(1, string::npos);
	
	while (text.size()>0 && text[text.size()-1]=='"')
		text=text.substr(0, text.size()-1);
	
	void* obj=cppStr2PncnStr(text);
	
	return constGetAction(obj, String, "\""+text+"\"", globalNamespace);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa0, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0xde0c
movq 0x8(%r14), %rcx
testq %rcx, %rcx
je 0x52700
leaq 0x50(%rsp), %r13
movq (%rsp), %rax
cmpb $0x22, (%rax)
jne 0x526b9
leaq 0x40(%rsp), %r14
movq %rsp, %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
movq $-0x1, %rcx
callq 0xa2f0
movq %r15, %rdi
movq %r14, %rsi
callq 0xa370
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x526a6
callq 0xa2b0
movq 0x8(%rsp), %rcx
testq %rcx, %rcx
je 0x52700
movq (%rsp), %rax
cmpb $0x22, (%rax)
je 0x52675
leaq 0x40(%rsp), %r14
movq %rsp, %r15
movq (%rsp), %rax
cmpb $0x22, -0x1(%rax,%rcx)
jne 0x52702
decq %rcx
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0xa2f0
movq %r15, %rdi
movq %r14, %rsi
callq 0xa370
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x526f6
callq 0xa2b0
movq 0x8(%rsp), %rcx
testq %rcx, %rcx
jne 0x526c1
xorl %ecx, %ecx
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
addq %rsi, %rcx
leaq 0x80(%rsp), %rdi
movq %rcx, %rdx
callq 0xde0c
leaq 0x80(%rsp), %rdi
callq 0x503c6
movq %rax, %r14
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x52747
callq 0xa2b0
leaq 0x47d12(%rip), %rax     # 0x9a460
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0x30(%rsp)
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x52779
movq 0x4783d(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x52775
incl 0x8(%rax)
jmp 0x52779
lock
incl 0x8(%rax)
leaq 0x2abb5(%rip), %rsi     # 0x7d335
leaq 0x40(%rsp), %rdi
movq %rsp, %rdx
callq 0xdc11
leaq 0x2aba1(%rip), %rsi     # 0x7d335
leaq 0x40(%rsp), %rdi
callq 0xa560
leaq 0x70(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x527c5
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x527cc
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x68(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x47b95(%rip), %rax     # 0x9a380
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0x20(%rsp)
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x52816
movq 0x477a0(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x52812
incl 0x8(%rax)
jmp 0x52816
lock
incl 0x8(%rax)
leaq 0x30(%rsp), %rdx
leaq 0x60(%rsp), %rcx
leaq 0x20(%rsp), %r8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6d80c
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x5283f
callq 0xdce4
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x5284e
callq 0xa2b0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x52861
callq 0xa2b0
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x52870
callq 0xdce4
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x5287e
callq 0xa2b0
movq %rbx, %rax
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x528a4
callq 0xdce4
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x528b8
callq 0xa2b0
jmp 0x528b8
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x528d0
callq 0xa2b0
jmp 0x528d0
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x528ff
callq 0xdce4
jmp 0x528ff
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x528ff
callq 0xa2b0
jmp 0x528ff
jmp 0x528fc
jmp 0x528fc
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x5290d
callq 0xa2b0
movq %rbx, %rdi
callq 0xa510