// File: /workspace/github_cpp_makefile_star2_O1/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 %edx, (%rsp)
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 0xb9cc
cmpl $-0x1, %r12d
je 0xba34
testq %r15, %r15
movq %rbp, 0x18(%rsp)
je 0xba59
movl 0xc(%r15), %r13d
xorl %r12d, %r12d
movl (%rsp), %r14d
testl %r14d, %r14d
setne %r12b
leal 0x2(%r12), %esi
movq %r15, %rdi
callq 0xb45c
testq %rax, %rax
je 0xbdeb
incl %r12d
movb $0x7b, (%rax)
testl %r14d, %r14d
movl %r13d, 0x8(%rsp)
je 0xbbcd
movb $0xa, 0x1(%rax)
addq $0x2, %rax
jmp 0xbbd0
leal 0x4(%rbp), %eax
testq %r15, %r15
je 0xbb6f
cmpl $0x0, (%rsp)
movl $0x3, %esi
cmovnel %eax, %esi
movq %r15, %rdi
callq 0xb45c
jmp 0xbb84
movq %r14, %rdi
callq *0x78de(%rip)           # 0x13340
testq %rax, %rax
je 0xbdeb
movq %rax, %r13
movq %r14, %rdi
callq *0x78c9(%rip)           # 0x13340
testq %rax, %rax
je 0xbde2
movq %rax, %r15
movq $0x0, 0x10(%rsp)
movq %r13, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x31d0
movq %r15, 0x8(%rsp)
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x31d0
leal 0x1(%rbp), %eax
movq %rax, 0x30(%rsp)
leal 0x8(%rbp), %eax
movl (%rsp), %edx
testl %edx, %edx
movq %rbp, %rcx
movl $0x7, %ebp
cmovnel %eax, %ebp
movq (%rbx), %rbx
testq %rbx, %rbx
movq %r13, 0x28(%rsp)
je 0xbd50
leal 0x5(%rcx), %eax
testl %edx, %edx
movl $0x2, %ecx
cmovnel %eax, %ecx
movl %ecx, 0x20(%rsp)
xorl %r15d, %r15d
movq 0x38(%rbx), %rdi
xorl %esi, %esi
callq 0xbf66
movq %rax, %r14
movq 0x8(%rsp), %rax
movq %r14, (%rax,%r15)
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movl (%rsp), %edx
xorl %ecx, %ecx
callq 0xa040
movq %rax, (%r13,%r15)
testq %r14, %r14
sete %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0xbb4c
movq %rax, %rdi
callq 0x3170
movq %rax, %r13
movq %r14, %rdi
callq 0x3170
addl %r13d, %eax
movq 0x28(%rsp), %r13
addl 0x20(%rsp), %ebp
addl %eax, %ebp
jmp 0xbb56
movl $0x1, %eax
movq %rax, 0x10(%rsp)
movq (%rbx), %rbx
addq $0x8, %r15
testq %rbx, %rbx
jne 0xbaeb
cmpl $0x0, 0x10(%rsp)
sete %bl
jmp 0xbd52
cmpl $0x0, (%rsp)
movl $0x3, %ecx
cmovnel %eax, %ecx
movslq %ecx, %rdi
callq *0x77bc(%rip)           # 0x13340
movq %rax, %r15
testq %rax, %rax
je 0xbdeb
movb $0x7b, (%r15)
cmpl $0x0, (%rsp)
je 0xbd42
leaq 0x2(%r15), %rdi
movb $0xa, 0x1(%r15)
cmpl $0x2, %ebp
jl 0xbd46
leal -0x1(%rbp), %edx
movl $0x9, %esi
callq 0x31d0
addl $-0x2, %ebp
leaq (%r15,%rbp), %rdi
addq $0x3, %rdi
jmp 0xbd46
incq %rax
movb $0x0, (%rax)
addl %r12d, 0xc(%r15)
movq (%rbx), %r13
testq %r13, %r13
je 0xbcf0
leal 0x1(%rbp), %ebx
xorl %r14d, %r14d
cmpl $0x0, (%rsp)
setne %r14b
cmpl $0x0, (%rsp)
je 0xbc22
movq %r15, %rdi
movl %ebx, %esi
callq 0xb45c
testq %rax, %rax
je 0xbdeb
testl %ebp, %ebp
js 0xbc1e
movq %rax, %rdi
movl $0x9, %esi
movq %rbx, %rdx
callq 0x31d0
addl %ebx, 0xc(%r15)
movq 0x38(%r13), %rdi
movq %r15, %rsi
callq 0xbf66
movq (%r15), %rdi
testq %rdi, %rdi
je 0xbc46
movslq 0xc(%r15), %rbp
addq %rbp, %rdi
callq 0x3170
addl %ebp, %eax
jmp 0xbc48
xorl %eax, %eax
movl (%rsp), %ebp
movl %eax, 0xc(%r15)
movq %r15, %rdi
movl %r12d, %esi
callq 0xb45c
testq %rax, %rax
je 0xbdeb
movb $0x3a, (%rax)
testl %ebp, %ebp
je 0xbc6e
movb $0x9, 0x1(%rax)
addl %r12d, 0xc(%r15)
movq %r13, %rdi
movl %ebx, %esi
movl %ebp, %edx
movq %r15, %rcx
callq 0xa040
movq (%r15), %rdi
testq %rdi, %rdi
je 0xbc99
movslq 0xc(%r15), %rbp
addq %rbp, %rdi
callq 0x3170
addl %ebp, %eax
jmp 0xbc9b
xorl %eax, %eax
movl %eax, 0xc(%r15)
cmpq $0x1, (%r13)
movl %r14d, %ebp
sbbl $-0x1, %ebp
leal 0x1(%rbp), %esi
movq %r15, %rdi
callq 0xb45c
testq %rax, %rax
je 0xbdeb
cmpq $0x0, (%r13)
je 0xbccb
movb $0x2c, (%rax)
incq %rax
cmpl $0x0, (%rsp)
je 0xbcd7
movb $0xa, (%rax)
incq %rax
movb $0x0, (%rax)
addl %ebp, 0xc(%r15)
movq (%r13), %r13
testq %r13, %r13
movq 0x18(%rsp), %rbp
jne 0xbbf1
leal 0x2(%rbp), %eax
movl (%rsp), %r14d
testl %r14d, %r14d
movl $0x2, %esi
cmovnel %eax, %esi
movq %r15, %rdi
callq 0xb45c
testq %rax, %rax
je 0xbdeb
movq %rax, %rbx
testl %r14d, %r14d
je 0xbe00
testl %ebp, %ebp
jle 0xbe08
movl %ebp, %r14d
movq %rbx, %rdi
movl $0x9, %esi
movq %r14, %rdx
callq 0x31d0
addq %r14, %rbx
jmp 0xbe0a
leaq 0x1(%r15), %rdi
movw $0x7d, (%rdi)
jmp 0xbdee
movb $0x1, %bl
testb %bl, %bl
movq 0x8(%rsp), %r14
je 0xbd69
movslq %ebp, %rdi
callq *0x75dc(%rip)           # 0x13340
movq %rax, %r15
jmp 0xbd6c
xorl %r15d, %r15d
movq 0x18(%rsp), %rdx
movl (%rsp), %ebp
movq %r12, %rcx
notq %rcx
testq %r15, %r15
setne %al
testb %bl, %al
je 0xbda5
movq $-0x2, %rax
subq %r12, %rax
movb $0x7b, (%r15)
testl %ebp, %ebp
je 0xbe1a
leaq 0x2(%r15), %rbx
movb $0xa, 0x1(%r15)
jmp 0xbe1e
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %ebx, %ebx
movq %rcx, %r15
movq (%r14,%rbx,8), %rdi
testq %rdi, %rdi
je 0xbdc1
callq *0x7587(%rip)           # 0x13348
movq (%r13,%rbx,8), %rdi
testq %rdi, %rdi
je 0xbdd1
callq *0x7577(%rip)           # 0x13348
incq %rbx
cmpq %rbx, %r15
jne 0xbdb2
movq %r14, %rdi
callq *0x7566(%rip)           # 0x13348
movq %r13, %rdi
callq *0x755d(%rip)           # 0x13348
xorl %r15d, %r15d
movq %r15, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x8(%rsp), %eax
movl %eax, %ebp
jmp 0xbe0a
xorl %ebp, %ebp
movw $0x7d, (%rbx)
movslq %ebp, %rax
addq (%r15), %rax
movq %rax, %r15
jmp 0xbdee
leaq 0x1(%r15), %rbx
movq %rcx, %rsi
testl %ebp, %ebp
sete %cl
movb $0x0, (%rbx)
testl %edx, %edx
sets %dil
movl %edx, %edx
movq %rdx, 0x38(%rsp)
incq %rdx
movq %rdx, 0x40(%rsp)
orb %cl, %dil
movb %dil, 0x10(%rsp)
movl %eax, %eax
movq %rax, 0x20(%rsp)
cmpq $0x1, %rsi
adcq $0x0, %rsi
movq %rsi, (%rsp)
xorl %r12d, %r12d
cmpb $0x0, 0x10(%rsp)
jne 0xbe7a
movq %rbx, %rdi
movl $0x9, %esi
movq 0x30(%rsp), %rdx
callq 0x31d0
addq 0x40(%rsp), %rbx
movq (%r14,%r12,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)
testl %ebp, %ebp
je 0xbeb0
addq %r14, %rbx
movb $0x9, 0x1(%rbx)
addq $0x2, %rbx
movq %rbx, %r14
jmp 0xbeb6
addq %rbx, %r14
incq %r14
movq 0x28(%rsp), %r13
movq (%r13,%r12,8), %rsi
movq %r14, %rdi
callq 0x3310
movq (%r13,%r12,8), %rdi
callq 0x3170
movq %rax, %rbx
addq %r14, %rbx
cmpq %r12, 0x20(%rsp)
je 0xbee5
movb $0x2c, (%rbx)
incq %rbx
movq 0x8(%rsp), %r14
testl %ebp, %ebp
je 0xbef4
movb $0xa, (%rbx)
incq %rbx
movb $0x0, (%rbx)
movq (%r14,%r12,8), %rdi
callq *0x7447(%rip)           # 0x13348
movq (%r13,%r12,8), %rdi
callq *0x743c(%rip)           # 0x13348
incq %r12
cmpq %r12, (%rsp)
jne 0xbe5c
testl %ebp, %ebp
sete %bpl
movq %r14, %rdi
callq *0x7420(%rip)           # 0x13348
movq %r13, %rdi
callq *0x7417(%rip)           # 0x13348
movq 0x18(%rsp), %r14
testl %r14d, %r14d
setle %al
orb %bpl, %al
jne 0xbf5c
movq %rbx, %rdi
movl $0x9, %esi
movq 0x38(%rsp), %rdx
callq 0x31d0
decl %r14d
addq %r14, %rbx
incq %rbx
movw $0x7d, (%rbx)
jmp 0xbdee