// File: /workspace/github_cpp_makefile_star2_O1/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 0x3dc0c
movq %r14, 0xa8(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x3729c
movq %rbx, %rdi
callq 0x2565a
leaq 0xb0(%rbx), %r12
leaq 0x59bd2(%rip), %rsi     # 0x84328
movq %r12, %rdi
callq 0x10110
testl %eax, %eax
je 0x2aaae
xorl %r13d, %r13d
leaq 0x30(%rsp), %rbp
leaq 0x8d183(%rip), %r14     # 0xb78f8
testl %r13d, %r13d
je 0x2a78f
cmpl $0x2c, 0xd0(%rbx)
jne 0x2ab6b
movq %rbx, %rdi
callq 0x2565a
movq $-0xb, 0x30(%rsp)
movl $0x1, %edx
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
leaq 0x80(%rsp), %rcx
callq 0x372ea
movl 0xd0(%rbx), %eax
leal 0x23(%rax), %ecx
cmpl $0xe, %ecx
ja 0x2a7f0
leaq 0x59eb5(%rip), %rdx     # 0x8467c
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
movq $-0x6, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
leaq 0x38(%rsp), %rdx
callq 0x390ce
jmp 0x2a9a2
cmpl $-0x2e, %eax
je 0x2a987
cmpl $-0x2, %eax
jne 0x2abfa
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x390ce
cmpl $-0x2, 0xd0(%rbx)
jne 0x2a9aa
movq (%r14), %rdi
movq 0x8(%r14), %rsi
movq %r12, %rdx
callq 0x20e41
movq 0x8(%r14), %rsi
cmpq %rsi, %rax
je 0x2a84c
movq (%r14), %r15
movq %r15, %rdi
movq %r12, %rdx
callq 0x20e41
subq %r15, %rax
sarq $0x5, %rax
jmp 0x2a865
movq %r14, %rdi
movq %r12, %rsi
callq 0x20e04
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x5, %rax
decq %rax
movq %rax, 0x30(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x2a884
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2a891
leaq 0x10(%rsp), %rdi
movq %rbp, %rdx
callq 0x391c6
movq %rbx, %rdi
callq 0x2565a
cmpl $-0x27, 0xd0(%rbx)
jne 0x2a9aa
movq %rbx, %rdi
callq 0x2565a
jmp 0x2a810
movq $-0x7, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
leaq 0x38(%rsp), %rdx
callq 0x390ce
jmp 0x2a9a2
movq $-0x2, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
leaq 0x38(%rsp), %rdx
callq 0x390ce
jmp 0x2a9a2
movq $-0x8, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
leaq 0x38(%rsp), %rdx
callq 0x390ce
jmp 0x2a9a2
movq $-0x4, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
leaq 0x38(%rsp), %rdx
callq 0x390ce
jmp 0x2a9a2
movq $-0x3, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
leaq 0x38(%rsp), %rdx
callq 0x390ce
jmp 0x2a9a2
movq $-0x9, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
leaq 0x38(%rsp), %rdx
callq 0x390ce
jmp 0x2a9a2
movq $-0x5, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
leaq 0x38(%rsp), %rdx
callq 0x390ce
jmp 0x2a9a2
movq $-0xa, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
leaq 0x38(%rsp), %rdx
callq 0x390ce
movq %rbx, %rdi
callq 0x2565a
movq %r12, %rdi
leaq 0x599ab(%rip), %rsi     # 0x8435f
callq 0x10110
testl %eax, %eax
je 0x2aa2c
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
movq %rbp, %rdi
leaq 0x80(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x3dc0c
leaq 0xd0(%rsp), %rdi
movq %rbp, %rsi
callq 0x3dcbc
leaq 0x60(%rsp), %rdi
callq 0x3743a
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2aa1a
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
movq %rbp, %rdi
callq 0x3729c
leaq 0x80(%rsp), %rdi
jmp 0x2aa78
movq %rbp, %rdi
movq %rbx, %rsi
movq 0xb0(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq 0x2a6ec
leaq 0xd0(%rsp), %rdi
movq %rbp, %rsi
callq 0x3dcbc
leaq 0x60(%rsp), %rdi
callq 0x3743a
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2aa75
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
movq %rbp, %rdi
callq 0x3729c
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2aa94
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
incl %r13d
movq %r12, %rdi
leaq 0x59887(%rip), %rsi     # 0x84328
callq 0x10110
testl %eax, %eax
jne 0x2a775
movq %rbx, %rdi
callq 0x2565a
leaq 0x100(%rsp), %rbx
movq -0x30(%rbx), %rax
movq 0xa8(%rsp), %r14
movq %rax, (%r14)
movq -0x28(%rbx), %rax
movq %rax, 0x8(%r14)
movq -0x20(%rbx), %rax
movq %rax, 0x10(%r14)
xorl %eax, %eax
movq %rax, -0x20(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, -0x30(%rbx)
movq -0x18(%rbx), %rcx
movq %rcx, 0x18(%r14)
movq -0x10(%rbx), %rcx
movq %rcx, 0x20(%r14)
movq -0x8(%rbx), %rcx
movq %rcx, 0x28(%r14)
movq %rax, -0x8(%rbx)
movups %xmm0, -0x18(%rbx)
movq (%rbx), %rcx
movq %rcx, 0x30(%r14)
movq 0x8(%rbx), %rcx
movq %rcx, 0x38(%r14)
movq 0x10(%rbx), %rcx
movq %rcx, 0x40(%r14)
movq %rax, 0x10(%rbx)
movaps %xmm0, (%rbx)
movq %rbx, %rdi
callq 0x3743a
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x2ab49
movq 0xf8(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
leaq 0xd0(%rsp), %rdi
callq 0x3729c
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 0x59ce8(%rip), %rsi     # 0x84863
leaq 0x59cef(%rip), %rdx     # 0x84871
leaq 0x10(%rsp), %rdi
callq 0x1e7ca
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x59f22(%rip), %rsi     # 0x84ac1
leaq 0x59f1c(%rip), %rdx     # 0x84ac2
leaq 0x80(%rsp), %rdi
callq 0x1e7ca
leaq 0xb8(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
callq 0x48694
leaq 0x58(%rbx), %rcx
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x29894
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x59c84(%rip), %rsi     # 0x8488e
leaq 0x59cb3(%rip), %rdx     # 0x848c4
leaq 0x30(%rsp), %rdi
callq 0x1e7ca
leaq 0x58(%rbx), %rcx
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x29894
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ac4f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2ac4f
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x1dca2
jmp 0x2aca5
jmp 0x2ad23
jmp 0x2ad23
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x3729c
jmp 0x2ad53
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x2ad2f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2ad2f
jmp 0x2ad2c
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x2acd9
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2acd9
jmp 0x2ad2c
jmp 0x2ad2c
jmp 0x2ad2c
jmp 0x2ad2c
jmp 0x2ad2c
jmp 0x2ad2c
jmp 0x2ad2c
jmp 0x2ad2c
jmp 0x2ad2c
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x2ad46
movq 0x20(%rsp), %rsi
incq %rsi
jmp 0x2ad41
jmp 0x2ad23
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x37330
jmp 0x2ad2f
jmp 0x2ad2c
movq %rax, %rbx
jmp 0x2ad12
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x37330
leaq 0x80(%rsp), %rdi
callq 0x3729c
jmp 0x2ad2f
jmp 0x2ad23
movq %rax, %rbx
jmp 0x2ad46
jmp 0x2ad2c
jmp 0x2ad2c
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2ad46
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
leaq 0xd0(%rsp), %rdi
callq 0x37330
movq %rbx, %rdi
callq 0x106f0
nop