// File: /workspace/github_c_makefile_star2_O1/ccxvii[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 0x4032
movl 0x140(%rbx), %ecx
leal -0x1(%rcx), %eax
testl %ecx, %ecx
jle 0x2254f
movl %eax, %edx
shlq $0x4, %rdx
addq 0x148(%rbx), %rdx
jmp 0x22556
leaq 0x1dea2(%rip), %rdx     # 0x403f8
cmpb $0x7, 0xf(%rdx)
jne 0x227ea
testl %ecx, %ecx
jle 0x22573
movl %eax, %eax
shlq $0x4, %rax
addq 0x148(%rbx), %rax
jmp 0x2257a
leaq 0x1de7e(%rip), %rax     # 0x403f8
cmpb $0x7, 0xf(%rax)
jne 0x2265f
movq (%rax), %rax
cmpl $0x1, (%rax)
jne 0x2265f
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x3fcc
testl %eax, %eax
jle 0x227ea
movl %eax, %ebp
xorl %r15d, %r15d
movq %rsp, %r12
leaq 0x1de44(%rip), %r13     # 0x403f8
movq %r12, %rdi
movl %r15d, %esi
callq 0x12cc2
movq %rbx, %rdi
movq %r12, %rsi
callq 0x22512
movslq 0x140(%rbx), %rax
movq %r13, %rcx
testq %rax, %rax
jle 0x225ee
movq 0x148(%rbx), %rcx
movq %rax, %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
addq $-0x10, %rcx
cmpb $0x1, 0xf(%rcx)
jne 0x2263e
leal -0x1(%rax), %ecx
movl %ecx, 0x140(%rbx)
movl 0x144(%rbx), %ecx
cmpl %ecx, %eax
jle 0x2285a
movq %r13, %rsi
cmpl $0x2, %eax
jl 0x22626
movq 0x148(%rbx), %rcx
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $-0x20, %rsi
movq %rbx, %rdi
callq 0x15489
movq %rbx, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x1622d
jmp 0x2264e
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r12, %rdx
callq 0x41f3
incl %r15d
cmpl %r15d, %ebp
jne 0x225b4
jmp 0x227ea
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x1, %edx
callq 0x16b9e
leaq 0x1dd80(%rip), %r12     # 0x403f8
movslq 0x140(%rbx), %rax
movq %r12, %rsi
testq %rax, %rax
jle 0x2269a
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 0x227cd
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 0x22512
movslq 0x140(%rbx), %rax
movq %r12, %rcx
testq %rax, %rax
jle 0x22728
movq 0x148(%rbx), %rcx
movq %rax, %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
addq $-0x10, %rcx
cmpb $0x1, 0xf(%rcx)
jne 0x22778
leal -0x1(%rax), %ecx
movl %ecx, 0x140(%rbx)
movl 0x144(%rbx), %ecx
cmpl %ecx, %eax
jle 0x2285a
movq %r12, %rsi
cmpl $0x2, %eax
jl 0x22760
movq 0x148(%rbx), %rcx
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $-0x20, %rsi
movq %rbx, %rdi
callq 0x15489
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1622d
jmp 0x22788
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r15, %rdx
callq 0x41f3
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 0x22678
movl 0x140(%rbx), %ecx
movl 0x144(%rbx), %eax
leal -0x1(%rcx), %edx
movl %edx, 0x140(%rbx)
cmpl %eax, %ecx
jle 0x22871
movq %rbx, %rdi
movl $0x2, %esi
callq 0x14073
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x14073
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13665
movq %rbx, %rdi
movl $0xfffffffc, %esi       # imm = 0xFFFFFFFC
callq 0x14073
movq %rbx, %rdi
movl $0x2, %esi
callq 0x16c25
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 0x10f07(%rip), %rsi     # 0x3376e
movq %rbx, %rdi
xorl %eax, %eax
callq 0xc939
movl %eax, 0x140(%rbx)
jmp 0x22860