// File: /workspace/github_cpp_makefile_star2_O2/lindorx[P]train/HelpInsPro.cpp
// Function: hep(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
STRINF *hep(const std::string& str)
{
	using namespace std;
	int str_size = str.size();
	int lk, rk, k;
	STRINF *m = new STRINF;
	//ȥ��β���Ŀո�
	while (str_size>0 && (str[str_size - 1] == 0x20 || str[str_size - 1] == '\t'))str_size--;
	k = str.find(0x20);
	if (k >= str_size)k = str.find('\t');
	//k�����˿ո���λ�ã������еĻ�������k����һ��Զ�����ַ������ȵ�ֵ,��С��0��ֵ
	if (k < str_size && k >= 0){
		m->explain = str.substr(0, k);
		lk = str.find('[');
		rk = str.find(']');
	
		if (lk < str_size && rk < str_size && lk >= 0 && rk >= 0){//�ж�������
			m->str = str.substr(lk + 1, rk - lk - 1);
			m->lk = lk;
			m->rk = rk;
			m->w = true;
			return m;
		}
		else{
			//�����ո���������
			while (k < str_size && (str[k] == 0x20 || str[k] == '\t'))k++;
			m->str = str.substr(k, str_size - k);
			m->lk = 0;
			m->rk = 0;
			m->w = false;
			return m;
		}
	}
	else{//û�пո�
		m->explain = "n";//˵������Ϊn
		//����������
		lk = str.find('[');
		rk = str.find(']');
		
		if (lk < str_size && rk < str_size && lk >= 0 && rk >= 0){
			m->str = str.substr(lk + 1, rk - lk - 1);
			m->lk = lk;
			m->rk = rk;
			m->w = true;
			return m;
		}
		else{
			m->str = str.substr(0,str_size);
			m->lk = 0; m->rk = 0;
			m->w = false;
			return m;
		}
	}
	return m;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r15
movq 0x8(%rdi), %r12
movl %r12d, %r14d
pushq $0x50
popq %rdi
callq 0x21c0
movq %rax, %rbx
addq $0x10, %rax
movq %rax, (%rbx)
andq $0x0, 0x8(%rbx)
xorl %eax, %eax
movb %al, 0x10(%rbx)
leaq 0x20(%rbx), %rdx
leaq 0x30(%rbx), %rcx
movq %rcx, 0x20(%rbx)
andq $0x0, 0x28(%rbx)
movb %al, 0x30(%rbx)
movq (%r15), %rax
movl %r12d, %r13d
sarl $0x1f, %r13d
andl %r12d, %r13d
movq %rdx, -0x30(%rbp)
testl %r14d, %r14d
jle 0x585d
movzbl -0x1(%rax,%r14), %ecx
cmpl $0x20, %ecx
je 0x5855
cmpl $0x9, %ecx
jne 0x585a
decq %r14
jmp 0x5840
movl %r14d, %r13d
pushq $0x20
popq %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x2240
movq %rax, %r14
cmpl %r14d, %r13d
jg 0x5882
pushq $0x9
popq %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x2240
movq %rax, %r14
cmpl %r13d, %r14d
setge %al
testl %r14d, %r14d
sets %cl
orb %al, %cl
jne 0x5948
movl %r14d, %r12d
leaq -0x58(%rbp), %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0x21f0
movq %rbx, %rdi
leaq -0x58(%rbp), %rsi
callq 0x2220
leaq -0x58(%rbp), %rdi
callq 0x2358
pushq $0x5b
popq %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x2240
movq %r15, %rdi
movq %rax, %r15
pushq $0x5d
popq %rsi
movq %rdi, -0x38(%rbp)
xorl %edx, %edx
callq 0x2240
cmpl %r15d, %r13d
jle 0x59d1
cmpl %eax, %r13d
jle 0x59d1
movq %r15, %rcx
movl %eax, %edx
orl %ecx, %edx
andl $0x80000000, %edx       # imm = 0x80000000
jne 0x59d1
movq %rcx, %r12
leal 0x1(%rcx), %edx
movl %r12d, %esi
notl %esi
movl %eax, %ecx
addl %esi, %ecx
movslq %ecx, %rcx
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movq %rax, %r15
movq -0x38(%rbp), %rsi
callq 0x21f0
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x2220
movq %r14, %rdi
callq 0x2358
movq %r15, %rcx
movb $0x1, %al
jmp 0x5a51
leaq 0x7cd2(%rip), %rsi      # 0xd621
movq %rbx, %rdi
callq 0x2330
xorl %r12d, %r12d
pushq $0x5b
popq %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x2240
movq %rax, %r14
pushq $0x5d
popq %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x2240
cmpl %r14d, %r13d
jle 0x59f4
cmpl %eax, %r13d
jle 0x59f4
movl %eax, %ecx
orl %r14d, %ecx
andl $0x80000000, %ecx       # imm = 0x80000000
jne 0x59f4
leal 0x1(%r14), %edx
movl %r14d, %esi
notl %esi
movl %eax, %ecx
addl %esi, %ecx
movslq %ecx, %rcx
leaq -0x58(%rbp), %r12
movq %r12, %rdi
movq %rax, %r13
movq %r15, %rsi
callq 0x21f0
movq -0x30(%rbp), %rdi
movq %r12, %rsi
callq 0x2220
movq %r12, %rdi
callq 0x2358
movq %r13, %rcx
movb $0x1, %al
movl %r14d, %r12d
jmp 0x5a51
movq -0x38(%rbp), %rsi
addq (%rsi), %r12
cmpl %r14d, %r13d
jle 0x5a1e
movzbl (%r12), %eax
cmpl $0x20, %eax
je 0x59ec
cmpl $0x9, %eax
jne 0x5a21
incq %r12
incl %r14d
jmp 0x59d8
movslq %r13d, %rcx
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x21f0
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x2220
movq %r14, %rdi
callq 0x2358
jmp 0x5a4d
movl %r13d, %r14d
movl %r14d, %edx
subl %r14d, %r13d
movslq %r13d, %rcx
leaq -0x58(%rbp), %r14
movq %r14, %rdi
callq 0x21f0
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x2220
movq %r14, %rdi
callq 0x2358
xorl %r12d, %r12d
xorl %ecx, %ecx
xorl %eax, %eax
movl %r12d, 0x44(%rbx)
movl %ecx, 0x48(%rbx)
movb %al, 0x40(%rbx)
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop