// File: /workspace/github_c_makefile_star2_O3/justy989[P]ce/ce_json.c
// Function: value_print
static void _value_print(CeJsonValue_t* value, char* string, PrintState_t* print_state,
                         uint64_t current_indent, uint64_t indent){
     switch(value->type){
     default:
          break;
     case CE_JSON_TYPE_OBJECT:
          _obj_print(&value->obj, string, print_state, current_indent, indent);
          break;
     case CE_JSON_TYPE_ARRAY:
          _array_print(&value->array, string, print_state, current_indent, indent);
          break;
     case CE_JSON_TYPE_STRING:
          _print_state_update(print_state,
                              snprintf(string + print_state->printed, print_state->remaining,
                                       "\"%s\"", value->string));
          break;
     case CE_JSON_TYPE_NUMBER:
          _print_state_update(print_state,
                              snprintf(string + print_state->printed, print_state->remaining,
                                       "%.4f", value->number));
          break;
     case CE_JSON_TYPE_BOOL:
          if(value->boolean){
               _print_state_update(print_state,
                                   snprintf(string + print_state->printed, print_state->remaining, "true"));
          }else{
               _print_state_update(print_state,
                                   snprintf(string + print_state->printed, print_state->remaining, "false"));
          }
          break;
     case CE_JSON_TYPE_NULL:
          _print_state_update(print_state, snprintf(string + print_state->printed, print_state->remaining, "null"));
          break;
     }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x838, %rsp            # imm = 0x838
movl (%rdi), %eax
decl %eax
cmpl $0x5, %eax
ja 0x1d98f
movq %r8, %r15
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r13
leaq 0x1204c(%rip), %rdx     # 0x2f788
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
addq $0x8, %r13
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r15, %r8
addq $0x838, %rsp            # imm = 0x838
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1c753
movq 0x8(%rbx), %rsi
addq (%rbx), %r14
cmpb $0x1, 0x8(%r13)
jne 0x1d975
leaq 0x1209d(%rip), %rdx     # 0x2f821
jmp 0x1d97c
addq (%rbx), %r14
movq 0x8(%rbx), %rsi
movq 0x8(%r13), %rcx
leaq 0x1207c(%rip), %rdx     # 0x2f817
movq %r14, %rdi
jmp 0x1d95c
addq (%rbx), %r14
movq 0x8(%rbx), %rsi
movsd 0x8(%r13), %xmm0
leaq 0x12065(%rip), %rdx     # 0x2f81c
movq %r14, %rdi
movb $0x1, %al
callq 0xd260
jmp 0x1d986
movl $0x3ff, %eax            # imm = 0x3FF
cmpq %rax, %rcx
movl $0x3ff, %r12d           # imm = 0x3FF
cmovbq %rcx, %r12
movq %rcx, 0x10(%rsp)
testq %rcx, %rcx
je 0x1d7f7
leaq 0x430(%rsp), %rdi
movl $0x20, %esi
movq %r12, %rdx
callq 0xd2a0
movb $0x0, 0x430(%rsp,%r12)
movq (%rbx), %rdi
addq %r14, %rdi
movq 0x8(%rbx), %rsi
leaq 0x12020(%rip), %rdx     # 0x2f831
xorl %eax, %eax
callq 0xd260
cltq
movq (%rbx), %r12
addq %rax, %r12
movq %r12, (%rbx)
movq 0x8(%rbx), %rbp
subq %rax, %rbp
movq %rbp, 0x8(%rbx)
movq 0x10(%rsp), %rax
addq %r15, %rax
movl $0x3ff, %ecx            # imm = 0x3FF
cmpq %rcx, %rax
cmovbq %rax, %rcx
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x1d86a
leaq 0x30(%rsp), %rdi
movl $0x20, %esi
movq %rcx, 0x8(%rsp)
movq 0x8(%rsp), %rdx
callq 0xd2a0
movq 0x8(%rsp), %rcx
movb $0x0, 0x30(%rsp,%rcx)
movq 0x10(%r13), %rcx
movq %rcx, 0x8(%rsp)
testq %rcx, %rcx
movq %r14, 0x18(%rsp)
jle 0x1d942
decq 0x8(%rsp)
movq %r15, 0x28(%rsp)
xorl %ecx, %ecx
xorl %r14d, %r14d
movq %r13, 0x20(%rsp)
movq 0x18(%rsp), %r15
movq 0x20(%rsp), %rax
movq 0x8(%rax), %r13
addq %rcx, %r13
addq %r15, %r12
movq %r12, %rdi
movq %rbp, %rsi
leaq 0x130ab(%rip), %rdx     # 0x30966
movq %rcx, %r12
leaq 0x30(%rsp), %rcx
xorl %eax, %eax
callq 0xd260
cltq
addq %rax, (%rbx)
subq %rax, 0x8(%rbx)
movq %r13, %rdi
movq 0x20(%rsp), %r13
movq %r15, %rsi
movq %rbx, %rdx
movq 0x10(%rsp), %rcx
movq 0x28(%rsp), %r8
callq 0x1d70b
movq (%rbx), %rdi
addq %r15, %rdi
cmpq %r14, 0x8(%rsp)
movq 0x8(%rbx), %rsi
leaq 0x11f00(%rip), %rdx     # 0x2f806
leaq 0x115e4(%rip), %rax     # 0x2eef1
cmoveq %rax, %rdx
xorl %eax, %eax
callq 0xd260
movq %r12, %rcx
cltq
movq (%rbx), %r12
addq %rax, %r12
movq 0x8(%rbx), %rbp
subq %rax, %rbp
movq %r12, (%rbx)
movq %rbp, 0x8(%rbx)
incq %r14
addq $0x18, %rcx
cmpq 0x10(%r13), %r14
jl 0x1d89f
movq 0x18(%rsp), %rdi
addq %r12, %rdi
leaq 0x11ee3(%rip), %rdx     # 0x2f834
leaq 0x430(%rsp), %rcx
movq %rbp, %rsi
xorl %eax, %eax
callq 0xd260
jmp 0x1d986
addq (%rbx), %r14
movq 0x8(%rbx), %rsi
leaq 0x11eb9(%rip), %rdx     # 0x2f82c
jmp 0x1d97c
leaq 0x11eaa(%rip), %rdx     # 0x2f826
movq %r14, %rdi
xorl %eax, %eax
callq 0xd260
cltq
addq %rax, (%rbx)
subq %rax, 0x8(%rbx)
addq $0x838, %rsp            # imm = 0x838
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq