// File: /workspace/github_c_makefile_star2_O0/janet-lang[P]janet/src/core/compile.c
// Function: janetc_maker
static JanetSlot janetc_maker(JanetFopts opts, JanetSlot *slots, int op) {
    JanetCompiler *c = opts.compiler;
    JanetSlot retslot;

    /* Check if this structure is composed entirely of constants */
    int can_inline = 1;
    for (int32_t i = 0; i < janet_v_count(slots); i++) {
        if (!(slots[i].flags & JANET_SLOT_CONSTANT) ||
                (slots[i].flags & JANET_SLOT_SPLICED)) {
            can_inline = 0;
            break;
        }
    }

    if (can_inline && (op == JOP_MAKE_STRUCT)) {
        JanetKV *st = janet_struct_begin(janet_v_count(slots) / 2);
        for (int32_t i = 0; i < janet_v_count(slots); i += 2) {
            Janet k = slots[i].constant;
            Janet v = slots[i + 1].constant;
            janet_struct_put(st, k, v);
        }
        retslot = janetc_cslot(janet_wrap_struct(janet_struct_end(st)));
        janetc_freeslots(c, slots);
    } else if (can_inline && (op == JOP_MAKE_TUPLE)) {
        Janet *tup = janet_tuple_begin(janet_v_count(slots));
        for (int32_t i = 0; i < janet_v_count(slots); i++) {
            tup[i] = slots[i].constant;
        }
        retslot = janetc_cslot(janet_wrap_tuple(janet_tuple_end(tup)));
        janetc_freeslots(c, slots);
    } else {
        janetc_pushslots(c, slots);
        janetc_freeslots(c, slots);
        retslot = janetc_gettarget(opts);
        janetc_emit_s(c, op, retslot, 1);
    }

    return retslot;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0xc0(%rbp)
movq %rdi, -0xb8(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq %rsi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movl $0x1, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0xc4(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x2450f
movq -0x8(%rbp), %rax
movl -0x4(%rax), %eax
movl %eax, -0xc8(%rbp)
jmp 0x24519
xorl %eax, %eax
movl %eax, -0xc8(%rbp)
jmp 0x24519
movl -0xc4(%rbp), %eax
movl -0xc8(%rbp), %ecx
cmpl %ecx, %eax
jge 0x2457a
movq -0x8(%rbp), %rax
movslq -0x20(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
andl $0x10000, %eax          # imm = 0x10000
cmpl $0x0, %eax
je 0x24561
movq -0x8(%rbp), %rax
movslq -0x20(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
andl $0x1000000, %eax        # imm = 0x1000000
cmpl $0x0, %eax
je 0x2456a
movl $0x0, -0x1c(%rbp)
jmp 0x2457a
jmp 0x2456c
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x244f0
cmpl $0x0, -0x1c(%rbp)
je 0x246b3
cmpl $0x43, -0xc(%rbp)
jne 0x246b3
cmpq $0x0, -0x8(%rbp)
je 0x245a4
movq -0x8(%rbp), %rax
movl -0x4(%rax), %eax
movl %eax, -0xcc(%rbp)
jmp 0x245ae
xorl %eax, %eax
movl %eax, -0xcc(%rbp)
jmp 0x245ae
movl -0xcc(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %edi
callq 0x67720
movq %rax, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0xd0(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x245ed
movq -0x8(%rbp), %rax
movl -0x4(%rax), %eax
movl %eax, -0xd4(%rbp)
jmp 0x245f7
xorl %eax, %eax
movl %eax, -0xd4(%rbp)
jmp 0x245f7
movl -0xd0(%rbp), %eax
movl -0xd4(%rbp), %ecx
cmpl %ecx, %eax
jge 0x24657
movq -0x8(%rbp), %rax
movslq -0x2c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x67d00
movl -0x2c(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x2c(%rbp)
jmp 0x245ce
movq -0x28(%rbp), %rdi
callq 0x67d30
movq %rax, %rdi
movabsq $-0x3000000000000, %rsi # imm = 0xFFFD000000000000
callq 0x7b550
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rsi
leaq -0x58(%rbp), %rdi
callq 0x1ff40
movq -0xc0(%rbp), %rax
movq -0x58(%rbp), %rcx
movq %rcx, (%rax)
movq -0x50(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x48(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x22380
jmp 0x24863
cmpl $0x0, -0x1c(%rbp)
je 0x247c7
cmpl $0x45, -0xc(%rbp)
jne 0x247c7
cmpq $0x0, -0x8(%rbp)
je 0x246dd
movq -0x8(%rbp), %rax
movl -0x4(%rax), %eax
movl %eax, -0xd8(%rbp)
jmp 0x246e7
xorl %eax, %eax
movl %eax, -0xd8(%rbp)
jmp 0x246e7
movl -0xd8(%rbp), %edi
callq 0x6a740
movq %rax, -0x68(%rbp)
movl $0x0, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movl %eax, -0xdc(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x2471c
movq -0x8(%rbp), %rax
movl -0x4(%rax), %eax
movl %eax, -0xe0(%rbp)
jmp 0x24726
xorl %eax, %eax
movl %eax, -0xe0(%rbp)
jmp 0x24726
movl -0xdc(%rbp), %eax
movl -0xe0(%rbp), %ecx
cmpl %ecx, %eax
jge 0x2475f
movq -0x68(%rbp), %rax
movslq -0x6c(%rbp), %rcx
movq -0x8(%rbp), %rdx
movslq -0x6c(%rbp), %rsi
imulq $0x18, %rsi, %rsi
addq %rsi, %rdx
movq (%rdx), %rdx
movq %rdx, (%rax,%rcx,8)
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x246fd
movq -0x68(%rbp), %rdi
callq 0x6a7a0
movq %rax, %rdi
movabsq $-0x4000000000000, %rsi # imm = 0xFFFC000000000000
callq 0x7b550
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0x1ff40
movq -0xc0(%rbp), %rax
movq -0x88(%rbp), %rcx
movq %rcx, (%rax)
movq -0x80(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x78(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x22380
jmp 0x24861
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x21f70
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x22380
movq -0xb0(%rbp), %rcx
movq 0x20(%rcx), %rdx
movq %rsp, %rax
movq %rdx, 0x20(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq -0xa8(%rbp), %rdi
callq 0x213c0
movq -0xc0(%rbp), %rax
movq -0xa8(%rbp), %rcx
movq %rcx, (%rax)
movq -0xa0(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x98(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rdi
movl -0xc(%rbp), %ecx
movl $0x1, %edx
movzbl %cl, %esi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x29990
jmp 0x24863
movq -0xb8(%rbp), %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)