// File: /workspace/github_c_makefile_star2_O3/ArtifexSoftware[P]mujs/./json.c
// Function: jsonrevive
static void jsonrevive(js_State *J, const char *name)
{
	const char *key;
	char buf[32];

	/* revive is in 2 */
	/* holder is in -1 */

	js_getproperty(J, -1, name); /* get value from holder */

	if (js_isobject(J, -1)) {
		if (js_isarray(J, -1)) {
			int i = 0;
			int n = js_getlength(J, -1);
			for (i = 0; i < n; ++i) {
				jsonrevive(J, js_itoa(buf, i));
				if (js_isundefined(J, -1)) {
					js_pop(J, 1);
					js_delproperty(J, -1, buf);
				} else {
					js_setproperty(J, -2, buf);
				}
			}
		} else {
			js_pushiterator(J, -1, 1);
			while ((key = js_nextiterator(J, -1))) {
				js_rot2(J);
				jsonrevive(J, key);
				if (js_isundefined(J, -1)) {
					js_pop(J, 1);
					js_delproperty(J, -1, key);
				} else {
					js_setproperty(J, -2, key);
				}
				js_rot2(J);
			}
			js_pop(J, 1);
		}
	}

	js_copy(J, 2); /* reviver function */
	js_copy(J, -3); /* holder as this */
	js_pushstring(J, name); /* name */
	js_copy(J, -4); /* value */
	js_call(J, 2);
	js_rot2pop1(J); /* pop old value, leave new value on stack */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r14, %rdx
callq 0x3fd2
movl 0x140(%rbx), %eax
testl %eax, %eax
jle 0x2223b
decl %eax
movq 0x148(%rbx), %rcx
shlq $0x4, %rax
cmpb $0x7, 0xf(%rcx,%rax)
jne 0x224b5
addq %rax, %rcx
jmp 0x2224f
cmpb $0x7, 0x1e1c5(%rip)     # 0x40407
jne 0x224b5
leaq 0x1e1a9(%rip), %rcx     # 0x403f8
movq (%rcx), %rax
cmpl $0x1, (%rax)
jne 0x2232a
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x3f6c
testl %eax, %eax
jle 0x224b5
movl %eax, %ebp
xorl %r15d, %r15d
movq %rsp, %r12
leaq 0x1e179(%rip), %r13     # 0x403f8
movq %r12, %rdi
movl %r15d, %esi
callq 0x1289d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x221f3
movslq 0x140(%rbx), %rax
movq %r13, %rcx
testq %rax, %rax
jle 0x222b9
movq 0x148(%rbx), %rcx
movq %rax, %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
addq $-0x10, %rcx
cmpb $0x1, 0xf(%rcx)
jne 0x22309
leal -0x1(%rax), %ecx
movl %ecx, 0x140(%rbx)
movl 0x144(%rbx), %ecx
cmpl %ecx, %eax
jle 0x22525
movq %r13, %rsi
cmpl $0x2, %eax
jl 0x222f1
movq 0x148(%rbx), %rcx
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $-0x20, %rsi
movq %rbx, %rdi
callq 0x14fb2
movq %rbx, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x15d72
jmp 0x22319
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r12, %rdx
callq 0x4193
incl %r15d
cmpl %r15d, %ebp
jne 0x2227f
jmp 0x224b5
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x1, %edx
callq 0x166db
leaq 0x1e0b5(%rip), %r12     # 0x403f8
movslq 0x140(%rbx), %rax
movq %r12, %rsi
testq %rax, %rax
jle 0x22365
movq 0x148(%rbx), %rcx
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 0x22498
movq %rax, %r15
movq 0x148(%rbx), %rax
movslq 0x140(%rbx), %rcx
shlq $0x4, %rcx
movups -0x10(%rax,%rcx), %xmm0
movaps %xmm0, (%rsp)
movups -0x20(%rax,%rcx), %xmm0
movups %xmm0, -0x10(%rax,%rcx)
movq 0x148(%rbx), %rax
movslq 0x140(%rbx), %rcx
shlq $0x4, %rcx
movaps (%rsp), %xmm0
movups %xmm0, -0x20(%rax,%rcx)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x221f3
movslq 0x140(%rbx), %rax
movq %r12, %rcx
testq %rax, %rax
jle 0x223f3
movq 0x148(%rbx), %rcx
movq %rax, %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
addq $-0x10, %rcx
cmpb $0x1, 0xf(%rcx)
jne 0x22443
leal -0x1(%rax), %ecx
movl %ecx, 0x140(%rbx)
movl 0x144(%rbx), %ecx
cmpl %ecx, %eax
jle 0x22525
movq %r12, %rsi
cmpl $0x2, %eax
jl 0x2242b
movq 0x148(%rbx), %rcx
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $-0x20, %rsi
movq %rbx, %rdi
callq 0x14fb2
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x15d72
jmp 0x22453
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r15, %rdx
callq 0x4193
movq 0x148(%rbx), %rax
movslq 0x140(%rbx), %rcx
shlq $0x4, %rcx
movups -0x10(%rax,%rcx), %xmm0
movaps %xmm0, (%rsp)
movups -0x20(%rax,%rcx), %xmm0
movups %xmm0, -0x10(%rax,%rcx)
movq 0x148(%rbx), %rax
movslq 0x140(%rbx), %rcx
shlq $0x4, %rcx
movaps (%rsp), %xmm0
movups %xmm0, -0x20(%rax,%rcx)
jmp 0x22343
movl 0x140(%rbx), %ecx
movl 0x144(%rbx), %eax
leal -0x1(%rcx), %edx
movl %edx, 0x140(%rbx)
cmpl %eax, %ecx
jle 0x2253c
movq %rbx, %rdi
movl $0x2, %esi
callq 0x13c1a
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x13c1a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13215
movq %rbx, %rdi
movl $0xfffffffc, %esi       # imm = 0xFFFFFFFC
callq 0x13c1a
movq %rbx, %rdi
movl $0x2, %esi
callq 0x16762
movq 0x148(%rbx), %rax
movslq 0x140(%rbx), %rcx
shlq $0x4, %rcx
movups -0x10(%rax,%rcx), %xmm0
movups %xmm0, -0x20(%rax,%rcx)
decl 0x140(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ecx, 0x140(%rbx)
leaq 0x1126c(%rip), %rsi     # 0x3379e
movq %rbx, %rdi
xorl %eax, %eax
callq 0xc666
movl %eax, 0x140(%rbx)
jmp 0x2252b