// File: /workspace/github_c_makefile_star2_O3/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, 0x18(%rsp)
movq %rcx, %r12
movq %rdx, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, %rbp
movl $0x3ff, %r15d           # imm = 0x3FF
cmpq %r15, %rcx
cmovbq %rcx, %r15
testq %rcx, %rcx
je 0x1c79d
leaq 0x40(%rsp), %rdi
movl $0x20, %esi
movq %r15, %rdx
callq 0xd2a0
movb $0x0, 0x40(%rsp,%r15)
movq 0x8(%rsp), %rbx
movq (%rbx), %rdi
addq 0x10(%rsp), %rdi
movq 0x8(%rbx), %rsi
leaq 0x13048(%rip), %rdx     # 0x2f803
xorl %eax, %eax
callq 0xd260
cltq
movq (%rbx), %r13
addq %rax, %r13
movq %r13, (%rbx)
movq 0x8(%rbx), %r15
subq %rax, %r15
movq %r15, 0x8(%rbx)
movq 0x8(%rbp), %rbx
testq %rbx, %rbx
jle 0x1c905
decq %rbx
addq 0x18(%rsp), %r12
movl $0x3ff, %eax            # imm = 0x3FF
cmpq %rax, %r12
cmovbq %r12, %rax
movq %rax, 0x20(%rsp)
movl $0x8, %ecx
xorl %r14d, %r14d
movq %r12, 0x38(%rsp)
movq %rbp, 0x30(%rsp)
movq %rbx, 0x28(%rsp)
movq %r12, %rax
movq (%rbp), %r12
testq %rax, %rax
movq 0x20(%rsp), %rbx
leaq 0x440(%rsp), %rax
je 0x1c84c
movq %rax, %rdi
movl $0x20, %esi
movq %rbx, %rdx
movq %rcx, %rbp
callq 0xd2a0
leaq 0x440(%rsp), %rax
movq %rbp, %rcx
movb $0x0, 0x440(%rsp,%rbx)
movq 0x10(%rsp), %rbx
addq %rbx, %r13
movq -0x8(%r12,%rcx), %r8
addq %rcx, %r12
movq %r13, %rdi
movq %r15, %rsi
leaq 0x12f9c(%rip), %rdx     # 0x2f80d
movq %rcx, %r15
movq %rax, %rcx
xorl %eax, %eax
callq 0xd260
cltq
movq 0x8(%rsp), %rbp
addq %rax, (%rbp)
subq %rax, 0x8(%rbp)
movq %r12, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq 0x38(%rsp), %r12
movq %r12, %rcx
movq 0x18(%rsp), %r8
callq 0x1d70b
movq (%rbp), %rdi
addq %rbx, %rdi
movq 0x28(%rsp), %rbx
cmpq %r14, %rbx
movq 0x8(%rbp), %rsi
leaq 0x12f44(%rip), %rdx     # 0x2f806
leaq 0x12628(%rip), %rax     # 0x2eef1
cmoveq %rax, %rdx
xorl %eax, %eax
callq 0xd260
movq %r15, %rcx
cltq
movq (%rbp), %r13
addq %rax, %r13
movq 0x8(%rbp), %r15
subq %rax, %r15
movq %r13, (%rbp)
movq %r15, 0x8(%rbp)
incq %r14
addq $0x20, %rcx
movq 0x30(%rsp), %rbp
cmpq 0x8(%rbp), %r14
jl 0x1c815
movq 0x10(%rsp), %rdi
addq %r13, %rdi
leaq 0x12ef5(%rip), %rdx     # 0x2f809
leaq 0x40(%rsp), %rcx
movq %r15, %rsi
xorl %eax, %eax
callq 0xd260
cltq
movq 0x8(%rsp), %rcx
addq %rax, (%rcx)
subq %rax, 0x8(%rcx)
addq $0x848, %rsp            # imm = 0x848
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq