// File: /workspace/github_cpp_makefile_star2_O1/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 0x5c6ee
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 0x68108
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x5c6e5
callq 0x1e6ee
addq $0x10, %r13
cmpq %rbp, %r13
jne 0x5c6bf
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 0x682d2
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
movl 0xb0(%r14), %eax
cmpl $-0x2f, %eax
je 0x5c758
cmpl $-0x1e, %eax
je 0x5c74e
cmpl $-0x1d, %eax
jne 0x5c875
movl $0x1, 0xc(%rsp)
jmp 0x5c760
movl $0x2, 0xc(%rsp)
jmp 0x5c760
movl $0x4, 0xc(%rsp)
movq 0xd0(%r14), %rsi
testq %rsi, %rsi
je 0x5c7e3
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 0x69188
addq $0x10, %rsp
movq 0x10(%rsp), %rax
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x18(%rsp), %rcx
movq %rax, 0x18(%rsp)
movq %rcx, 0x8(%rbx)
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x5c83d
callq 0x1e6ee
jmp 0x5c83d
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 0x68fde
addq $0x10, %rsp
movq 0x10(%rsp), %rax
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x18(%rsp), %rcx
movq %rax, 0x18(%rsp)
movq %rcx, 0x8(%rbx)
leaq 0x70(%rsp), %rdi
callq 0x1d77a
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5c856
callq 0x1e6ee
leaq 0x40(%rsp), %rdi
callq 0x677d6
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 0x2a365(%rip), %rsi     # 0x86bf8
leaq 0x2a371(%rip), %rdx     # 0x86c0b
leaq 0x10(%rsp), %rdi
callq 0x1e7ca
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x70(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rdx
callq 0x476dc
xorl %ebp, %ebp
leaq 0x5641b(%rip), %rsi     # 0xb2ce0
leaq -0x25118(%rip), %rdx    # 0x377b4
movq %r14, %rdi
callq 0x106d0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x5c8f6
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x5c8f6
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x5c91e
movq %r14, %rdi
callq 0x102d0
jmp 0x5c91e
jmp 0x5c91b
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x5c91e
callq 0x1e6ee
jmp 0x5c91e
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x1d77a
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5c94d
jmp 0x5c948
jmp 0x5c936
movq %rax, %rbx
jmp 0x5c94d
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x5c94d
callq 0x1e6ee
leaq 0x40(%rsp), %rdi
callq 0x677d6
movq %rbx, %rdi
callq 0x106f0
nop