// File: /workspace/github_cpp_makefile_star2_O3/Nallantli[P]Rossa/main/rossa/instruction/instruction.cpp
// Function: CharSI::evaluate(object_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&) const
const symbol_t CharSI::evaluate(const object_t *scope, trace_t &stack_trace) const
{
	const symbol_t evalA = a->evaluate(scope, stack_trace);
	switch (evalA.getValueType())
	{
	case value_type_enum::NUMBER:
		return symbol_t::String(std::string(1, static_cast<char>(evalA.getNumber(&token, stack_trace).getLong())));
	case value_type_enum::ARRAY:
	{
		std::string ret = "";
		const std::vector<symbol_t> v = evalA.getVector(&token, stack_trace);
		for (const symbol_t &e : v)
			ret.push_back(static_cast<char>(e.getNumber(&token, stack_trace).getLong()));
		return symbol_t::String(ret);
	}
	default:
		throw rossa_error_t(_FAILURE_TO_STR_, token, stack_trace);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x90(%rsi), %rsi
movq (%rsi), %rax
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq *(%rax)
movq %r12, %rdi
callq 0x40b5a
cmpl $-0x5, %eax
je 0x7443b
cmpl $-0x2, %eax
jne 0x744df
addq $0x8, %r15
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x40416
movq %rax, %rdi
callq 0x47180
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movsbl %al, %edx
movq %rsp, %rdi
movl $0x1, %esi
callq 0x104c0
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3fdd8
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x7441f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0x20(%rsp), %rdi
callq 0x3fe06
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xed23(%rip), %rdx      # 0x8316e
movq %rsp, %rdi
movq %rdx, %rsi
callq 0x1e698
addq $0x8, %r15
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x40848
leaq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x437fe
movq 0x30(%rsp), %r12
movq 0x38(%rsp), %rbp
cmpq %rbp, %r12
je 0x744b3
movq %rsp, %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x40416
movq %rax, %rdi
callq 0x47180
movsbl %al, %esi
movq %r13, %rdi
callq 0x10340
addq $0x10, %r12
cmpq %rbp, %r12
jne 0x74489
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3fdd8
leaq 0x30(%rsp), %rdi
callq 0x20952
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
jne 0x74412
jmp 0x7441f
movl $0xa8, %edi
callq 0x101e0
movq %rax, %r12
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x132ec(%rip), %rsi     # 0x877e8
leaq 0x13306(%rip), %rdx     # 0x87809
movq %rsp, %rdi
callq 0x1e698
addq $0x8, %r15
movb $0x1, %bpl
movq %rsp, %rsi
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x46e88
xorl %ebp, %ebp
leaq 0x3c7f4(%rip), %rsi     # 0xb0d20
leaq -0x3d28f(%rip), %rdx    # 0x372a4
movq %r12, %rdi
callq 0x106d0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x74554
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
testb %bpl, %bpl
jne 0x7455e
jmp 0x745b0
movq %rax, %rbx
movq %r12, %rdi
callq 0x102d0
jmp 0x745b0
jmp 0x74588
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x745a3
jmp 0x745b0
jmp 0x74583
jmp 0x74583
jmp 0x74583
movq %rax, %rbx
jmp 0x74595
movq %rax, %rbx
jmp 0x745b0
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x20952
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x745b0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0x20(%rsp), %rdi
callq 0x3fe06
movq %rbx, %rdi
callq 0x106f0