// File: /workspace/github_cpp_makefile_star2_O1/Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseLambdaNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*)
ptr_node_t node_parser_t::parseLambdaNode(std::vector<node_scope_t> *scopes)
{
	nextToken();
	scopes->push_back({ROSSA_HASH("<LAM@" + std::to_string(scope_i++) + ">")});

	bool isVargs = false;
	auto sig = parseSigNode(scopes);
	if (!sig.second.empty() && sig.second[0].first == 1 && sig.second[0].second == 0)
		isVargs = true;

	int i = 0;
	std::vector<hash_ull> captures;
	if (currentToken.type == '[')
	{
		nextToken();
		while (currentToken.type != ']')
		{
			if (i++ > 0)
			{
				if (currentToken.type != ',')
					return logErrorN(util::format(_EXPECTED_ERROR_, {","}), currentToken);
				nextToken();
			}

			std::string arg;

			if (currentToken.type == TOK_IDF)
				arg = currentToken.valueString;
			else
				return logErrorN("Expected variable identifier", currentToken);
			nextToken();

			captures.push_back(ROSSA_HASH(arg));
		}
		nextToken();
	}

	if (currentToken.type != '{')
	{
		auto body = parseEquNode(scopes);

		if (!body)
			return logErrorN(_FAILURE_PARSE_CODE_, currentToken);

		scopes->pop_back();
		if (isVargs)
			return std::make_shared<VargDefineNode>(*scopes, 0, body, captures, currentToken);
		else
			return std::make_shared<DefineNode>(*scopes, 0, sig.first, sig.second, body, captures, currentToken);
	}
	else
	{
		std::vector<ptr_node_t> vbody;

		nextToken();
		while (currentToken.type != NULL_TOK)
		{
			if (currentToken.type == NULL_TOK || currentToken.type == '}')
				break;

			if (auto e = parseExprNode(scopes))
				vbody.push_back(e);
			else
				return logErrorN(_FAILURE_PARSE_CODE_, currentToken);
		}
		if (currentToken.type != '}')
			return logErrorN(util::format(_EXPECTED_ERROR_, {"}"}), currentToken);
		nextToken();

		auto body = std::make_shared<VectorNode>(*scopes, vbody, true, currentToken);

		scopes->pop_back();
		if (isVargs)
			return std::make_shared<VargDefineNode>(*scopes, 0, body, captures, currentToken);
		else
			return std::make_shared<DefineNode>(*scopes, 0, sig.first, sig.second, body, captures, currentToken);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x2565a
movq (%r14), %rbx
leaq 0x1(%rbx), %rax
movq %rax, (%r14)
movl $0x1, %esi
cmpq $0xa, %rbx
jb 0x2cafc
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %rbx, %rcx
cmpq $0x63, %rcx
jbe 0x2caf5
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x2cafa
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x2cafc
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x2cabf
addl $-0x3, %esi
jmp 0x2cafc
addl $-0x2, %esi
jmp 0x2cafc
decl %esi
movq %r12, 0x58(%rsp)
movl %esi, %esi
leaq 0x70(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x60(%rsp), %r12
movq %r12, %rdi
xorl %edx, %edx
callq 0x104c0
movq (%r12), %rdi
movl 0x8(%r12), %esi
movq %rbx, %rdx
callq 0x37bed
leaq 0x57df8(%rip), %rcx     # 0x8492b
movl $0x5, %r8d
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10460
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2cb6d
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x2cb75
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x57790(%rip), %rsi     # 0x84328
callq 0x10770
leaq 0x10(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2cbc3
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x2cbc9
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rsi
movq %rsp, %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8ad0e(%rip), %r13     # 0xb78f8
movq (%r13), %rdi
movq 0x8(%r13), %rsi
callq 0x20e41
movq 0x8(%r13), %rsi
cmpq %rsi, %rax
je 0x2cc18
movq (%r13), %rbx
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x20e41
subq %rbx, %rax
sarq $0x5, %rax
jmp 0x2cc38
leaq 0x8acd9(%rip), %rbx     # 0xb78f8
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x20e04
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x5, %rax
decq %rax
leaq 0xb8(%rsp), %rsi
movq %rax, (%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi)
movq $0x0, 0x18(%rsi)
movq 0x58(%rsp), %rdi
callq 0x21808
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x2cc79
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2cc94
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x2ccab
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
movq 0x58(%rsp), %r12
je 0x2ccc7
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0xb8(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2ad62
movq 0x18(%rbx), %rax
cmpq 0x20(%rbx), %rax
je 0x2ccfa
cmpb $0x1, (%rax)
jne 0x2ccfa
cmpq $0x0, 0x8(%rax)
sete %al
movl %eax, 0x44(%rsp)
jmp 0x2cd02
movl $0x0, 0x44(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
leaq 0x58(%r14), %rax
movq %rax, 0x48(%rsp)
cmpl $0x5b, 0xd0(%r14)
jne 0x2ce76
movq %r14, %rdi
callq 0x2565a
movq %r15, 0xe8(%rsp)
movl 0xd0(%r14), %eax
cmpl $0x5d, %eax
je 0x2ce5c
leaq 0xb0(%r14), %rbp
xorl %r15d, %r15d
movq %rsp, %r12
subl $0x1, %r15d
jb 0x2cd74
cmpl $0x2c, %eax
jne 0x2d299
movq %r14, %rdi
callq 0x2565a
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
cmpl $-0x2, 0xd0(%r14)
jne 0x2d267
movq %r12, %rdi
movq %rbp, %rsi
callq 0x10210
movq %r14, %rdi
callq 0x2565a
movq (%r13), %rdi
movq 0x8(%r13), %rsi
movq %r12, %rdx
callq 0x20e41
movq 0x8(%r13), %rsi
cmpq %rsi, %rax
je 0x2cddd
movq (%r13), %rbx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x20e41
subq %rbx, %rax
sarq $0x5, %rax
jmp 0x2cdf7
movq %r13, %rdi
movq %r12, %rsi
callq 0x20e04
movq 0x8(%r13), %rax
subq (%r13), %rax
sarq $0x5, %rax
decq %rax
movq %rax, 0x20(%rsp)
movq 0x88(%rsp), %rsi
cmpq 0x90(%rsp), %rsi
je 0x2ce1f
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x88(%rsp)
jmp 0x2ce31
leaq 0x80(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x39756
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2ce4c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
movl 0xd0(%r14), %eax
cmpl $0x5d, %eax
jne 0x2cd5d
movq %r14, %rdi
callq 0x2565a
movq 0xe8(%rsp), %r15
leaq 0x70(%rsp), %rbp
movq 0x58(%rsp), %r12
leaq 0xd0(%rsp), %r13
cmpl $0x7b, 0xd0(%r14)
jne 0x2cf04
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movq $0x0, 0xb0(%rsp)
movq %r14, %rdi
callq 0x2565a
leaq 0x20(%rsp), %rbx
leaq 0xa0(%rsp), %r12
movl 0xd0(%r14), %eax
cmpl $0x7d, %eax
je 0x2cf9a
testl %eax, %eax
je 0x2d1ae
movq %rbx, %rdi
movq %r14, %rsi
movq 0x58(%rsp), %rdx
callq 0x25fda
cmpq $0x0, 0x20(%rsp)
je 0x2d239
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3725c
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2ceb4
callq 0x1e6ee
jmp 0x2ceb4
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x296b0
cmpq $0x0, 0x20(%rsp)
movq 0x48(%rsp), %rbp
je 0x2d329
movq 0x8(%r12), %rax
leaq -0x20(%rax), %rcx
movq %rcx, 0x8(%r12)
movq -0x18(%rax), %rdi
testq %rdi, %rdi
je 0x2cf4b
movq -0x8(%rax), %rsi
subq %rdi, %rsi
callq 0x103d0
cmpb $0x0, 0x44(%rsp)
je 0x2d05a
leaq 0x60(%rsp), %r8
movl $0x0, (%r8)
leaq 0x8(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x80(%rsp), %rax
movq %rsp, %rsi
leaq 0xa0(%rsp), %rdx
leaq 0x20(%rsp), %r9
movq %r12, %rcx
pushq %rbp
pushq %rax
callq 0x3a0c6
addq $0x10, %rsp
jmp 0x2d09f
movq %r14, %rdi
callq 0x2565a
leaq 0x60(%rsp), %r9
movb $0x1, (%r9)
leaq 0x8(%rsp), %rdi
movq $0x0, -0x8(%rdi)
subq $0x8, %rsp
leaq 0x8(%rsp), %rbx
leaq 0x28(%rsp), %rdx
leaq 0xa8(%rsp), %r8
movq %rbx, %rsi
movq 0x60(%rsp), %r14
movq %r14, %rcx
movq 0x50(%rsp), %r12
pushq %r12
callq 0x38494
addq $0x10, %rsp
movq 0x8(%r14), %rax
leaq -0x20(%rax), %rcx
movq %rcx, 0x8(%r14)
movq -0x18(%rax), %rdi
testq %rdi, %rdi
je 0x2d00a
movq -0x8(%rax), %rsi
subq %rdi, %rsi
callq 0x103d0
cmpb $0x0, 0x44(%rsp)
je 0x2d0d2
leaq 0x60(%rsp), %r8
movl $0x0, (%r8)
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x80(%rsp), %rax
leaq 0x20(%rsp), %rsi
leaq 0xf0(%rsp), %rdx
movq %rsp, %r9
movq %r14, %rcx
pushq %r12
pushq %rax
callq 0x3a21a
addq $0x10, %rsp
jmp 0x2d11a
leaq 0x60(%rsp), %r8
movl $0x0, (%r8)
leaq 0x8(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x80(%rsp), %rax
movq %rsp, %rsi
leaq 0xa0(%rsp), %rdx
leaq 0xb8(%rsp), %r9
movq %r12, %rcx
pushq %rbp
pushq %rax
pushq %rbx
pushq %r13
callq 0x3a16c
addq $0x20, %rsp
movq (%rsp), %rax
movq %rax, (%r15)
xorl %eax, %eax
movq %rax, 0x8(%r15)
movq 0x8(%rsp), %rcx
movq %rax, 0x8(%rsp)
movq %rcx, 0x8(%r15)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2d152
callq 0x1e6ee
jmp 0x2d152
leaq 0x60(%rsp), %r8
movl $0x0, (%r8)
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x80(%rsp), %rax
leaq 0x20(%rsp), %rsi
leaq 0xf0(%rsp), %rdx
leaq 0xb8(%rsp), %r9
movq %r14, %rcx
pushq %r12
pushq %rax
pushq %rbx
pushq %r13
callq 0x3a34a
addq $0x20, %rsp
movq 0x20(%rsp), %rax
movq %rax, (%r15)
xorl %eax, %eax
movq %rax, 0x8(%r15)
movq 0x28(%rsp), %rcx
movq %rax, 0x28(%rsp)
movq %rcx, 0x8(%r15)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2d145
callq 0x1e6ee
leaq 0xa0(%rsp), %rdi
callq 0x37214
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x2d16f
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x2d18c
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
leaq 0xb8(%rsp), %rdi
callq 0x3743a
movq %r15, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, 0x30(%rsp)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x36(%rsp)
movq $0xe, 0x28(%rsp)
movb $0x0, 0x3e(%rsp)
leaq 0x60(%rsp), %rsi
movq %rbp, %r15
movq %rbp, (%rsi)
movw $0x7d, 0x10(%rsi)
movq $0x1, 0x8(%rsi)
leaq 0xf0(%rsp), %rdi
leaq 0x57(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
leaq 0xf0(%rsp), %rdx
callq 0x48694
movq %rsp, %rdx
movq %r14, %rsi
movq 0x48(%rsp), %rcx
callq 0x29894
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x576ae(%rip), %rsi     # 0x848f9
leaq 0x576bc(%rip), %rdx     # 0x8490e
callq 0x1e7ca
movq %rsp, %rdx
movq %r14, %rsi
movq 0x48(%rsp), %rcx
callq 0x29894
leaq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
movq %rax, (%rdi)
leaq 0x5764a(%rip), %rsi     # 0x848c5
leaq 0x5765f(%rip), %rdx     # 0x848e1
callq 0x1e7ca
leaq 0x20(%rsp), %rdx
movq %r14, %rsi
movq 0x48(%rsp), %rcx
callq 0x29894
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, 0x30(%rsp)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x36(%rsp)
movq $0xe, 0x28(%rsp)
movb $0x0, 0x3e(%rsp)
leaq 0x60(%rsp), %rsi
leaq 0x70(%rsp), %rax
movq %rax, (%rsi)
movw $0x2c, 0x10(%rsi)
movq $0x1, 0x8(%rsi)
leaq 0xa0(%rsp), %rdi
leaq 0xf0(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
callq 0x48694
movq %rsp, %rdx
movq %r14, %rsi
movq 0x48(%rsp), %rcx
callq 0x29894
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x575be(%rip), %rsi     # 0x848f9
leaq 0x575cc(%rip), %rdx     # 0x8490e
callq 0x1e7ca
movq %rsp, %rdx
movq %r14, %rsi
movq 0x48(%rsp), %rcx
callq 0x29894
jmp 0x2d359
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2d589
jmp 0x2d57f
jmp 0x2d393
jmp 0x2d393
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2d396
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2d396
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2d5b8
callq 0x1e6ee
jmp 0x2d5b8
jmp 0x2d586
jmp 0x2d4e3
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2d3db
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2d3db
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x1dca2
jmp 0x2d423
jmp 0x2d586
jmp 0x2d4e3
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x2d45f
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
jmp 0x2d45f
movq %rax, %rbx
jmp 0x2d47a
movq %rax, %rbx
jmp 0x2d491
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x2d43f
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2d5b8
movq 0x30(%rsp), %rsi
jmp 0x2d5b0
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2d47a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x2d491
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2d5e2
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2d5e2
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2d4d4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2d4d4
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x1dca2
jmp 0x2d53d
movq %rax, %rbx
jmp 0x2d5b8
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2d59d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2d59d
jmp 0x2d59a
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2d575
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2d575
jmp 0x2d572
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d554
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2d589
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2d589
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2d589
callq 0x1e6ee
jmp 0x2d589
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x37214
jmp 0x2d5b8
jmp 0x2d59a
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2d5b8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x2d5d5
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
leaq 0xb8(%rsp), %rdi
callq 0x374a8
movq %rbx, %rdi
callq 0x106f0