// File: /workspace/github_cpp_makefile_star2_O3/fgheng[P]keysound/src/cJSON.cc
// Function: print_object(cJSON*, int, int, printbuffer*)
static char *print_object(cJSON *item,int depth,int fmt,printbuffer *p)
{
	char **entries=0,**names=0;
	char *out=0,*ptr,*ret,*str;int len=7,i=0,j;
	cJSON *child=item->child;
	int numentries=0,fail=0;
	size_t tmplen=0;
	/* Count the number of entries. */
	while (child) numentries++,child=child->next;
	/* Explicitly handle empty object case */
	if (!numentries)
	{
		if (p) out=ensure(p,fmt?depth+4:3);
		else	out=(char*)cJSON_malloc(fmt?depth+4:3);
		if (!out)	return 0;
		ptr=out;*ptr++='{';
		if (fmt) {*ptr++='\n';for (i=0;i<depth-1;i++) *ptr++='\t';}
		*ptr++='}';*ptr++=0;
		return out;
	}
	if (p)
	{
		/* Compose the output: */
		i=p->offset;
		len=fmt?2:1;	ptr=ensure(p,len+1);	if (!ptr) return 0;
		*ptr++='{';	if (fmt) *ptr++='\n';	*ptr=0;	p->offset+=len;
		child=item->child;depth++;
		while (child)
		{
			if (fmt)
			{
				ptr=ensure(p,depth);	if (!ptr) return 0;
				for (j=0;j<depth;j++) *ptr++='\t';
				p->offset+=depth;
			}
			print_string_ptr(child->string,p);
			p->offset=update(p);

			len=fmt?2:1;
			ptr=ensure(p,len);	if (!ptr) return 0;
			*ptr++=':';if (fmt) *ptr++='\t';
			p->offset+=len;

			print_value(child,depth,fmt,p);
			p->offset=update(p);

			len=(fmt?1:0)+(child->next?1:0);
			ptr=ensure(p,len+1); if (!ptr) return 0;
			if (child->next) *ptr++=',';
			if (fmt) *ptr++='\n';*ptr=0;
			p->offset+=len;
			child=child->next;
		}
		ptr=ensure(p,fmt?(depth+1):2);	 if (!ptr) return 0;
		if (fmt)	for (i=0;i<depth-1;i++) *ptr++='\t';
		*ptr++='}';*ptr=0;
		out=(p->buffer)+i;
	}
	else
	{
		/* Allocate space for the names and the objects */
		entries=(char**)cJSON_malloc(numentries*sizeof(char*));
		if (!entries) return 0;
		names=(char**)cJSON_malloc(numentries*sizeof(char*));
		if (!names) {cJSON_free(entries);return 0;}
		memset(entries,0,sizeof(char*)*numentries);
		memset(names,0,sizeof(char*)*numentries);

		/* Collect all the results into our arrays: */
		child=item->child;depth++;if (fmt) len+=depth;
		while (child)
		{
			names[i]=str=print_string_ptr(child->string,0);
			entries[i++]=ret=print_value(child,depth,fmt,0);
			if (str && ret) len+=strlen(ret)+strlen(str)+2+(fmt?2+depth:0); else fail=1;
			child=child->next;
		}

		/* Try to allocate the output string */
		if (!fail)	out=(char*)cJSON_malloc(len);
		if (!out) fail=1;

		/* Handle failure */
		if (fail)
		{
			for (i=0;i<numentries;i++) {if (names[i]) cJSON_free(names[i]);if (entries[i]) cJSON_free(entries[i]);}
			cJSON_free(names);cJSON_free(entries);
			return 0;
		}

		/* Compose the output: */
		*out='{';ptr=out+1;if (fmt)*ptr++='\n';*ptr=0;
		for (i=0;i<numentries;i++)
		{
			if (fmt) for (j=0;j<depth;j++) *ptr++='\t';
			tmplen=strlen(names[i]);memcpy(ptr,names[i],tmplen);ptr+=tmplen;
			*ptr++=':';if (fmt) *ptr++='\t';
			strcpy(ptr,entries[i]);ptr+=strlen(entries[i]);
			if (i!=numentries-1) *ptr++=',';
			if (fmt) *ptr++='\n';*ptr=0;
			cJSON_free(names[i]);cJSON_free(entries[i]);
		}

		cJSON_free(names);cJSON_free(entries);
		if (fmt) for (i=0;i<depth-1;i++) *ptr++='\t';
		*ptr++='}';*ptr++=0;
	}
	return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r15
movl %esi, %ebp
movq %rdi, %rbx
addq $0x10, %rbx
movq $-0x8, %r14
xorl %r12d, %r12d
movq %rbx, %rax
movq (%rax), %rax
decq %r12
addq $0x8, %r14
testq %rax, %rax
jne 0xb81e
cmpl $-0x1, %r12d
movl %edx, 0x4(%rsp)
je 0xb88b
testq %r15, %r15
movq %rbp, 0x18(%rsp)
je 0xb8ae
movl 0xc(%r15), %r13d
xorl %r12d, %r12d
testl %edx, %edx
setne %r12b
leal 0x2(%r12), %esi
movq %r15, %rdi
movl %edx, %r14d
callq 0xb2da
testq %rax, %rax
je 0xbc4a
incl %r12d
movb $0x7b, (%rax)
testl %r14d, %r14d
movl %r14d, %ecx
movl %r13d, 0x10(%rsp)
je 0xba1c
movb $0xa, 0x1(%rax)
addq $0x2, %rax
jmp 0xba1f
leal 0x4(%rbp), %eax
testq %r15, %r15
je 0xb9c3
testl %edx, %edx
movl $0x3, %esi
cmovnel %eax, %esi
movq %r15, %rdi
callq 0xb2da
jmp 0xb9d6
movq %r14, %rdi
callq *0x7a89(%rip)           # 0x13340
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0xbc4a
movq %r14, %rdi
callq *0x7a72(%rip)           # 0x13340
testq %rax, %rax
je 0xbbfd
movq %rax, %r13
movq %r12, %rax
notq %rax
movq %rax, 0x38(%rsp)
movq 0x8(%rsp), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x31d0
movq %r13, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x31d0
leal 0x1(%rbp), %eax
movl %eax, 0x10(%rsp)
leal 0x8(%rbp), %eax
movl 0x4(%rsp), %ecx
testl %ecx, %ecx
movl $0x7, %r15d
cmovnel %eax, %r15d
movq (%rbx), %rbx
testq %rbx, %rbx
movq %r13, 0x20(%rsp)
je 0xbbc4
leal 0x5(%rbp), %eax
testl %ecx, %ecx
movl $0x2, %ecx
cmovnel %eax, %ecx
movl %ecx, 0x30(%rsp)
movb $0x1, %al
xorl %ebp, %ebp
movl %eax, 0x28(%rsp)
incq %rbp
movq 0x38(%rbx), %rdi
xorl %esi, %esi
callq 0xbdcb
movq %rax, %r14
movq %rax, -0x8(%r13,%rbp,8)
movq %rbx, %rdi
movl 0x10(%rsp), %esi
movl 0x4(%rsp), %edx
xorl %ecx, %ecx
callq 0x9fd7
movq 0x8(%rsp), %rcx
movq %rax, -0x8(%rcx,%rbp,8)
testq %r14, %r14
je 0xb9b4
testq %rax, %rax
je 0xb9b4
movq %rax, %rdi
callq 0x3170
movq %rax, %r13
movq %r14, %rdi
callq 0x3170
addl %r13d, %eax
movq 0x20(%rsp), %r13
addl 0x30(%rsp), %r15d
addl %eax, %r15d
movq (%rbx), %rbx
incq %rbp
testq %rbx, %rbx
jne 0xb948
jmp 0xbbbd
movq (%rbx), %rbx
xorl %eax, %eax
testq %rbx, %rbx
jne 0xb941
jmp 0xbc04
testl %edx, %edx
movl $0x3, %ecx
cmovnel %eax, %ecx
movslq %ecx, %rdi
callq *0x796a(%rip)           # 0x13340
movq %rax, %rbx
testq %rax, %rax
je 0xbc4a
movb $0x7b, (%rbx)
cmpl $0x0, 0x4(%rsp)
je 0xbbaf
leaq 0x2(%rbx), %rdi
movb $0xa, 0x1(%rbx)
cmpl $0x2, %ebp
jl 0xbbb3
leal -0x1(%rbp), %edx
movl $0x9, %esi
callq 0x31d0
movl %ebp, %eax
leaq (%rax,%rbx), %rdi
incq %rdi
jmp 0xbbb3
incq %rax
movb $0x0, (%rax)
addl %r12d, 0xc(%r15)
movq (%rbx), %r13
testq %r13, %r13
je 0xbb5f
leal 0x1(%rbp), %ebx
xorl %eax, %eax
testl %ecx, %ecx
setne %al
movl %eax, 0x20(%rsp)
movl %ebx, %eax
movq %rax, 0x8(%rsp)
testl %ecx, %ecx
je 0xba78
movq %r15, %rdi
movl %ebx, %esi
callq 0xb2da
testq %rax, %rax
je 0xbc4a
testl %ebp, %ebp
js 0xba74
movq %rax, %rdi
movl $0x9, %esi
movq 0x8(%rsp), %rdx
callq 0x31d0
addl %ebx, 0xc(%r15)
movq 0x38(%r13), %rdi
movq %r15, %rsi
callq 0xbdcb
movq (%r15), %rdi
testq %rdi, %rdi
je 0xba9d
movslq 0xc(%r15), %r14
addq %r14, %rdi
callq 0x3170
addl %r14d, %eax
jmp 0xba9f
xorl %eax, %eax
movl %eax, 0xc(%r15)
movq %r15, %rdi
movl %r12d, %esi
callq 0xb2da
testq %rax, %rax
je 0xbc4a
xorl %r14d, %r14d
movb $0x3a, (%rax)
movl 0x4(%rsp), %edx
testl %edx, %edx
je 0xbad0
movb $0x9, 0x1(%rax)
movl $0x2, %eax
jmp 0xbad7
movl $0x1, %eax
xorl %edx, %edx
addl %eax, 0xc(%r15)
movq %r13, %rdi
movl %ebx, %esi
movq %r15, %rcx
callq 0x9fd7
movq (%r15), %rdi
testq %rdi, %rdi
je 0xbb07
movslq 0xc(%r15), %rbp
addq %rbp, %rdi
callq 0x3170
movq %rax, %r14
addl %ebp, %r14d
movq 0x18(%rsp), %rbp
movl %r14d, 0xc(%r15)
cmpq $0x1, (%r13)
movl 0x20(%rsp), %eax
movl %eax, %r14d
sbbl $-0x1, %r14d
leal 0x1(%r14), %esi
movq %r15, %rdi
callq 0xb2da
testq %rax, %rax
je 0xbc4a
cmpq $0x0, (%r13)
je 0xbb3d
movb $0x2c, (%rax)
incq %rax
movl 0x4(%rsp), %ecx
testl %ecx, %ecx
je 0xbb4b
movb $0xa, (%rax)
incq %rax
movb $0x0, (%rax)
addl %r14d, 0xc(%r15)
movq (%r13), %r13
testq %r13, %r13
jne 0xba47
leal 0x2(%rbp), %eax
testl %ecx, %ecx
movl $0x2, %esi
cmovnel %eax, %esi
movq %r15, %rdi
movl %ecx, %r14d
callq 0xb2da
testq %rax, %rax
je 0xbc4a
movq %rax, %rbx
testl %r14d, %r14d
je 0xbc5e
testl %ebp, %ebp
jle 0xbc66
movl %ebp, %r14d
movq %rbx, %rdi
movl $0x9, %esi
movq %r14, %rdx
callq 0x31d0
addq %r14, %rbx
jmp 0xbc68
leaq 0x1(%rbx), %rdi
movw $0x7d, (%rdi)
jmp 0xbc4c
testb $0x1, 0x28(%rsp)
je 0xbc04
movslq %r15d, %rdi
callq *0x7773(%rip)           # 0x13340
testq %rax, %rax
je 0xbc04
movq $-0x2, %rsi
subq %r12, %rsi
movb $0x7b, (%rax)
movl 0x4(%rsp), %ecx
testl %ecx, %ecx
movq %rax, 0x28(%rsp)
je 0xbc75
movq %rax, %rbx
addq $0x2, %rbx
movb $0xa, 0x1(%rax)
jmp 0xbc7b
movq 0x8(%rsp), %rdi
jmp 0xbc44
xorl %ebx, %ebx
movq 0x8(%rsp), %r14
movq 0x38(%rsp), %r15
movq (%r13,%rbx), %rdi
testq %rdi, %rdi
je 0xbc20
callq *0x7728(%rip)           # 0x13348
movq (%r14,%rbx), %rdi
testq %rdi, %rdi
je 0xbc2f
callq *0x7719(%rip)           # 0x13348
addq $0x8, %rbx
decq %r15
jne 0xbc10
movq %r13, %rdi
callq *0x7707(%rip)           # 0x13348
movq %r14, %rdi
callq *0x76fe(%rip)           # 0x13348
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x10(%rsp), %eax
movl %eax, %ebp
jmp 0xbc68
xorl %ebp, %ebp
movw $0x7d, (%rbx)
movslq %ebp, %rbx
addq (%r15), %rbx
jmp 0xbc4c
movq %rax, %rbx
incq %rbx
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %rbp
testl %ecx, %ecx
sete %cl
movb $0x0, (%rbx)
testl %edx, %edx
sets %dil
movl 0x10(%rsp), %eax
movq %rax, 0x10(%rsp)
movl %edx, %eax
movq %rax, 0x40(%rsp)
incq %rax
movq %rax, 0x30(%rsp)
orb %cl, %dil
movb %dil, 0x8(%rsp)
movl %esi, %r12d
xorl %r15d, %r15d
cmpb $0x0, 0x8(%rsp)
jne 0xbcd7
movq %rbx, %rdi
movl $0x9, %esi
movq 0x10(%rsp), %rdx
callq 0x31d0
addq 0x30(%rsp), %rbx
movq (%r13,%r15,8), %r13
movq %r13, %rdi
callq 0x3170
movq %rax, %r14
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x32c0
movb $0x3a, (%rbx,%r14)
cmpl $0x0, 0x4(%rsp)
je 0xbd11
addq %r14, %rbx
movb $0x9, 0x1(%rbx)
addq $0x2, %rbx
movq %rbx, %r14
jmp 0xbd17
addq %rbx, %r14
incq %r14
movq (%rbp,%r15,8), %rsi
movq %r14, %rdi
callq 0x3310
movq (%rbp,%r15,8), %rdi
callq 0x3170
movq %rax, %rbx
addq %r14, %rbx
cmpq %r15, %r12
movq 0x20(%rsp), %r13
je 0xbd44
movb $0x2c, (%rbx)
incq %rbx
movl 0x4(%rsp), %eax
testl %eax, %eax
je 0xbd52
movb $0xa, (%rbx)
incq %rbx
movb $0x0, (%rbx)
movq (%r13,%r15,8), %rdi
callq *0x75e8(%rip)           # 0x13348
movq (%rbp,%r15,8), %rdi
callq *0x75dd(%rip)           # 0x13348
incq %r15
cmpq %r15, 0x38(%rsp)
jne 0xbcb9
cmpl $0x0, 0x4(%rsp)
movq %rbp, %r14
sete %bpl
movq %r13, %rdi
callq *0x75ba(%rip)           # 0x13348
movq %r14, %rdi
callq *0x75b1(%rip)           # 0x13348
cmpl $0x0, 0x18(%rsp)
setle %al
orb %bpl, %al
jne 0xbdbc
movq %rbx, %rdi
movl $0x9, %esi
movq 0x40(%rsp), %r14
movq %r14, %rdx
callq 0x31d0
addq %r14, %rbx
movw $0x7d, (%rbx)
movq 0x28(%rsp), %rbx
jmp 0xbc4c