// File: /workspace/github_cpp_makefile_star2_O1/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 0x41262
cmpl $-0x5, %eax
je 0x75535
cmpl $-0x2, %eax
jne 0x755d9
addq $0x8, %r15
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x40b0c
movq %rax, %rdi
callq 0x479d4
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 0x404ac
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x75519
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0x20(%rsp), %rdi
callq 0x404da
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 0xec29(%rip), %rdx      # 0x8416e
movq %rsp, %rdi
movq %rdx, %rsi
callq 0x1e7ca
addq $0x8, %r15
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x40f46
leaq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x43f8e
movq 0x30(%rsp), %r12
movq 0x38(%rsp), %rbp
cmpq %rbp, %r12
je 0x755ad
movq %rsp, %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x40b0c
movq %rax, %rdi
callq 0x479d4
movsbl %al, %esi
movq %r13, %rdi
callq 0x10340
addq $0x10, %r12
cmpq %rbp, %r12
jne 0x75583
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x404ac
leaq 0x30(%rsp), %rdi
callq 0x20a84
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
jne 0x7550c
jmp 0x75519
movl $0xa8, %edi
callq 0x101e0
movq %rax, %r12
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x131d2(%rip), %rsi     # 0x887c8
leaq 0x131ec(%rip), %rdx     # 0x887e9
movq %rsp, %rdi
callq 0x1e7ca
addq $0x8, %r15
movb $0x1, %bpl
movq %rsp, %rsi
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x476dc
xorl %ebp, %ebp
leaq 0x3d6ba(%rip), %rsi     # 0xb2ce0
leaq -0x3de79(%rip), %rdx    # 0x377b4
movq %r12, %rdi
callq 0x106d0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x75656
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x75656
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x756ad
movq %r12, %rdi
callq 0x102d0
jmp 0x756ad
jmp 0x75685
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x756a0
jmp 0x756ad
jmp 0x75680
jmp 0x75680
jmp 0x75680
movq %rax, %rbx
jmp 0x75692
movq %rax, %rbx
jmp 0x756ad
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x20a84
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x756ad
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0x20(%rsp), %rdi
callq 0x404da
movq %rbx, %rdi
callq 0x106f0
nop