// File: /workspace/github_cpp_makefile_star2_O3/migueeelvargas[P]Auto-Complete/util.cpp
// Function: Utils::load_dict(DictionaryBST&, std::istream&)
void Utils::load_dict(DictionaryBST& dict, istream& words)
{
  string junk;
  string data = "";
  string temp_word = "";
  string word = "";
  vector<string> word_string; 
  unsigned int i = 0;

  while(getline(words, data))
    {
      if(words.eof()) break;
      temp_word = "";
      word = "";
      data = data + " .";
      istringstream iss(data);
      iss >> junk;
      while(1)
	{
	  iss >> temp_word;
	  if(temp_word == ".") break;
	  if(temp_word.length() > 0) word_string.push_back(temp_word);
	}
      for(i = 0; i < word_string.size(); i++)
	{
	  if(i > 0) word = word + " ";
	  word = word + word_string[i];
	}
      dict.insert(word);
      word_string.clear();
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rsi, %r13
movq %rdi, 0xe0(%rsp)
leaq 0xc8(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x68(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x461d(%rip), %rdx      # 0x80b4
leaq 0x58(%rsp), %rdi
movq %rdx, %rsi
callq 0x37e0
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x4600(%rip), %rdx      # 0x80b4
leaq 0x38(%rsp), %rdi
movq %rdx, %rsi
callq 0x37e0
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x45e3(%rip), %rdx      # 0x80b4
leaq 0x18(%rsp), %rdi
movq %rdx, %rsi
callq 0x37e0
xorps %xmm0, %xmm0
movq %rsp, %r12
movaps %xmm0, (%r12)
movq $0x0, 0x10(%r12)
leaq 0x38(%rsp), %rbx
leaq 0x18(%rsp), %r15
leaq 0xe8(%rsp), %rbp
leaq 0x78(%rsp), %r14
movq %r13, 0xd8(%rsp)
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %edx
movq %r13, %rdi
leaq 0x58(%rsp), %rsi
callq 0x2300
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3dfc
movq (%r13), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x20(%r13,%rax)
jne 0x3dfc
movq 0x40(%rsp), %rdx
movq %rbx, %rdi
xorl %esi, %esi
leaq 0x4547(%rip), %rcx      # 0x80b4
xorl %r8d, %r8d
callq 0x2280
movq 0x20(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x452e(%rip), %rcx      # 0x80b4
xorl %r8d, %r8d
callq 0x2280
leaq 0xf8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x349c
movq %rbp, %rdi
leaq 0x4560(%rip), %rsi      # 0x811d
callq 0x2320
leaq 0x58(%rsp), %rdi
movq %rbp, %rsi
callq 0x2220
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x3bf4
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbp, %rdi
leaq 0x58(%rsp), %rsi
movl $0x8, %edx
callq 0x22c0
movq %rbp, %rdi
leaq 0xb8(%rsp), %rsi
callq 0x2230
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x2230
movq %rbx, %rdi
leaq 0x44f3(%rip), %rsi      # 0x811e
callq 0x20a0
testl %eax, %eax
je 0x3c49
cmpq $0x0, 0x40(%rsp)
je 0x3c16
movq %r12, %rdi
movq %rbx, %rsi
callq 0x5b74
jmp 0x3c16
movq (%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x3d27
movl $0x1, %ebp
xorl %r12d, %r12d
cmpl $0x1, %ebp
je 0x3cc7
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x349c
movq %r14, %rdi
leaq 0x448f(%rip), %rsi      # 0x8120
callq 0x2320
movq %r15, %rdi
movq %r14, %rsi
callq 0x2220
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x3cc3
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x21d0
movq (%rsp), %rax
shlq $0x5, %r12
addq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x5bb1
movq %r15, %rdi
movq %r14, %rsi
callq 0x2220
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x3d09
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x21d0
movl %ebp, %r12d
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
incl %ebp
cmpq %r12, %rcx
ja 0x3c60
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x349c
movq 0xe0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x6926
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x3d8b
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x21d0
movq (%rsp), %r12
movq 0x8(%rsp), %rbp
cmpq %r12, %rbp
je 0x3dd0
leaq 0x10(%r12), %r13
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x3db3
movq (%r13), %rsi
incq %rsi
callq 0x21d0
leaq 0x20(%r13), %rax
addq $0x10, %r13
cmpq %rbp, %r13
movq %rax, %r13
jne 0x3d9e
movq %r12, 0x8(%rsp)
movq 0xd8(%rsp), %r13
leaq 0xe8(%rsp), %rbp
movq %rbp, %rdi
movq 0x71ee(%rip), %rsi      # 0xafd0
callq 0x2250
leaq 0x160(%rsp), %rdi
callq 0x20c0
movq %rsp, %r12
jmp 0x3b11
movq %rsp, %rdi
callq 0x3352
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x3e20
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x3e3c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x3e58
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x3e7d
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x21d0
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3f71
movq %rax, %rbx
jmp 0x3f8d
movq %rax, %rbx
jmp 0x3fa9
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x3f2c
movq 0xa8(%rsp), %rsi
jmp 0x3f1d
jmp 0x3ef9
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x3f4d
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x3f4d
jmp 0x3ef9
jmp 0x3f29
movq %rax, %rbx
jmp 0x3f4d
jmp 0x3f29
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x3f2c
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x3f2c
jmp 0x3f29
movq %rax, %rbx
movq 0x709d(%rip), %rsi      # 0xafd0
leaq 0xe8(%rsp), %rdi
callq 0x2250
leaq 0x160(%rsp), %rdi
callq 0x20c0
movq %rsp, %rdi
callq 0x3352
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x3f71
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x48(%rsp), %rax
movq 0x38(%rsp), %rdi
cmpq %rax, %rdi
je 0x3f8d
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x3fa9
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0xc8(%rsp), %rax
movq 0xb8(%rsp), %rdi
cmpq %rax, %rdi
je 0x3fce
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x22e0