// File: /workspace/github_cpp_makefile_star2_O2/mhe[P]raytracerframework_cpp/yaml/scalar.cpp
// Function: YAML::Scalar::Read(bool&) const
bool Scalar::Read(bool& b) const
	{
		// we can't use iostream bool extraction operators as they don't
		// recognize all possible values in the table below (taken from
		// http://yaml.org/type/bool.html)
		static const struct {
			std::string truename, falsename;
		} names[] = {
			{ "y", "n" },
			{ "yes", "no" },
			{ "true", "false" },
			{ "on", "off" },
		};

		if(!IsFlexibleCase(m_data))
			return false;

		for(unsigned i=0;i<sizeof(names)/sizeof(names[0]);i++) {
			if(names[i].truename == tolower(m_data)) {
				b = true;
				return true;
			}

			if(names[i].falsename == tolower(m_data)) {
				b = false;
				return true;
			}
		}

		return false;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %r13
movb 0x14acf(%rip), %al      # 0x31b40
testb %al, %al
je 0x1d1a6
movq 0x10(%r13), %rax
addq $0x8, %r13
testq %rax, %rax
je 0x1d116
movq (%r13), %rcx
xorl %edx, %edx
movl %edx, %edx
cmpq %rdx, %rax
jbe 0x1d116
movb (%rcx,%rdx), %sil
addb $-0x61, %sil
incl %edx
cmpb $0x1a, %sil
jb 0x1d090
movb (%rcx), %bl
addb $-0x41, %bl
leaq -0x58(%rbp), %rdi
pushq $0x1
popq %rdx
pushq $-0x1
popq %rcx
movq %r13, %rsi
callq 0x42d0
cmpb $0x19, %bl
ja 0x1d0fd
movq -0x58(%rbp), %rax
movq -0x50(%rbp), %rcx
xorl %edx, %edx
movl %edx, %edx
cmpq %rdx, %rcx
jbe 0x1d10d
movb (%rax,%rdx), %sil
addb $-0x61, %sil
incl %edx
cmpb $0x1a, %sil
jb 0x1d0cd
xorl %edx, %edx
movl %edx, %edx
cmpq %rdx, %rcx
jbe 0x1d10d
movb (%rax,%rdx), %sil
addb $-0x41, %sil
incl %edx
cmpb $0x1a, %sil
jb 0x1d0e6
leaq -0x58(%rbp), %rdi
callq 0x45d8
xorl %eax, %eax
jmp 0x1d197
leaq -0x58(%rbp), %rdi
callq 0x45d8
movq %r14, -0x38(%rbp)
pushq $0x5
popq %rbx
leaq 0x1491c(%rip), %r12     # 0x31a40
decq %rbx
je 0x1d106
leaq -0x58(%rbp), %r15
movq %r15, %rdi
movq %r13, %rsi
callq 0x1d338
movq %r12, %rdi
movq %r15, %rsi
callq 0xfa67
movl %eax, %r14d
movq %r15, %rdi
callq 0x45d8
testb %r14b, %r14b
jne 0x1d18e
leaq 0x40(%r12), %r14
addq $0x20, %r12
movq %r15, %rdi
movq %r13, %rsi
callq 0x1d338
movq %r12, %rdi
movq %r15, %rsi
callq 0xfa67
movq %r15, %rdi
movl %eax, %r15d
callq 0x45d8
movq %r14, %r12
testb %r15b, %r15b
je 0x1d124
movq -0x38(%rbp), %rax
movb $0x0, (%rax)
jmp 0x1d195
movq -0x38(%rbp), %rax
movb $0x1, (%rax)
movb $0x1, %al
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x14993(%rip), %rdi     # 0x31b40
callq 0x4550
testl %eax, %eax
je 0x1d079
leaq 0x1487f(%rip), %r15     # 0x31a40
leaq 0x510c(%rip), %rsi      # 0x222d4
leaq -0x58(%rbp), %rdx
movq %r15, %rdi
callq 0xee22
leaq 0x14885(%rip), %rdi     # 0x31a60
leaq 0x5d26(%rip), %rsi      # 0x22f08
leaq -0x2f(%rbp), %rdx
callq 0xee22
leaq 0x1488e(%rip), %r12     # 0x31a80
leaq 0x5d17(%rip), %rsi      # 0x22f10
leaq -0x2e(%rbp), %rdx
movq %r12, %rdi
callq 0xee22
leaq 0x14894(%rip), %rdi     # 0x31aa0
leaq 0x5d01(%rip), %rsi      # 0x22f14
leaq -0x2d(%rbp), %rdx
callq 0xee22
leaq 0x1489d(%rip), %r12     # 0x31ac0
leaq 0x5ced(%rip), %rsi      # 0x22f17
leaq -0x2c(%rbp), %rdx
movq %r12, %rdi
callq 0xee22
leaq 0x148a3(%rip), %rdi     # 0x31ae0
leaq 0x5cd8(%rip), %rsi      # 0x22f1c
leaq -0x2b(%rbp), %rdx
callq 0xee22
leaq 0x148ac(%rip), %r12     # 0x31b00
leaq 0x5043(%rip), %rsi      # 0x2229e
leaq -0x2a(%rbp), %rdx
movq %r12, %rdi
callq 0xee22
leaq 0x148b2(%rip), %rdi     # 0x31b20
leaq 0x5cad(%rip), %rsi      # 0x22f22
leaq -0x29(%rbp), %rdx
callq 0xee22
leaq -0x14baf(%rip), %rdi    # 0x86d6
leaq 0x11064(%rip), %rdx     # 0x2e2f0
xorl %esi, %esi
callq 0x4260
leaq 0x148a6(%rip), %rdi     # 0x31b40
callq 0x4190
jmp 0x1d079
movq %rax, %rbx
leaq 0x14852(%rip), %rdi     # 0x31b00
callq 0x45d8
jmp 0x1d2dc
jmp 0x1d2d9
movq %rax, %rbx
leaq 0x147ff(%rip), %r12     # 0x31ac0
jmp 0x1d2cf
jmp 0x1d2d9
movq %rax, %rbx
leaq 0x147b1(%rip), %r12     # 0x31a80
movq %r12, %rdi
callq 0x45d8
jmp 0x1d2dc
movq %rax, %rbx
addq $-0x40, %r12
movq %r12, %rdi
callq 0x1d318
cmpq %r15, %r12
jne 0x1d2dc
leaq 0x1484c(%rip), %rdi     # 0x31b40
callq 0x4180
movq %rbx, %rdi
callq 0x4530
movq %rax, %rbx
leaq 0x14735(%rip), %rdi     # 0x31a40
callq 0x45d8
jmp 0x1d2ed
movq %rax, %rbx
jmp 0x1d2ed
nop