// File: /workspace/github_cpp_makefile_star2_O1/Nallantli[P]Rossa/main/rossa/node/node.cpp
// Function: CallBuiltNode::genParser() const
ptr_instruction_t CallBuiltNode::genParser() const
{
	trace_t stack_trace;
	switch (t)
	{
	case TOK_LENGTH:
		if (args.size() > 1)
		{
			throw rossa_error_t(util::format(_TOO_MANY_ARGUMENTS_, {KEYWORD_LENGTH}), token, stack_trace);
		}
		return std::make_shared<LengthI>(args[0]->genParser(), token);
	case TOK_ALLOC:
		if (args.size() > 2)
		{
			throw rossa_error_t(util::format(_TOO_MANY_ARGUMENTS_, {KEYWORD_ALLOC}), token, stack_trace);
		}
		return std::make_shared<AllocI>(args[0]->genParser(), args.size() > 1 ? args[1]->genParser() : nullptr, token);
	case TOK_PARSE:
		if (args.size() > 1)
		{
			throw rossa_error_t(util::format(_TOO_MANY_ARGUMENTS_, {KEYWORD_PARSE}), token, stack_trace);
		}
		return std::make_shared<ParseI>(args[0]->genParser(), token);
	case TOK_CHARN:
		if (args.size() > 1)
		{
			throw rossa_error_t(util::format(_TOO_MANY_ARGUMENTS_, {KEYWORD_CHAR_N}), token, stack_trace);
		}
		return std::make_shared<CharNI>(args[0]->genParser(), token);
	case TOK_CHARS:
		if (args.size() > 1)
		{
			throw rossa_error_t(util::format(_TOO_MANY_ARGUMENTS_, {KEYWORD_CHAR_S}), token, stack_trace);
		}
		return std::make_shared<CharSI>(args[0]->genParser(), token);
	default:
		break;
	}

	throw rossa_error_t(util::format(_UNKNOWN_BUILT_CALL_, {std::to_string(t)}), token, stack_trace);
	return nullptr;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xb0, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
movq $0x0, 0xa0(%rsp)
movl 0xa8(%rsi), %eax
cmpl $-0x35, %eax
jle 0x5e053
cmpl $-0x34, %eax
je 0x5e0ba
cmpl $-0x26, %eax
je 0x5e10f
cmpl $-0x1a, %eax
jne 0x5e273
movq 0xb0(%rbx), %rax
movq 0xb8(%rbx), %rcx
subq %rax, %rcx
cmpq $0x11, %rcx
jae 0x5e48c
movq (%rax), %rsi
movq (%rsi), %rax
leaq 0x30(%rsp), %rdi
callq *(%rax)
addq $0x28, %rbx
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0x50(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq %rbx, %r8
callq 0x69bb2
jmp 0x5e1b5
cmpl $-0x39, %eax
je 0x5e165
cmpl $-0x35, %eax
jne 0x5e273
movq 0xb0(%rbx), %rax
movq 0xb8(%rbx), %rcx
subq %rax, %rcx
cmpq $0x11, %rcx
jae 0x5e5fe
movq (%rax), %rsi
movq (%rsi), %rax
leaq 0x30(%rsp), %rdi
callq *(%rax)
addq $0x28, %rbx
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0x50(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq %rbx, %r8
callq 0x69f4e
jmp 0x5e1b5
movq 0xb0(%rbx), %rax
movq 0xb8(%rbx), %rcx
subq %rax, %rcx
cmpq $0x11, %rcx
jae 0x5e31a
movq (%rax), %rsi
movq (%rsi), %rax
leaq 0x30(%rsp), %rdi
callq *(%rax)
addq $0x28, %rbx
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0x50(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq %rbx, %r8
callq 0x69e6a
jmp 0x5e1b5
movq 0xb0(%rbx), %rax
movq 0xb8(%rbx), %rcx
subq %rax, %rcx
cmpq $0x21, %rcx
jae 0x5e3d3
movq (%rax), %rsi
movq (%rsi), %rax
leaq 0x30(%rsp), %rdi
callq *(%rax)
movq 0xb0(%rbx), %rax
movq 0xb8(%rbx), %rcx
subq %rax, %rcx
cmpq $0x11, %rcx
jb 0x5e205
movq 0x10(%rax), %rsi
movq (%rsi), %rax
leaq 0x50(%rsp), %rdi
callq *(%rax)
jmp 0x5e20d
movq 0xb0(%rbx), %rax
movq 0xb8(%rbx), %rcx
subq %rax, %rcx
cmpq $0x11, %rcx
jae 0x5e545
movq (%rax), %rsi
movq (%rsi), %rax
leaq 0x30(%rsp), %rdi
callq *(%rax)
addq $0x28, %rbx
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0x50(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq %rbx, %r8
callq 0x69d86
movq 0x10(%rsp), %rax
movq %rax, (%r14)
xorl %eax, %eax
movq %rax, 0x8(%r14)
movq 0x18(%rsp), %rcx
movq %rax, 0x18(%rsp)
movq %rcx, 0x8(%r14)
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5e1e5
callq 0x1e6ee
leaq 0x90(%rsp), %rdi
callq 0x1d77a
movq %r14, %rax
addq $0xb0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
addq $0x28, %rbx
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0x78(%rsp), %rdx
leaq 0x30(%rsp), %rcx
leaq 0x50(%rsp), %r8
movq %rbx, %r9
callq 0x69c96
movq 0x10(%rsp), %rax
movq %rax, (%r14)
xorl %eax, %eax
movq %rax, 0x8(%r14)
movq 0x18(%rsp), %rcx
movq %rax, 0x18(%rsp)
movq %rcx, 0x8(%r14)
movq %rax, 0x10(%rsp)
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x5e1d6
callq 0x1e6ee
jmp 0x5e1d6
movl $0xa8, %edi
callq 0x101e0
movq %rax, %r14
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x289d4(%rip), %rsi     # 0x86c64
leaq 0x289eb(%rip), %rdx     # 0x86c82
leaq 0x30(%rsp), %rdi
callq 0x1e7ca
movl 0xa8(%rbx), %esi
leaq 0x50(%rsp), %rdi
callq 0x67878
leaq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x48694
addq $0x28, %rbx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x90(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x476dc
xorl %ebp, %ebp
leaq 0x549da(%rip), %rsi     # 0xb2ce0
leaq -0x26b59(%rip), %rdx    # 0x377b4
movq %r14, %rdi
callq 0x106d0
jmp 0x5e6b2
movl $0xa8, %edi
callq 0x101e0
movq %rax, %r14
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x288fa(%rip), %rsi     # 0x86c31
leaq 0x28925(%rip), %rdx     # 0x86c63
leaq 0x30(%rsp), %rdi
callq 0x1e7ca
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x26234(%rip), %rsi     # 0x8458d
leaq 0x26232(%rip), %rdx     # 0x84592
leaq 0x50(%rsp), %rdi
callq 0x1e7ca
leaq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x48694
addq $0x28, %rbx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x90(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x476dc
xorl %ebp, %ebp
leaq 0x54921(%rip), %rsi     # 0xb2ce0
leaq -0x26c12(%rip), %rdx    # 0x377b4
movq %r14, %rdi
callq 0x106d0
jmp 0x5e6b2
movl $0xa8, %edi
callq 0x101e0
movq %rax, %r14
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x28841(%rip), %rsi     # 0x86c31
leaq 0x2886c(%rip), %rdx     # 0x86c63
leaq 0x30(%rsp), %rdi
callq 0x1e7ca
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2613a(%rip), %rsi     # 0x8454c
leaq 0x26138(%rip), %rdx     # 0x84551
leaq 0x50(%rsp), %rdi
callq 0x1e7ca
leaq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x48694
addq $0x28, %rbx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x90(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x476dc
xorl %ebp, %ebp
leaq 0x54868(%rip), %rsi     # 0xb2ce0
leaq -0x26ccb(%rip), %rdx    # 0x377b4
movq %r14, %rdi
callq 0x106d0
jmp 0x5e6b2
movl $0xa8, %edi
callq 0x101e0
movq %rax, %r14
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x28788(%rip), %rsi     # 0x86c31
leaq 0x287b3(%rip), %rdx     # 0x86c63
leaq 0x30(%rsp), %rdi
callq 0x1e7ca
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x25e57(%rip), %rsi     # 0x84322
leaq 0x25e53(%rip), %rdx     # 0x84325
leaq 0x50(%rsp), %rdi
callq 0x1e7ca
leaq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x48694
addq $0x28, %rbx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x90(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x476dc
xorl %ebp, %ebp
leaq 0x547af(%rip), %rsi     # 0xb2ce0
leaq -0x26d84(%rip), %rdx    # 0x377b4
movq %r14, %rdi
callq 0x106d0
jmp 0x5e6b2
movl $0xa8, %edi
callq 0x101e0
movq %rax, %r14
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x286cf(%rip), %rsi     # 0x86c31
leaq 0x286fa(%rip), %rdx     # 0x86c63
leaq 0x30(%rsp), %rdi
callq 0x1e7ca
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2601a(%rip), %rsi     # 0x8459e
leaq 0x26018(%rip), %rdx     # 0x845a3
leaq 0x50(%rsp), %rdi
callq 0x1e7ca
leaq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x48694
addq $0x28, %rbx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x90(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x476dc
xorl %ebp, %ebp
leaq 0x546f6(%rip), %rsi     # 0xb2ce0
leaq -0x26e3d(%rip), %rdx    # 0x377b4
movq %r14, %rdi
callq 0x106d0
jmp 0x5e6b2
movl $0xa8, %edi
callq 0x101e0
movq %rax, %r14
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x28616(%rip), %rsi     # 0x86c31
leaq 0x28641(%rip), %rdx     # 0x86c63
leaq 0x30(%rsp), %rdi
callq 0x1e7ca
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x25f56(%rip), %rsi     # 0x84593
leaq 0x25f54(%rip), %rdx     # 0x84598
leaq 0x50(%rsp), %rdi
callq 0x1e7ca
leaq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x48694
addq $0x28, %rbx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x90(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x476dc
xorl %ebp, %ebp
leaq 0x5463d(%rip), %rsi     # 0xb2ce0
leaq -0x26ef6(%rip), %rdx    # 0x377b4
movq %r14, %rdi
callq 0x106d0
jmp 0x5e6c2
jmp 0x5e6e2
jmp 0x5e6c2
jmp 0x5e6e2
jmp 0x5e6c2
jmp 0x5e6e2
jmp 0x5e6c2
jmp 0x5e6e2
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e6e8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x5e6e8
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x78(%rsp), %rdi
callq 0x1dca2
jmp 0x5e734
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e71a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x5e71a
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x78(%rsp), %rdi
callq 0x1dca2
jmp 0x5e753
jmp 0x5e72e
jmp 0x5e72e
jmp 0x5e72e
jmp 0x5e72e
movq %rax, %rbx
movb $0x1, %bpl
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x5e773
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x5e773
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x5e73e
jmp 0x5e773
jmp 0x5e76d
jmp 0x5e76d
jmp 0x5e76d
jmp 0x5e76d
jmp 0x5e76d
movq %rax, %rbx
movb $0x1, %bpl
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x5e79e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x5e79e
jmp 0x5e7c7
jmp 0x5e798
jmp 0x5e798
jmp 0x5e798
jmp 0x5e798
jmp 0x5e798
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x5e7e6
movq %r14, %rdi
callq 0x102d0
jmp 0x5e7e6
movq %rax, %rbx
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x5e7ca
callq 0x1e6ee
jmp 0x5e7ca
jmp 0x5e7c7
jmp 0x5e7c7
jmp 0x5e7c7
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5e7e6
callq 0x1e6ee
jmp 0x5e7e6
jmp 0x5e7e3
jmp 0x5e7e3
jmp 0x5e7e3
jmp 0x5e7e3
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x1d77a
movq %rbx, %rdi
callq 0x106f0
nop