// File: /workspace/github_cpp_makefile_star2_O3/auton1[P]viterbi/entry.cpp
// Function: entry::get_typed_string[abi:cxx11](unsigned int*, std::vector<char, std::allocator<char>> const&)
string entry::get_typed_string(unsigned int * line_position, const vector<char>& line)
{
	unsigned int size, type;
	string out;

	get_type( line_position, line, type, size );
	if (type != 7)
	{
		LOG.printLOG("Error: Expected type 7 for string. Found type " + header::int2str(type) + ".\n");
	}

	char * tmp = new char[size];
	memcpy(tmp, &line[*line_position], size*sizeof(char));
	*line_position += size;
	out = string( tmp, size );

	if (out == "" or out == " ")
		out = ".";

	return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rbp
movq %rbp, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x8(%rsp), %rcx
leaq 0xc(%rsp), %r8
movq %rdx, %rsi
movq %r15, %rdx
movq %rbp, 0x30(%rsp)
callq 0x21396
movl 0x8(%rsp), %esi
cmpl $0x7, %esi
je 0x2127f
leaq 0x58(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1720e
leaq 0x181da(%rip), %rcx     # 0x39365
leaq 0x58(%rsp), %rdi
movl $0x2e, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x54d0
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x211c7
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x211cf
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x10(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x17eef(%rip), %rsi     # 0x390e1
callq 0x5870
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2121e
movq %rdx, 0x38(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x48(%rsp)
jmp 0x21226
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x38(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2825f(%rip), %rdi     # 0x494a8
callq 0x36e72
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x2125d
callq 0x5410
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x2126c
callq 0x5410
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2127f
callq 0x5410
movl 0xc(%rsp), %r12d
movq %r12, %rdi
callq 0x5030
movq %rax, %r13
movl (%r14), %ebp
movq %rbp, %rsi
addq (%r15), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x5380
leal (%r12,%rbp), %eax
movl %eax, (%r14)
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
movq %r13, %rdx
addq %r12, %rdx
leaq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0xc85e
leaq 0x10(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5550
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x212e3
callq 0x5410
leaq 0x18bed(%rip), %rsi     # 0x39ed7
movq %rbx, %rdi
callq 0x50e0
testl %eax, %eax
je 0x21309
leaq 0x16e12(%rip), %rsi     # 0x3810f
movq %rbx, %rdi
callq 0x50e0
testl %eax, %eax
jne 0x21324
movq 0x8(%rbx), %rdx
leaq 0x17ed9(%rip), %rcx     # 0x391ed
movl $0x1, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5690
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x2134d
callq 0x5410
jmp 0x2134d
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x21361
callq 0x5410
jmp 0x21361
movq %rax, %r14
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2137f
callq 0x5410
jmp 0x2137f
jmp 0x2137c
jmp 0x2137c
jmp 0x2137c
movq %rax, %r14
movq (%rbx), %rdi
cmpq 0x30(%rsp), %rdi
je 0x2138e
callq 0x5410
movq %r14, %rdi
callq 0x57d0