// File: /workspace/github_c_makefile_star2_O2/lengjingzju[P]json/json.c
// Function: json_print_common
char *json_print_common(json_object *json, json_print_choice_t *choice)
{
    json_print_t print_val = {0};

    if (!json)
        return NULL;

    print_val.item_total = choice->item_total ? choice->item_total : JSON_PRINT_NUM_INIT_DEF;
    if (_print_val_init(&print_val, choice) < 0)
        return NULL;

    if (_json_print_value(&print_val, json) < 0) {
        JsonErr("print failed!\n");
        goto err;
    }
    if (_print_val_release(&print_val, false, &choice->str_len, choice->ptr) < 0)
        goto err;

    return choice->path ? (char *)"ok" : print_val.ptr;
err:
    _print_val_release(&print_val, true, NULL, NULL);
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x50(%rsp)
testq %rdi, %rdi
je 0x29ae
movq %rsi, %rbx
movq %rdi, %r14
movl 0x18(%rsi), %eax
testl %eax, %eax
movl $0x400, %ecx            # imm = 0x400
cmovnel %eax, %ecx
leaq 0x10(%rsp), %rdi
movl %ecx, 0x38(%rdi)
callq 0x2abf
xorl %r15d, %r15d
testl %eax, %eax
js 0x29fa
movq $0x0, 0x58(%rsp)
movq %rbx, 0x60(%rsp)
pushq $-0x1
popq %rbx
leaq 0x613d(%rip), %r15      # 0x8384
xorl %r13d, %r13d
xorl %r12d, %r12d
movq %r12, 0x8(%rsp)
movq %r13, %r12
movq %r14, %r13
movl %ebx, %ebp
movl 0x8(%r13), %eax
andl $0xf, %eax
cmpl $0x9, %eax
ja 0x24c6
movslq (%r15,%rax,4), %rax
addq %r15, %rax
jmpq *%rax
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpq $0x4, %rcx
ja 0x22a4
leaq 0x10(%rsp), %rdi
pushq $0x5
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movl $0x6c6c756e, (%rax)     # imm = 0x6C6C756E
jmp 0x242c
movq 0x20(%rsp), %rsi
movq 0x30(%rsp), %rax
subq %rsi, %rax
addq 0x18(%rsp), %rax
cmpq $0x80, %rax
ja 0x22e4
movl $0x81, %esi
leaq 0x10(%rsp), %rdi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rsi
movq 0x18(%r13), %rdi
callq 0x6bf3
jmp 0x24ba
leaq 0x18(%r13), %rdx
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpq %rdx, 0x20(%r13)
jne 0x27e2
cmpq $0x2, %rcx
ja 0x2331
leaq 0x10(%rsp), %rdi
pushq $0x3
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movw $0x7d7b, (%rax)         # imm = 0x7D7B
jmp 0x27d4
movq 0x20(%rsp), %rsi
movq 0x30(%rsp), %rax
subq %rsi, %rax
addq 0x18(%rsp), %rax
cmpq $0x80, %rax
ja 0x2370
movl $0x81, %esi
leaq 0x10(%rsp), %rdi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rsi
movl 0x18(%r13), %edi
callq 0x6a17
jmp 0x24ba
movq 0x20(%rsp), %rsi
movq 0x30(%rsp), %rax
subq %rsi, %rax
addq 0x18(%rsp), %rax
cmpq $0x80, %rax
ja 0x23b3
movl $0x81, %esi
leaq 0x10(%rsp), %rdi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rsi
movl 0x18(%r13), %edi
callq 0x6d49
jmp 0x24ba
cmpl $0xff, 0x18(%r13)
jbe 0x279e
leaq 0x18(%r13), %rsi
leaq 0x10(%rsp), %rdi
callq 0x34ea
testl %eax, %eax
jns 0x24c6
jmp 0x29b3
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpb $0x1, 0x18(%r13)
jne 0x2767
cmpq $0x4, %rcx
ja 0x2426
leaq 0x10(%rsp), %rdi
pushq $0x5
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movl $0x65757274, (%rax)     # imm = 0x65757274
movq 0x20(%rsp), %rax
addq $0x4, %rax
jmp 0x24c1
movq 0x20(%rsp), %rsi
movq 0x30(%rsp), %rax
subq %rsi, %rax
addq 0x18(%rsp), %rax
cmpq $0x80, %rax
ja 0x246f
movl $0x81, %esi
leaq 0x10(%rsp), %rdi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rsi
movq 0x18(%r13), %rdi
callq 0x6db9
jmp 0x24ba
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rax
subq %rdi, %rax
addq 0x18(%rsp), %rax
cmpq $0x80, %rax
ja 0x24af
movl $0x81, %esi
leaq 0x10(%rsp), %rdi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rdi
movsd 0x18(%r13), %xmm0
callq 0x6e2c
cltq
addq 0x20(%rsp), %rax
movq %rax, 0x20(%rsp)
incl 0x4c(%rsp)
movl %ebp, %eax
incl %ebp
movq %rbp, %rbx
movq %rax, %rbp
testl %ebp, %ebp
js 0x2a0c
movq (%r13), %r14
leaq 0x18(%r12), %rax
cmpq %rax, %r14
jne 0x265c
movl 0x8(%r12), %ecx
andl $0xf, %ecx
movb 0x50(%rsp), %al
cmpl $0x9, %ecx
jne 0x2526
testb %al, %al
je 0x25c3
testq %rbp, %rbp
je 0x258a
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x348c
testl %eax, %eax
jns 0x25c3
jmp 0x29b3
testb %al, %al
je 0x2554
movl 0x8(%r13), %eax
andl $0xe, %eax
cmpl $0x8, %eax
jne 0x2554
testq %rbp, %rbp
je 0x261e
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x348c
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpq $0x1, %rcx
ja 0x2585
leaq 0x10(%rsp), %rdi
pushq $0x2
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movb $0x5d, (%rax)
jmp 0x25f7
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpq $0x1, %rcx
ja 0x25bb
leaq 0x10(%rsp), %rdi
pushq $0x2
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movb $0xa, (%rax)
incq 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpq $0x1, %rcx
ja 0x25f4
leaq 0x10(%rsp), %rdi
pushq $0x2
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movb $0x7d, (%rax)
incq 0x20(%rsp)
incl 0x4c(%rsp)
subq $0x1, %rbp
jb 0x2a0c
movq %r12, %r13
movq 0x8(%rsp), %rax
movq (%rax,%rbp,8), %r12
decq %rbx
jmp 0x24d4
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpq $0x1, %rcx
ja 0x264f
leaq 0x10(%rsp), %rdi
pushq $0x2
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movb $0xa, (%rax)
incq 0x20(%rsp)
jmp 0x2554
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpq $0x1, %rcx
ja 0x268d
leaq 0x10(%rsp), %rdi
pushq $0x2
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movb $0x2c, (%rax)
movq 0x20(%rsp), %rax
incq %rax
movq %rax, 0x20(%rsp)
movl 0x8(%r12), %ecx
andl $0xf, %ecx
cmpl $0x9, %ecx
je 0x2899
cmpb $0x0, 0x50(%rsp)
movq %r14, %r13
je 0x225a
movl 0x8(%r14), %ecx
andl $0xf, %ecx
cmpl $0x8, %ecx
jne 0x26e5
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x348c
movq %r14, %r13
testl %eax, %eax
jns 0x225a
jmp 0x29b3
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpq $0x1, %rcx
ja 0x2711
leaq 0x10(%rsp), %rdi
pushq $0x2
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movb $0x20, (%rax)
incq 0x20(%rsp)
movq %r14, %r13
jmp 0x225a
leaq 0x18(%r13), %rdx
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpq %rdx, 0x20(%r13)
jne 0x280b
cmpq $0x2, %rcx
ja 0x2760
leaq 0x10(%rsp), %rdi
pushq $0x3
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movw $0x5d5b, (%rax)         # imm = 0x5D5B
jmp 0x27d4
cmpq $0x5, %rcx
ja 0x2786
leaq 0x10(%rsp), %rdi
pushq $0x6
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movb $0x65, 0x4(%rax)
movl $0x736c6166, (%rax)     # imm = 0x736C6166
movq 0x20(%rsp), %rax
addq $0x5, %rax
jmp 0x24c1
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpq $0x2, %rcx
ja 0x27cf
leaq 0x10(%rsp), %rdi
pushq $0x3
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b3
movq 0x20(%rsp), %rax
movw $0x2222, (%rax)         # imm = 0x2222
movq 0x20(%rsp), %rax
addq $0x2, %rax
jmp 0x24c1
cmpq $0x1, %rcx
movq 0x8(%rsp), %r12
ja 0x2806
leaq 0x10(%rsp), %rdi
pushq $0x2
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b8
movq 0x20(%rsp), %rax
movb $0x7b, (%rax)
jmp 0x2832
cmpq $0x1, %rcx
movq 0x8(%rsp), %r12
ja 0x282f
leaq 0x10(%rsp), %rdi
pushq $0x2
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b8
movq 0x20(%rsp), %rax
movb $0x5b, (%rax)
incq 0x20(%rsp)
movq 0x58(%rsp), %rax
decl %eax
cmpl %eax, %ebp
jge 0x297d
leal 0x1(%rbp), %ebx
movslq %ebp, %rax
movq %r13, 0x8(%r12,%rax,8)
movq 0x18(%r13), %r14
movl 0x8(%r13), %eax
andl $0xf, %eax
cmpl $0x8, %eax
jne 0x28a3
cmpb $0x1, 0x50(%rsp)
jne 0x224d
movl 0x8(%r14), %eax
andl $0xe, %eax
cmpl $0x8, %eax
jne 0x224d
addl $0x2, %ebp
movslq %ebp, %rsi
leaq 0x10(%rsp), %rdi
callq 0x348c
testl %eax, %eax
jns 0x224d
jmp 0x29b8
movq %r12, %r13
movl %ebp, %ebx
movq 0x8(%rsp), %r12
cmpb $0x1, 0x50(%rsp)
jne 0x2920
leal 0x1(%rbx), %eax
movslq %eax, %rsi
leaq 0x10(%rsp), %rdi
callq 0x348c
testl %eax, %eax
js 0x29b8
cmpl $0xff, 0x8(%r14)
jbe 0x2a5e
leaq 0x8(%r14), %rsi
leaq 0x10(%rsp), %rdi
callq 0x34ea
testl %eax, %eax
js 0x29b8
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpq $0x2, %rcx
ja 0x2917
leaq 0x10(%rsp), %rdi
pushq $0x3
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b8
movq 0x20(%rsp), %rax
movw $0x93a, (%rax)          # imm = 0x93A
pushq $0x2
jmp 0x2972
cmpl $0xff, 0x8(%r14)
jbe 0x2a49
leaq 0x8(%r14), %rsi
leaq 0x10(%rsp), %rdi
callq 0x34ea
testl %eax, %eax
js 0x29b8
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rax, %rcx
addq 0x18(%rsp), %rcx
cmpq $0x1, %rcx
ja 0x296d
leaq 0x10(%rsp), %rdi
pushq $0x2
popq %rsi
callq *0x28(%rsp)
testl %eax, %eax
js 0x29b8
movq 0x20(%rsp), %rax
movb $0x3a, (%rax)
pushq $0x1
popq %rax
addq %rax, 0x20(%rsp)
jmp 0x224d
movq 0x58(%rsp), %rbx
movslq %ebx, %rax
leaq 0x80(,%rax,8), %rsi
movq %r12, %rdi
callq 0x1180
testq %rax, %rax
je 0x2a89
addl $0x10, %ebx
movq %rbx, 0x58(%rsp)
movq %rax, %r12
jmp 0x2846
xorl %r15d, %r15d
jmp 0x29fa
movq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x1030
leaq 0x5a95(%rip), %rdi      # 0x845c
leaq 0x5ba5(%rip), %rsi      # 0x8573
movl $0x742, %edx            # imm = 0x742
xorl %eax, %eax
callq 0x10c0
leaq 0x5f1c(%rip), %rdi      # 0x88fd
callq 0x1060
xorl %r15d, %r15d
leaq 0x10(%rsp), %rdi
pushq $0x1
popq %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x2bfa
movq %r15, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rdi
callq 0x1030
movq 0x60(%rsp), %rbx
movq 0x20(%rbx), %rcx
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x2bfa
testl %eax, %eax
js 0x29e6
cmpq $0x0, 0x28(%rbx)
jne 0x2a40
movq 0x18(%rsp), %r15
jmp 0x29fa
leaq 0x5b3e(%rip), %r15      # 0x8585
jmp 0x29fa
leaq 0x5a0c(%rip), %rdi      # 0x845c
leaq 0x5c24(%rip), %rsi      # 0x867b
movl $0x65f, %edx            # imm = 0x65F
jmp 0x2a71
leaq 0x59f7(%rip), %rdi      # 0x845c
leaq 0x5c0f(%rip), %rsi      # 0x867b
movl $0x653, %edx            # imm = 0x653
xorl %eax, %eax
callq 0x10c0
leaq 0x5eaf(%rip), %rdi      # 0x892e
callq 0x1060
jmp 0x29b8
leaq 0x59cc(%rip), %rdi      # 0x845c
leaq 0x5be4(%rip), %rsi      # 0x867b
movl $0x63d, %edx            # imm = 0x63D
xorl %eax, %eax
callq 0x10c0
leaq 0x5eb6(%rip), %rdi      # 0x8960
callq 0x1060
movq %r12, %rdi
callq 0x1030
xorl %r12d, %r12d
jmp 0x29b8