// File: /workspace/github_cpp_makefile_star2_O2/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 0x2180
movq (%r13), %rsi
leaq -0x238(%rbp), %rbx
pushq $0x8
popq %rdx
movq %rbx, %rdi
callq 0x2340
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl -0x218(%rbp,%rax), %r14d
movq %rbx, %rdi
callq 0x2070
testl %r14d, %r14d
jne 0x5835
movq (%r12), %rsi
pushq $0x8
popq %rdx
movq %rbx, %rdi
callq 0x2340
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl -0x218(%rbp,%rax), %r14d
movq %rbx, %rdi
callq 0x2070
testl %r14d, %r14d
jne 0x5886
movq (%r15), %rsi
pushq $0x10
popq %rdx
movq %rbx, %rdi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl -0x218(%rbp,%rax), %r14d
movq %rbx, %rdi
callq 0x2290
testl %r14d, %r14d
jne 0x58d7
movq -0x30(%rbp), %r15
movq (%r15), %rsi
pushq $0x10
popq %rdx
movq %rbx, %rdi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl -0x218(%rbp,%rax), %r14d
movq %rbx, %rdi
callq 0x2290
testl %r14d, %r14d
jne 0x5925
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x2110
movq %rax, %rbx
leaq 0x2bb9(%rip), %rdx      # 0x8400
leaq -0x238(%rbp), %rdi
movq %r13, %rsi
callq 0x67e3
movb $0x1, %r15b
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x22d0
xorl %r15d, %r15d
movq 0x777e(%rip), %rsi      # 0xcff0
movq 0x7747(%rip), %rdx      # 0xcfc0
movq %rbx, %rdi
callq 0x2310
jmp 0x5971
pushq $0x10
popq %rdi
callq 0x2110
movq %rax, %rbx
leaq 0x2b68(%rip), %rdx      # 0x8400
leaq -0x238(%rbp), %rdi
movq %r12, %rsi
callq 0x67e3
movb $0x1, %r15b
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x22d0
xorl %r15d, %r15d
movq 0x772d(%rip), %rsi      # 0xcff0
movq 0x76f6(%rip), %rdx      # 0xcfc0
movq %rbx, %rdi
callq 0x2310
jmp 0x5971
pushq $0x10
popq %rdi
callq 0x2110
movq %rax, %rbx
leaq 0x2b27(%rip), %rdx      # 0x8410
leaq -0x238(%rbp), %rdi
movq %r15, %rsi
callq 0x67e3
movb $0x1, %r15b
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x22d0
xorl %r15d, %r15d
movq 0x76dc(%rip), %rsi      # 0xcff0
movq 0x76a5(%rip), %rdx      # 0xcfc0
movq %rbx, %rdi
callq 0x2310
jmp 0x5971
pushq $0x10
popq %rdi
callq 0x2110
movq %rax, %rbx
leaq 0x2ad9(%rip), %rdx      # 0x8410
leaq -0x238(%rbp), %rdi
movq %r15, %rsi
callq 0x67e3
movb $0x1, %r15b
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x22d0
xorl %r15d, %r15d
movq 0x768e(%rip), %rsi      # 0xcff0
movq 0x7657(%rip), %rdx      # 0xcfc0
movq %rbx, %rdi
callq 0x2310
jmp 0x597d
jmp 0x5993
jmp 0x597d
jmp 0x5993
jmp 0x597d
jmp 0x5993
movq %rax, %r14
leaq -0x238(%rbp), %rdi
callq 0x20f0
testb %r15b, %r15b
jne 0x5996
jmp 0x599e
movq %rax, %r14
movq %rbx, %rdi
callq 0x2150
movq %r14, %rdi
callq 0x2330