// File: /workspace/github_cpp_makefile_star2_O3/prippa[P]Abstract-VM/source/Base.class.cpp
// Function: Base::bs_parser(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool	Base::bs_parser(std::string const & str)
{
	if (str.empty() || std::all_of(str.begin(), str.end(), isspace))
		return (true);
	if (std::regex_match(str.c_str(), result_, cmd_))
	{
		if (result_[REGEX_CMD_INDEX] == "exit")
		{
			is_exit_command_ = true;
			return (false);
		}
		return (true);
	}
	else if (std::regex_match(str.c_str(), comment_)
		|| std::regex_match(str.c_str(), cmd_with_value_))
		return (true);
	else
	{
		is_valid_data_ = false;
		throw Exceptions::SyntaxError(std::to_string(Exceptions::line), str);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x8(%rsi), %rax
movb $0x1, %r13b
testq %rax, %rax
je 0x825f
movq %rdi, %rbx
movq %rsi, -0x38(%rbp)
movq (%rsi), %r14
leaq (%r14,%rax), %rcx
movq %rax, %r15
sarq $0x2, %r15
movq %r14, %r12
testq %r15, %r15
movq %rcx, -0x30(%rbp)
jle 0x8065
andq $-0x4, %rax
movq %rax, %r12
addq %r14, %r12
incq %r15
leaq 0x3(%r14), %r13
movsbl -0x3(%r13), %edi
callq 0x6080
testl %eax, %eax
je 0x80b0
movsbl -0x2(%r13), %edi
callq 0x6080
testl %eax, %eax
je 0x80b6
movsbl -0x1(%r13), %edi
callq 0x6080
testl %eax, %eax
je 0x80bc
movsbl (%r13), %edi
callq 0x6080
testl %eax, %eax
je 0x80bf
decq %r15
addq $0x4, %r13
cmpq $0x1, %r15
jg 0x8011
movb $0x1, %r13b
movq -0x30(%rbp), %rcx
movq %rcx, %rax
subq %r12, %rax
cmpq $0x1, %rax
je 0x80c8
cmpq $0x2, %rax
movq %rbx, %r15
je 0x8099
cmpq $0x3, %rax
jne 0x825f
movsbl (%r12), %edi
callq 0x6080
testl %eax, %eax
je 0x8271
incq %r12
movsbl (%r12), %edi
callq 0x6080
testl %eax, %eax
je 0x8271
incq %r12
jmp 0x80cb
addq $-0x3, %r13
jmp 0x80bf
addq $-0x2, %r13
jmp 0x80bf
decq %r13
movq %rbx, %r15
movq -0x30(%rbp), %rax
jmp 0x80e2
movq %rbx, %r15
movsbl (%r12), %edi
callq 0x6080
testl %eax, %eax
movq -0x30(%rbp), %rax
cmovneq %rax, %r12
movq %r12, %r13
cmpq %rax, %r13
je 0x814d
leaq 0x20(%r15), %r13
leaq 0x60(%r15), %rbx
movq %r14, %rdi
callq 0x61a0
leaq (%rax,%r14), %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x8950
testb %al, %al
je 0x8155
movq 0x20(%r15), %rdi
movq 0x28(%r15), %rax
subq %rdi, %rax
je 0x823d
movq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rdx
addq $-0x5, %rdx
cmpq $-0x3, %rdx
ja 0x823d
addq $0x18, %rdi
jmp 0x8244
movb $0x1, %r13b
jmp 0x825f
movq -0x38(%rbp), %r14
movq (%r14), %rbx
leaq 0x40(%r15), %r12
movq %rbx, %rdi
callq 0x61a0
leaq (%rax,%rbx), %rsi
xorps %xmm0, %xmm0
leaq -0x60(%rbp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq %rbx, %rdi
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x8950
movl %eax, %r12d
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
movb $0x1, %r13b
je 0x819c
callq 0x6340
testb %r12b, %r12b
jne 0x825f
movq (%r14), %rbx
leaq 0x80(%r15), %r12
movq %rbx, %rdi
callq 0x61a0
leaq (%rax,%rbx), %rsi
xorps %xmm0, %xmm0
leaq -0x60(%rbp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq %rbx, %rdi
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x8950
movl %eax, %r12d
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x81e8
callq 0x6340
testb %r12b, %r12b
jne 0x825f
movb $0x0, 0x18(%r15)
movl $0x28, %edi
callq 0x61d0
movq %rax, %rbx
leaq 0x2511a(%rip), %rax     # 0x2d320
movl (%rax), %esi
leaq -0x60(%rbp), %rdi
callq 0x8690
movb $0x1, %r15b
leaq -0x60(%rbp), %rsi
movq %rbx, %rdi
movq -0x38(%rbp), %rdx
callq 0x6c1a
xorl %r15d, %r15d
leaq 0x2440a(%rip), %rsi     # 0x2c638
leaq -0x91d(%rip), %rdx      # 0x7918
movq %rbx, %rdi
callq 0x6550
addq %rax, %rdi
addq $-0x48, %rdi
movb $0x1, %r13b
leaq 0x1918d(%rip), %rsi     # 0x213db
callq 0xab24
testl %eax, %eax
jne 0x825f
movb $0x1, 0x19(%r15)
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %r13
jmp 0x80c2
movq %rax, %r14
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x828e
callq 0x6340
testb %r15b, %r15b
jne 0x8298
jmp 0x82b5
movq %rax, %r14
movq %rbx, %rdi
callq 0x62b0
jmp 0x82b5
jmp 0x82a4
movq %rax, %r14
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x82b5
callq 0x6340
movq %r14, %rdi
callq 0x6560
nop