// File: /workspace/github_cpp_makefile_star2_O1/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, 0x80(%rsp)
leaq 0x108(%rsp), %rdi
leaq 0x128(%rsp), %rdx
movq %rbx, %rsi
callq 0x81c2
leaq 0x740(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x82c2
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa0b8
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rsp, %rdi
leaq 0x128(%rsp), %rdx
movq %rbx, %rsi
callq 0x81c2
leaq 0x20e4(%rip), %rsi      # 0xc1b6
leaq 0xe8(%rsp), %rdi
movq %rsp, %rdx
callq 0x8342
movq 0xe8(%rsp), %rdi
callq 0x3220
leaq 0x23f6(%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 0xa139
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 0xa190
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 0x2022(%rip), %rsi      # 0xc1e0
leaq 0x60(%rsp), %rdi
callq 0x30e0
testl %eax, %eax
je 0xa32b
leaq 0x2009(%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 0xa32b
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 0xa27c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xa298
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 0xa2d8
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 0xa318
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbx, %rdi
movq %r14, %rsi
callq 0x30e0
testl %eax, %eax
jne 0xa1f6
leaq 0x740(%rsp), %rdi
callq 0x30a0
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa359
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa374
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 0xa3a2
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa3bd
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
jmp 0xa4b1
movq %rax, %rbx
jmp 0xa4d5
movq %rax, %rbx
jmp 0xa4f0
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0xa4fd
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0xa4fd
jmp 0xa41e
jmp 0xa41e
movq %rax, %rbx
jmp 0xa4fd
movq %rax, %rbx
jmp 0xa51e
movq %rax, %rbx
jmp 0xa539
movq %rax, %rbx
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa546
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0xa546
movq %rax, %rbx
jmp 0xa546
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xa491
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0xa491
jmp 0xa4b1
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xa4b4
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0xa4b4
jmp 0xa4b1
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa4d5
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa4f0
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 0xa51e
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa539
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x740(%rsp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x34b0