// File: /workspace/github_cpp_makefile_star2_O1/nachogoro[P]wordcrack-herminia/src/main.cpp
// Function: validateConfig(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void validateConfig(
        const std::string& dict, const std::string& board,
        const std::string& outwords, const std::string& outcoords)
{
    if (!std::ifstream(dict.c_str()).good()) {
        throw std::runtime_error(dict + " does not exist");
    }

    if (!std::ifstream(board.c_str()).good()) {
        throw std::runtime_error(board + " does not exist");
    }

    if (!std::ofstream(outwords.c_str()).good()) {
        throw std::runtime_error(outwords + " can not be written to");
    }

    if (!std::ofstream(outcoords.c_str()).good()) {
        throw std::runtime_error(outcoords + " can not be written to");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rcx, -0x30(%rbp)
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
callq 0x21a0
movq (%r13), %rsi
leaq -0x238(%rbp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x2380
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl -0x218(%rbp,%rax), %r14d
movq %rbx, %rdi
callq 0x2070
testl %r14d, %r14d
jne 0x5eda
movq (%r12), %rsi
movq %rbx, %rdi
movl $0x8, %edx
callq 0x2380
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl -0x218(%rbp,%rax), %r14d
movq %rbx, %rdi
callq 0x2070
testl %r14d, %r14d
jne 0x5f2d
movq (%r15), %rsi
movq %rbx, %rdi
movl $0x10, %edx
callq 0x2250
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl -0x218(%rbp,%rax), %r14d
movq 0x717c(%rip), %rax      # 0xcfb8
movq (%rax), %r12
movq 0x18(%rax), %r13
movq %r12, (%rbx)
movq -0x18(%r12), %rax
movq %r13, -0x238(%rbp,%rax)
leaq -0x230(%rbp), %rdi
callq 0x21c0
leaq -0x140(%rbp), %rdi
callq 0x20b0
testl %r14d, %r14d
jne 0x5f80
movq -0x30(%rbp), %r15
movq (%r15), %rsi
movq %rbx, %rdi
movl $0x10, %edx
callq 0x2250
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl -0x218(%rbp,%rax), %r14d
movq %r12, (%rbx)
movq -0x18(%r12), %rax
movq %r13, -0x238(%rbp,%rax)
leaq -0x230(%rbp), %rdi
callq 0x21c0
leaq -0x140(%rbp), %rdi
callq 0x20b0
testl %r14d, %r14d
jne 0x5fd0
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2110
movq %rax, %rbx
leaq 0x3582(%rip), %rdx      # 0x9470
leaq -0x238(%rbp), %rdi
movq %r13, %rsi
callq 0x779e
movb $0x1, %r15b
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x2310
xorl %r15d, %r15d
movq 0x70d7(%rip), %rsi      # 0xcff0
movq 0x70a0(%rip), %rdx      # 0xcfc0
movq %rbx, %rdi
callq 0x2340
jmp 0x601e
movl $0x10, %edi
callq 0x2110
movq %rax, %rbx
leaq 0x352f(%rip), %rdx      # 0x9470
leaq -0x238(%rbp), %rdi
movq %r12, %rsi
callq 0x779e
movb $0x1, %r15b
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x2310
xorl %r15d, %r15d
movq 0x7084(%rip), %rsi      # 0xcff0
movq 0x704d(%rip), %rdx      # 0xcfc0
movq %rbx, %rdi
callq 0x2340
jmp 0x601e
movl $0x10, %edi
callq 0x2110
movq %rax, %rbx
leaq 0x34ec(%rip), %rdx      # 0x9480
leaq -0x238(%rbp), %rdi
movq %r15, %rsi
callq 0x779e
movb $0x1, %r15b
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x2310
xorl %r15d, %r15d
movq 0x7031(%rip), %rsi      # 0xcff0
movq 0x6ffa(%rip), %rdx      # 0xcfc0
movq %rbx, %rdi
callq 0x2340
jmp 0x601e
movl $0x10, %edi
callq 0x2110
movq %rax, %rbx
leaq 0x349c(%rip), %rdx      # 0x9480
leaq -0x238(%rbp), %rdi
movq %r15, %rsi
callq 0x779e
movb $0x1, %r15b
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x2310
xorl %r15d, %r15d
movq 0x6fe1(%rip), %rsi      # 0xcff0
movq 0x6faa(%rip), %rdx      # 0xcfc0
movq %rbx, %rdi
callq 0x2340
jmp 0x602a
jmp 0x6044
jmp 0x602a
jmp 0x6044
jmp 0x602a
jmp 0x6044
movq %rax, %r14
leaq -0x228(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x604a
callq 0x21e0
jmp 0x604a
movq %rax, %r14
movb $0x1, %r15b
testb %r15b, %r15b
je 0x6057
movq %rbx, %rdi
callq 0x2170
movq %r14, %rdi
callq 0x2360