// File: /workspace/github_cpp_makefile_star2_O2/vjeux[P]jspp/example/../src/operators.h
// Function: Object::toString[abi:cxx11]()
std::string Object::toString() {
	if (s->type == STRING) {
		return s->s;
	}

	if (s->type == NUMBER) {
		std::ostringstream stream;
		stream << s->n;
		return stream.str();
	}

	if (s->type == UNDEFINED) {
		return "undefined";
	}

	if (s->type == NULLL) {
		return "null";
	}

	if (s->type == FUNCTION) {
		std::ostringstream stream;
		stream << "<function " << s << ">";
		return stream.str();
	}

	if (s->type == OBJECT) {
		std::ostringstream stream;
		stream << "{";

		bool first = true;
		for (auto it = this->s->map.begin(); it != this->s->map.end(); ++it) {
			if (it->second != undefined) {
				if (!first) {
					stream << ", ";
				}
				first = false;
				stream << it->first << ": " << it->second;
			}
		}

		stream << "}";
		return stream.str();
	}

	if (s->type == ARRAY) {
		var length = (*this)["length"];
		std::ostringstream stream;
		stream << "[";

		for (var i = 0; i < length; ++i) {
			stream << (*this)[i];
			if (i != length - 1) {
				stream << ", ";
			}
		}

		stream << "]";
		return stream.str();
	}


	throw _("Unknown type");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2f8, %rsp            # imm = 0x2F8
movq %rsi, (%rsp)
movq 0x10(%rsi), %rsi
movl 0x38(%rsi), %eax
cmpq $0x6, %rax
ja 0x29b5
movq %rdi, %r14
leaq 0x6b4c(%rip), %rcx      # 0x9004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x168(%rsp), %rbx
movq %rbx, %rdi
callq 0x21f0
movq (%rsp), %rax
movq 0x10(%rax), %rax
movsd 0x40(%rax), %xmm0
movq %rbx, %rdi
callq 0x2250
leaq 0x170(%rsp), %rsi
movq %r14, %rdi
callq 0x2230
jmp 0x2947
leaq 0x6c5a(%rip), %rsi      # 0x915c
jmp 0x255e
leaq 0x168(%rsp), %rbx
movq %rbx, %rdi
callq 0x21f0
leaq 0x6c46(%rip), %rsi      # 0x9161
movq %rbx, %rdi
callq 0x2190
movq (%rsp), %rcx
movq 0x10(%rcx), %rsi
movq %rax, %rdi
callq 0x2140
leaq 0x6c16(%rip), %rsi      # 0x9150
movq %rax, %rdi
callq 0x2190
leaq 0x170(%rsp), %rsi
movq %r14, %rdi
callq 0x2230
jmp 0x2947
leaq 0x6bf4(%rip), %rsi      # 0x9152
leaq 0x168(%rsp), %rdx
movq %r14, %rdi
callq 0x7b8a
jmp 0x29a0
addq $0x48, %rsi
movq %r14, %rdi
callq 0x2200
jmp 0x29a0
movq %r14, 0x8(%rsp)
leaq 0x168(%rsp), %rbx
movq %rbx, %rdi
callq 0x21f0
leaq 0x6bcc(%rip), %rsi      # 0x916c
movq %rbx, %rdi
callq 0x2190
movq (%rsp), %rax
movq 0x10(%rax), %rax
movq 0x20(%rax), %r14
movb $0x1, %r12b
leaq 0x120(%rsp), %rbx
leaq 0x108(%rsp), %r15
leaq 0xd8(%rsp), %rbp
addq $0x10, %rax
cmpq %rax, %r14
je 0x291e
movq 0x40(%r14), %rax
movq %rax, 0x120(%rsp)
movq %rbx, 0x128(%rsp)
movq 0x50(%r14), %rax
movq %rax, 0x130(%rsp)
incl (%rax)
movq 0xab93(%rip), %rax      # 0xd198
movq %rax, 0x108(%rsp)
movq %r15, 0x110(%rsp)
movq 0xab8c(%rip), %rax      # 0xd1a8
movq %rax, 0x118(%rsp)
incl (%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4d59
movl %eax, %r13d
movq %r15, %rdi
callq 0x79fc
movq %rbx, %rdi
callq 0x79fc
testb %r13b, %r13b
je 0x26bb
testb $0x1, %r12b
jne 0x2663
leaq 0x168(%rsp), %rdi
leaq 0x6b10(%rip), %rsi      # 0x916e
callq 0x2190
leaq 0x20(%r14), %rsi
leaq 0x168(%rsp), %rdi
callq 0x2180
movq %rax, %rdi
leaq 0x6b55(%rip), %rsi      # 0x91d3
callq 0x2190
movq 0x40(%r14), %rcx
movq %rcx, 0xd8(%rsp)
movq %rbp, 0xe0(%rsp)
movq 0x50(%r14), %rcx
movq %rcx, 0xe8(%rsp)
incl (%rcx)
movq %rax, %rdi
movq %rbp, %rsi
callq 0x243c
movq %rbp, %rdi
callq 0x79fc
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x2110
movq %rax, %r14
movq (%rsp), %rax
movq 0x10(%rax), %rax
jmp 0x25cf
leaq 0x6a99(%rip), %rsi      # 0x9173
leaq 0x150(%rsp), %rbx
movq %rbx, %rdi
callq 0x588e
movq (%rsp), %rdi
movq %rbx, %rsi
callq 0x53da
movq (%rax), %rcx
leaq 0x60(%rsp), %rbx
movq %rcx, (%rbx)
movq %rbx, 0x8(%rbx)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rbx)
incl (%rax)
leaq 0x150(%rsp), %rdi
callq 0x79fc
leaq 0x168(%rsp), %rdi
movq %rbx, 0x28(%rsp)
callq 0x21f0
leaq 0x6a45(%rip), %rsi      # 0x917a
leaq 0x168(%rsp), %rdi
callq 0x2190
movq %r14, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x5802
leaq 0xc0(%rsp), %r12
leaq 0x48(%rsp), %r14
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rax, 0xc0(%rsp)
movq %r12, 0xc8(%rsp)
movq %rcx, 0xd0(%rsp)
incl (%rcx)
movq 0x60(%rsp), %rax
movq 0x70(%rsp), %rcx
movq %rax, 0x48(%rsp)
movq %r14, 0x50(%rsp)
movq %rcx, 0x58(%rsp)
incl (%rcx)
movq %r12, %rdi
movq %r14, %rsi
callq 0x51cc
movl %eax, %ebx
movq %r14, %rdi
callq 0x79fc
movq %r12, %rdi
callq 0x79fc
testb %bl, %bl
leaq 0x2e0(%rsp), %r15
je 0x2956
movq %r12, %r14
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rax, 0x90(%rsp)
leaq 0x90(%rsp), %rbx
movq %rbx, 0x98(%rsp)
movq %rcx, 0xa0(%rsp)
incl (%rcx)
movq (%rsp), %rdi
movq %rbx, %rsi
callq 0x53da
movq (%rax), %rcx
movq %rcx, 0xa8(%rsp)
leaq 0xa8(%rsp), %r12
movq %r12, 0xb0(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0xb8(%rsp)
incl (%rax)
leaq 0x168(%rsp), %rdi
movq %r12, %rsi
callq 0x243c
movq %r12, %rdi
callq 0x79fc
movq %rbx, %rdi
callq 0x79fc
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rax, 0x30(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %rcx, 0x40(%rsp)
incl (%rcx)
movq 0x60(%rsp), %rax
movq 0x70(%rsp), %rcx
movq %rax, 0x78(%rsp)
leaq 0x78(%rsp), %rbx
movq %rbx, 0x80(%rsp)
movq %rcx, 0x88(%rsp)
incl (%rcx)
leaq 0x138(%rsp), %r12
movq %r12, %rdi
pushq $0x1
popq %rsi
callq 0x5802
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x4cca
movq %r12, %rbp
movq %r14, %r12
movq %rbx, %r13
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x4d59
movl %eax, %ebx
movq %r15, %rdi
callq 0x79fc
movq %rbp, %rdi
callq 0x79fc
movq %r13, %rdi
callq 0x79fc
movq %r14, %rdi
callq 0x79fc
testb %bl, %bl
leaq 0x48(%rsp), %r14
je 0x290f
leaq 0x168(%rsp), %rdi
leaq 0x6864(%rip), %rsi      # 0x916e
callq 0x2190
leaq 0x10(%rsp), %rdi
callq 0x50a8
jmp 0x2760
leaq 0x684c(%rip), %rsi      # 0x9171
leaq 0x168(%rsp), %rdi
callq 0x2190
movq 0x8(%rsp), %r14
leaq 0x170(%rsp), %rsi
movq %r14, %rdi
callq 0x2230
leaq 0x168(%rsp), %rdi
callq 0x2050
jmp 0x29a0
leaq 0x10(%rsp), %rdi
callq 0x79fc
leaq 0x6815(%rip), %rsi      # 0x917c
leaq 0x168(%rsp), %rdi
callq 0x2190
movq 0x8(%rsp), %r14
leaq 0x170(%rsp), %rsi
movq %r14, %rdi
callq 0x2230
leaq 0x168(%rsp), %rdi
callq 0x2050
leaq 0x60(%rsp), %rdi
callq 0x79fc
movq %r14, %rax
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x18
popq %rdi
callq 0x20e0
movq %rax, %r14
leaq 0x67b7(%rip), %rsi      # 0x917e
leaq 0xf0(%rsp), %rdi
callq 0x588e
movq 0xf0(%rsp), %rax
movq %rax, (%r14)
movq %r14, 0x8(%r14)
movq 0x100(%rsp), %rax
movq %rax, 0x10(%r14)
incl (%rax)
leaq 0xa350(%rip), %rsi      # 0xcd48
leaq 0x4ffd(%rip), %rdx      # 0x79fc
movq %r14, %rdi
callq 0x2270
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
jmp 0x2aef
movq %rax, %rbx
movq %r14, %rdi
callq 0x2130
jmp 0x2af4
jmp 0x2a41
jmp 0x2a30
movq %rbx, 0x28(%rsp)
movq %rax, %rbx
jmp 0x2aea
jmp 0x2abe
jmp 0x2abe
jmp 0x2abe
movq %rax, %rbx
jmp 0x2add
jmp 0x2abe
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x79fc
jmp 0x2ac1
movq %rax, %rbx
jmp 0x2a72
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x79fc
leaq 0x90(%rsp), %rdi
jmp 0x2ab7
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
callq 0x79fc
jmp 0x2a91
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x79fc
leaq 0x30(%rsp), %rdi
jmp 0x2ab7
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x79fc
leaq 0xc0(%rsp), %rdi
callq 0x79fc
jmp 0x2ad3
movq %rax, %rbx
leaq 0x168(%rsp), %rdi
callq 0x2050
jmp 0x2af4
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x79fc
leaq 0x168(%rsp), %rdi
callq 0x2050
movq 0x28(%rsp), %rdi
callq 0x79fc
movq %rbx, %rdi
callq 0x2280