// File: 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
movq %rsp, %rbp
subq $0x4b0, %rsp            # imm = 0x4B0
movq %rdi, -0x3b8(%rbp)
movq %rdi, %rax
movq %rax, -0x3b0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x3a8(%rbp)
callq 0x38fd0
movq -0x3a8(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, -0x3a0(%rbp)
leaq -0x38(%rbp), %rcx
movq %rcx, -0x398(%rbp)
movq (%rax), %rsi
movq %rsi, %rcx
incq %rcx
movq %rcx, (%rax)
leaq -0x98(%rbp), %rdi
movq %rdi, -0x390(%rbp)
callq 0x58780
movq -0x390(%rbp), %rdx
leaq 0x10bde6(%rip), %rsi    # 0x151258
leaq -0x78(%rbp), %rdi
callq 0x24cb0
jmp 0x4547d
leaq 0x10aedc(%rip), %rdx    # 0x150360
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x24c60
jmp 0x45493
leaq 0x1a05fe(%rip), %rdi    # 0x1e5a98
leaq -0x58(%rbp), %rsi
callq 0x2cb10
movq %rax, -0x3c0(%rbp)
jmp 0x454ac
movq -0x398(%rbp), %rax
movq -0x3c0(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x30(%rbp), %rdi
xorps %xmm0, %xmm0
movups %xmm0, -0x30(%rbp)
movq $0x0, -0x20(%rbp)
callq 0x2ccf0
movq -0x3a0(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2ccc0
jmp 0x454e7
leaq -0x38(%rbp), %rdi
callq 0x2cd10
leaq -0x58(%rbp), %rdi
callq 0x11360
leaq -0x78(%rbp), %rdi
callq 0x11360
leaq -0x98(%rbp), %rdi
callq 0x11360
movq -0x3a8(%rbp), %rsi
movb $0x0, -0xa5(%rbp)
movq -0x18(%rbp), %rdx
leaq -0xd8(%rbp), %rdi
callq 0x421d0
leaq -0xd8(%rbp), %rdi
addq $0x18, %rdi
callq 0x58210
testb $0x1, %al
jne 0x4560a
leaq -0xd8(%rbp), %rdi
addq $0x18, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x58250
movb (%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x4560a
leaq -0xd8(%rbp), %rdi
addq $0x18, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x58250
cmpq $0x0, 0x8(%rax)
jne 0x4560a
movb $0x1, -0xa5(%rbp)
jmp 0x4560a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x455f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x455f0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x455e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x2cd10
leaq -0x58(%rbp), %rdi
callq 0x11360
leaq -0x78(%rbp), %rdi
callq 0x11360
leaq -0x98(%rbp), %rdi
callq 0x11360
jmp 0x4642e
movl $0x0, -0xdc(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0x2ccf0
movq -0x3a8(%rbp), %rax
cmpl $0x5b, 0xd0(%rax)
jne 0x45b5c
movq -0x3a8(%rbp), %rdi
callq 0x38fd0
jmp 0x45642
jmp 0x45644
movq -0x3a8(%rbp), %rax
cmpl $0x5d, 0xd0(%rax)
je 0x45b4c
movl -0xdc(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0xdc(%rbp)
cmpl $0x0, %eax
jle 0x459b6
movq -0x3a8(%rbp), %rax
cmpl $0x2c, 0xd0(%rax)
je 0x459a6
leaq -0x139(%rbp), %rdi
movq %rdi, -0x3c8(%rbp)
callq 0x119d0
movq -0x3c8(%rbp), %rdx
leaq 0x10bae9(%rip), %rsi    # 0x151190
leaq -0x138(%rbp), %rdi
callq 0x24740
jmp 0x456b5
movb $0x1, -0x192(%rbp)
leaq -0x188(%rbp), %rax
movq %rax, -0x3d8(%rbp)
movq %rax, -0x190(%rbp)
leaq -0x191(%rbp), %rdi
movq %rdi, -0x3d0(%rbp)
callq 0x119d0
movq -0x3d8(%rbp), %rdi
movq -0x3d0(%rbp), %rdx
leaq 0x10bcf7(%rip), %rsi    # 0x1513f0
callq 0x24740
jmp 0x45700
movb $0x0, -0x192(%rbp)
leaq -0x188(%rbp), %rax
movq %rax, -0x168(%rbp)
movq $0x1, -0x160(%rbp)
leaq -0x193(%rbp), %rdi
movq %rdi, -0x3e0(%rbp)
callq 0x26e30
movq -0x3e0(%rbp), %rcx
movq -0x168(%rbp), %rsi
movq -0x160(%rbp), %rdx
leaq -0x158(%rbp), %rdi
callq 0x2d6a0
jmp 0x45756
leaq -0x118(%rbp), %rdi
leaq -0x138(%rbp), %rsi
leaq -0x158(%rbp), %rdx
callq 0x9e250
jmp 0x45772
movq -0x3a8(%rbp), %rsi
movq -0x3b8(%rbp), %rdi
movq %rsi, %rcx
addq $0x58, %rcx
leaq -0x118(%rbp), %rdx
callq 0x3f820
jmp 0x45795
leaq -0x118(%rbp), %rdi
callq 0x11360
leaq -0x158(%rbp), %rdi
callq 0x25b00
leaq -0x193(%rbp), %rdi
callq 0x279c0
leaq -0x188(%rbp), %rax
movq %rax, -0x3f0(%rbp)
addq $0x20, %rax
movq %rax, -0x3e8(%rbp)
movq -0x3e8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3f8(%rbp)
callq 0x11360
movq -0x3f0(%rbp), %rcx
movq -0x3f8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x3e8(%rbp)
jne 0x457d2
leaq -0x191(%rbp), %rdi
callq 0x11600
leaq -0x138(%rbp), %rdi
callq 0x11360
leaq -0x139(%rbp), %rdi
callq 0x11600
movl $0x1, -0x198(%rbp)
jmp 0x463ee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x46416
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x45995
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x45925
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x458cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x458c1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x11360
leaq -0x158(%rbp), %rdi
callq 0x25b00
leaq -0x193(%rbp), %rdi
callq 0x279c0
leaq -0x188(%rbp), %rax
movq %rax, -0x408(%rbp)
addq $0x20, %rax
movq %rax, -0x400(%rbp)
movq -0x400(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x410(%rbp)
callq 0x11360
movq -0x408(%rbp), %rcx
movq -0x410(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x400(%rbp)
jne 0x458f2
jmp 0x45925
leaq -0x191(%rbp), %rdi
callq 0x11600
testb $0x1, -0x192(%rbp)
jne 0x4593c
jmp 0x45989
movq -0x190(%rbp), %rax
leaq -0x188(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x418(%rbp)
je 0x45987
movq -0x418(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x420(%rbp)
callq 0x11360
movq -0x420(%rbp), %rax
leaq -0x188(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x418(%rbp)
jne 0x45956
jmp 0x45989
leaq -0x138(%rbp), %rdi
callq 0x11360
leaq -0x139(%rbp), %rdi
callq 0x11600
jmp 0x46416
movq -0x3a8(%rbp), %rdi
callq 0x38fd0
jmp 0x459b4
jmp 0x459b6
leaq -0x1b8(%rbp), %rdi
callq 0x117c0
movq -0x3a8(%rbp), %rax
cmpl $-0x2, 0xd0(%rax)
jne 0x45a0a
movq -0x3a8(%rbp), %rsi
addq $0xb0, %rsi
leaq -0x1b8(%rbp), %rdi
callq 0x11070
jmp 0x459ee
jmp 0x45ac3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x45b3b
leaq -0x1d9(%rbp), %rdi
movq %rdi, -0x428(%rbp)
callq 0x119d0
movq -0x428(%rbp), %rdx
leaq 0x10b7c7(%rip), %rsi    # 0x1511f2
leaq -0x1d8(%rbp), %rdi
callq 0x24740
jmp 0x45a39
movq -0x3a8(%rbp), %rsi
movq -0x3b8(%rbp), %rdi
movq %rsi, %rcx
addq $0x58, %rcx
leaq -0x1d8(%rbp), %rdx
callq 0x3f820
jmp 0x45a5c
leaq -0x1d8(%rbp), %rdi
callq 0x11360
leaq -0x1d9(%rbp), %rdi
callq 0x11600
movl $0x1, -0x198(%rbp)
jmp 0x45b1a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x45ab5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x1d8(%rbp), %rdi
callq 0x11360
leaq -0x1d9(%rbp), %rdi
callq 0x11600
jmp 0x45b3b
movq -0x3a8(%rbp), %rdi
callq 0x38fd0
jmp 0x45ad1
leaq 0x19ffc0(%rip), %rdi    # 0x1e5a98
leaq -0x1b8(%rbp), %rsi
callq 0x2cb10
movq %rax, -0x430(%rbp)
jmp 0x45aed
movq -0x430(%rbp), %rax
movq %rax, -0x1e8(%rbp)
leaq -0xf8(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
callq 0x58120
jmp 0x45b10
movl $0x0, -0x198(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0x11360
movl -0x198(%rbp), %eax
testl %eax, %eax
jne 0x463ee
jmp 0x45b36
jmp 0x45644
leaq -0x1b8(%rbp), %rdi
callq 0x11360
jmp 0x46416
movq -0x3a8(%rbp), %rdi
callq 0x38fd0
jmp 0x45b5a
jmp 0x45b5c
movq -0x3a8(%rbp), %rax
cmpl $0x7b, 0xd0(%rax)
je 0x45d8f
movq -0x3a8(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x1f8(%rbp), %rdi
callq 0x3f500
jmp 0x45b89
leaq -0x1f8(%rbp), %rdi
callq 0x57630
testb $0x1, %al
jne 0x45c59
leaq -0x219(%rbp), %rdi
movq %rdi, -0x438(%rbp)
callq 0x119d0
movq -0x438(%rbp), %rdx
leaq 0x10b668(%rip), %rsi    # 0x151226
leaq -0x218(%rbp), %rdi
callq 0x24740
jmp 0x45bcc
movq -0x3a8(%rbp), %rsi
movq -0x3b8(%rbp), %rdi
movq %rsi, %rcx
addq $0x58, %rcx
leaq -0x218(%rbp), %rdx
callq 0x3f820
jmp 0x45bef
leaq -0x218(%rbp), %rdi
callq 0x11360
leaq -0x219(%rbp), %rdi
callq 0x11600
movl $0x1, -0x198(%rbp)
jmp 0x45d6d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x45c48
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x218(%rbp), %rdi
callq 0x11360
leaq -0x219(%rbp), %rdi
callq 0x11600
jmp 0x45d7e
movq -0x18(%rbp), %rdi
callq 0x58270
testb $0x1, -0xa5(%rbp)
je 0x45cf0
movq -0x3a8(%rbp), %r9
movq -0x18(%rbp), %rsi
movl $0x0, -0x234(%rbp)
addq $0x58, %r9
leaq -0x230(%rbp), %rdi
leaq -0x234(%rbp), %rdx
leaq -0x1f8(%rbp), %rcx
leaq -0xf8(%rbp), %r8
callq 0x58860
jmp 0x45cab
movq -0x3b8(%rbp), %rdi
leaq -0x230(%rbp), %rsi
callq 0x58340
leaq -0x230(%rbp), %rdi
callq 0x58370
movl $0x1, -0x198(%rbp)
jmp 0x45d6d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x45d7e
movq -0x3a8(%rbp), %rcx
movq -0x18(%rbp), %rsi
movl $0x0, -0x24c(%rbp)
leaq -0xc0(%rbp), %r8
addq $0x58, %rcx
movq %rsp, %rax
movq %rcx, 0x8(%rax)
leaq -0xf8(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x248(%rbp), %rdi
leaq -0x24c(%rbp), %rdx
leaq -0xd8(%rbp), %rcx
leaq -0x1f8(%rbp), %r9
callq 0x58900
jmp 0x45d44
movq -0x3b8(%rbp), %rdi
leaq -0x248(%rbp), %rsi
callq 0x58440
leaq -0x248(%rbp), %rdi
callq 0x58470
movl $0x1, -0x198(%rbp)
leaq -0x1f8(%rbp), %rdi
callq 0x24b20
jmp 0x463ee
leaq -0x1f8(%rbp), %rdi
callq 0x24b20
jmp 0x46416
leaq -0x268(%rbp), %rdi
callq 0x57390
movq -0x3a8(%rbp), %rdi
callq 0x38fd0
jmp 0x45da9
jmp 0x45dab
movq -0x3a8(%rbp), %rax
cmpl $0x0, 0xd0(%rax)
je 0x45f49
movq -0x3a8(%rbp), %rax
cmpl $0x0, 0xd0(%rax)
je 0x45ddf
movq -0x3a8(%rbp), %rax
cmpl $0x7d, 0xd0(%rax)
jne 0x45dfb
jmp 0x45f49
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x463e0
movq -0x3a8(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x278(%rbp), %rdi
callq 0x39980
jmp 0x45e14
leaq -0x278(%rbp), %rdi
callq 0x57630
testb $0x1, %al
jne 0x45e26
jmp 0x45e57
leaq -0x268(%rbp), %rdi
leaq -0x278(%rbp), %rsi
callq 0x57650
jmp 0x45e3b
jmp 0x45f0d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x45f38
leaq -0x299(%rbp), %rdi
movq %rdi, -0x440(%rbp)
callq 0x119d0
movq -0x440(%rbp), %rdx
leaq 0x10b3ae(%rip), %rsi    # 0x151226
leaq -0x298(%rbp), %rdi
callq 0x24740
jmp 0x45e86
movq -0x3a8(%rbp), %rsi
movq -0x3b8(%rbp), %rdi
movq %rsi, %rcx
addq $0x58, %rcx
leaq -0x298(%rbp), %rdx
callq 0x3f820
jmp 0x45ea9
leaq -0x298(%rbp), %rdi
callq 0x11360
leaq -0x299(%rbp), %rdi
callq 0x11600
movl $0x1, -0x198(%rbp)
jmp 0x45f17
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x45eff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x298(%rbp), %rdi
callq 0x11360
leaq -0x299(%rbp), %rdi
callq 0x11600
jmp 0x45f38
movl $0x0, -0x198(%rbp)
leaq -0x278(%rbp), %rdi
callq 0x24b20
movl -0x198(%rbp), %eax
testl %eax, %eax
jne 0x463d2
jmp 0x45f33
jmp 0x45dab
leaq -0x278(%rbp), %rdi
callq 0x24b20
jmp 0x463e0
movq -0x3a8(%rbp), %rax
cmpl $0x7d, 0xd0(%rax)
je 0x46266
leaq -0x2e1(%rbp), %rdi
movq %rdi, -0x448(%rbp)
callq 0x119d0
movq -0x448(%rbp), %rdx
leaq 0x10b212(%rip), %rsi    # 0x151190
leaq -0x2e0(%rbp), %rdi
callq 0x24740
jmp 0x45f8c
movb $0x1, -0x33a(%rbp)
leaq -0x330(%rbp), %rax
movq %rax, -0x458(%rbp)
movq %rax, -0x338(%rbp)
leaq -0x339(%rbp), %rdi
movq %rdi, -0x450(%rbp)
callq 0x119d0
movq -0x458(%rbp), %rdi
movq -0x450(%rbp), %rdx
leaq 0x10f339(%rip), %rsi    # 0x155309
callq 0x24740
jmp 0x45fd7
movb $0x0, -0x33a(%rbp)
leaq -0x330(%rbp), %rax
movq %rax, -0x310(%rbp)
movq $0x1, -0x308(%rbp)
leaq -0x33b(%rbp), %rdi
movq %rdi, -0x460(%rbp)
callq 0x26e30
movq -0x460(%rbp), %rcx
movq -0x310(%rbp), %rsi
movq -0x308(%rbp), %rdx
leaq -0x300(%rbp), %rdi
callq 0x2d6a0
jmp 0x4602d
leaq -0x2c0(%rbp), %rdi
leaq -0x2e0(%rbp), %rsi
leaq -0x300(%rbp), %rdx
callq 0x9e250
jmp 0x46049
movq -0x3a8(%rbp), %rsi
movq -0x3b8(%rbp), %rdi
movq %rsi, %rcx
addq $0x58, %rcx
leaq -0x2c0(%rbp), %rdx
callq 0x3f820
jmp 0x4606c
leaq -0x2c0(%rbp), %rdi
callq 0x11360
leaq -0x300(%rbp), %rdi
callq 0x25b00
leaq -0x33b(%rbp), %rdi
callq 0x279c0
leaq -0x330(%rbp), %rax
movq %rax, -0x470(%rbp)
addq $0x20, %rax
movq %rax, -0x468(%rbp)
movq -0x468(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x478(%rbp)
callq 0x11360
movq -0x470(%rbp), %rcx
movq -0x478(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x468(%rbp)
jne 0x460a9
leaq -0x339(%rbp), %rdi
callq 0x11600
leaq -0x2e0(%rbp), %rdi
callq 0x11360
leaq -0x2e1(%rbp), %rdi
callq 0x11600
movl $0x1, -0x198(%rbp)
jmp 0x463d2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x46255
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x461e5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x4618d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x46181
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x2c0(%rbp), %rdi
callq 0x11360
leaq -0x300(%rbp), %rdi
callq 0x25b00
leaq -0x33b(%rbp), %rdi
callq 0x279c0
leaq -0x330(%rbp), %rax
movq %rax, -0x488(%rbp)
addq $0x20, %rax
movq %rax, -0x480(%rbp)
movq -0x480(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x490(%rbp)
callq 0x11360
movq -0x488(%rbp), %rcx
movq -0x490(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x480(%rbp)
jne 0x461b2
jmp 0x461e5
leaq -0x339(%rbp), %rdi
callq 0x11600
testb $0x1, -0x33a(%rbp)
jne 0x461fc
jmp 0x46249
movq -0x338(%rbp), %rax
leaq -0x330(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x498(%rbp)
je 0x46247
movq -0x498(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x4a0(%rbp)
callq 0x11360
movq -0x4a0(%rbp), %rax
leaq -0x330(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x498(%rbp)
jne 0x46216
jmp 0x46249
leaq -0x2e0(%rbp), %rdi
callq 0x11360
leaq -0x2e1(%rbp), %rdi
callq 0x11600
jmp 0x463e0
movq -0x3a8(%rbp), %rdi
callq 0x38fd0
jmp 0x46274
movq -0x3a8(%rbp), %r8
movq -0x18(%rbp), %rsi
movb $0x1, -0x351(%rbp)
addq $0x58, %r8
leaq -0x350(%rbp), %rdi
leaq -0x268(%rbp), %rdx
leaq -0x351(%rbp), %rcx
callq 0x573e0
jmp 0x462a6
movq -0x18(%rbp), %rdi
callq 0x58270
testb $0x1, -0xa5(%rbp)
je 0x46349
movq -0x3a8(%rbp), %r9
movq -0x18(%rbp), %rsi
movl $0x0, -0x36c(%rbp)
addq $0x58, %r9
leaq -0x368(%rbp), %rdi
leaq -0x36c(%rbp), %rdx
leaq -0x350(%rbp), %rcx
leaq -0xf8(%rbp), %r8
callq 0x589b0
jmp 0x462f8
movq -0x3b8(%rbp), %rdi
leaq -0x368(%rbp), %rsi
callq 0x58340
leaq -0x368(%rbp), %rdi
callq 0x58370
movl $0x1, -0x198(%rbp)
jmp 0x463c6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x350(%rbp), %rdi
callq 0x574a0
jmp 0x463e0
movq -0x3a8(%rbp), %rcx
movq -0x18(%rbp), %rsi
movl $0x0, -0x384(%rbp)
leaq -0xc0(%rbp), %r8
addq $0x58, %rcx
movq %rsp, %rax
movq %rcx, 0x8(%rax)
leaq -0xf8(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x380(%rbp), %rdi
leaq -0x384(%rbp), %rdx
leaq -0xd8(%rbp), %rcx
leaq -0x350(%rbp), %r9
callq 0x58a50
jmp 0x4639d
movq -0x3b8(%rbp), %rdi
leaq -0x380(%rbp), %rsi
callq 0x58440
leaq -0x380(%rbp), %rdi
callq 0x58470
movl $0x1, -0x198(%rbp)
leaq -0x350(%rbp), %rdi
callq 0x574a0
leaq -0x268(%rbp), %rdi
callq 0x574c0
jmp 0x463ee
leaq -0x268(%rbp), %rdi
callq 0x574c0
jmp 0x46416
leaq -0xf8(%rbp), %rdi
callq 0x2ce90
leaq -0xd8(%rbp), %rdi
callq 0x585e0
movq -0x3b0(%rbp), %rax
addq $0x4b0, %rsp            # imm = 0x4B0
popq %rbp
retq
leaq -0xf8(%rbp), %rdi
callq 0x2ce90
leaq -0xd8(%rbp), %rdi
callq 0x585e0
movq -0xa0(%rbp), %rdi
callq 0x119c0
nopw (%rax,%rax)