// File: /workspace/github_cpp_makefile_star2_O2/IHorvalds[P]RomAna/./processing/analyze_poet.hpp
// Function: PoetAnalyzer::dictionaryTask(InflexEngine&, char const*)
void dictionaryTask(InflexEngine& dict, const 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();
    }
    txt.close();
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd58, %rsp            # imm = 0xD58
movq %rdx, %rbx
movq %rsi, (%rsp)
leaq 0xa8(%rsp), %rdi
leaq 0x128(%rsp), %rdx
movq %rbx, %rsi
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 0x26f5(%rip), %rsi      # 0xa1a9
leaq 0x88(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x6670
movq 0x88(%rsp), %rdi
callq 0x31f0
leaq 0x2a05(%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 0x2673(%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 0x7c28
movq %r12, %rdi
movq %r14, %rsi
callq 0x67c5
testb %al, %al
je 0x7c28
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 0x7b82
leaq 0x740(%rsp), %rdi
callq 0x3080
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
jmp 0x7cf9
movq %rax, %rbx
jmp 0x7d06
movq %rax, %rbx
jmp 0x7d10
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x3120
jmp 0x7d1d
jmp 0x7cab
jmp 0x7cab
movq %rax, %rbx
jmp 0x7d1d
movq %rax, %rbx
jmp 0x7d2a
movq %rax, %rbx
jmp 0x7d34
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x3120
jmp 0x7d41
movq %rax, %rbx
jmp 0x7d41
jmp 0x7cf9
jmp 0x7cf9
movq %rax, %rbx
jmp 0x7cea
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x3120
leaq 0xe8(%rsp), %rdi
callq 0x3120
jmp 0x7cfc
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
nop