// File: /workspace/github_cpp_makefile_star2_O1/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, 0x80(%rsp)
leaq 0x108(%rsp), %rdi
leaq 0x128(%rsp), %rdx
callq 0x81c2
leaq 0x740(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x82c2
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6449
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rsp, %rdi
leaq 0x128(%rsp), %rdx
movq %rbx, %rsi
callq 0x81c2
leaq 0x5d53(%rip), %rsi      # 0xc1b6
leaq 0xe8(%rsp), %rdi
movq %rsp, %rdx
callq 0x8342
movq 0xe8(%rsp), %rdi
callq 0x3220
leaq 0x6065(%rip), %rsi      # 0xc4ec
leaq 0x128(%rsp), %rdi
movq %rsp, %rdx
callq 0x8342
movq %rsp, %rdi
leaq 0x128(%rsp), %rbx
movq %rbx, %rsi
callq 0x3320
movq (%rbx), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x64ca
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xd8(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0xb0ae
leaq 0x128(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x82c2
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6521
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x60(%rsp), %rdi
leaq 0x740(%rsp), %rsi
callq 0x83ca
leaq 0x88(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x83ca
leaq 0x5c91(%rip), %rsi      # 0xc1e0
leaq 0x60(%rsp), %rdi
callq 0x30e0
testl %eax, %eax
je 0x66bc
leaq 0x5c78(%rip), %r14      # 0xc1e0
leaq 0x88(%rsp), %r15
leaq 0x40(%rsp), %r12
leaq 0x20(%rsp), %r13
leaq 0xa8(%rsp), %rbp
leaq 0x60(%rsp), %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0x30e0
testl %eax, %eax
je 0x66bc
leaq 0x50(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xb0ae
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0xb0ae
movq 0x80(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x3edc
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x660d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x6629
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbp, %rdi
leaq 0x740(%rsp), %rsi
callq 0x83ca
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x3320
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6669
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbp, %rdi
leaq 0x128(%rsp), %rsi
callq 0x83ca
movq %r15, %rdi
movq %rbp, %rsi
callq 0x3320
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x66a9
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbx, %rdi
movq %r14, %rsi
callq 0x30e0
testl %eax, %eax
jne 0x6587
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x66dd
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x66f8
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x128(%rsp), %rdi
callq 0x30c0
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6726
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6741
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x740(%rsp), %rdi
callq 0x30c0
addq $0xd58, %rsp            # imm = 0xD58
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x6854
movq %rax, %rbx
jmp 0x686f
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x687c
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x687c
jmp 0x679d
jmp 0x679d
movq %rax, %rbx
jmp 0x687c
movq %rax, %rbx
jmp 0x689d
movq %rax, %rbx
jmp 0x68b8
movq %rax, %rbx
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x68c5
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x68c5
movq %rax, %rbx
jmp 0x68c5
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x6810
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x6810
jmp 0x6830
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x6833
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x6833
jmp 0x6830
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6854
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x686f
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x128(%rsp), %rdi
callq 0x30c0
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x689d
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x68b8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x740(%rsp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x34b0