// File: /workspace/github_cpp_makefile_star2_O3/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 0x8136
leaq 0x740(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x823a
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa012
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rsp, %rdi
leaq 0x128(%rsp), %rdx
movq %rbx, %rsi
callq 0x8136
leaq 0x218a(%rip), %rsi      # 0xc1b6
leaq 0xe8(%rsp), %rdi
movq %rsp, %rdx
callq 0x82ba
movq 0xe8(%rsp), %rdi
callq 0x3220
leaq 0x249c(%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 0xa093
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 0xa0ea
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 0x20c8(%rip), %rsi      # 0xc1e0
leaq 0x60(%rsp), %rdi
callq 0x30e0
testl %eax, %eax
je 0xa285
leaq 0x20af(%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 0xa285
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 0xa1d6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xa1f2
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 0xa232
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 0xa272
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbx, %rdi
movq %r14, %rsi
callq 0x30e0
testl %eax, %eax
jne 0xa150
leaq 0x740(%rsp), %rdi
callq 0x30a0
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa2b3
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa2ce
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 0xa2fc
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa317
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 0xa40b
movq %rax, %rbx
jmp 0xa42f
movq %rax, %rbx
jmp 0xa44a
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0xa457
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0xa457
jmp 0xa378
jmp 0xa378
movq %rax, %rbx
jmp 0xa457
movq %rax, %rbx
jmp 0xa478
movq %rax, %rbx
jmp 0xa493
movq %rax, %rbx
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa4a0
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0xa4a0
movq %rax, %rbx
jmp 0xa4a0
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xa3eb
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0xa3eb
jmp 0xa40b
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xa40e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0xa40e
jmp 0xa40b
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa42f
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa44a
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 0xa478
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa493
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x740(%rsp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x34b0