// File: /workspace/github_cpp_makefile_star2_O2/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, 0x8(%rsp)
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %r12
movaps %xmm0, (%r12)
andq $0x0, 0x10(%r12)
movq 0xb8(%rsi), %rbp
movq 0xc0(%rsi), %rbx
leaq 0x38(%rsp), %r15
leaq 0x30(%rsp), %r13
cmpq %rbx, %rbp
je 0x50aee
movq (%rbp), %rsi
movq (%rsi), %rax
movq %r13, %rdi
callq *(%rax)
movq %r12, %rdi
movq %r13, %rsi
callq 0x5a2b6
movq %r15, %rdi
callq 0x1d786
addq $0x10, %rbp
jmp 0x50ac4
leaq 0x28(%r14), %r15
leaq 0x20(%rsp), %rdi
leaq 0x70(%rsp), %rsi
movq %r15, %rdx
callq 0x58a01
andq $0x0, 0x60(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movl 0xb0(%r14), %eax
cmpl $-0x2f, %eax
je 0x50b40
cmpl $-0x1e, %eax
je 0x50b36
cmpl $-0x1d, %eax
jne 0x50c26
movl $0x1, 0x4(%rsp)
jmp 0x50b48
movl $0x2, 0x4(%rsp)
jmp 0x50b48
movl $0x4, 0x4(%rsp)
movq 0xd0(%r14), %rsi
testq %rsi, %rsi
je 0x50baa
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
callq *(%rax)
addq $0xa8, %r14
leaq 0x30(%rsp), %rdi
leaq 0x4(%rsp), %rdx
leaq 0x20(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %r14, %rsi
movq %r15, %r9
callq 0x58cfd
leaq 0x38(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
andq $0x0, (%rdi)
movq 0x8(%rsp), %rbx
movups %xmm0, (%rbx)
andq $0x0, -0x8(%rdi)
callq 0x1d786
leaq 0x18(%rsp), %rdi
jmp 0x50bee
addq $0xa8, %r14
leaq 0x10(%rsp), %r8
andq $0x0, (%r8)
leaq 0x30(%rsp), %rdi
leaq 0x4(%rsp), %rdx
leaq 0x20(%rsp), %rcx
movq %r14, %rsi
movq %r15, %r9
callq 0x58ccf
leaq 0x38(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
andq $0x0, (%rdi)
movq 0x8(%rsp), %rbx
movups %xmm0, (%rbx)
andq $0x0, -0x8(%rdi)
callq 0x1d786
leaq 0x50(%rsp), %rdi
callq 0x1cb1a
leaq 0x28(%rsp), %rdi
callq 0x1d786
leaq 0x70(%rsp), %rdi
callq 0x58a44
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xa8, %edi
callq 0x101f0
movq %rax, %r14
leaq 0x27fd4(%rip), %rsi     # 0x78c0e
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x1c814
movb $0x1, %bpl
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rdx
callq 0x3ebb8
xorl %ebp, %ebp
leaq 0x61036(%rip), %rsi     # 0xb1ca0
leaq -0x217ff(%rip), %rdx    # 0x2f472
movq %r14, %rdi
callq 0x106c0
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x101d0
testb %bpl, %bpl
jne 0x50c90
jmp 0x50cae
movq %rax, %rbx
movq %r14, %rdi
callq 0x102e0
jmp 0x50cae
jmp 0x50cab
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1d786
jmp 0x50cae
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x1cb1a
leaq 0x28(%rsp), %rdi
jmp 0x50ccc
jmp 0x50cc1
movq %rax, %rbx
jmp 0x50cd1
movq %rax, %rbx
movq %r15, %rdi
callq 0x1d786
leaq 0x70(%rsp), %rdi
callq 0x58a44
movq %rbx, %rdi
callq 0x106f0
nop