// File: bobverity[P]MavericK/misc.cpp
// Function: checkBoolean(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, std::basic_ofstream<char, std::char_traits<char>>&)
void checkBoolean(string param_string, bool &param_final, string param_name, bool writeErrorToFile, ofstream &logFileStream) {
    if (param_string=="1" || param_string=="1\r" || param_string=="true" || param_string=="true\r" || param_string=="True" || param_string=="True\r" ||  param_string=="TRUE" || param_string=="TRUE\r" || param_string=="t" || param_string=="t\r" || param_string=="T" || param_string=="T\r") {
        param_final = true;
    } else if (param_string=="0" || param_string=="0\r" || param_string=="false" || param_string=="false\r" || param_string=="False" || param_string=="False\r" || param_string=="FALSE" || param_string=="FALSE\r" || param_string=="f" || param_string=="f\r" || param_string=="F" || param_string=="F\r") {
        param_final = false;
    } else {
        cerrAndLog("\nError: '"+param_name+"' parameter must take on a Boolean value (either 1/t/true/T/True/TRUE or 0/f/false/F/False/FALSE)\n", writeErrorToFile, logFileStream);
        exit(1);
    }
}

// Assembly:
subq $0x98, %rsp
movq %rdx, 0x10(%rsp)
movq %rdi, 0x18(%rsp)
movb %cl, %al
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq %rdx, 0x80(%rsp)
andb $0x1, %al
movb %al, 0x7f(%rsp)
movq %r8, 0x70(%rsp)
leaq 0x26f9a(%rip), %rsi     # 0x5c467
callq 0x36f80
testb $0x1, %al
jne 0x355d7
movq 0x18(%rsp), %rdi
leaq 0x27683(%rip), %rsi     # 0x5cb69
callq 0x36f80
testb $0x1, %al
jne 0x355d7
movq 0x18(%rsp), %rdi
leaq 0x26f51(%rip), %rsi     # 0x5c450
callq 0x36f80
testb $0x1, %al
jne 0x355d7
movq 0x18(%rsp), %rdi
leaq 0x27654(%rip), %rsi     # 0x5cb6c
callq 0x36f80
testb $0x1, %al
jne 0x355d7
movq 0x18(%rsp), %rdi
leaq 0x27641(%rip), %rsi     # 0x5cb72
callq 0x36f80
testb $0x1, %al
jne 0x355d7
movq 0x18(%rsp), %rdi
leaq 0x2762d(%rip), %rsi     # 0x5cb77
callq 0x36f80
testb $0x1, %al
jne 0x355d7
movq 0x18(%rsp), %rdi
leaq 0x2761a(%rip), %rsi     # 0x5cb7d
callq 0x36f80
testb $0x1, %al
jne 0x355d7
movq 0x18(%rsp), %rdi
leaq 0x2760a(%rip), %rsi     # 0x5cb82
callq 0x36f80
testb $0x1, %al
jne 0x355d7
movq 0x18(%rsp), %rdi
leaq 0x27891(%rip), %rsi     # 0x5ce1e
callq 0x36f80
testb $0x1, %al
jne 0x355d7
movq 0x18(%rsp), %rdi
leaq 0x275e6(%rip), %rsi     # 0x5cb88
callq 0x36f80
testb $0x1, %al
jne 0x355d7
movq 0x18(%rsp), %rdi
leaq 0x275d4(%rip), %rsi     # 0x5cb8b
callq 0x36f80
testb $0x1, %al
jne 0x355d7
movq 0x18(%rsp), %rdi
leaq 0x275c1(%rip), %rsi     # 0x5cb8d
callq 0x36f80
testb $0x1, %al
jne 0x355d7
jmp 0x355e7
movq 0x88(%rsp), %rax
movb $0x1, (%rax)
jmp 0x357ad
movq 0x18(%rsp), %rdi
leaq 0x26e70(%rip), %rsi     # 0x5c463
callq 0x36f80
testb $0x1, %al
jne 0x356fd
movq 0x18(%rsp), %rdi
leaq 0x27584(%rip), %rsi     # 0x5cb90
callq 0x36f80
testb $0x1, %al
jne 0x356fd
movq 0x18(%rsp), %rdi
leaq 0x26dd6(%rip), %rsi     # 0x5c3fb
callq 0x36f80
testb $0x1, %al
jne 0x356fd
movq 0x18(%rsp), %rdi
leaq 0x27555(%rip), %rsi     # 0x5cb93
callq 0x36f80
testb $0x1, %al
jne 0x356fd
movq 0x18(%rsp), %rdi
leaq 0x27543(%rip), %rsi     # 0x5cb9a
callq 0x36f80
testb $0x1, %al
jne 0x356fd
movq 0x18(%rsp), %rdi
leaq 0x27530(%rip), %rsi     # 0x5cba0
callq 0x36f80
testb $0x1, %al
jne 0x356fd
movq 0x18(%rsp), %rdi
leaq 0x2751e(%rip), %rsi     # 0x5cba7
callq 0x36f80
testb $0x1, %al
jne 0x356fd
movq 0x18(%rsp), %rdi
leaq 0x2750f(%rip), %rsi     # 0x5cbad
callq 0x36f80
testb $0x1, %al
jne 0x356fd
movq 0x18(%rsp), %rdi
leaq 0x26b90(%rip), %rsi     # 0x5c243
callq 0x36f80
testb $0x1, %al
jne 0x356fd
movq 0x18(%rsp), %rdi
leaq 0x274ec(%rip), %rsi     # 0x5cbb4
callq 0x36f80
testb $0x1, %al
jne 0x356fd
movq 0x18(%rsp), %rdi
leaq 0x274da(%rip), %rsi     # 0x5cbb7
callq 0x36f80
testb $0x1, %al
jne 0x356fd
movq 0x18(%rsp), %rdi
leaq 0x274c7(%rip), %rsi     # 0x5cbb9
callq 0x36f80
testb $0x1, %al
jne 0x356fd
jmp 0x3570d
movq 0x88(%rsp), %rax
movb $0x0, (%rax)
jmp 0x357ab
movq 0x10(%rsp), %rdx
leaq 0x274a3(%rip), %rsi     # 0x5cbbc
leaq 0x30(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x22950
movq 0x8(%rsp), %rsi
leaq 0x27492(%rip), %rdx     # 0x5cbc6
leaq 0x50(%rsp), %rdi
callq 0x22900
jmp 0x35740
movq 0x70(%rsp), %rdx
movzbl 0x7f(%rsp), %esi
andl $0x1, %esi
leaq 0x50(%rsp), %rdi
callq 0x3a1b0
jmp 0x35759
leaq 0x50(%rsp), %rdi
callq 0x4270
leaq 0x30(%rsp), %rdi
callq 0x4270
movl $0x1, %edi
callq 0x44f0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
jmp 0x3579f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x4270
leaq 0x30(%rsp), %rdi
callq 0x4270
jmp 0x357b5
jmp 0x357ad
addq $0x98, %rsp
retq
movq 0x28(%rsp), %rdi
callq 0x4730
nop