// File: /workspace/github_cpp_makefile_star2_O1/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, %bl
testq %rax, %rax
je 0x8273
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 0x8071
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 0x80bb
movsbl -0x2(%r13), %edi
callq 0x6080
testl %eax, %eax
je 0x80c1
movsbl -0x1(%r13), %edi
callq 0x6080
testl %eax, %eax
je 0x80c7
movsbl (%r13), %edi
callq 0x6080
testl %eax, %eax
je 0x80ca
decq %r15
addq $0x4, %r13
cmpq $0x1, %r15
jg 0x8024
movq -0x30(%rbp), %rcx
movq %rcx, %rax
subq %r12, %rax
cmpq $0x1, %rax
je 0x80d3
cmpq $0x2, %rax
movq %rbx, %r15
je 0x80a4
movq %rcx, %r13
cmpq $0x3, %rax
jne 0x80ed
movsbl (%r12), %edi
callq 0x6080
testl %eax, %eax
je 0x8244
incq %r12
movsbl (%r12), %edi
callq 0x6080
testl %eax, %eax
je 0x8244
incq %r12
jmp 0x80d6
addq $-0x3, %r13
jmp 0x80ca
addq $-0x2, %r13
jmp 0x80ca
decq %r13
movq %rbx, %r15
movq -0x30(%rbp), %rcx
jmp 0x80ed
movq %rbx, %r15
movsbl (%r12), %edi
callq 0x6080
testl %eax, %eax
movq -0x30(%rbp), %rcx
cmovneq %rcx, %r12
movq %r12, %r13
cmpq %rcx, %r13
je 0x81a3
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 0x8959
testb %al, %al
je 0x815a
movq 0x20(%r15), %rax
movq 0x28(%r15), %rdi
cmpq %rdi, %rax
movb $0x1, %bl
je 0x824c
movq %rdi, %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rdx
addq $-0x5, %rdx
cmpq $-0x2, %rdx
setb %cl
jmp 0x824e
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 0x8959
movl %eax, %r12d
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x819e
callq 0x6340
testb %r12b, %r12b
je 0x81aa
movb $0x1, %bl
jmp 0x8273
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 0x8959
movl %eax, %r12d
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x81ed
callq 0x6340
testb %r12b, %r12b
movb $0x1, %bl
jne 0x8273
movb $0x0, 0x18(%r15)
movl $0x28, %edi
callq 0x61d0
movq %rax, %rbx
leaq 0x25113(%rip), %rax     # 0x2d320
movl (%rax), %esi
leaq -0x60(%rbp), %rdi
callq 0x869e
movb $0x1, %r15b
leaq -0x60(%rbp), %rsi
movq %rbx, %rdi
movq -0x38(%rbp), %rdx
callq 0x6c2a
xorl %r15d, %r15d
leaq 0x243d3(%rip), %rsi     # 0x2c608
leaq -0x914(%rip), %rdx      # 0x7928
movq %rbx, %rdi
callq 0x6550
movq %r12, %r13
jmp 0x80cd
xorl %ecx, %ecx
addq $0x18, %rax
addq $-0x48, %rdi
testb %cl, %cl
cmovneq %rax, %rdi
leaq 0x19178(%rip), %rsi     # 0x213db
callq 0xab54
testl %eax, %eax
jne 0x8273
movb $0x1, 0x19(%r15)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x82a1
callq 0x6340
jmp 0x82a1
movq %rax, %r14
movb $0x1, %r15b
testb %r15b, %r15b
je 0x82c3
movq %rbx, %rdi
callq 0x62b0
jmp 0x82c3
jmp 0x82b2
movq %rax, %r14
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x82c3
callq 0x6340
movq %r14, %rdi
callq 0x6560
nop