// File: /workspace/github_cpp_makefile_star2_O2/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, %r12
movl %edx, 0x4(%rsp)
movl %esi, %ebx
movq %rdi, %r15
addq $0x10, %r15
pushq $-0x8
popq %r14
xorl %ebp, %ebp
movq %r15, %rax
movq (%rax), %rax
decq %rbp
addq $0x8, %r14
testq %rax, %rax
jne 0x9fd1
cmpl $-0x1, %ebp
je 0xa031
testq %r12, %r12
je 0xa056
movl 0xc(%r12), %r14d
xorl %r13d, %r13d
movl 0x4(%rsp), %ebp
testl %ebp, %ebp
setne %r13b
leal 0x2(%r13), %esi
movq %r12, %rdi
callq 0x9ad3
testq %rax, %rax
je 0xa350
incl %r13d
movb $0x7b, (%rax)
testl %ebp, %ebp
movl %r14d, 0x18(%rsp)
je 0xa1b8
movb $0xa, 0x1(%rax)
addq $0x2, %rax
jmp 0xa1bb
leal 0x4(%rbx), %eax
testq %r12, %r12
je 0xa16b
movl 0x4(%rsp), %ebp
testl %ebp, %ebp
pushq $0x3
popq %rsi
cmovnel %eax, %esi
movq %r12, %rdi
callq 0x9ad3
jmp 0xa180
movq %r14, %rdi
callq *0x82c1(%rip)           # 0x12320
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0xa350
movq %r14, %rdi
callq *0x82aa(%rip)           # 0x12320
testq %rax, %rax
je 0xa345
movq %rax, %r13
movq %rbp, %rax
notq %rax
movq %rax, 0x30(%rsp)
movq %rbp, %rax
notq %rax
movq %rax, 0x40(%rsp)
xorl %r12d, %r12d
movq 0x8(%rsp), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x31b0
movq %r13, 0x18(%rsp)
movq %r13, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x31b0
leal 0x1(%rbx), %eax
movl %eax, 0x20(%rsp)
leal 0x8(%rbx), %eax
cmpl $0x0, 0x4(%rsp)
pushq $0x7
popq %rcx
cmovnel %eax, %ecx
movl %ecx, 0x14(%rsp)
leal 0x5(%rbx), %ecx
pushq $0x2
popq %rax
cmovel %eax, %ecx
movl %ecx, 0x2c(%rsp)
xorl %r14d, %r14d
movl %r14d, %ecx
movl %ecx, %r14d
movq (%r15), %r15
testq %r15, %r15
je 0xa2af
movq 0x38(%r15), %rdi
xorl %esi, %esi
callq 0xa4c1
movq %rax, %r13
movq 0x18(%rsp), %rax
movq %r13, (%rax,%r12,8)
movq %r15, %rdi
movl 0x20(%rsp), %esi
movl 0x4(%rsp), %edx
xorl %ecx, %ecx
callq 0x8e1b
movq 0x8(%rsp), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
testq %r13, %r13
sete %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
pushq $0x1
popq %rcx
jne 0xa0e8
movq %rax, %rdi
callq 0x3150
movq %rax, 0x38(%rsp)
movq %r13, %rdi
callq 0x3150
addl 0x38(%rsp), %eax
movl 0x14(%rsp), %ecx
addl 0x2c(%rsp), %ecx
addl %eax, %ecx
movl %ecx, 0x14(%rsp)
jmp 0xa0e5
movl 0x4(%rsp), %ebp
testl %ebp, %ebp
pushq $0x3
popq %rcx
cmovnel %eax, %ecx
movslq %ecx, %rdi
callq *0x81a0(%rip)           # 0x12320
testq %rax, %rax
je 0xa350
movb $0x7b, (%rax)
testl %ebp, %ebp
je 0xa2f6
leaq 0x2(%rax), %rdx
movb $0xa, 0x1(%rax)
cmpl $0x2, %ebx
pushq $0x1
popq %rcx
cmovgel %ebx, %ecx
decl %ecx
subl $0x1, %ecx
jb 0xa2fa
movb $0x9, (%rdx)
incq %rdx
jmp 0xa1a7
incq %rax
xorl %ecx, %ecx
testl %ebp, %ebp
setne %cl
movl %ecx, 0x8(%rsp)
movb $0x0, (%rax)
addl %r13d, 0xc(%r12)
leal 0x1(%rbx), %r14d
movq (%r15), %r15
testq %r15, %r15
je 0xa361
testl %ebp, %ebp
je 0xa20a
movq %r12, %rdi
movl %r14d, %esi
callq 0x9ad3
testq %rax, %rax
je 0xa350
xorl %ecx, %ecx
cmpl %ebx, %ecx
jg 0xa205
movb $0x9, (%rax,%rcx)
incq %rcx
jmp 0xa1f8
addl %r14d, 0xc(%r12)
movq 0x38(%r15), %rdi
movq %r12, %rsi
callq 0xa4c1
movq %r12, %rdi
callq 0xa6fe
movl %eax, 0xc(%r12)
movq %r12, %rdi
movl %r13d, %esi
callq 0x9ad3
testq %rax, %rax
je 0xa350
movb $0x3a, (%rax)
testl %ebp, %ebp
je 0xa242
movb $0x9, 0x1(%rax)
addl %r13d, 0xc(%r12)
movq %r15, %rdi
movl %r14d, %esi
movl %ebp, %edx
movq %r12, %rcx
callq 0x8e1b
movq %r12, %rdi
callq 0xa6fe
movl %eax, 0xc(%r12)
cmpq $0x1, (%r15)
movl 0x8(%rsp), %eax
movl %eax, %ebp
sbbl $-0x1, %ebp
leal 0x1(%rbp), %esi
movq %r12, %rdi
callq 0x9ad3
testq %rax, %rax
je 0xa350
cmpq $0x0, (%r15)
je 0xa291
movb $0x2c, (%rax)
incq %rax
cmpl $0x0, 0x4(%rsp)
je 0xa29e
movb $0xa, (%rax)
incq %rax
movb $0x0, (%rax)
addl %ebp, 0xc(%r12)
movl 0x4(%rsp), %ebp
jmp 0xa1d2
testl %r14d, %r14d
jne 0xa301
sete %r14b
movslq 0x14(%rsp), %rdi
callq *0x805d(%rip)           # 0x12320
testq %rax, %rax
setne %cl
testb %r14b, %cl
je 0xa301
movb $0x7b, (%rax)
cmpl $0x0, 0x4(%rsp)
movq 0x18(%rsp), %r14
movq %rax, 0x20(%rsp)
je 0xa3a5
movq %rax, %r15
addq $0x2, %r15
movb $0xa, 0x1(%rax)
jmp 0xa3ab
leaq 0x1(%rax), %rdx
movw $0x7d, (%rdx)
jmp 0xa352
xorl %ebx, %ebx
movq 0x18(%rsp), %r14
movq 0x30(%rsp), %r15
subq $0x1, %r15
jb 0xa33c
movq (%r14,%rbx), %rdi
testq %rdi, %rdi
je 0xa322
callq *0x8006(%rip)           # 0x12328
movq 0x8(%rsp), %rax
movq (%rax,%rbx), %rdi
testq %rdi, %rdi
je 0xa336
callq *0x7ff2(%rip)           # 0x12328
addq $0x8, %rbx
jmp 0xa30d
movq %r14, %rdi
callq *0x7fe3(%rip)           # 0x12328
movq 0x8(%rsp), %rdi
callq *0x7fd8(%rip)           # 0x12328
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leal 0x2(%rbx), %eax
testl %ebp, %ebp
pushq $0x2
popq %rsi
cmovnel %eax, %esi
movq %r12, %rdi
callq 0x9ad3
testq %rax, %rax
je 0xa350
testl %ebp, %ebp
je 0xa393
xorl %edx, %edx
testl %ebx, %ebx
cmovgl %ebx, %edx
movl %edx, %ecx
subl $0x1, %ecx
jb 0xa397
movb $0x9, (%rax)
incq %rax
jmp 0xa386
movl 0x18(%rsp), %edx
movw $0x7d, (%rax)
movslq %edx, %rax
addq (%r12), %rax
jmp 0xa352
movq %rax, %r15
incq %r15
movb $0x0, (%r15)
pushq $-0x2
popq %r12
subl %ebp, %r12d
xorl %ebp, %ebp
cmpq %rbp, 0x40(%rsp)
je 0xa481
cmpl $0x0, 0x4(%rsp)
je 0xa3dd
xorl %eax, %eax
cmpl %ebx, %eax
jg 0xa3da
movb $0x9, (%r15,%rax)
incq %rax
jmp 0xa3cc
addq %rax, %r15
movq (%r14,%rbp,8), %r13
movq %r13, %rdi
callq 0x3150
movq %rax, %r14
movq %r15, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x3280
movb $0x3a, (%r15,%r14)
cmpl $0x0, 0x4(%rsp)
je 0xa417
addq %r14, %r15
movb $0x9, 0x1(%r15)
addq $0x2, %r15
movq %r15, %r14
jmp 0xa41d
addq %r15, %r14
incq %r14
movq 0x8(%rsp), %r15
movq (%r15,%rbp,8), %rsi
movq %r14, %rdi
callq 0x32d0
movq (%r15,%rbp,8), %rdi
callq 0x3150
movq %rax, %r15
addq %r14, %r15
cmpq %r12, %rbp
movq 0x18(%rsp), %r14
je 0xa44e
movb $0x2c, (%r15)
incq %r15
cmpl $0x0, 0x4(%rsp)
je 0xa45c
movb $0xa, (%r15)
incq %r15
movb $0x0, (%r15)
movq (%r14,%rbp,8), %rdi
callq *0x7ebe(%rip)           # 0x12328
movq 0x8(%rsp), %rax
movq (%rax,%rbp,8), %rdi
callq *0x7eaf(%rip)           # 0x12328
incq %rbp
jmp 0xa3b8
movq %r14, %rdi
callq *0x7e9e(%rip)           # 0x12328
movq 0x8(%rsp), %rdi
callq *0x7e93(%rip)           # 0x12328
cmpl $0x0, 0x4(%rsp)
je 0xa4b1
xorl %eax, %eax
testl %ebx, %ebx
cmovgl %ebx, %eax
subl $0x1, %eax
jb 0xa4b1
movb $0x9, (%r15)
incq %r15
jmp 0xa4a3
movw $0x7d, (%r15)
movq 0x20(%rsp), %rax
jmp 0xa352