// File: metopa[P]HTTP_Server/src/requests/CRequestParser.cpp
// Function: CRequestParser::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void CRequestParser::parse( const string& body ) {
	unsigned int pos = 0;
	type_m = methodTypeNS::methodFromString( getNextToken( body, pos ) );
	if ( type_m == RT_UNSUPPORTED )
		throw RequestParserException( lastToken_m.c_str(), "Request type" );
	resource_m = getNextToken( body, pos );
	if ( resource_m.empty() )
		throw RequestParserException( lastToken_m.c_str(), "Resource" );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0x118(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rdx
leaq -0x38(%rbp), %rdi
movq %rdi, -0x110(%rbp)
leaq -0x14(%rbp), %rcx
movl $0x20, %r8d
callq 0x27b80
movq -0x110(%rbp), %rdi
callq 0x27ee0
movl %eax, -0x108(%rbp)
jmp 0x27857
movq -0x118(%rbp), %rax
movl -0x108(%rbp), %ecx
movl %ecx, (%rax)
leaq -0x38(%rbp), %rdi
callq 0x6310
movq -0x118(%rbp), %rax
cmpl $0x3, (%rax)
jne 0x279cd
movb $0x1, -0x92(%rbp)
movl $0x48, %edi
callq 0x6280
movq -0x118(%rbp), %rdi
movq %rax, -0x130(%rbp)
addq $0x28, %rdi
callq 0x6240
movq %rax, -0x128(%rbp)
leaq -0x69(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x6930
movq -0x128(%rbp), %rsi
movq -0x120(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0xa9d0
jmp 0x278d7
leaq -0x91(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x6930
movq -0x138(%rbp), %rdx
leaq 0x533a(%rip), %rsi      # 0x2cc32
leaq -0x90(%rbp), %rdi
callq 0xa9d0
jmp 0x27906
movq -0x130(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x27ce0
jmp 0x2791f
movq -0x130(%rbp), %rdi
movb $0x0, -0x92(%rbp)
leaq 0x171b4(%rip), %rsi     # 0x3eae8
leaq 0x435(%rip), %rdx       # 0x27d70
callq 0x68e0
jmp 0x27b7c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x6310
jmp 0x27b73
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x279a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x27993
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x6310
leaq -0x91(%rbp), %rdi
callq 0x6550
leaq -0x68(%rbp), %rdi
callq 0x6310
leaq -0x69(%rbp), %rdi
callq 0x6550
testb $0x1, -0x92(%rbp)
jne 0x279bc
jmp 0x279c8
movq -0x130(%rbp), %rdi
callq 0x63b0
jmp 0x27b73
movq -0x118(%rbp), %rsi
movq -0x10(%rbp), %rdx
leaq -0xb8(%rbp), %rdi
leaq -0x14(%rbp), %rcx
movl $0x20, %r8d
callq 0x27b80
movq -0x118(%rbp), %rdi
addq $0x8, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x6600
leaq -0xb8(%rbp), %rdi
callq 0x6310
movq -0x118(%rbp), %rdi
addq $0x8, %rdi
callq 0x68a0
testb $0x1, %al
jne 0x27a2a
jmp 0x27b6a
movb $0x1, -0x102(%rbp)
movl $0x48, %edi
callq 0x6280
movq -0x118(%rbp), %rdi
movq %rax, -0x150(%rbp)
addq $0x28, %rdi
callq 0x6240
movq %rax, -0x148(%rbp)
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x6930
movq -0x148(%rbp), %rsi
movq -0x140(%rbp), %rdx
leaq -0xd8(%rbp), %rdi
callq 0xa9d0
jmp 0x27a88
leaq -0x101(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0x6930
movq -0x158(%rbp), %rdx
leaq 0x5196(%rip), %rsi      # 0x2cc3f
leaq -0x100(%rbp), %rdi
callq 0xa9d0
jmp 0x27ab7
movq -0x150(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
leaq -0x100(%rbp), %rdx
callq 0x27ce0
jmp 0x27ad3
movq -0x150(%rbp), %rdi
movb $0x0, -0x102(%rbp)
leaq 0x17000(%rip), %rsi     # 0x3eae8
leaq 0x281(%rip), %rdx       # 0x27d70
callq 0x68e0
jmp 0x27b7c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x27b45
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x27b2d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x6310
leaq -0x101(%rbp), %rdi
callq 0x6550
leaq -0xd8(%rbp), %rdi
callq 0x6310
leaq -0xd9(%rbp), %rdi
callq 0x6550
testb $0x1, -0x102(%rbp)
jne 0x27b5c
jmp 0x27b68
movq -0x150(%rbp), %rdi
callq 0x63b0
jmp 0x27b73
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x6920
nopl (%rax)