// File: /workspace/github_cpp_makefile_star2_O1/iamlouk[P]asbi/src/types.cc
// Function: asbi::Value::to_string[abi:cxx11](bool) const
std::string Value::to_string(bool debug) const {
	assert(type != type_t::StackPlaceholder);
	switch (type) {
	case type_t::Bool:
		return _boolean ? "true" : "false";
	case type_t::Number:{
		auto integer = static_cast<int>(_number);
		return integer == _number ? std::to_string(integer) : std::to_string(_number);
	}
	case type_t::Nil:
		return "nil";
	case type_t::Symbol:
		return std::string(":") + _string->data;
	case type_t::String:
		return debug ? std::string("\"") + _string->data + "\"" : _string->data;
	case type_t::Lambda:{
		std::stringstream ss;
		ss << "<Lambda#" << (void*)_lambda->ops << ">";
		return ss.str();
	}
	case type_t::Map:{
		std::stringstream ss;
		ss << "[";
		for (auto val: _map->vecdata)
			ss << val.to_string(true) << ", ";
		for (auto [key, val]: _map->data)
			ss << key.to_string(true) << " ~ " << val.to_string(true) << ", ";
		ss << "]";
		return ss.str();
	}
	case type_t::Macro:{
		std::stringstream ss;
		ss << "<Macro#" << (void*)_lambda->ops << ">";
		return ss.str();
	}
	case type_t::StackPlaceholder:
		return std::string("<StackPlaceholder>");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %rsi, %r15
movq %rdi, %r12
movl (%rsi), %eax
leaq 0x8372(%rip), %rcx      # 0x17e14
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movzbl 0x8(%r15), %edx
leaq 0x798d(%rip), %rax      # 0x17444
leaq 0x798b(%rip), %rsi      # 0x17449
testq %rdx, %rdx
cmovneq %rax, %rsi
leaq 0x10(%r12), %rax
movq %rax, (%r12)
xorq $0x5, %rdx
addq %rsi, %rdx
jmp 0xfb63
movl %edx, %ebp
testb %bpl, %bpl
je 0xff0d
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x7993(%rip), %rsi      # 0x17488
leaq 0x798d(%rip), %rdx      # 0x17489
movq %rsp, %rdi
callq 0x6684
movq 0x8(%r15), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
movq %rsp, %rdi
callq 0x50e0
leaq 0x80(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0xff8f
movq %rsi, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0xff97
leaq 0x10(%r12), %rax
movq %rax, (%r12)
leaq 0x918c(%rip), %rsi      # 0x18ce8
leaq 0x9188(%rip), %rdx      # 0x18ceb
movq %r12, %rdi
callq 0x6684
jmp 0x10080
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x8418(%rip), %rsi      # 0x17f9b
leaq 0x8412(%rip), %rdx      # 0x17f9c
leaq 0x70(%rsp), %rdi
callq 0x6684
movq 0x8(%r15), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
leaq 0x70(%rsp), %rdi
callq 0x50e0
leaq 0x10(%r12), %rdx
movq %rdx, (%r12)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0xff54
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0xff5c
leaq 0x70(%rsp), %rdi
callq 0x5260
leaq 0x80(%rsp), %rbx
leaq 0x83c1(%rip), %rsi      # 0x17fb1
movl $0x7, %edx
movq %rbx, %rdi
callq 0x5400
movq 0x8(%r15), %rax
movq 0x28(%rax), %rsi
movq %rbx, %rdi
callq 0x52b0
leaq 0x8392(%rip), %rsi      # 0x17fa6
movl $0x1, %edx
movq %rax, %rdi
callq 0x5400
leaq 0x88(%rsp), %rsi
movq %r12, %rdi
callq 0x5550
jmp 0xfeea
movsd 0x8(%r15), %xmm0
cvttpd2dq %xmm0, %xmm1
cvtdq2pd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0xff32
jp 0xff32
cvttsd2si %xmm0, %r14d
movl %r14d, %ebx
negl %ebx
cmovsl %r14d, %ebx
movl $0x1, %r15d
cmpl $0xa, %ebx
jb 0x10051
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x10048
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x1004e
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x10051
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xfc7e
addl $-0x3, %r15d
jmp 0x10051
leaq 0x70(%rsp), %rdi
callq 0x5260
leaq 0x80(%rsp), %rbx
leaq 0x82c4(%rip), %rsi      # 0x17f9d
movl $0x8, %edx
movq %rbx, %rdi
callq 0x5400
movq 0x8(%r15), %rax
movq 0x28(%rax), %rsi
movq %rbx, %rdi
callq 0x52b0
leaq 0x82a9(%rip), %rsi      # 0x17fa6
movl $0x1, %edx
movq %rax, %rdi
callq 0x5400
leaq 0x88(%rsp), %rsi
movq %r12, %rdi
callq 0x5550
jmp 0xfeea
leaq 0x70(%rsp), %rdi
callq 0x5260
leaq 0x80(%rsp), %rdi
leaq 0x8270(%rip), %rsi      # 0x17fa8
movl $0x1, %edx
callq 0x5400
movq %r12, 0x68(%rsp)
movq 0x8(%r15), %rax
movq 0x50(%rax), %rbp
movq 0x58(%rax), %r14
cmpq %r14, %rbp
je 0xfdcc
movq %rsp, %rbx
leaq 0x20(%rsp), %r12
leaq 0x8243(%rip), %r13      # 0x17faa
movupd (%rbp), %xmm0
movapd %xmm0, 0x20(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0xfa82
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq 0x80(%rsp), %rdi
callq 0x5400
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x5400
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xfdc3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5390
addq $0x10, %rbp
cmpq %r14, %rbp
jne 0xfd67
movq 0x8(%r15), %rax
movq 0x28(%rax), %r13
testq %r13, %r13
je 0xfebc
leaq 0x30(%rsp), %r14
leaq 0x81c4(%rip), %rbp      # 0x17fad
leaq 0x48(%rsp), %rbx
leaq 0x81b5(%rip), %r15      # 0x17faa
movupd 0x8(%r13), %xmm0
movupd 0x18(%r13), %xmm1
movapd %xmm1, 0x10(%rsp)
movapd %xmm0, (%rsp)
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
movl $0x1, %edx
callq 0xfa82
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x80(%rsp), %rdi
callq 0x5400
movq %rax, %r12
movl $0x3, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x5400
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
movl $0x1, %edx
callq 0xfa82
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %r12, %rdi
callq 0x5400
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5400
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xfe98
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0xfeaf
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5390
movq (%r13), %r13
testq %r13, %r13
jne 0xfdf5
leaq 0x71a3(%rip), %rsi      # 0x17066
movl $0x1, %edx
leaq 0x80(%rsp), %rdi
callq 0x5400
movq 0x68(%rsp), %r12
leaq 0x88(%rsp), %rsi
movq %r12, %rdi
callq 0x5550
movq 0x1109f(%rip), %rsi     # 0x20f90
leaq 0x70(%rsp), %rdi
callq 0x5290
leaq 0xf0(%rsp), %rdi
callq 0x50f0
jmp 0x10080
movq 0x8(%r15), %rax
leaq 0x10(%r12), %rcx
movq %rcx, (%r12)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x7d0e
jmp 0x10005
movq 0x11067(%rip), %rsi     # 0x20fa0
leaq 0x7663(%rip), %rcx      # 0x175a3
movl $0x148, %edx            # imm = 0x148
movq %r12, %rdi
movb $0x1, %al
callq 0x7c5c
jmp 0x10080
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%r12)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x10080
movq 0x80(%rsp), %rsi
jmp 0x1003e
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq 0x8(%rax), %rdx
leaq 0x70(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x74ce(%rip), %rsi      # 0x17488
callq 0x5630
leaq 0x10(%r12), %rdx
movq %rdx, (%r12)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0xffe5
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0xffed
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%r12)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
testb %bpl, %bpl
je 0x10080
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1002b
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5390
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10080
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x10080
addl $-0x2, %r15d
jmp 0x10051
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x10(%r12), %rax
movq %rax, (%r12)
movq %r12, %rdi
movl $0x2d, %edx
callq 0x5410
addq (%r12), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0x7bef
movq %r12, %rax
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7e89(%rip), %rdi      # 0x17f25
leaq 0x7ddd(%rip), %rsi      # 0x17e80
leaq 0x7ec2(%rip), %rcx      # 0x17f6c
movl $0xcc, %edx
callq 0x5210
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x10113
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x10133
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x101c3
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x101c3
movq %rax, %rbx
testb %bpl, %bpl
je 0x10113
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10113
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5390
testb %bpl, %bpl
je 0x10133
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10133
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5390
testb %bpl, %bpl
jmp 0x101c3
movq %rax, %rbx
jmp 0x101c3
jmp 0x1014d
jmp 0x1014d
jmp 0x1014d
jmp 0x1014d
jmp 0x10152
movq %rax, %rbx
jmp 0x101a5
movq %rax, %rbx
jmp 0x10176
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x10176
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x101a5
movq 0x30(%rsp), %rsi
jmp 0x1019d
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x101a5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x10de4(%rip), %rsi     # 0x20f90
leaq 0x70(%rsp), %rdi
callq 0x5290
leaq 0xf0(%rsp), %rdi
callq 0x50f0
movq %rbx, %rdi
callq 0x55e0
nop