// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
subq $0x48, %rsp
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %ebp, %ebp
orb %al, %cl
jne 0x2cfc2
movq %rsi, %rbx
movq %rdi, %r14
movzbl 0x18(%rdi), %eax
cmpl $0xf, %eax
jg 0x2cb1a
decl %eax
cmpl $0x7, %eax
ja 0x2cfc2
leaq 0x5fb6(%rip), %rcx      # 0x32aa0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x6, %esi
movq %rbx, %rdi
callq 0x2ec64
testq %rax, %rax
je 0x2cfc2
movw $0x65, 0x4(%rax)
movl $0x736c6166, (%rax)     # imm = 0x736C6166
jmp 0x2cfbd
cmpl $0x3f, %eax
jg 0x2cbf1
cmpl $0x10, %eax
je 0x2ccf0
cmpl $0x20, %eax
jne 0x2cfc2
movq 0x10(%r14), %r14
movl $0x1, %esi
movq %rbx, %rdi
callq 0x2ec64
testq %rax, %rax
je 0x2cfc2
movb $0x5b, (%rax)
movdqu 0x10(%rbx), %xmm0
pcmpeqd %xmm1, %xmm1
psubq %xmm1, %xmm0
movdqu %xmm0, 0x10(%rbx)
testq %r14, %r14
je 0x2cf4b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2caa9
testl %eax, %eax
je 0x2cfc2
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2cb9b
movq 0x10(%rbx), %r15
addq %r15, %rdi
callq 0x2100
addq %r15, %rax
movq %rax, 0x10(%rbx)
cmpq $0x0, (%r14)
je 0x2cbe9
xorl %r15d, %r15d
cmpl $0x0, 0x24(%rbx)
sete %r15b
movq %r15, %rsi
xorq $0x3, %rsi
movq %rbx, %rdi
callq 0x2ec64
testq %rax, %rax
je 0x2cfc2
movb $0x2c, (%rax)
cmpl $0x0, 0x24(%rbx)
je 0x2cbd7
movb $0x20, 0x1(%rax)
addq $0x2, %rax
jmp 0x2cbda
incq %rax
movl $0x2, %ecx
subq %r15, %rcx
movb $0x0, (%rax)
addq %rcx, 0x10(%rbx)
movq (%r14), %r14
jmp 0x2cb64
cmpl $0x40, %eax
je 0x2cd06
cmpl $0x80, %eax
jne 0x2cfc2
movq 0x20(%r14), %rdi
testq %rdi, %rdi
je 0x2cfc2
callq 0x2100
movq %rax, %r15
incq %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2ec64
testq %rax, %rax
je 0x2cfc2
movq 0x20(%r14), %rsi
movq %rax, %rdi
movq %r15, %rdx
callq 0x21f0
jmp 0x2cfbd
movsd 0x30(%r14), %xmm0
xorps %xmm1, %xmm1
movups %xmm1, 0x1a(%rsp)
movaps %xmm1, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movapd %xmm0, %xmm1
subsd %xmm0, %xmm1
ucomisd %xmm0, %xmm1
jp 0x2cfcf
movl 0x28(%r14), %edx
xorps %xmm1, %xmm1
cvtsi2sd %edx, %xmm1
ucomisd %xmm1, %xmm0
jne 0x2ce79
jp 0x2ce79
leaq 0x547f(%rip), %rsi      # 0x32114
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x2050
jmp 0x2cf04
movl $0x5, %esi
movq %rbx, %rdi
callq 0x2ec64
testq %rax, %rax
je 0x2cfc2
movb $0x0, 0x4(%rax)
movl $0x65757274, (%rax)     # imm = 0x65757274
jmp 0x2cfbd
movl $0x5, %esi
movq %rbx, %rdi
callq 0x2ec64
testq %rax, %rax
je 0x2cfc2
movb $0x0, 0x4(%rax)
movl $0x6c6c756e, (%rax)     # imm = 0x6C6C756E
jmp 0x2cfbd
movq 0x20(%r14), %rdi
movq %rbx, %rsi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2ed3a
xorl %r15d, %r15d
cmpl $0x0, 0x24(%rbx)
movq 0x10(%r14), %r14
sete %r15b
movq %r15, %rsi
xorq $0x3, %rsi
movq %rbx, %rdi
callq 0x2ec64
testq %rax, %rax
je 0x2cfc2
movb $0x7b, (%rax)
incq 0x18(%rbx)
movl $0x2, %ecx
subq %r15, %rcx
cmpl $0x0, 0x24(%rbx)
je 0x2cd46
movb $0xa, 0x1(%rax)
addq %rcx, 0x10(%rbx)
testq %r14, %r14
je 0x2cf69
cmpl $0x0, 0x24(%rbx)
je 0x2cd98
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
callq 0x2ec64
xorl %ebp, %ebp
testq %rax, %rax
je 0x2cfc2
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x2cd8b
xorl %edx, %edx
movb $0x9, (%rax,%rdx)
incq %rdx
movq 0x18(%rbx), %rcx
cmpq %rcx, %rdx
jb 0x2cd7b
addq %rcx, 0x10(%rbx)
testq %rax, %rax
je 0x2cfc2
movq 0x38(%r14), %rdi
movq %rbx, %rsi
callq 0x2ed3a
xorl %ebp, %ebp
testl %eax, %eax
je 0x2cfc2
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2cdc9
movq 0x10(%rbx), %r15
addq %r15, %rdi
callq 0x2100
addq %r15, %rax
movq %rax, 0x10(%rbx)
cmpl $0x1, 0x24(%rbx)
movl $0x2, %r15d
sbbq $0x0, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2ec64
testq %rax, %rax
je 0x2cfc2
movb $0x3a, (%rax)
cmpl $0x0, 0x24(%rbx)
je 0x2cdf8
movb $0x9, 0x1(%rax)
addq %r15, 0x10(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2caa9
testl %eax, %eax
je 0x2cfc2
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2ce2a
movq 0x10(%rbx), %r15
addq %r15, %rdi
callq 0x2100
addq %r15, %rax
movq %rax, 0x10(%rbx)
xorl %r15d, %r15d
cmpq $0x0, (%r14)
setne %r15b
cmpl $0x1, 0x24(%rbx)
sbbq $-0x1, %r15
leaq 0x1(%r15), %rsi
movq %rbx, %rdi
callq 0x2ec64
testq %rax, %rax
je 0x2cfc2
cmpq $0x0, (%r14)
je 0x2ce5e
movb $0x2c, (%rax)
incq %rax
cmpl $0x0, 0x24(%rbx)
je 0x2ce6a
movb $0xa, (%rax)
incq %rax
movb $0x0, (%rax)
addq %r15, 0x10(%rbx)
movq (%r14), %r14
jmp 0x2cd4a
leaq 0x5c8e(%rip), %rsi      # 0x32b0e
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movb $0x1, %al
movapd %xmm0, 0x30(%rsp)
callq 0x2050
movl %eax, %r14d
leaq 0x5c76(%rip), %rsi      # 0x32b15
leaq 0x8(%rsp), %rdx
movq %r15, %rdi
xorl %eax, %eax
callq 0x2280
movapd 0x30(%rsp), %xmm0
cmpl $0x1, %eax
jne 0x2cef1
movsd 0x8(%rsp), %xmm4
movapd 0x5bc9(%rip), %xmm1     # 0x32a90
movapd %xmm4, %xmm2
andpd %xmm1, %xmm2
movapd %xmm0, %xmm3
andpd %xmm1, %xmm3
maxsd %xmm3, %xmm2
subsd %xmm0, %xmm4
andpd %xmm1, %xmm4
mulsd 0x5b9d(%rip), %xmm2     # 0x32a88
ucomisd %xmm4, %xmm2
jae 0x2cf07
leaq 0x5c21(%rip), %rsi      # 0x32b19
leaq 0x10(%rsp), %rdi
movb $0x1, %al
callq 0x2050
movl %eax, %r14d
xorl %ebp, %ebp
cmpl $0x19, %r14d
ja 0x2cfc2
movl %r14d, %r15d
leaq 0x1(%r15), %rsi
movq %rbx, %rdi
callq 0x2ec64
testq %rax, %rax
je 0x2cfc2
xorl %ecx, %ecx
testl %r14d, %r14d
je 0x2cf41
movb 0x10(%rsp,%rcx), %dl
movb %dl, (%rax,%rcx)
incq %rcx
cmpq %rcx, %r15
jne 0x2cf32
movb $0x0, (%rax,%rcx)
addq %r15, 0x10(%rbx)
jmp 0x2cfbd
movl $0x2, %esi
movq %rbx, %rdi
callq 0x2ec64
movl $0x0, %ebp
testq %rax, %rax
je 0x2cfc2
movw $0x5d, (%rax)
jmp 0x2cfb9
cmpl $0x0, 0x24(%rbx)
je 0x2cf78
movq 0x18(%rbx), %rsi
incq %rsi
jmp 0x2cf7d
movl $0x2, %esi
movq %rbx, %rdi
callq 0x2ec64
movl $0x0, %ebp
testq %rax, %rax
je 0x2cfc2
cmpl $0x0, 0x24(%rbx)
je 0x2cfb4
cmpq $0x1, 0x18(%rbx)
je 0x2cfb4
xorl %ecx, %ecx
movb $0x9, (%rax,%rcx)
incq %rcx
movq 0x18(%rbx), %rdx
decq %rdx
cmpq %rdx, %rcx
jb 0x2cf9e
addq %rcx, %rax
movw $0x7d, (%rax)
decq 0x18(%rbx)
movl $0x1, %ebp
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movb $0x0, 0x14(%rsp)
movl $0x6c6c756e, 0x10(%rsp) # imm = 0x6C6C756E
movl $0x4, %r14d
jmp 0x2cf07