// File: /workspace/github_cpp_makefile_star2_O2/IHorvalds[P]RomAna/gui.cpp
// Function: dictionaryTask(InflexEngine&, char*)
void dictionaryTask(InflexEngine& dict, char* textName) {
  // Open the normal file
  text txt(textName);
  
  // Open the latin_file
  std::string tmp = textName;
  std::string pythonCommand = "python3 processing/convert_into_latin.py " + tmp;
  int warning = system(pythonCommand.data());
  tmp = "latin_" + tmp;
  text latin_txt(tmp); 

  // Read the first words
  std::string word = txt.serveWord();
  std::string latin_word = latin_txt.serveWord();
  
  // Continue parsing the text until its end
  while ((word != " <EOF> ") && (latin_word != " <EOF> ")) {
    // Update the frequencies
    dict.updateFreq(word, latin_word);
    word = txt.serveWord();
    latin_word = latin_txt.serveWord();
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd58, %rsp            # imm = 0xD58
movq %rsi, %rbx
movq %rdi, (%rsp)
leaq 0xa8(%rsp), %rdi
leaq 0x128(%rsp), %rdx
callq 0x64da
leaq 0x740(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x65f4
leaq 0xa8(%rsp), %rdi
callq 0x3120
leaq 0x8(%rsp), %rdi
leaq 0x128(%rsp), %rdx
movq %rbx, %rsi
callq 0x64da
leaq 0x4bfe(%rip), %rsi      # 0xa1a9
leaq 0x88(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x6670
movq 0x88(%rsp), %rdi
callq 0x31f0
leaq 0x4f0e(%rip), %rsi      # 0xa4df
leaq 0x128(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x6670
leaq 0x8(%rsp), %rbx
leaq 0x128(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x32e0
movq %r14, %rdi
callq 0x3120
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0x3350
leaq 0x128(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x65f4
leaq 0x68(%rsp), %rdi
callq 0x3120
leaq 0x48(%rsp), %rdi
leaq 0x740(%rsp), %rsi
callq 0x66e6
leaq 0x28(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x66e6
leaq 0x4b7c(%rip), %r14      # 0xa1d3
leaq 0x48(%rsp), %r15
leaq 0x28(%rsp), %r12
leaq 0xe8(%rsp), %r13
leaq 0xc8(%rsp), %rbp
leaq 0x108(%rsp), %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0x67c5
testb %al, %al
je 0x571f
movq %r12, %rdi
movq %r14, %rsi
callq 0x67c5
testb %al, %al
je 0x571f
movq %r13, %rdi
movq %r15, %rsi
callq 0x3350
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3350
movq (%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x3cf6
movq %rbp, %rdi
callq 0x3120
movq %r13, %rdi
callq 0x3120
movq %rbx, %rdi
leaq 0x740(%rsp), %rsi
callq 0x66e6
movq %r15, %rdi
movq %rbx, %rsi
callq 0x32e0
movq %rbx, %rdi
callq 0x3120
movq %rbx, %rdi
leaq 0x128(%rsp), %rsi
callq 0x66e6
movq %r12, %rdi
movq %rbx, %rsi
callq 0x32e0
movq %rbx, %rdi
callq 0x3120
jmp 0x5679
leaq 0x28(%rsp), %rdi
callq 0x3120
leaq 0x48(%rsp), %rdi
callq 0x3120
leaq 0x128(%rsp), %rdi
callq 0x30b0
leaq 0x88(%rsp), %rdi
callq 0x3120
leaq 0x8(%rsp), %rdi
callq 0x3120
leaq 0x740(%rsp), %rdi
callq 0x30b0
addq $0xd58, %rsp            # imm = 0xD58
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x57ee
movq %rax, %rbx
jmp 0x57f8
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x3120
jmp 0x5805
jmp 0x5793
jmp 0x5793
movq %rax, %rbx
jmp 0x5805
movq %rax, %rbx
jmp 0x5812
movq %rax, %rbx
jmp 0x581c
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x3120
jmp 0x5829
movq %rax, %rbx
jmp 0x5829
jmp 0x57e1
jmp 0x57e1
movq %rax, %rbx
jmp 0x57d2
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x3120
leaq 0xe8(%rsp), %rdi
callq 0x3120
jmp 0x57e4
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3120
leaq 0x48(%rsp), %rdi
callq 0x3120
leaq 0x128(%rsp), %rdi
callq 0x30b0
leaq 0x88(%rsp), %rdi
callq 0x3120
leaq 0x8(%rsp), %rdi
callq 0x3120
leaq 0x740(%rsp), %rdi
callq 0x30b0
movq %rbx, %rdi
callq 0x3480