// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/main.cpp
// Function: parseBVEgate(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<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>>>>>&)
bool parseBVEgate(map<string, string>& flags) {
	bool BVEgate = false;
	if (flags.count("bvegate")) {
		if (flags["bvegate"] == "1") {
			BVEgate = true;
			cout<<"c BVE gate extraction enabled"<<endl;
			cerr<<"BVE gate extraction enabled"<<endl;
		}
		else if (flags["bvegate"] == "0") {
			BVEgate = false;
			cout<<"c BVE gate extraction disabled"<<endl;
			cerr<<"BVE gate extraction disabled"<<endl;
		}
		else {
			cout<<"Invalid bvegate flag"<<endl;
			cerr<<"Invalid bvegate flag"<<endl;
			exit(0);
		}
	}
	else {
		cout<<"c No -bvegate= given, defaulting to disabled"<<endl;
		cerr<<"No -bvegate= given, defaulting to disabled"<<endl;
	}
	return BVEgate;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x32cb6(%rip), %rsi     # 0x370b1
leaq 0x32cb6(%rip), %rdx     # 0x370b8
movq %rsp, %rdi
callq 0x9466
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x9852
movq %rax, %r14
leaq 0x8(%rbx), %r12
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4432
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x32b0
cmpq %r12, %r14
je 0x4538
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x32c69(%rip), %rsi     # 0x370b1
leaq 0x32c69(%rip), %rdx     # 0x370b8
callq 0x9466
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x8ba4
leaq 0x345ab(%rip), %rsi     # 0x38a11
movq %rax, %rdi
callq 0x30b0
movl %eax, %ebp
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4486
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x32b0
testl %ebp, %ebp
je 0x4596
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x32c16(%rip), %rsi     # 0x370b1
leaq 0x32c16(%rip), %rdx     # 0x370b8
callq 0x9466
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x8ba4
leaq 0x358a8(%rip), %rsi     # 0x39d61
movq %rax, %rdi
callq 0x30b0
movl %eax, %ebx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x44d9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x32b0
testl %ebx, %ebx
jne 0x462f
movq 0x43ae0(%rip), %rbx     # 0x47fc8
leaq 0x32be8(%rip), %rsi     # 0x370d7
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x3310
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
movq 0x43ac6(%rip), %rdi     # 0x47ff0
leaq 0x32ba8(%rip), %rsi     # 0x370d9
movl $0x1c, %edx
jmp 0x458d
movq 0x43a89(%rip), %rbx     # 0x47fc8
leaq 0x32bc5(%rip), %rsi     # 0x3710b
movl $0x2c, %edx
movq %rbx, %rdi
callq 0x3310
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
movq 0x43a6f(%rip), %rdi     # 0x47ff0
leaq 0x32b85(%rip), %rsi     # 0x3710d
movl $0x2a, %edx
callq 0x3310
xorl %ebx, %ebx
jmp 0x45f2
movq 0x43a2b(%rip), %rbx     # 0x47fc8
leaq 0x32b15(%rip), %rsi     # 0x370b9
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x3310
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
movq 0x43a11(%rip), %rdi     # 0x47ff0
leaq 0x32ad5(%rip), %rsi     # 0x370bb
movl $0x1b, %edx
callq 0x3310
movb $0x1, %bl
movq 0x439f7(%rip), %r14     # 0x47ff0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x43992(%rip), %rdi     # 0x47fc8
leaq 0x32ab9(%rip), %rbx     # 0x370f6
movq %rbx, %rsi
callq 0x3290
movq %rax, %rdi
callq 0x3130
movq 0x4399c(%rip), %rdi     # 0x47ff0
movq %rbx, %rsi
callq 0x3290
movq %rax, %rdi
callq 0x3130
xorl %edi, %edi
callq 0x3350
jmp 0x4673
jmp 0x468e
jmp 0x4673
jmp 0x468e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4691
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x4691
movq %rax, %rbx
movq %rbx, %rdi
callq 0x34a0