// File: /workspace/github_c_makefile_star2_O2/justy989[P]ce/ce_json.c
// Function: obj_print
static void _obj_print(CeJsonObj_t* obj, char* string, PrintState_t* print_state, uint64_t current_indent,
                           uint64_t indent){
     char indentation[MAX_INDENTATION];
     _make_indentation(indentation, MAX_INDENTATION, current_indent);
     _print_state_update(print_state, snprintf(string + print_state->printed, print_state->remaining, "{\n"));
     // This is fine to wrap arround because we won't go into the loop.
     int64_t last_index = (obj->count - 1);
     for(int64_t i = 0; i < obj->count; i++){
          CeJsonField_t* field = obj->fields + i;
          _field_print(field, string, print_state, current_indent + indent, indent);
          if(i != last_index){
               _print_state_update(print_state, snprintf(string + print_state->printed, print_state->remaining, ",\n"));
          }else{
               _print_state_update(print_state, snprintf(string + print_state->printed, print_state->remaining, "\n"));
          }
     }
     _print_state_update(print_state, snprintf(string + print_state->printed, print_state->remaining, "%s}", indentation));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x848, %rsp            # imm = 0x848
movq %r8, (%rsp)
movq %rcx, %r13
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
leaq 0x40(%rsp), %rdi
movq %rcx, %rsi
callq 0x1b858
movq (%rbx), %rdi
movq %r14, 0x8(%rsp)
addq %r14, %rdi
movq 0x8(%rbx), %rsi
leaq 0x1198e(%rip), %rdx     # 0x2c75b
xorl %eax, %eax
callq 0xd260
cltq
movq (%rbx), %rbp
addq %rax, %rbp
movq %rbp, (%rbx)
movq 0x8(%rbx), %r15
subq %rax, %r15
movq %r15, 0x8(%rbx)
movq %r12, 0x10(%rsp)
movq 0x8(%r12), %rax
leaq -0x1(%rax), %rcx
movq %rcx, 0x20(%rsp)
addq (%rsp), %r13
movq %r13, 0x28(%rsp)
pushq $0x8
popq %rcx
xorl %r14d, %r14d
movq 0x28(%rsp), %r13
cmpq %rax, %r14
jge 0x1aef0
movq 0x10(%rsp), %rax
movq (%rax), %r12
leaq (%r12,%rcx), %rax
movq %rax, 0x30(%rsp)
leaq 0x440(%rsp), %rdi
movq %r13, %rsi
movq %rcx, 0x18(%rsp)
callq 0x1b858
movq %r14, 0x38(%rsp)
movq 0x8(%rsp), %r14
addq %r14, %rbp
movq 0x18(%rsp), %rax
movq -0x8(%r12,%rax), %r8
movq %rbp, %rdi
movq %r15, %rsi
leaq 0x11901(%rip), %rdx     # 0x2c765
leaq 0x440(%rsp), %rcx
xorl %eax, %eax
callq 0xd260
cltq
addq %rax, (%rbx)
subq %rax, 0x8(%rbx)
movq 0x30(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r13, %rcx
movq (%rsp), %r8
callq 0x1b879
movq (%rbx), %rdi
addq %r14, %rdi
movq 0x38(%rsp), %r14
cmpq %r14, 0x20(%rsp)
movq 0x8(%rbx), %rsi
leaq 0x118b0(%rip), %rdx     # 0x2c75e
leaq 0x1103c(%rip), %rax     # 0x2bef1
cmoveq %rax, %rdx
xorl %eax, %eax
callq 0xd260
movq 0x18(%rsp), %rcx
cltq
movq (%rbx), %rbp
addq %rax, %rbp
movq 0x8(%rbx), %r15
subq %rax, %r15
movq %rbp, (%rbx)
movq %r15, 0x8(%rbx)
incq %r14
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
addq $0x20, %rcx
jmp 0x1ae11
movq 0x8(%rsp), %rdi
addq %rbp, %rdi
leaq 0x11862(%rip), %rdx     # 0x2c761
leaq 0x40(%rsp), %rcx
movq %r15, %rsi
xorl %eax, %eax
callq 0xd260
cltq
addq %rax, (%rbx)
subq %rax, 0x8(%rbx)
addq $0x848, %rsp            # imm = 0x848
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq