// File: /workspace/github_cpp_makefile_star2_O3/Nallantli[P]Rossa/main/rossa/node/node.cpp
// Function: ClassNode::genParser() const
ptr_instruction_t ClassNode::genParser() const
{
	std::vector<ptr_instruction_t> is;
	for (auto &e : this->body)
		is.push_back(e->genParser());
	auto bodyI = std::make_shared<ScopeI>(is, token);
	trace_t stack_trace;

	scope_type_enum ot;
	switch (type)
	{
	case TOK_STRUCT:
		ot = scope_type_enum::SCOPE_STRUCT;
		break;
	case TOK_STATIC:
		ot = scope_type_enum::SCOPE_STATIC;
		break;
	case TOK_VIRTUAL:
		ot = scope_type_enum::SCOPE_VIRTUAL;
		break;
	default:
		throw rossa_error_t(_INVALID_OBJECT_TYPE_, token, stack_trace);
	}

	if (extends == nullptr)
		return std::make_shared<ClassI>(key, ot, bodyI, nullptr, token);
	else
		return std::make_shared<ClassI>(key, ot, bodyI, extends->genParser(), token);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq 0xb8(%rsi), %r13
movq 0xc0(%rsi), %rbp
cmpq %rbp, %r13
je 0x5bcda
leaq 0x10(%rsp), %r15
leaq 0x40(%rsp), %r12
movq (%r13), %rsi
movq (%rsi), %rax
movq %r15, %rdi
callq *(%rax)
movq %r12, %rdi
movq %r15, %rsi
callq 0x67370
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x5bcd1
callq 0x1e5bc
addq $0x10, %r13
cmpq %rbp, %r13
jne 0x5bcab
leaq 0x28(%r14), %r15
leaq 0x38(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x30(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0x40(%rsp), %rcx
movq %r15, %r8
callq 0x67526
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
movl 0xb0(%r14), %eax
cmpl $-0x2f, %eax
je 0x5bd44
cmpl $-0x1e, %eax
je 0x5bd3a
cmpl $-0x1d, %eax
jne 0x5be40
movl $0x1, 0xc(%rsp)
jmp 0x5bd4c
movl $0x2, 0xc(%rsp)
jmp 0x5bd4c
movl $0x4, 0xc(%rsp)
movq 0xd0(%r14), %rsi
testq %rsi, %rsi
je 0x5bdc2
movq (%rsi), %rax
leaq 0x60(%rsp), %r12
movq %r12, %rdi
callq *(%rax)
addq $0xa8, %r14
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0xc(%rsp), %r8
leaq 0x30(%rsp), %r9
movq %r14, %rcx
pushq %r15
pushq %r12
callq 0x683b8
addq $0x10, %rsp
movaps 0x10(%rsp), %xmm0
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movups %xmm0, (%rbx)
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x5be08
callq 0x1e5bc
jmp 0x5be08
addq $0xa8, %r14
xorl %eax, %eax
leaq 0x60(%rsp), %r10
movq %rax, (%r10)
leaq 0x18(%rsp), %rdi
movq %rax, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0xc(%rsp), %r8
leaq 0x30(%rsp), %r9
movq %r14, %rcx
pushq %r15
pushq %r10
callq 0x68214
addq $0x10, %rsp
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rbx)
leaq 0x70(%rsp), %rdi
callq 0x1d632
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5be21
callq 0x1e5bc
leaq 0x40(%rsp), %rdi
callq 0x66a3c
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xa8, %edi
callq 0x101e0
movq %rax, %r14
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x29dba(%rip), %rsi     # 0x85c18
leaq 0x29dc6(%rip), %rdx     # 0x85c2b
leaq 0x10(%rsp), %rdi
callq 0x1e698
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x70(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rdx
callq 0x46e88
xorl %ebp, %ebp
leaq 0x54e90(%rip), %rsi     # 0xb0d20
leaq -0x24bf3(%rip), %rdx    # 0x372a4
movq %r14, %rdi
callq 0x106d0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x5beb9
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
testb %bpl, %bpl
jne 0x5bec3
jmp 0x5bee6
movq %rax, %rbx
movq %r14, %rdi
callq 0x102d0
jmp 0x5bee6
jmp 0x5bee3
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x5bee6
callq 0x1e5bc
jmp 0x5bee6
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x1d632
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5bf15
jmp 0x5bf10
jmp 0x5befe
movq %rax, %rbx
jmp 0x5bf15
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x5bf15
callq 0x1e5bc
leaq 0x40(%rsp), %rdi
callq 0x66a3c
movq %rbx, %rdi
callq 0x106f0
nop