// File: /workspace/github_c_makefile_star2_O2/mahrr[P]raven/src/object.c
// Function: object_print
void object_print(Value value) {
    switch (Obj_Type(value)) {
    case OBJ_STRING: {
        RavString *string = As_String(value);
        printf("%.*s", string->length, string->chars);
        break;
    }
    case OBJ_PAIR: {
        putchar('(');
        print_pair(As_Pair(value));
        putchar(')');
        break;
    }
    case OBJ_ARRAY: {
        print_array(As_Array(value));
        break;
    }
    case OBJ_MAP: {
        print_map(As_Map(value));
        break;
    }
    case OBJ_FUNCTION: {
        print_function(As_Function(value));
        break;
    }
    case OBJ_UPVALUE: {
        printf("<upvalue>");
        break;
    }
    case OBJ_CLOSURE: {
        print_function(As_Closure(value)->function);
        break;
    }
    case OBJ_CFUNCTION: {
        printf("<native @ %p>", As_CFunction(value)->func);
        break;
    }
    default:
        assert(!"invalid object type");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movabsq $0x3ffffffffffff, %r15  # imm = 0x3FFFFFFFFFFFF
andq %r15, %rbx
movl (%rbx), %eax
cmpq $0x7, %rax
ja 0x5332
leaq 0x44f3(%rip), %rcx      # 0x9618
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x10(%rbx), %esi
movq 0x18(%rbx), %rdx
leaq 0x451c(%rip), %rdi      # 0x9658
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20b0
movq %rbx, %rdi
jmp 0x52f5
pushq $0x5b
popq %rdi
callq 0x2040
leaq 0x45ba(%rip), %r14      # 0x9722
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
leal -0x1(%rax), %ecx
movslq %ecx, %rcx
cmpq %rcx, %r15
jge 0x5196
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x56a8
movq %r14, %rdi
xorl %eax, %eax
callq 0x20b0
incq %r15
jmp 0x516b
testq %rax, %rax
je 0x51a9
movq 0x10(%rbx), %rcx
movq -0x8(%rcx,%rax,8), %rdi
callq 0x56a8
pushq $0x5d
jmp 0x531e
movabsq $-0x4000000000000, %r14 # imm = 0xFFFC000000000000
pushq $0x7b
popq %rdi
callq 0x2040
movq 0x10(%rbx), %r12
movl 0x1c(%rbx), %eax
testl %eax, %eax
movl $0x0, %ebp
movq %rax, (%rsp)
cmovgl %eax, %ebp
shlq $0x4, %rbp
leaq 0x4547(%rip), %rbx      # 0x9729
leaq 0x4539(%rip), %r15      # 0x9722
xorl %r13d, %r13d
cmpq %r13, %rbp
je 0x5226
movq (%r12,%r13), %rdi
testq %rdi, %rdi
je 0x5220
orq %r14, %rdi
callq 0x50f7
movq %rbx, %rdi
xorl %eax, %eax
callq 0x20b0
movq 0x8(%r12,%r13), %rdi
callq 0x56a8
movq %r15, %rdi
xorl %eax, %eax
callq 0x20b0
addq $0x10, %r13
jmp 0x51ec
movq (%rsp), %rbx
testl %ebx, %ebx
js 0x5256
shlq $0x4, %rbx
orq (%r12,%rbx), %r14
movq %r14, %rdi
callq 0x50f7
leaq 0x44e4(%rip), %rdi      # 0x9729
xorl %eax, %eax
callq 0x20b0
movq 0x8(%r12,%rbx), %rdi
callq 0x56a8
pushq $0x7d
jmp 0x531e
movq 0x10(%rbx), %rsi
leaq 0x43ff(%rip), %rdi      # 0x9667
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20b0
movabsq $-0x4000000000000, %r12 # imm = 0xFFFC000000000000
pushq $0x28
popq %rdi
callq 0x2040
movabsq $0x7ffc000000000001, %r13 # imm = 0x7FFC000000000001
decq %r12
leaq 0x447f(%rip), %r14      # 0x9722
movq 0x10(%rbx), %rdi
callq 0x56a8
movq 0x18(%rbx), %rax
cmpq %r13, %rax
je 0x531c
cmpq %r12, %rax
jbe 0x5305
andq %r15, %rax
cmpl $0x1, (%rax)
jne 0x5305
movq %r14, %rdi
xorl %eax, %eax
callq 0x20b0
movq 0x18(%rbx), %rbx
andq %r15, %rbx
jmp 0x52a3
leaq 0x4381(%rip), %rdi      # 0x965d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20b0
movq 0x10(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5351
leaq 0x4419(%rip), %rdi      # 0x9725
xorl %eax, %eax
callq 0x20b0
movq 0x18(%rbx), %rdi
callq 0x56a8
pushq $0x29
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040
leaq 0x433c(%rip), %rdi      # 0x9675
leaq 0x434c(%rip), %rsi      # 0x968c
leaq 0x4352(%rip), %rcx      # 0x9699
movl $0x108, %edx            # imm = 0x108
callq 0x20e0