// File: /workspace/github_cpp_makefile_star2_O3/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, %r12
movq 0x8(%rdi), %r15
movl $0x50, %edi
callq 0x21c0
movq %rax, %rbx
addq $0x10, %rax
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movb %al, 0x10(%rbx)
leaq 0x30(%rbx), %rcx
movq %rcx, 0x20(%rbx)
movq %rax, 0x28(%rbx)
movb %al, 0x30(%rbx)
testl %r15d, %r15d
jle 0x6335
movq (%r12), %rax
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movzbl -0x1(%rax,%r15), %ecx
cmpl $0x20, %ecx
je 0x6325
cmpl $0x9, %ecx
jne 0x6335
decq %r15
leaq 0x1(%r15), %rcx
cmpq $0x1, %rcx
ja 0x6315
xorl %r15d, %r15d
movq %r12, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x2240
movq %rax, %r14
cmpl %r14d, %r15d
jg 0x635e
movq %r12, %rdi
movl $0x9, %esi
xorl %edx, %edx
callq 0x2240
movq %rax, %r14
movq %rbx, %rax
addq $0x20, %rax
movq %rax, -0x38(%rbp)
cmpl %r15d, %r14d
setge %al
testl %r14d, %r14d
sets %cl
orb %al, %cl
jne 0x645f
movq %r12, %rsi
movl %r14d, %r12d
leaq -0x58(%rbp), %r13
movq %r13, %rdi
movq %rsi, -0x30(%rbp)
xorl %edx, %edx
movq %r12, %rcx
callq 0x2200
movq %rbx, -0x60(%rbp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2230
movq (%r13), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x63c0
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x30(%rbp), %r13
movq %r13, %rdi
movl $0x5b, %esi
xorl %edx, %edx
callq 0x2240
movq %rax, %rbx
movq %r13, %rdi
movl $0x5d, %esi
xorl %edx, %edx
callq 0x2240
cmpl %ebx, %r15d
jle 0x650c
movq %rax, %r13
cmpl %r13d, %r15d
jle 0x650c
movq %rbx, %rcx
movl %r13d, %eax
orl %ecx, %eax
andl $0x80000000, %eax       # imm = 0x80000000
jne 0x650c
movq %rcx, %r14
leal 0x1(%rcx), %edx
movl %r14d, %eax
notl %eax
movl %r13d, %ecx
addl %eax, %ecx
movslq %ecx, %rcx
leaq -0x58(%rbp), %r15
movq %r15, %rdi
movq -0x30(%rbp), %rsi
callq 0x2200
movq -0x38(%rbp), %rdi
movq %r15, %rsi
callq 0x2230
movq (%r15), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x6454
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x21d0
movb $0x1, %al
movq -0x60(%rbp), %rbx
jmp 0x65b6
movq 0x8(%rbx), %rdx
leaq 0xb1c0(%rip), %rcx      # 0x1162a
movl $0x1, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x22a0
movq %r12, %rdi
movl $0x5b, %esi
xorl %edx, %edx
callq 0x2240
movq %rax, %r14
movq %r12, %rdi
movl $0x5d, %esi
xorl %edx, %edx
callq 0x2240
cmpl %r14d, %r15d
jle 0x6576
movq %rax, %r13
cmpl %r13d, %r15d
jle 0x6576
movl %r13d, %eax
orl %r14d, %eax
andl $0x80000000, %eax       # imm = 0x80000000
jne 0x6576
leal 0x1(%r14), %edx
movl %r14d, %eax
notl %eax
movl %r13d, %ecx
addl %eax, %ecx
movslq %ecx, %rcx
leaq -0x58(%rbp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x2200
movq -0x38(%rbp), %rdi
movq %r15, %rsi
callq 0x2230
movq (%r15), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x6505
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x21d0
movb $0x1, %al
jmp 0x65b6
movq -0x30(%rbp), %rax
addq (%rax), %r12
movq -0x60(%rbp), %rbx
movzbl (%r12), %eax
cmpl $0x20, %eax
je 0x6526
cmpl $0x9, %eax
jne 0x6534
incl %r14d
incq %r12
cmpl %r14d, %r15d
jg 0x6517
movl %r15d, %r14d
movl %r14d, %edx
subl %r14d, %r15d
movslq %r15d, %rcx
leaq -0x58(%rbp), %r15
movq %r15, %rdi
movq -0x30(%rbp), %rsi
callq 0x2200
movq -0x38(%rbp), %rdi
movq %r15, %rsi
callq 0x2230
movq (%r15), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x6571
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x21d0
xorl %r14d, %r14d
jmp 0x65b1
movslq %r15d, %rcx
xorl %r14d, %r14d
leaq -0x58(%rbp), %r15
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x2200
movq -0x38(%rbp), %rdi
movq %r15, %rsi
callq 0x2230
movq (%r15), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x65b1
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x21d0
xorl %r13d, %r13d
xorl %eax, %eax
movl %r14d, 0x44(%rbx)
movl %r13d, 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