// File: /workspace/github_cpp_makefile_star2_O3/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 0x8136
leaq 0x740(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x823a
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x641d
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rsp, %rdi
leaq 0x128(%rsp), %rdx
movq %rbx, %rsi
callq 0x8136
leaq 0x5d7f(%rip), %rsi      # 0xc1b6
leaq 0xe8(%rsp), %rdi
movq %rsp, %rdx
callq 0x82ba
movq 0xe8(%rsp), %rdi
callq 0x3220
leaq 0x6091(%rip), %rsi      # 0xc4ec
leaq 0x128(%rsp), %rdi
movq %rsp, %rdx
callq 0x82ba
movq %rsp, %rdi
leaq 0x128(%rsp), %rbx
movq %rbx, %rsi
callq 0x3320
movq (%rbx), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x649e
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 0xafec
leaq 0x128(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x823a
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x64f5
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x60(%rsp), %rdi
leaq 0x740(%rsp), %rsi
callq 0x8342
leaq 0x88(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x8342
leaq 0x5cbd(%rip), %rsi      # 0xc1e0
leaq 0x60(%rsp), %rdi
callq 0x30e0
testl %eax, %eax
je 0x6690
leaq 0x5ca4(%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 0x6690
leaq 0x50(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xafec
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0xafec
movq 0x80(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x3eb8
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x65e1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x65fd
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbp, %rdi
leaq 0x740(%rsp), %rsi
callq 0x8342
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x3320
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x663d
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbp, %rdi
leaq 0x128(%rsp), %rsi
callq 0x8342
movq %r15, %rdi
movq %rbp, %rsi
callq 0x3320
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x667d
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbx, %rdi
movq %r14, %rsi
callq 0x30e0
testl %eax, %eax
jne 0x655b
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x66b1
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x66cc
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 0x66fa
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6715
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 0x6828
movq %rax, %rbx
jmp 0x6843
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6850
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x6850
jmp 0x6771
jmp 0x6771
movq %rax, %rbx
jmp 0x6850
movq %rax, %rbx
jmp 0x6871
movq %rax, %rbx
jmp 0x688c
movq %rax, %rbx
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6899
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x6899
movq %rax, %rbx
jmp 0x6899
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x67e4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x67e4
jmp 0x6804
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x6807
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x6807
jmp 0x6804
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6828
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6843
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 0x6871
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x688c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x740(%rsp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x34b0