// File: Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseThenNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*, std::shared_ptr<Node> const&)
ptr_node_t node_parser_t::parseThenNode(std::vector<node_scope_t> *scopes, const ptr_node_t &a)
{
	scopes->push_back({ROSSA_HASH("<IFI@" + std::to_string(scope_i++) + ">")});
	nextToken();
	auto b = parseEquNode(scopes);
	if (!b)
		return logErrorN(util::format(_EXPECTED_AFTER_, {"?"}), currentToken);
	if (currentToken.type != ':')
		return logErrorN(util::format(_EXPECTED_ERROR_, {":"}), currentToken);
	nextToken();
	auto c = parseEquNode(scopes);
	if (!c)
	{
		scopes->pop_back();
		return logErrorN(util::format(_EXPECTED_AFTER_, {":"}), currentToken);
	}
	auto ret = std::make_shared<IfElseNode>(*scopes, a, b, currentToken);
	ret->setElse(c);
	scopes->pop_back();
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x420, %rsp            # imm = 0x420
movq %rdi, -0x2f0(%rbp)
movq %rdi, %rax
movq %rax, -0x2e8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x2e0(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, -0x2d8(%rbp)
leaq -0x40(%rbp), %rcx
movq %rcx, -0x2d0(%rbp)
movq (%rax), %rsi
movq %rsi, %rcx
incq %rcx
movq %rcx, (%rax)
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x2c8(%rbp)
callq 0x58780
movq -0x2c8(%rbp), %rdx
leaq 0x102029(%rip), %rsi    # 0x151343
leaq -0x80(%rbp), %rdi
callq 0x24cb0
jmp 0x4f325
leaq 0x101034(%rip), %rdx    # 0x150360
leaq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x24c60
jmp 0x4f33b
leaq 0x196756(%rip), %rdi    # 0x1e5a98
leaq -0x60(%rbp), %rsi
callq 0x2cb10
movq %rax, -0x2f8(%rbp)
jmp 0x4f354
movq -0x2d0(%rbp), %rax
movq -0x2f8(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x38(%rbp), %rdi
xorps %xmm0, %xmm0
movups %xmm0, -0x38(%rbp)
movq $0x0, -0x28(%rbp)
callq 0x2ccf0
movq -0x2d8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x2ccc0
jmp 0x4f38f
leaq -0x40(%rbp), %rdi
callq 0x2cd10
leaq -0x60(%rbp), %rdi
callq 0x11360
leaq -0x80(%rbp), %rdi
callq 0x11360
leaq -0xa0(%rbp), %rdi
callq 0x11360
movq -0x2e0(%rbp), %rdi
callq 0x38fd0
movq -0x2e0(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0xc0(%rbp), %rdi
callq 0x3f500
leaq -0xc0(%rbp), %rdi
callq 0x57630
testb $0x1, %al
jne 0x4f770
leaq -0x101(%rbp), %rdi
movq %rdi, -0x300(%rbp)
callq 0x119d0
movq -0x300(%rbp), %rdx
leaq 0x101f13(%rip), %rsi    # 0x151321
leaq -0x100(%rbp), %rdi
callq 0x24740
jmp 0x4f41c
movb $0x1, -0x15a(%rbp)
leaq -0x150(%rbp), %rax
movq %rax, -0x310(%rbp)
movq %rax, -0x158(%rbp)
leaq -0x159(%rbp), %rdi
movq %rdi, -0x308(%rbp)
callq 0x119d0
movq -0x310(%rbp), %rdi
movq -0x308(%rbp), %rdx
leaq 0x101ee9(%rip), %rsi    # 0x151349
callq 0x24740
jmp 0x4f467
movb $0x0, -0x15a(%rbp)
leaq -0x150(%rbp), %rax
movq %rax, -0x130(%rbp)
movq $0x1, -0x128(%rbp)
leaq -0x15b(%rbp), %rdi
movq %rdi, -0x318(%rbp)
callq 0x26e30
movq -0x318(%rbp), %rcx
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
leaq -0x120(%rbp), %rdi
callq 0x2d6a0
jmp 0x4f4bd
leaq -0xe0(%rbp), %rdi
leaq -0x100(%rbp), %rsi
leaq -0x120(%rbp), %rdx
callq 0x9e250
jmp 0x4f4d9
movq -0x2e0(%rbp), %rsi
movq -0x2f0(%rbp), %rdi
movq %rsi, %rcx
addq $0x58, %rcx
leaq -0xe0(%rbp), %rdx
callq 0x3f820
jmp 0x4f4fc
leaq -0xe0(%rbp), %rdi
callq 0x11360
leaq -0x120(%rbp), %rdi
callq 0x25b00
leaq -0x15b(%rbp), %rdi
callq 0x279c0
leaq -0x150(%rbp), %rax
movq %rax, -0x328(%rbp)
addq $0x20, %rax
movq %rax, -0x320(%rbp)
movq -0x320(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x330(%rbp)
callq 0x11360
movq -0x328(%rbp), %rcx
movq -0x330(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x320(%rbp)
jne 0x4f539
leaq -0x159(%rbp), %rdi
callq 0x11600
leaq -0x100(%rbp), %rdi
callq 0x11360
leaq -0x101(%rbp), %rdi
callq 0x11600
movl $0x1, -0x160(%rbp)
jmp 0x4feba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4f606
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4f5fd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4f5f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x2cd10
leaq -0x60(%rbp), %rdi
callq 0x11360
leaq -0x80(%rbp), %rdi
callq 0x11360
leaq -0xa0(%rbp), %rdi
callq 0x11360
jmp 0x4fee2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4f75f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4f6ef
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4f697
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4f68b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x11360
leaq -0x120(%rbp), %rdi
callq 0x25b00
leaq -0x15b(%rbp), %rdi
callq 0x279c0
leaq -0x150(%rbp), %rax
movq %rax, -0x340(%rbp)
addq $0x20, %rax
movq %rax, -0x338(%rbp)
movq -0x338(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x348(%rbp)
callq 0x11360
movq -0x340(%rbp), %rcx
movq -0x348(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x338(%rbp)
jne 0x4f6bc
jmp 0x4f6ef
leaq -0x159(%rbp), %rdi
callq 0x11600
testb $0x1, -0x15a(%rbp)
jne 0x4f706
jmp 0x4f753
movq -0x158(%rbp), %rax
leaq -0x150(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x350(%rbp)
je 0x4f751
movq -0x350(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x358(%rbp)
callq 0x11360
movq -0x358(%rbp), %rax
leaq -0x150(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x350(%rbp)
jne 0x4f720
jmp 0x4f753
leaq -0x100(%rbp), %rdi
callq 0x11360
leaq -0x101(%rbp), %rdi
callq 0x11600
jmp 0x4fed6
movq -0x2e0(%rbp), %rax
cmpl $0x3a, 0xd0(%rax)
je 0x4fa8d
leaq -0x1a1(%rbp), %rdi
movq %rdi, -0x360(%rbp)
callq 0x119d0
movq -0x360(%rbp), %rdx
leaq 0x1019eb(%rip), %rsi    # 0x151190
leaq -0x1a0(%rbp), %rdi
callq 0x24740
jmp 0x4f7b3
movb $0x1, -0x1fa(%rbp)
leaq -0x1f0(%rbp), %rax
movq %rax, -0x370(%rbp)
movq %rax, -0x1f8(%rbp)
leaq -0x1f9(%rbp), %rdi
movq %rdi, -0x368(%rbp)
callq 0x119d0
movq -0x370(%rbp), %rdi
movq -0x368(%rbp), %rdx
leaq 0x105a07(%rip), %rsi    # 0x1551fe
callq 0x24740
jmp 0x4f7fe
movb $0x0, -0x1fa(%rbp)
leaq -0x1f0(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq $0x1, -0x1c8(%rbp)
leaq -0x1fb(%rbp), %rdi
movq %rdi, -0x378(%rbp)
callq 0x26e30
movq -0x378(%rbp), %rcx
movq -0x1d0(%rbp), %rsi
movq -0x1c8(%rbp), %rdx
leaq -0x1c0(%rbp), %rdi
callq 0x2d6a0
jmp 0x4f854
leaq -0x180(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
leaq -0x1c0(%rbp), %rdx
callq 0x9e250
jmp 0x4f870
movq -0x2e0(%rbp), %rsi
movq -0x2f0(%rbp), %rdi
movq %rsi, %rcx
addq $0x58, %rcx
leaq -0x180(%rbp), %rdx
callq 0x3f820
jmp 0x4f893
leaq -0x180(%rbp), %rdi
callq 0x11360
leaq -0x1c0(%rbp), %rdi
callq 0x25b00
leaq -0x1fb(%rbp), %rdi
callq 0x279c0
leaq -0x1f0(%rbp), %rax
movq %rax, -0x388(%rbp)
addq $0x20, %rax
movq %rax, -0x380(%rbp)
movq -0x380(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x390(%rbp)
callq 0x11360
movq -0x388(%rbp), %rcx
movq -0x390(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x380(%rbp)
jne 0x4f8d0
leaq -0x1f9(%rbp), %rdi
callq 0x11600
leaq -0x1a0(%rbp), %rdi
callq 0x11360
leaq -0x1a1(%rbp), %rdi
callq 0x11600
movl $0x1, -0x160(%rbp)
jmp 0x4feba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4fa7c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4fa0c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4f9b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4f9a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x180(%rbp), %rdi
callq 0x11360
leaq -0x1c0(%rbp), %rdi
callq 0x25b00
leaq -0x1fb(%rbp), %rdi
callq 0x279c0
leaq -0x1f0(%rbp), %rax
movq %rax, -0x3a0(%rbp)
addq $0x20, %rax
movq %rax, -0x398(%rbp)
movq -0x398(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3a8(%rbp)
callq 0x11360
movq -0x3a0(%rbp), %rcx
movq -0x3a8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x398(%rbp)
jne 0x4f9d9
jmp 0x4fa0c
leaq -0x1f9(%rbp), %rdi
callq 0x11600
testb $0x1, -0x1fa(%rbp)
jne 0x4fa23
jmp 0x4fa70
movq -0x1f8(%rbp), %rax
leaq -0x1f0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x3b0(%rbp)
je 0x4fa6e
movq -0x3b0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3b8(%rbp)
callq 0x11360
movq -0x3b8(%rbp), %rax
leaq -0x1f0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x3b0(%rbp)
jne 0x4fa3d
jmp 0x4fa70
leaq -0x1a0(%rbp), %rdi
callq 0x11360
leaq -0x1a1(%rbp), %rdi
callq 0x11600
jmp 0x4fed6
movq -0x2e0(%rbp), %rdi
callq 0x38fd0
jmp 0x4fa9b
movq -0x2e0(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x210(%rbp), %rdi
callq 0x3f500
jmp 0x4fab4
leaq -0x210(%rbp), %rdi
callq 0x57630
testb $0x1, %al
jne 0x4fdf1
movq -0x18(%rbp), %rdi
callq 0x58270
leaq -0x251(%rbp), %rdi
movq %rdi, -0x3c0(%rbp)
callq 0x119d0
movq -0x3c0(%rbp), %rdx
leaq 0x10182f(%rip), %rsi    # 0x151321
leaq -0x250(%rbp), %rdi
callq 0x24740
jmp 0x4fb00
movb $0x1, -0x2aa(%rbp)
leaq -0x2a0(%rbp), %rax
movq %rax, -0x3d0(%rbp)
movq %rax, -0x2a8(%rbp)
leaq -0x2a9(%rbp), %rdi
movq %rdi, -0x3c8(%rbp)
callq 0x119d0
movq -0x3d0(%rbp), %rdi
movq -0x3c8(%rbp), %rdx
leaq 0x1056ba(%rip), %rsi    # 0x1551fe
callq 0x24740
jmp 0x4fb4b
movb $0x0, -0x2aa(%rbp)
leaq -0x2a0(%rbp), %rax
movq %rax, -0x280(%rbp)
movq $0x1, -0x278(%rbp)
leaq -0x2ab(%rbp), %rdi
movq %rdi, -0x3d8(%rbp)
callq 0x26e30
movq -0x3d8(%rbp), %rcx
movq -0x280(%rbp), %rsi
movq -0x278(%rbp), %rdx
leaq -0x270(%rbp), %rdi
callq 0x2d6a0
jmp 0x4fba1
leaq -0x230(%rbp), %rdi
leaq -0x250(%rbp), %rsi
leaq -0x270(%rbp), %rdx
callq 0x9e250
jmp 0x4fbbd
movq -0x2e0(%rbp), %rsi
movq -0x2f0(%rbp), %rdi
movq %rsi, %rcx
addq $0x58, %rcx
leaq -0x230(%rbp), %rdx
callq 0x3f820
jmp 0x4fbe0
leaq -0x230(%rbp), %rdi
callq 0x11360
leaq -0x270(%rbp), %rdi
callq 0x25b00
leaq -0x2ab(%rbp), %rdi
callq 0x279c0
leaq -0x2a0(%rbp), %rax
movq %rax, -0x3e8(%rbp)
addq $0x20, %rax
movq %rax, -0x3e0(%rbp)
movq -0x3e0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3f0(%rbp)
callq 0x11360
movq -0x3e8(%rbp), %rcx
movq -0x3f0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x3e0(%rbp)
jne 0x4fc1d
leaq -0x2a9(%rbp), %rdi
callq 0x11600
leaq -0x250(%rbp), %rdi
callq 0x11360
leaq -0x251(%rbp), %rdi
callq 0x11600
movl $0x1, -0x160(%rbp)
jmp 0x4fe9e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4fed6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4fde0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4fd70
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4fd18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4fd0c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x230(%rbp), %rdi
callq 0x11360
leaq -0x270(%rbp), %rdi
callq 0x25b00
leaq -0x2ab(%rbp), %rdi
callq 0x279c0
leaq -0x2a0(%rbp), %rax
movq %rax, -0x400(%rbp)
addq $0x20, %rax
movq %rax, -0x3f8(%rbp)
movq -0x3f8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x408(%rbp)
callq 0x11360
movq -0x400(%rbp), %rcx
movq -0x408(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x3f8(%rbp)
jne 0x4fd3d
jmp 0x4fd70
leaq -0x2a9(%rbp), %rdi
callq 0x11600
testb $0x1, -0x2aa(%rbp)
jne 0x4fd87
jmp 0x4fdd4
movq -0x2a8(%rbp), %rax
leaq -0x2a0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x410(%rbp)
je 0x4fdd2
movq -0x410(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x418(%rbp)
callq 0x11360
movq -0x418(%rbp), %rax
leaq -0x2a0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x410(%rbp)
jne 0x4fda1
jmp 0x4fdd4
leaq -0x250(%rbp), %rdi
callq 0x11360
leaq -0x251(%rbp), %rdi
callq 0x11600
jmp 0x4feac
movq -0x2e0(%rbp), %r8
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
addq $0x58, %r8
leaq -0x2c0(%rbp), %rdi
leaq -0xc0(%rbp), %rcx
callq 0x59880
jmp 0x4fe19
leaq -0x2c0(%rbp), %rdi
callq 0x59910
movq %rax, %rdi
leaq -0x210(%rbp), %rsi
callq 0xdfac0
jmp 0x4fe36
movq -0x18(%rbp), %rdi
callq 0x58270
movq -0x2f0(%rbp), %rdi
leaq -0x2c0(%rbp), %rsi
callq 0x59930
movl $0x1, -0x160(%rbp)
leaq -0x2c0(%rbp), %rdi
callq 0x59960
jmp 0x4fe9e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x4feac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x2c0(%rbp), %rdi
callq 0x59960
jmp 0x4feac
leaq -0x210(%rbp), %rdi
callq 0x24b20
jmp 0x4feba
leaq -0x210(%rbp), %rdi
callq 0x24b20
jmp 0x4fed6
leaq -0xc0(%rbp), %rdi
callq 0x24b20
movq -0x2e8(%rbp), %rax
addq $0x420, %rsp            # imm = 0x420
popq %rbp
retq
leaq -0xc0(%rbp), %rdi
callq 0x24b20
movq -0xa8(%rbp), %rdi
callq 0x119c0
nop