// File: /workspace/github_c_makefile_star2_O1/ccxvii[P]mujs/./jsrepr.c
// Function: reprobject
static void reprobject(js_State *J, js_Buffer **sb)
{
	const char *key;
	int i, n;

	n = js_gettop(J) - 1;
	for (i = 0; i < n; ++i) {
		if (js_isobject(J, i)) {
			if (js_toobject(J, i) == js_toobject(J, -1)) {
				js_puts(J, sb, "{}");
				return;
			}
		}
	}

	n = 0;
	js_putc(J, sb, '{');
	js_pushiterator(J, -1, 1);
	while ((key = js_nextiterator(J, -1))) {
		if (n++ > 0)
			js_puts(J, sb, ", ");
		reprident(J, sb, key);
		js_puts(J, sb, ": ");
		js_getproperty(J, -2, key);
		reprvalue(J, sb);
		js_pop(J, 1);
	}
	js_pop(J, 1);
	js_putc(J, sb, '}');
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl 0x144(%rdi), %r12d
notl %r12d
addl 0x140(%rdi), %r12d
testl %r12d, %r12d
jle 0x26dc1
xorl %ebp, %ebp
leaq 0x196a9(%rip), %r13     # 0x403f8
movl 0x144(%rbx), %ecx
addl %ebp, %ecx
movq %r13, %rax
js 0x26d74
movq %r13, %rax
cmpl 0x140(%rbx), %ecx
jge 0x26d74
movl %ecx, %eax
shlq $0x4, %rax
addq 0x148(%rbx), %rax
cmpb $0x7, 0xf(%rax)
jne 0x26dba
movq %rbx, %rdi
movl %ebp, %esi
callq 0x11c37
movq %rax, %r15
movslq 0x140(%rbx), %rax
movq %r13, %rsi
testq %rax, %rax
jle 0x26da9
movq 0x148(%rbx), %rcx
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $-0x10, %rsi
movq %rbx, %rdi
callq 0x15489
cmpq %rax, %r15
je 0x26fe9
incl %ebp
cmpl %ebp, %r12d
jne 0x26d4f
movq %rbx, %rdi
movq %r14, %rsi
movl $0x7b, %edx
callq 0xe0bc
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x1, %edx
callq 0x16b9e
movq $0x0, 0x8(%rsp)
leaq 0xbe96(%rip), %rbp      # 0x32c89
leaq 0xe160(%rip), %r13      # 0x34f5a
movslq 0x140(%rbx), %rax
leaq 0x195f0(%rip), %rsi     # 0x403f8
testq %rax, %rax
jle 0x26e20
movq 0x148(%rbx), %rcx
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $-0x10, %rsi
movq %rbx, %rdi
callq 0x15489
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12c41
testq %rax, %rax
je 0x26fb2
movq %rax, 0x10(%rsp)
cmpl $0x0, 0x8(%rsp)
je 0x26e6d
movb $0x2c, %al
xorl %r15d, %r15d
leaq 0x1(%r15), %r12
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe0bc
movb 0x1(%r15,%r13), %al
movq %r12, %r15
cmpq $0x2, %r12
jne 0x26e4d
movq 0x10(%rsp), %r13
movb (%r13), %al
leal -0x30(%rax), %ecx
cmpb $0x9, %cl
ja 0x26f25
leaq -0x1(%r13), %rcx
movb 0x1(%rcx), %dl
incq %rcx
addb $-0x30, %dl
cmpb $0xa, %dl
jb 0x26e86
cmpq %r13, %rcx
jbe 0x26ea2
cmpb $0x0, (%rcx)
je 0x26f87
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x26a50
movq 0x8(%rsp), %rax
incl %eax
movq %rax, 0x8(%rsp)
movb $0x3a, %al
xorl %r15d, %r15d
leaq 0x1(%r15), %r12
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe0bc
movb 0x1(%r15,%rbp), %al
movq %r12, %r15
cmpq $0x2, %r12
jne 0x26ec1
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r13, %rdx
callq 0x4032
movq %rbx, %rdi
movq %r14, %rsi
callq 0x14101
movl 0x140(%rbx), %ecx
movl 0x144(%rbx), %eax
leal -0x1(%rcx), %edx
movl %edx, 0x140(%rbx)
cmpl %eax, %ecx
leaq 0xe040(%rip), %r13      # 0x34f5a
jg 0x26dfa
jmp 0x27025
leal -0x61(%rax), %ecx
cmpb $0x1a, %cl
jb 0x26f48
leal -0x41(%rax), %ecx
cmpb $0x1a, %cl
setae %dl
cmpb $0x5f, %al
setne %sil
movq %r13, %rcx
testb %dl, %sil
jne 0x26e94
movq %r13, %rcx
movb (%rcx), %dl
leal -0x30(%rdx), %esi
cmpb $0xa, %sil
setb %sil
leal -0x61(%rdx), %edi
cmpb $0x1a, %dil
setb %dil
orb %sil, %dil
jne 0x26f82
leal -0x41(%rdx), %esi
cmpb $0x1a, %sil
setae %sil
cmpb $0x5f, %dl
setne %dl
testb %sil, %dl
jne 0x26e94
incq %rcx
jmp 0x26f4b
testb %al, %al
je 0x26eb0
movq %r13, %r15
incq %r15
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe0bc
movb (%r15), %al
incq %r15
testb %al, %al
jne 0x26f95
jmp 0x26eb0
movl 0x140(%rbx), %ecx
movl 0x144(%rbx), %eax
leal -0x1(%rcx), %edx
movl %edx, 0x140(%rbx)
cmpl %eax, %ecx
jle 0x27025
movq %rbx, %rdi
movq %r14, %rsi
movl $0x7d, %edx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe0bc
movb $0x7b, %al
xorl %r12d, %r12d
leaq 0xdf62(%rip), %r15      # 0x34f57
leaq 0x1(%r12), %r13
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe0bc
movb 0x1(%r12,%r15), %al
movq %r13, %r12
cmpq $0x2, %r13
jne 0x26ff5
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, 0x140(%rbx)
leaq 0xc73c(%rip), %rsi      # 0x3376e
movq %rbx, %rdi
xorl %eax, %eax
callq 0xc939