// File: /workspace/github_c_makefile_star2_O2/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
movq %r8, 0x8(%rsp)
movq %rdi, (%rsp)
movl (%rdi), %eax
decl %eax
cmpl $0x5, %eax
ja 0x1bad4
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x10e30(%rip), %rcx     # 0x2c6e0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rsp), %rdi
addq $0x8, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r15, %rcx
movq 0x8(%rsp), %r8
addq $0x838, %rsp            # imm = 0x838
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1ad89
movq 0x8(%rbx), %rsi
addq (%rbx), %r14
movq (%rsp), %rax
cmpb $0x1, 0x8(%rax)
jne 0x1baba
leaq 0x10e78(%rip), %rdx     # 0x2c779
jmp 0x1bac1
addq (%rbx), %r14
movq 0x8(%rbx), %rsi
movq (%rsp), %rax
movq 0x8(%rax), %rcx
leaq 0x10e53(%rip), %rdx     # 0x2c76f
movq %r14, %rdi
xorl %eax, %eax
callq 0xd260
jmp 0x1bacb
addq (%rbx), %r14
movq 0x8(%rbx), %rsi
movq (%rsp), %rax
movsd 0x8(%rax), %xmm0
leaq 0x10e32(%rip), %rdx     # 0x2c774
movq %r14, %rdi
movb $0x1, %al
callq 0xd260
jmp 0x1bacb
leaq 0x430(%rsp), %rdi
movq %r15, %rsi
callq 0x1b858
movq (%rbx), %rdi
movq %r14, 0x18(%rsp)
addq %r14, %rdi
movq 0x8(%rbx), %rsi
leaq 0x10e12(%rip), %rdx     # 0x2c789
xorl %eax, %eax
callq 0xd260
cltq
movq (%rbx), %r12
addq %rax, %r12
movq %r12, (%rbx)
movq 0x8(%rbx), %rbp
subq %rax, %rbp
movq %rbx, 0x10(%rsp)
movq %rbp, 0x8(%rbx)
addq 0x8(%rsp), %r15
leaq 0x30(%rsp), %rdi
movq %r15, 0x28(%rsp)
movq %r15, %rsi
callq 0x1b858
movq (%rsp), %rax
movq 0x10(%rax), %rax
leaq -0x1(%rax), %rcx
movq %rcx, 0x20(%rsp)
xorl %ecx, %ecx
xorl %r14d, %r14d
movq 0x18(%rsp), %r15
movq 0x10(%rsp), %rbx
cmpq %rax, %r14
jge 0x1ba79
movq (%rsp), %rax
movq 0x8(%rax), %r13
addq %rcx, %r13
addq %r15, %r12
movq %r12, %rdi
movq %rbp, %rsi
leaq 0x11f12(%rip), %rdx     # 0x2d906
movq %rcx, %r12
leaq 0x30(%rsp), %rcx
xorl %eax, %eax
callq 0xd260
cltq
addq %rax, (%rbx)
subq %rax, 0x8(%rbx)
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq 0x28(%rsp), %rcx
movq 0x8(%rsp), %r8
callq 0x1b879
movq (%rbx), %rdi
addq %r15, %rdi
cmpq %r14, 0x20(%rsp)
movq 0x8(%rbx), %rsi
leaq 0x10d24(%rip), %rdx     # 0x2c75e
leaq 0x104b0(%rip), %rax     # 0x2bef1
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
movq (%rsp), %rax
movq 0x10(%rax), %rax
addq $0x18, %rcx
jmp 0x1b9d0
movq 0x18(%rsp), %rdi
addq %r12, %rdi
leaq 0x10d04(%rip), %rdx     # 0x2c78c
leaq 0x430(%rsp), %rcx
movq %rbp, %rsi
xorl %eax, %eax
callq 0xd260
cltq
movq 0x10(%rsp), %rcx
addq %rax, (%rcx)
subq %rax, 0x8(%rcx)
jmp 0x1bad4
addq (%rbx), %r14
movq 0x8(%rbx), %rsi
leaq 0x10ccc(%rip), %rdx     # 0x2c784
jmp 0x1bac1
leaq 0x10cbd(%rip), %rdx     # 0x2c77e
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