// File: /workspace/github_cpp_makefile_star2_O3/Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseParamTypeNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*, std::vector<long long, std::allocator<long long>> const&)
parameter_t node_parser_t::parseParamTypeNode(std::vector<node_scope_t> *scopes, const aug_type_t &base)
{
	parameter_t pt({}, base);
	nextToken();

	int i = 0;
	while (currentToken.valueString != ">")
	{
		if (i++ > 0)
		{
			if (currentToken.type != ',')
				return logErrorPT(util::format(_EXPECTED_ERROR_, {","}), currentToken);
			nextToken();
		}
		aug_type_t qbase = {value_type_enum::ANY};
		switch (currentToken.type)
		{
		case TOK_BOOLEAN:
			qbase = {value_type_enum::BOOLEAN_D};
			nextToken();
			break;
		case TOK_NUMBER:
			qbase = {value_type_enum::NUMBER};
			nextToken();
			break;
		case TOK_ARRAY:
			qbase = {value_type_enum::ARRAY};
			nextToken();
			break;
		case TOK_STRING:
			qbase = {value_type_enum::STRING};
			nextToken();
			break;
		case TOK_DICTIONARY:
			qbase = {value_type_enum::DICTIONARY};
			nextToken();
			break;
		case TOK_OBJECT:
			qbase = {value_type_enum::OBJECT};
			nextToken();
			break;
		case TOK_FUNCTION:
			qbase = {value_type_enum::FUNCTION};
			nextToken();
			break;
		case TOK_POINTER:
			qbase = {value_type_enum::POINTER};
			nextToken();
			break;
		case TOK_ANY:
			nextToken();
			break;
		case TOK_TYPE_NAME:
			qbase = {value_type_enum::TYPE_NAME};
			nextToken();
			break;
		case TOK_IDF:
		{
			qbase = {};
			while (currentToken.type == TOK_IDF)
			{
				qbase.push_back(ROSSA_HASH(currentToken.valueString));
				nextToken();
				if (currentToken.type != TOK_INNER)
					break;
				nextToken();
			}
			break;
		}
		default:
			return logErrorPT(_EXPECTED_BASE_TYPE_, currentToken);
		}
		if (currentToken.valueString == "<")
		{
			pt.addQualifier(parseParamTypeNode(scopes, qbase));
		}
		else
		{
			pt.addQualifier(parameter_t({}, qbase));
		}
	}
	nextToken();
	return pt;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdx, 0xb0(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
leaq 0xd0(%rsp), %rdi
movq %rcx, %rdx
callq 0x3d600
movq %r14, 0xa8(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x36d84
movq %rbx, %rdi
callq 0x2549e
leaq 0xb0(%rbx), %r12
leaq 0x58e32(%rip), %rsi     # 0x83328
movq %r12, %rdi
callq 0x10110
testl %eax, %eax
je 0x2a84e
xorl %r13d, %r13d
leaq 0x30(%rsp), %r14
leaq 0x8b3e3(%rip), %r15     # 0xb58f8
testl %r13d, %r13d
je 0x2a52f
cmpl $0x2c, 0xd0(%rbx)
jne 0x2a8f6
movq %rbx, %rdi
callq 0x2549e
movq $-0xb, 0x30(%rsp)
movl $0x1, %edx
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
leaq 0x80(%rsp), %rcx
callq 0x36dd8
movl 0xd0(%rbx), %eax
leal 0x23(%rax), %ecx
cmpl $0xe, %ecx
ja 0x2a590
leaq 0x59115(%rip), %rdx     # 0x8367c
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
movq $-0x6, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
leaq 0x38(%rsp), %rdx
callq 0x38b50
jmp 0x2a742
cmpl $-0x2e, %eax
je 0x2a727
cmpl $-0x2, %eax
jne 0x2a985
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x38b50
cmpl $-0x2, 0xd0(%rbx)
jne 0x2a74a
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %r12, %rdx
callq 0x20d1b
movq 0x8(%r15), %rsi
cmpq %rsi, %rax
je 0x2a5ec
movq (%r15), %rbp
movq %rbp, %rdi
movq %r12, %rdx
callq 0x20d1b
subq %rbp, %rax
sarq $0x5, %rax
jmp 0x2a605
movq %r15, %rdi
movq %r12, %rsi
callq 0x20cde
movq 0x8(%r15), %rax
subq (%r15), %rax
sarq $0x5, %rax
decq %rax
movq %rax, 0x30(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x2a624
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2a631
leaq 0x10(%rsp), %rdi
movq %r14, %rdx
callq 0x38c52
movq %rbx, %rdi
callq 0x2549e
cmpl $-0x27, 0xd0(%rbx)
jne 0x2a74a
movq %rbx, %rdi
callq 0x2549e
jmp 0x2a5b0
movq $-0x7, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
leaq 0x38(%rsp), %rdx
callq 0x38b50
jmp 0x2a742
movq $-0x2, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
leaq 0x38(%rsp), %rdx
callq 0x38b50
jmp 0x2a742
movq $-0x8, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
leaq 0x38(%rsp), %rdx
callq 0x38b50
jmp 0x2a742
movq $-0x4, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
leaq 0x38(%rsp), %rdx
callq 0x38b50
jmp 0x2a742
movq $-0x3, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
leaq 0x38(%rsp), %rdx
callq 0x38b50
jmp 0x2a742
movq $-0x9, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
leaq 0x38(%rsp), %rdx
callq 0x38b50
jmp 0x2a742
movq $-0x5, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
leaq 0x38(%rsp), %rdx
callq 0x38b50
jmp 0x2a742
movq $-0xa, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
leaq 0x38(%rsp), %rdx
callq 0x38b50
movq %rbx, %rdi
callq 0x2549e
movq %r12, %rdi
leaq 0x58c0b(%rip), %rsi     # 0x8335f
callq 0x10110
testl %eax, %eax
je 0x2a7cc
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
movq %r14, %rdi
leaq 0x80(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x3d600
leaq 0xd0(%rsp), %rdi
movq %r14, %rsi
callq 0x3d6b0
leaq 0x60(%rsp), %rdi
callq 0x36f28
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2a7ba
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
movq %r14, %rdi
callq 0x36d84
leaq 0x80(%rsp), %rdi
jmp 0x2a818
movq %r14, %rdi
movq %rbx, %rsi
movq 0xb0(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq 0x2a48c
leaq 0xd0(%rsp), %rdi
movq %r14, %rsi
callq 0x3d6b0
leaq 0x60(%rsp), %rdi
callq 0x36f28
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2a815
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
movq %r14, %rdi
callq 0x36d84
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2a834
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
incl %r13d
movq %r12, %rdi
leaq 0x58ae7(%rip), %rsi     # 0x83328
callq 0x10110
testl %eax, %eax
jne 0x2a515
movq %rbx, %rdi
callq 0x2549e
leaq 0x100(%rsp), %rbx
movaps -0x30(%rbx), %xmm0
movq 0xa8(%rsp), %r14
movups %xmm0, (%r14)
movq -0x20(%rbx), %rax
movq %rax, 0x10(%r14)
xorl %eax, %eax
movq %rax, -0x20(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, -0x30(%rbx)
movups -0x18(%rbx), %xmm1
movups %xmm1, 0x18(%r14)
movq -0x8(%rbx), %rcx
movq %rcx, 0x28(%r14)
movq %rax, -0x8(%rbx)
movups %xmm0, -0x18(%rbx)
movaps (%rbx), %xmm1
movups %xmm1, 0x30(%r14)
movq 0x10(%rbx), %rcx
movq %rcx, 0x40(%r14)
movq %rax, 0x10(%rbx)
movaps %xmm0, (%rbx)
movq %rbx, %rdi
callq 0x36f28
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x2a8d4
movq 0xf8(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
leaq 0xd0(%rsp), %rdi
callq 0x36d84
movq %r14, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x58f7d(%rip), %rsi     # 0x83883
leaq 0x58f84(%rip), %rdx     # 0x83891
leaq 0x10(%rsp), %rdi
callq 0x1e698
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x591b7(%rip), %rsi     # 0x83ae1
leaq 0x591b1(%rip), %rdx     # 0x83ae2
leaq 0x80(%rsp), %rdi
callq 0x1e698
leaq 0xb8(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x20b38
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
callq 0x47db4
leaq 0x58(%rbx), %rcx
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x29658
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x58f19(%rip), %rsi     # 0x838ae
leaq 0x58f48(%rip), %rdx     # 0x838e4
leaq 0x30(%rsp), %rdi
callq 0x1e698
leaq 0x58(%rbx), %rcx
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x29658
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a9da
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a9da
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x1db60
jmp 0x2aa30
jmp 0x2aaae
jmp 0x2aaae
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x36d84
jmp 0x2aade
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x2aaba
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2aaba
jmp 0x2aab7
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x2aa64
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2aa64
jmp 0x2aab7
jmp 0x2aab7
jmp 0x2aab7
jmp 0x2aab7
jmp 0x2aab7
jmp 0x2aab7
jmp 0x2aab7
jmp 0x2aab7
jmp 0x2aab7
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x2aad1
movq 0x20(%rsp), %rsi
incq %rsi
jmp 0x2aacc
jmp 0x2aaae
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x36e1e
jmp 0x2aaba
jmp 0x2aab7
movq %rax, %rbx
jmp 0x2aa9d
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x36e1e
leaq 0x80(%rsp), %rdi
callq 0x36d84
jmp 0x2aaba
jmp 0x2aaae
movq %rax, %rbx
jmp 0x2aad1
jmp 0x2aab7
jmp 0x2aab7
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2aad1
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
leaq 0xd0(%rsp), %rdi
callq 0x36e1e
movq %rbx, %rdi
callq 0x106f0