// File: /workspace/github_cpp_makefile_star2_O2/Eba-M[P]E3DC-Control/cJSON.c
// Function: print_value(cJSON const*, printbuffer*)
static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer)
{
    unsigned char *output = NULL;

    if ((item == NULL) || (output_buffer == NULL))
    {
        return false;
    }

    switch ((item->type) & 0xFF)
    {
        case cJSON_NULL:
            output = ensure(output_buffer, 5);
            if (output == NULL)
            {
                return false;
            }
            strcpy((char*)output, "null");
            return true;

        case cJSON_False:
            output = ensure(output_buffer, 6);
            if (output == NULL)
            {
                return false;
            }
            strcpy((char*)output, "false");
            return true;

        case cJSON_True:
            output = ensure(output_buffer, 5);
            if (output == NULL)
            {
                return false;
            }
            strcpy((char*)output, "true");
            return true;

        case cJSON_Number:
            return print_number(item, output_buffer);

        case cJSON_Raw:
        {
            size_t raw_length = 0;
            if (item->valuestring == NULL)
            {
                return false;
            }

            raw_length = strlen(item->valuestring) + sizeof("");
            output = ensure(output_buffer, raw_length);
            if (output == NULL)
            {
                return false;
            }
            memcpy(output, item->valuestring, raw_length);
            return true;
        }

        case cJSON_String:
            return print_string(item, output_buffer);

        case cJSON_Array:
            return print_array(item, output_buffer);

        case cJSON_Object:
            return print_object(item, output_buffer);

        default:
            return false;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebp, %ebp
orb %al, %cl
jne 0x28d1e
movq %rsi, %rbx
movq %rdi, %r14
movzbl 0x18(%rdi), %eax
leal -0x1(%rax), %ecx
cmpl $0x7, %ecx
jbe 0x28940
cmpl $0x10, %eax
je 0x28a16
cmpl $0x20, %eax
je 0x28b6a
cmpl $0x40, %eax
je 0x28a2e
cmpl $0x80, %eax
jne 0x28d1e
movq 0x20(%r14), %rdi
testq %rdi, %rdi
je 0x28d1e
callq 0x2100
movq %rax, %r15
incq %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2a125
testq %rax, %rax
je 0x28d1e
movq 0x20(%r14), %rsi
movq %rax, %rdi
movq %r15, %rdx
callq 0x21f0
jmp 0x28d1b
leaq 0x4f79(%rip), %rax      # 0x2d8c0
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
pushq $0x6
popq %rsi
movq %rbx, %rdi
callq 0x2a125
testq %rax, %rax
je 0x28d1e
movw $0x65, 0x4(%rax)
movl $0x736c6166, (%rax)     # imm = 0x736C6166
jmp 0x28d1b
movsd 0x30(%r14), %xmm0
xorps %xmm1, %xmm1
movups %xmm1, 0x1a(%rsp)
movaps %xmm1, 0x10(%rsp)
andq $0x0, 0x8(%rsp)
movapd %xmm0, %xmm1
subsd %xmm0, %xmm1
ucomisd %xmm0, %xmm1
jp 0x28d2d
movl 0x28(%r14), %edx
cvtsi2sd %edx, %xmm1
ucomisd %xmm1, %xmm0
jne 0x28c1b
jp 0x28c1b
leaq 0x4585(%rip), %rsi      # 0x2cf44
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x2050
jmp 0x28c7f
pushq $0x5
popq %rsi
movq %rbx, %rdi
callq 0x2a125
testq %rax, %rax
je 0x28d1e
movb $0x0, 0x4(%rax)
movl $0x6c6c756e, (%rax)     # imm = 0x6C6C756E
jmp 0x28d1b
pushq $0x5
popq %rsi
movq %rbx, %rdi
callq 0x2a125
testq %rax, %rax
je 0x28d1e
movb $0x0, 0x4(%rax)
movl $0x65757274, (%rax)     # imm = 0x65757274
jmp 0x28d1b
movq 0x20(%r14), %rdi
movq %rbx, %rsi
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2a207
xorl %r12d, %r12d
cmpl $0x0, 0x24(%rbx)
movq 0x10(%r14), %r14
sete %r12b
movq %r12, %rsi
xorq $0x3, %rsi
movq %rbx, %rdi
callq 0x2a125
testq %rax, %rax
je 0x28d1e
pushq $0x2
popq %r15
movb $0x7b, (%rax)
incq 0x18(%rbx)
movq %r15, %rcx
subq %r12, %rcx
cmpl $0x0, 0x24(%rbx)
je 0x28a70
movb $0xa, 0x1(%rax)
addq %rcx, 0x10(%rbx)
xorl %ebp, %ebp
movl 0x24(%rbx), %eax
testq %r14, %r14
je 0x28cd3
testl %eax, %eax
je 0x28ab3
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
callq 0x2a125
testq %rax, %rax
je 0x28d0b
xorl %ecx, %ecx
movq 0x18(%rbx), %rdx
cmpq %rdx, %rcx
jae 0x28aaf
movb $0x9, (%rax,%rcx)
incq %rcx
jmp 0x28a9d
addq %rdx, 0x10(%rbx)
movq 0x38(%r14), %rdi
movq %rbx, %rsi
callq 0x2a207
testl %eax, %eax
je 0x28d1e
movq %rbx, %rdi
callq 0x29de1
cmpl $0x1, 0x24(%rbx)
movq %r15, %r12
sbbq $0x0, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2a125
testq %rax, %rax
je 0x28d1e
movb $0x3a, (%rax)
cmpl $0x0, 0x24(%rbx)
je 0x28afb
movb $0x9, 0x1(%rax)
addq %r12, 0x10(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x288a6
testl %eax, %eax
je 0x28d1e
movq %rbx, %rdi
callq 0x29de1
xorl %r12d, %r12d
cmpq $0x0, (%r14)
setne %r12b
cmpl $0x1, 0x24(%rbx)
sbbq $-0x1, %r12
leaq 0x1(%r12), %rsi
movq %rbx, %rdi
callq 0x2a125
testq %rax, %rax
je 0x28d1e
cmpq $0x0, (%r14)
je 0x28b4f
movb $0x2c, (%rax)
incq %rax
cmpl $0x0, 0x24(%rbx)
je 0x28b5b
movb $0xa, (%rax)
incq %rax
movb $0x0, (%rax)
addq %r12, 0x10(%rbx)
movq (%r14), %r14
jmp 0x28a76
movq 0x10(%r14), %r12
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x2a125
testq %rax, %rax
je 0x28d1e
movb $0x5b, (%rax)
movdqu 0x10(%rbx), %xmm0
pcmpeqd %xmm1, %xmm1
psubq %xmm1, %xmm0
movdqu %xmm0, 0x10(%rbx)
pushq $0x2
popq %r15
xorl %ebp, %ebp
testq %r12, %r12
je 0x28cbc
movq %r12, %r14
movq %r12, %rdi
movq %rbx, %rsi
callq 0x288a6
testl %eax, %eax
je 0x28d1e
movq %rbx, %rdi
callq 0x29de1
cmpq $0x0, (%r14)
movl $0x0, %r12d
je 0x28b9d
xorl %r12d, %r12d
cmpl $0x0, 0x24(%rbx)
sete %r12b
movq %r12, %rsi
xorq $0x3, %rsi
movq %rbx, %rdi
callq 0x2a125
testq %rax, %rax
je 0x28d1e
movb $0x2c, (%rax)
cmpl $0x0, 0x24(%rbx)
je 0x28c06
movb $0x20, 0x1(%rax)
addq $0x2, %rax
jmp 0x28c09
incq %rax
movq %r15, %rcx
subq %r12, %rcx
movb $0x0, (%rax)
addq %rcx, 0x10(%rbx)
movq (%r14), %r12
jmp 0x28b9d
leaq 0x4d1c(%rip), %rsi      # 0x2d93e
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movsd %xmm0, (%rsp)
movb $0x1, %al
callq 0x2050
movl %eax, %ebp
leaq 0x4d06(%rip), %rsi      # 0x2d945
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x2280
cmpl $0x1, %eax
jne 0x28c67
movsd 0x8(%rsp), %xmm0
movsd (%rsp), %xmm1
callq 0x29da9
testl %eax, %eax
jne 0x28c81
leaq 0x4cdb(%rip), %rsi      # 0x2d949
leaq 0x10(%rsp), %rdi
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x2050
movl %eax, %ebp
cmpl $0x19, %ebp
ja 0x28d0b
movl %ebp, %r14d
leaq 0x1(%r14), %rsi
movq %rbx, %rdi
callq 0x2a125
testq %rax, %rax
je 0x28d0b
xorl %ecx, %ecx
cmpq %rcx, %r14
je 0x28cb1
movb 0x10(%rsp,%rcx), %dl
movb %dl, (%rax,%rcx)
incq %rcx
jmp 0x28ca0
movb $0x0, (%rax,%r14)
addq %r14, 0x10(%rbx)
jmp 0x28d1b
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x2a125
testq %rax, %rax
je 0x28d0b
movw $0x5d, (%rax)
jmp 0x28d17
testl %eax, %eax
je 0x28cde
movq 0x18(%rbx), %r15
incq %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2a125
testq %rax, %rax
je 0x28d0b
cmpl $0x0, 0x24(%rbx)
je 0x28d12
xorl %ecx, %ecx
movq 0x18(%rbx), %rdx
decq %rdx
cmpq %rdx, %rcx
jae 0x28d0f
movb $0x9, (%rax,%rcx)
incq %rcx
jmp 0x28cf6
xorl %ebp, %ebp
jmp 0x28d1e
addq %rcx, %rax
movw $0x7d, (%rax)
decq 0x18(%rbx)
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movb $0x0, 0x14(%rsp)
movl $0x6c6c756e, 0x10(%rsp) # imm = 0x6C6C756E
pushq $0x4
popq %rbp
jmp 0x28c8a