// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/./jsrepr.c
// Function: reprvalue
static void reprvalue(js_State *J, js_Buffer **sb)
{
	if (js_isundefined(J, -1))
		js_puts(J, sb, "undefined");
	else if (js_isnull(J, -1))
		js_puts(J, sb, "null");
	else if (js_isboolean(J, -1))
		js_puts(J, sb, js_toboolean(J, -1) ? "true" : "false");
	else if (js_isnumber(J, -1))
		reprnum(J, sb, js_tonumber(J, -1));
	else if (js_isstring(J, -1))
		reprstr(J, sb, js_tostring(J, -1));
	else if (js_isobject(J, -1)) {
		js_Object *obj = js_toobject(J, -1);
		switch (obj->type) {
		default:
			reprobject(J, sb);
			break;
		case JS_CARRAY:
			reprarray(J, sb);
			break;
		case JS_CFUNCTION:
		case JS_CSCRIPT:
			reprfun(J, sb, obj->u.f.function);
			break;
		case JS_CCFUNCTION:
			js_puts(J, sb, "function ");
			js_puts(J, sb, obj->u.c.name);
			js_puts(J, sb, "() { [native code] }");
			break;
		case JS_CBOOLEAN:
			js_puts(J, sb, "(new Boolean(");
			js_puts(J, sb, obj->u.boolean ? "true" : "false");
			js_puts(J, sb, "))");
			break;
		case JS_CNUMBER:
			js_puts(J, sb, "(new Number(");
			reprnum(J, sb, obj->u.number);
			js_puts(J, sb, "))");
			break;
		case JS_CSTRING:
			js_puts(J, sb, "(new String(");
			reprstr(J, sb, obj->u.s.string);
			js_puts(J, sb, "))");
			break;
		case JS_CREGEXP:
			js_putc(J, sb, '/');
			js_puts(J, sb, obj->u.r.source);
			js_putc(J, sb, '/');
			if (obj->u.r.flags & JS_REGEXP_G) js_putc(J, sb, 'g');
			if (obj->u.r.flags & JS_REGEXP_I) js_putc(J, sb, 'i');
			if (obj->u.r.flags & JS_REGEXP_M) js_putc(J, sb, 'm');
			break;
		case JS_CDATE:
			{
				char buf[40];
				js_puts(J, sb, "(new Date(");
				js_puts(J, sb, jsV_numbertostring(J, buf, obj->u.number));
				js_puts(J, sb, "))");
			}
			break;
		case JS_CERROR:
			js_puts(J, sb, "(new ");
			js_getproperty(J, -1, "name");
			js_puts(J, sb, js_tostring(J, -1));
			js_pop(J, 1);
			js_putc(J, sb, '(');
			if (js_hasproperty(J, -1, "message")) {
				reprvalue(J, sb);
				js_pop(J, 1);
			}
			js_puts(J, sb, "))");
			break;
		case JS_CMATH:
			js_puts(J, sb, "Math");
			break;
		case JS_CJSON:
			js_puts(J, sb, "JSON");
			break;
		case JS_CITERATOR:
			js_puts(J, sb, "[iterator ");
			break;
		case JS_CUSERDATA:
			js_puts(J, sb, "[userdata ");
			js_puts(J, sb, obj->u.user.tag);
			js_putc(J, sb, ']');
			break;
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
pushq $-0x1
popq %rsi
callq 0xf8bb
testl %eax, %eax
je 0xef52
leaq 0x1b2f8(%rip), %rdx     # 0x2a248
jmp 0xef98
pushq $-0x1
popq %rsi
movq %r14, %rdi
callq 0xf8ce
testl %eax, %eax
je 0xef6a
leaq 0x1ac1e(%rip), %rdx     # 0x29b86
jmp 0xef98
pushq $-0x1
popq %rsi
movq %r14, %rdi
callq 0xf8e1
pushq $-0x1
popq %rsi
movq %r14, %rdi
testl %eax, %eax
je 0xefb1
callq 0xfaca
testl %eax, %eax
leaq 0x19b11(%rip), %rax     # 0x28a9e
leaq 0x19b05(%rip), %rdx     # 0x28a99
cmoveq %rax, %rdx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xaa1e
callq 0xf8f4
pushq $-0x1
popq %rsi
movq %r14, %rdi
testl %eax, %eax
je 0xefde
callq 0xfb28
movq %r14, %rdi
movq %rbx, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1c89c
callq 0xf907
pushq $-0x1
popq %rsi
movq %r14, %rdi
testl %eax, %eax
je 0xf00e
callq 0xf64d
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1c8ff
callq 0xd489
testl %eax, %eax
je 0xf1cb
pushq $-0x1
popq %rsi
movq %r14, %rdi
callq 0xd49c
movq %rax, %r15
movl (%rax), %eax
decl %eax
cmpl $0xe, %eax
ja 0xf368
leaq 0x116ff(%rip), %rcx     # 0x2073c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20(%r15), %r12
leaq 0x1a2bf(%rip), %rdx     # 0x29310
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
movq (%r12), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
pushq $0x28
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa986
xorl %r13d, %r13d
leaq 0x1aee2(%rip), %r15     # 0x29f65
movslq 0x18(%r12), %rax
cmpq %rax, %r13
jge 0xf0b9
testq %r13, %r13
je 0xf0a0
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xaa1e
movq 0x40(%r12), %rax
movq (%rax,%r13,8), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
incq %r13
jmp 0xf083
leaq 0x1a25a(%rip), %rdx     # 0x2931a
jmp 0xef98
leaq 0x1ae6c(%rip), %rdx     # 0x29f38
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
movsd 0x20(%r15), %xmm0
movq %rsp, %rsi
callq 0xe36d
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0xaa1e
leaq 0x1ae21(%rip), %rdx     # 0x29f1b
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
jmp 0xf1cb
leaq 0x1ae43(%rip), %rdx     # 0x29f54
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
movq 0x20(%r15), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
pushq $0x5d
jmp 0xf575
leaq 0x1adf2(%rip), %rdx     # 0x29f2b
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
movq 0x28(%r15), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1c8ff
jmp 0xf2bd
leaq 0x1923a(%rip), %rdx     # 0x28399
jmp 0xef98
pushq $0x2f
popq %rbp
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0xa986
movq 0x28(%r15), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0xa986
movzwl 0x30(%r15), %eax
testb $0x1, %al
je 0xf1ac
pushq $0x67
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa986
movzwl 0x30(%r15), %eax
testb $0x2, %al
je 0xf1c3
pushq $0x69
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa986
movzwl 0x30(%r15), %eax
testb $0x4, %al
jne 0xf573
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ad2c(%rip), %rdx     # 0x29f0d
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
cmpl $0x0, 0x20(%r15)
leaq 0x198a6(%rip), %rax     # 0x28a9e
leaq 0x1989a(%rip), %rdx     # 0x28a99
cmoveq %rax, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
jmp 0xf2bd
leaq 0x1ad04(%rip), %rdx     # 0x29f1e
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
movsd 0x20(%r15), %xmm0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1c89c
jmp 0xf2bd
leaq 0x1ad01(%rip), %rdx     # 0x29f43
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
leaq 0x18ee6(%rip), %rdx     # 0x2813a
pushq $-0x1
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
callq 0x3eff
movq %r14, %rdi
movl %ebp, %esi
callq 0xf64d
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0xaa1e
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x3f3d
pushq $0x28
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa986
leaq 0x1a041(%rip), %rdx     # 0x292da
movq %r14, %rdi
movl %ebp, %esi
callq 0x10c15
testl %eax, %eax
je 0xf2bd
movq %r14, %rdi
movq %rbx, %rsi
callq 0xef29
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x3f3d
leaq 0x1ac57(%rip), %rdx     # 0x29f1b
jmp 0xef98
leaq 0x1ac79(%rip), %rdx     # 0x29f49
jmp 0xef98
leaq 0x18e3c(%rip), %rdx     # 0x28118
jmp 0xef98
movl 0x144(%r14), %r13d
notl %r13d
addl 0x140(%r14), %r13d
xorl %ebp, %ebp
testl %r13d, %r13d
cmovlel %ebp, %r13d
pushq $-0x1
popq %r15
cmpl %ebp, %r13d
je 0xf3c2
movq %r14, %rdi
movl %ebp, %esi
callq 0xd489
testl %eax, %eax
je 0xf337
movq %r14, %rdi
movl %ebp, %esi
callq 0xd49c
movq %rax, %r12
movq %r14, %rdi
movl %r15d, %esi
callq 0xd49c
cmpq %rax, %r12
je 0xf58f
incl %ebp
jmp 0xf2ff
leaq 0x19fce(%rip), %rdx     # 0x29310
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
movq 0x20(%r15), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaa1e
leaq 0x19fc9(%rip), %rdx     # 0x2932c
jmp 0xef98
movl 0x144(%r14), %r13d
notl %r13d
addl 0x140(%r14), %r13d
xorl %ebp, %ebp
testl %r13d, %r13d
cmovlel %ebp, %r13d
pushq $-0x1
popq %r15
cmpl %ebp, %r13d
je 0xf438
movq %r14, %rdi
movl %ebp, %esi
callq 0xd489
testl %eax, %eax
je 0xf3be
movq %r14, %rdi
movl %ebp, %esi
callq 0xd49c
movq %rax, %r12
movq %r14, %rdi
movl %r15d, %esi
callq 0xd49c
cmpq %rax, %r12
je 0xf59b
incl %ebp
jmp 0xf386
pushq $0x5b
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa986
pushq $-0x1
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
callq 0x3ecc
movl %eax, %r15d
xorl %r12d, %r12d
testl %eax, %eax
cmovlel %r12d, %r15d
leaq 0x1ab75(%rip), %r13     # 0x29f65
cmpl %r12d, %r15d
je 0xf12b
testl %r12d, %r12d
je 0xf40c
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0xaa1e
movq %r14, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0x10ecd
testl %eax, %eax
je 0xf433
movq %r14, %rdi
movq %rbx, %rsi
callq 0xef29
movq %r14, %rdi
pushq $0x1
popq %rsi
callq 0x3f3d
incl %r12d
jmp 0xf3f0
pushq $0x7b
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa986
pushq $-0x1
popq %rbp
pushq $0x1
popq %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x1102e
xorl %r12d, %r12d
pushq $-0x2
popq %r13
movq %r14, %rdi
movl %ebp, %esi
callq 0x1105b
testq %rax, %rax
je 0xf564
movq %rax, %r15
testl %r12d, %r12d
je 0xf48a
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x1aae0(%rip), %rdx     # 0x29f65
callq 0xaa1e
movb (%r15), %al
leal -0x30(%rax), %ecx
cmpb $0x9, %cl
ja 0xf4c6
leaq -0x1(%r15), %rcx
movb 0x1(%rcx), %al
incq %rcx
leal -0x30(%rax), %edx
cmpb $0xa, %dl
jb 0xf499
cmpq %r15, %rcx
setbe %cl
testb %al, %al
setne %al
orb %cl, %al
jne 0xf518
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xaa1e
jmp 0xf526
leal -0x61(%rax), %ecx
cmpb $0x1a, %cl
jb 0xf4e0
leal -0x41(%rax), %ecx
cmpb $0x1a, %cl
setae %cl
cmpb $0x5f, %al
setne %dl
testb %cl, %dl
jne 0xf518
movq %r15, %rcx
leal -0x30(%rax), %edx
cmpb $0xa, %dl
setb %dl
leal -0x61(%rax), %esi
cmpb $0x1a, %sil
setb %sil
orb %dl, %sil
jne 0xf510
leal -0x41(%rax), %edx
cmpb $0x1a, %dl
setae %dl
cmpb $0x5f, %al
setne %sil
testb %dl, %sil
jne 0xf4a7
movb 0x1(%rcx), %al
incq %rcx
jmp 0xf4e3
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1c8ff
incl %r12d
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x18753(%rip), %rdx     # 0x27c89
callq 0xaa1e
movq %r14, %rdi
movl %r13d, %esi
movq %r15, %rdx
callq 0x3eff
movq %r14, %rdi
movq %rbx, %rsi
callq 0xef29
movq %r14, %rdi
pushq $0x1
popq %rsi
callq 0x3f3d
jmp 0xf45d
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x3f3d
pushq $0x7d
jmp 0xf575
pushq $0x6d
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa986
leaq 0x1a9d2(%rip), %rdx     # 0x29f68
jmp 0xef98
leaq 0x1a9c0(%rip), %rdx     # 0x29f62
jmp 0xef98