// File: /workspace/github_cpp_makefile_star2_O3/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 0x5ece
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 0x5f21
movq (%r15), %rsi
movq %rbx, %rdi
movl $0x10, %edx
callq 0x2250
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl -0x218(%rbp,%rax), %r14d
movq 0x7188(%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 0x5f74
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 0x5fc4
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 0x358e(%rip), %rdx      # 0x9470
leaq -0x238(%rbp), %rdi
movq %r13, %rsi
callq 0x7782
movb $0x1, %r15b
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x2310
xorl %r15d, %r15d
movq 0x70e3(%rip), %rsi      # 0xcff0
movq 0x70ac(%rip), %rdx      # 0xcfc0
movq %rbx, %rdi
callq 0x2340
jmp 0x6012
movl $0x10, %edi
callq 0x2110
movq %rax, %rbx
leaq 0x353b(%rip), %rdx      # 0x9470
leaq -0x238(%rbp), %rdi
movq %r12, %rsi
callq 0x7782
movb $0x1, %r15b
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x2310
xorl %r15d, %r15d
movq 0x7090(%rip), %rsi      # 0xcff0
movq 0x7059(%rip), %rdx      # 0xcfc0
movq %rbx, %rdi
callq 0x2340
jmp 0x6012
movl $0x10, %edi
callq 0x2110
movq %rax, %rbx
leaq 0x34f8(%rip), %rdx      # 0x9480
leaq -0x238(%rbp), %rdi
movq %r15, %rsi
callq 0x7782
movb $0x1, %r15b
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x2310
xorl %r15d, %r15d
movq 0x703d(%rip), %rsi      # 0xcff0
movq 0x7006(%rip), %rdx      # 0xcfc0
movq %rbx, %rdi
callq 0x2340
jmp 0x6012
movl $0x10, %edi
callq 0x2110
movq %rax, %rbx
leaq 0x34a8(%rip), %rdx      # 0x9480
leaq -0x238(%rbp), %rdi
movq %r15, %rsi
callq 0x7782
movb $0x1, %r15b
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x2310
xorl %r15d, %r15d
movq 0x6fed(%rip), %rsi      # 0xcff0
movq 0x6fb6(%rip), %rdx      # 0xcfc0
movq %rbx, %rdi
callq 0x2340
jmp 0x601e
jmp 0x603d
jmp 0x601e
jmp 0x603d
jmp 0x601e
jmp 0x603d
movq %rax, %r14
leaq -0x228(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6036
callq 0x21e0
testb %r15b, %r15b
jne 0x6040
jmp 0x6048
movq %rax, %r14
movq %rbx, %rdi
callq 0x2170
movq %r14, %rdi
callq 0x2360