// File: 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
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x1, -0x14(%rbp)
movq -0x8(%rbp), %rdi
callq 0x31d0
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3140
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x7190
testb $0x1, %al
jne 0x3f1a
jmp 0x429f
leaq -0x20(%rbp), %rdi
callq 0x6f70
movsbl (%rax), %eax
cmpl $0x22, %eax
jne 0x4095
movq -0x10(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq -0x49(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x3400
movq -0xf8(%rbp), %rdx
leaq 0x122b6(%rip), %rsi     # 0x1620e
leaq -0x48(%rbp), %rdi
callq 0x3340
jmp 0x3f63
movq -0x100(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x7340
jmp 0x3f75
leaq -0x48(%rbp), %rdi
callq 0x3170
leaq -0x49(%rbp), %rdi
callq 0x32a0
movq -0x10(%rbp), %rdi
callq 0x7370
movq %rax, -0x70(%rbp)
leaq -0x70(%rbp), %rdi
movl $0x1, %esi
callq 0x73a0
movq %rax, -0x68(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x73e0
movq %rax, %rdi
movl $0x22, %esi
callq 0x31c0
leaq -0x20(%rbp), %rdi
callq 0x6fd0
movq %rax, %rdi
callq 0x6f70
movsbl (%rax), %eax
cmpl $0x22, %eax
je 0x404f
movq -0x10(%rbp), %rdi
callq 0x7370
movq %rax, -0x80(%rbp)
leaq -0x80(%rbp), %rdi
movl $0x1, %esi
callq 0x73a0
movq %rax, -0x78(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x73e0
movq %rax, -0x108(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x6f70
movq -0x108(%rbp), %rdi
movsbl (%rax), %esi
callq 0x31c0
jmp 0x3fbc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x4041
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3170
leaq -0x49(%rbp), %rdi
callq 0x32a0
jmp 0x42a8
movq -0x10(%rbp), %rdi
callq 0x7370
movq %rax, -0x90(%rbp)
leaq -0x90(%rbp), %rdi
movl $0x1, %esi
callq 0x73a0
movq %rax, -0x88(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x73e0
movq %rax, %rdi
movl $0x22, %esi
callq 0x31c0
jmp 0x4291
leaq -0x20(%rbp), %rdi
callq 0x6f70
movsbl (%rax), %edi
callq 0x3a40
testb $0x1, %al
jne 0x40af
jmp 0x4190
leaq -0x20(%rbp), %rdi
callq 0x6f70
movsbl (%rax), %eax
cmpl $0x20, %eax
je 0x4184
leaq -0x20(%rbp), %rdi
callq 0x6f70
movsbl (%rax), %eax
cmpl $0xa, %eax
je 0x4184
leaq -0x20(%rbp), %rdi
callq 0x6f70
movsbl (%rax), %eax
movl %eax, -0x114(%rbp)
leaq -0xb1(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x3400
movl -0x114(%rbp), %edx
movq -0x110(%rbp), %rcx
leaq -0xb0(%rbp), %rdi
movl $0x1, %esi
callq 0x3180
jmp 0x411e
leaq -0xb1(%rbp), %rdi
callq 0x32a0
movq -0x10(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x7400
jmp 0x413c
leaq -0xb0(%rbp), %rdi
callq 0x3170
jmp 0x4184
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xb1(%rbp), %rdi
callq 0x32a0
jmp 0x42a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x3170
jmp 0x42a8
movl $0x1, -0x14(%rbp)
jmp 0x4291
cmpl $0x0, -0x14(%rbp)
je 0x4237
movq -0x10(%rbp), %rax
movq %rax, -0x128(%rbp)
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x3400
movq -0x120(%rbp), %rdx
leaq 0x12048(%rip), %rsi     # 0x1620e
leaq -0xd8(%rbp), %rdi
callq 0x3340
jmp 0x41d4
movq -0x128(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x7340
jmp 0x41e9
leaq -0xd8(%rbp), %rdi
callq 0x3170
leaq -0xd9(%rbp), %rdi
callq 0x32a0
jmp 0x4237
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x4229
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x3170
leaq -0xd9(%rbp), %rdi
callq 0x32a0
jmp 0x42a8
movq -0x10(%rbp), %rdi
callq 0x7370
movq %rax, -0xf0(%rbp)
leaq -0xf0(%rbp), %rdi
movl $0x1, %esi
callq 0x73a0
movq %rax, -0xe8(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x73e0
movq %rax, -0x130(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x6f70
movq -0x130(%rbp), %rdi
movsbl (%rax), %esi
callq 0x31c0
movl $0x0, -0x14(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x6fd0
jmp 0x3ef7
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x33f0
nopw %cs:(%rax,%rax)