// File: /workspace/github_c_makefile_star2_O3/ArtifexSoftware[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 0x26a6d
xorl %ebp, %ebp
leaq 0x199fd(%rip), %r13     # 0x403f8
movl 0x144(%rbx), %ecx
addl %ebp, %ecx
movq %r13, %rax
js 0x26a20
movq %r13, %rax
cmpl 0x140(%rbx), %ecx
jge 0x26a20
movl %ecx, %eax
shlq $0x4, %rax
addq 0x148(%rbx), %rax
cmpb $0x7, 0xf(%rax)
jne 0x26a66
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1189f
movq %rax, %r15
movslq 0x140(%rbx), %rax
movq %r13, %rsi
testq %rax, %rax
jle 0x26a55
movq 0x148(%rbx), %rcx
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $-0x10, %rsi
movq %rbx, %rdi
callq 0x14fb2
cmpq %rax, %r15
je 0x26c9f
incl %ebp
cmpl %ebp, %r12d
jne 0x269fb
movq %rbx, %rdi
movq %r14, %rsi
movl $0x7b, %edx
callq 0xdda1
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x1, %edx
callq 0x166db
movl 0x140(%rbx), %eax
movq $0x0, 0x8(%rsp)
leaq 0xc214(%rip), %rbp      # 0x32cb9
leaq 0xe4de(%rip), %r13      # 0x34f8a
leaq 0x19945(%rip), %rsi     # 0x403f8
testl %eax, %eax
jle 0x26acc
movq 0x148(%rbx), %rcx
movl %eax, %eax
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $-0x10, %rsi
movq %rbx, %rdi
callq 0x14fb2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12827
testq %rax, %rax
je 0x26c68
movq %rax, 0x10(%rsp)
cmpl $0x0, 0x8(%rsp)
je 0x26b19
movb $0x2c, %al
xorl %r15d, %r15d
leaq 0x1(%r15), %r12
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdda1
movb 0x1(%r15,%r13), %al
movq %r12, %r15
cmpq $0x2, %r12
jne 0x26af9
movq 0x10(%rsp), %r13
movb (%r13), %al
leal -0x30(%rax), %ecx
cmpb $0x9, %cl
ja 0x26b76
leaq -0x1(%r13), %rcx
movb 0x1(%rcx), %dl
incq %rcx
leal -0x30(%rdx), %esi
cmpb $0xa, %sil
jb 0x26b2e
testb %dl, %dl
jne 0x26bd3
cmpq %r13, %rcx
jbe 0x26bd3
testb %al, %al
je 0x26be1
movq %r13, %r15
incq %r15
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdda1
movb (%r15), %al
incq %r15
testb %al, %al
jne 0x26b5c
jmp 0x26be1
leal -0x61(%rax), %ecx
cmpb $0x1a, %cl
jb 0x26b90
leal -0x41(%rax), %ecx
cmpb $0x1a, %cl
setae %cl
cmpb $0x5f, %al
setne %dl
testb %cl, %dl
jne 0x26bd3
movl %eax, %edx
movq %r13, %rcx
leal -0x30(%rdx), %esi
cmpb $0xa, %sil
setb %sil
leal -0x61(%rdx), %edi
cmpb $0x1a, %dil
setb %dil
orb %sil, %dil
jne 0x26bcb
leal -0x41(%rdx), %esi
cmpb $0x1a, %sil
setae %sil
cmpb $0x5f, %dl
setne %dil
testb %sil, %dil
jne 0x26b3d
movb 0x1(%rcx), %dl
incq %rcx
jmp 0x26b95
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x266ff
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 0xdda1
movb 0x1(%r15,%rbp), %al
movq %r12, %r15
cmpq $0x2, %r12
jne 0x26bf2
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r13, %rdx
callq 0x3fd2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13ca8
movl 0x140(%rbx), %edx
movl 0x144(%rbx), %ecx
leal -0x1(%rdx), %eax
movl %eax, 0x140(%rbx)
cmpl %ecx, %edx
leaq 0xe33f(%rip), %r13      # 0x34f8a
jg 0x26aac
movl %ecx, 0x140(%rbx)
leaq 0xcb40(%rip), %rsi      # 0x3379e
movq %rbx, %rdi
xorl %eax, %eax
callq 0xc666
movl 0x140(%rbx), %ecx
movl 0x144(%rbx), %eax
leal -0x1(%rcx), %edx
movl %edx, 0x140(%rbx)
cmpl %eax, %ecx
jle 0x26cdb
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 0xdda1
movb $0x7b, %al
xorl %r12d, %r12d
leaq 0xe2dc(%rip), %r15      # 0x34f87
leaq 0x1(%r12), %r13
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdda1
movb 0x1(%r12,%r15), %al
movq %r13, %r12
cmpq $0x2, %r13
jne 0x26cab
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, 0x140(%rbx)
jmp 0x26c57