// File: /workspace/github_cpp_makefile_star2_O1/nikhilYadala[P]Python_to_cpp/Source/src/convert_to_cpp.cpp
// Function: break_into_words(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
void break_into_words(std::string& line,std::vector< std::string >& tokens)
{
	int flag=1;	//to check if a symbol has been pushed and tokens.end()-1 isn't a continuing token
	for(std::string::iterator itr=line.begin();itr!=line.end();++itr)
	{   
		if(*itr=='"'){
			tokens.push_back("");
			(tokens.end()-1)->push_back('"');
			while(*(++itr)!='"')
				(tokens.end()-1)->push_back(*itr);
			(tokens.end()-1)->push_back('"');
			continue;
			flag=1;
		}
		if(is_symbol(*itr))
		{
			if(*itr!=' '&&*itr!='\n')
			{
				std::string emp(1,*itr);	
				tokens.push_back(emp);
			}
			flag=1;
			continue;
		}	
		if(flag)
			tokens.push_back("");
		(tokens.end()-1)->push_back(*itr);
		flag=0;
	}
	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, -0x50(%rbp)
cmpq $0x0, 0x8(%rdi)
je 0x2d0a
movq %rsi, %rbx
movq -0x50(%rbp), %rax
movq (%rax), %r13
movl $0x1, %r14d
leaq 0x861c(%rip), %r15      # 0xb1c0
movzbl (%r13), %eax
cmpl $0x20, %eax
je 0x2ced
cmpl $0x22, %eax
jne 0x2c20
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x48(%rbp), %r12
movq %r12, %rdi
leaq 0x8651(%rip), %rdx      # 0xb21e
movq %rdx, %rsi
callq 0x4e92
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5394
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2bf2
callq 0x21c0
movq 0x8(%rbx), %rdi
addq $-0x20, %rdi
movl $0x22, %esi
callq 0x21a0
movb 0x1(%r13), %al
incq %r13
cmpb $0x22, %al
je 0x2c94
movq 0x8(%rbx), %rdi
addq $-0x20, %rdi
movsbl %al, %esi
jmp 0x2bff
movl $0x1, %edx
cmpq $0x16, %rdx
je 0x2c3d
movq %rdx, %rcx
incq %rdx
cmpb %al, (%rcx,%r15)
jne 0x2c25
cmpq $0x16, %rcx
jne 0x2ca8
testl %r14d, %r14d
je 0x2c7d
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x48(%rbp), %r12
movq %r12, %rdi
leaq 0x85c6(%rip), %rdx      # 0xb21e
movq %rdx, %rsi
callq 0x4e92
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5394
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2c7d
callq 0x21c0
movq 0x8(%rbx), %rdi
addq $-0x20, %rdi
movsbl (%r13), %esi
callq 0x21a0
xorl %r14d, %r14d
jmp 0x2cf3
movq 0x8(%rbx), %rdi
addq $-0x20, %rdi
movl $0x22, %esi
callq 0x21a0
jmp 0x2cf3
cmpl $0xa, %eax
je 0x2ced
cmpl $0x20, %eax
je 0x2ced
movsbl (%r13), %edx
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movl $0x1, %esi
leaq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0x2260
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4cb0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2ced
callq 0x21c0
movl $0x1, %r14d
incq %r13
movq -0x50(%rbp), %rcx
movq (%rcx), %rax
addq 0x8(%rcx), %rax
cmpq %rax, %r13
jne 0x2ba4
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d21
jmp 0x2d38
jmp 0x2d21
jmp 0x2d38
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2d3b
callq 0x21c0
jmp 0x2d3b
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2380