// File: /workspace/github_cpp_makefile_star2_O2/Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseNPLambdaNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*)
ptr_node_t node_parser_t::parseNPLambdaNode(std::vector<node_scope_t> *scopes)
{
	nextToken();

	signature_t sig;
	std::vector<std::pair<bool, hash_ull>> p;
	std::vector<hash_ull> c;

	scopes->push_back({ROSSA_HASH("<LM2@" + std::to_string(scope_i++) + ">")});
	if (currentToken.type != '{')
	{
		auto body = parseEquNode(scopes);

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

		scopes->pop_back();
		return std::make_shared<DefineNode>(*scopes, 0, sig, p, body, c, 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();

		scopes->pop_back();
		auto body = std::make_shared<VectorNode>(*scopes, vbody, true, currentToken);
		return std::make_shared<DefineNode>(*scopes, 0, sig, p, body, c, 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, %rbx
movq %rsi, %rdi
callq 0x22e24
leaq 0xd8(%rsp), %rdi
callq 0x380a8
xorps %xmm0, %xmm0
andq $0x0, 0xc0(%rsp)
movaps %xmm0, 0xb0(%rsp)
andq $0x0, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movq (%r14), %rsi
leaq 0x1(%rsi), %rax
movq %rax, (%r14)
leaq 0x70(%rsp), %rdi
callq 0x2ecd6
leaq 0x4e6ab(%rip), %rsi     # 0x76972
leaq 0x50(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x1ca9c
leaq 0x4e091(%rip), %rdx     # 0x7636e
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x1ca7d
leaq 0x8e615(%rip), %rdi     # 0xb6908
leaq 0x10(%rsp), %rsi
callq 0x1efb0
leaq 0x38(%rsp), %r15
movq %rax, -0x8(%r15)
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
andq $0x0, 0x10(%r15)
leaq 0x30(%rsp), %rsi
movq %r12, %rdi
callq 0x1fe52
movq %r15, %rdi
callq 0x1f5c4
leaq 0x10(%rsp), %rdi
callq 0x101d0
leaq 0x50(%rsp), %rdi
callq 0x101d0
leaq 0x70(%rsp), %rdi
callq 0x101d0
leaq 0x58(%r14), %r15
cmpl $0x7b, 0xd0(%r14)
jne 0x283ca
movq %rbx, 0xd0(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
andq $0x0, 0x80(%rsp)
movq %r14, %rdi
callq 0x22e24
leaq 0x18(%rsp), %r13
leaq 0x10(%rsp), %rbp
leaq 0x70(%rsp), %rbx
movl 0xd0(%r14), %eax
cmpl $0x7d, %eax
je 0x2844e
testl %eax, %eax
je 0x28524
movq %rbp, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x23390
cmpq $0x0, 0x10(%rsp)
je 0x28591
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x2e880
movq %r13, %rdi
callq 0x1d786
jmp 0x28383
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x25798
cmpq $0x0, 0x10(%rsp)
je 0x285b7
movq %r12, %rdi
callq 0x2eb8e
leaq 0x50(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x90(%rsp), %rax
leaq 0x30(%rsp), %rdi
leaq 0xd8(%rsp), %rcx
leaq 0xb0(%rsp), %r8
leaq 0x10(%rsp), %r9
movq %r12, %rsi
pushq %r15
pushq %rax
callq 0x2ed46
popq %rax
popq %rcx
leaq 0x38(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
andq $0x0, (%rdi)
movups %xmm0, (%rbx)
andq $0x0, -0x8(%rdi)
callq 0x1d786
leaq 0x18(%rsp), %rdi
callq 0x1d786
jmp 0x284e8
movq %r14, %rdi
callq 0x22e24
movq %r12, %rdi
callq 0x2eb8e
leaq 0x10(%rsp), %rcx
movb $0x1, (%rcx)
leaq 0x30(%rsp), %rdi
leaq 0x70(%rsp), %rdx
movq %r12, %rsi
movq %r15, %r8
callq 0x2e811
movq 0xd0(%rsp), %rbx
leaq 0x50(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x90(%rsp), %rax
leaq 0x10(%rsp), %rdi
leaq 0xd8(%rsp), %rcx
leaq 0xb0(%rsp), %r8
leaq 0x30(%rsp), %r9
movq %r12, %rsi
pushq %r15
pushq %rax
callq 0x2edac
popq %rax
popq %rcx
leaq 0x18(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
andq $0x0, (%rdi)
movups %xmm0, (%rbx)
andq $0x0, -0x8(%rdi)
callq 0x1d786
leaq 0x38(%rsp), %rdi
callq 0x1d786
leaq 0x70(%rsp), %rdi
callq 0x2e838
leaq 0x90(%rsp), %rdi
callq 0x1f5c4
leaq 0xb0(%rsp), %rdi
callq 0x1dfbc
leaq 0xd8(%rsp), %rdi
callq 0x2eb6c
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4e379(%rip), %rsi     # 0x768a4
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1c814
leaq 0x52380(%rip), %rsi     # 0x7a8c1
leaq 0x50(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x1c814
leaq 0xf0(%rsp), %rdi
leaq 0x50(%rsp), %rsi
pushq $0x1
popq %rdx
leaq 0xd(%rsp), %rcx
callq 0x1f298
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0xf0(%rsp), %rdx
callq 0x3f724
leaq 0x30(%rsp), %rdx
movq %r14, %rsi
movq %r15, %rcx
callq 0x25932
leaq 0x4e3a2(%rip), %rsi     # 0x7693a
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x1c814
leaq 0x30(%rsp), %rdx
movq %r14, %rsi
movq %r15, %rcx
callq 0x25932
leaq 0x4e37c(%rip), %rsi     # 0x7693a
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x1c814
leaq 0x30(%rsp), %rdx
movq %r14, %rsi
movq %r15, %rcx
callq 0x25932
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x101d0
jmp 0x28603
jmp 0x28600
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x286ad
jmp 0x286b4
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1d786
jmp 0x286c1
jmp 0x28671
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x101d0
jmp 0x28626
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x1cea0
jmp 0x28679
jmp 0x286b4
movq %rax, %rbx
movq %r15, %rdi
callq 0x1f5c4
jmp 0x28647
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x101d0
jmp 0x28656
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x101d0
jmp 0x28665
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x101d0
jmp 0x286c1
movq %rax, %rbx
jmp 0x286c1
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x101d0
jmp 0x28688
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x101d0
jmp 0x286b7
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x101d0
jmp 0x286aa
jmp 0x286a7
jmp 0x286b4
movq %rax, %rbx
movq %r13, %rdi
callq 0x1d786
jmp 0x286b7
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x2e838
leaq 0x90(%rsp), %rdi
callq 0x1f5c4
leaq 0xb0(%rsp), %rdi
callq 0x1dfbc
leaq 0xd8(%rsp), %rdi
callq 0x2eb6c
movq %rbx, %rdi
callq 0x106f0