// File: /workspace/github_cpp_makefile_star2_O1/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 0xdde2
cmpq $0x0, 0x8(%r14)
je 0x51914
leaq 0x50(%rsp), %r13
leaq 0x40(%rsp), %r14
movq %rsp, %r15
movq (%rsp), %rax
cmpb $0x22, (%rax)
jne 0x51914
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 0x5190c
callq 0xa2b0
cmpq $0x0, 0x8(%rsp)
jne 0x518d2
movq 0x8(%rsp), %rcx
testq %rcx, %rcx
je 0x5196a
leaq 0x50(%rsp), %r13
leaq 0x40(%rsp), %r14
movq %rsp, %r15
movq (%rsp), %rax
cmpb $0x22, -0x1(%rax,%rcx)
jne 0x5196a
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 0x51960
callq 0xa2b0
movq 0x8(%rsp), %rcx
testq %rcx, %rcx
jne 0x5192b
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
addq %rsi, %rcx
leaq 0x80(%rsp), %rdi
movq %rcx, %rdx
callq 0xdde2
leaq 0x80(%rsp), %rdi
callq 0x4f680
movq %rax, %r14
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x519af
callq 0xa2b0
leaq 0x47aaa(%rip), %rax     # 0x99460
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0x30(%rsp)
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x519e1
movq 0x475d5(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x519dd
incl 0x8(%rax)
jmp 0x519e1
lock
incl 0x8(%rax)
leaq 0x2a98d(%rip), %rsi     # 0x7c375
leaq 0x40(%rsp), %rdi
movq %rsp, %rdx
callq 0xdbef
leaq 0x2a979(%rip), %rsi     # 0x7c375
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 0x51a2d
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x51a34
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 0x4792d(%rip), %rax     # 0x99380
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0x20(%rsp)
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x51a7e
movq 0x47538(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x51a7a
incl 0x8(%rax)
jmp 0x51a7e
lock
incl 0x8(%rax)
leaq 0x30(%rsp), %rdx
leaq 0x60(%rsp), %rcx
leaq 0x20(%rsp), %r8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6c8d8
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x51aa7
callq 0xdcba
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x51ab6
callq 0xa2b0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x51ac9
callq 0xa2b0
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x51ad8
callq 0xdcba
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x51ae6
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 0x51b0c
callq 0xdcba
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x51b20
callq 0xa2b0
jmp 0x51b20
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x51b38
callq 0xa2b0
jmp 0x51b38
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x51b67
callq 0xdcba
jmp 0x51b67
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x51b67
callq 0xa2b0
jmp 0x51b67
jmp 0x51b64
jmp 0x51b64
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x51b75
callq 0xa2b0
movq %rbx, %rdi
callq 0xa510