// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %r12d
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rbp), %r13
movq (%r13), %r15
leaq 0x10(%rsi), %rcx
movq $-0x1, %rax
movl $0x1010000, %edx        # imm = 0x1010000
testq %r14, %r14
je 0x1e6ee
movslq -0x4(%r14), %rsi
jmp 0x1e6f0
xorl %esi, %esi
incq %rax
cmpq %rsi, %rax
jge 0x1e708
movl (%rcx), %edi
andl %edx, %edi
addq $0x18, %rcx
cmpl $0x10000, %edi          # imm = 0x10000
je 0x1e6e3
cmpq %rsi, %rax
setl %cl
cmpl $0x43, %r12d
setne %dl
orb %cl, %dl
jne 0x1e735
testq %r14, %r14
movq %r15, -0x30(%rbp)
je 0x1e7aa
movl -0x4(%r14), %eax
movl %eax, %edi
shrl $0x1f, %edi
addl %eax, %edi
sarl %edi
jmp 0x1e7ac
cmpq %rsi, %rax
setl %al
cmpl $0x45, %r12d
setne %cl
orb %al, %cl
jne 0x1e758
testq %r14, %r14
je 0x1e893
movl -0x4(%r14), %edi
jmp 0x1e895
movq %r15, %rdi
movq %r14, %rsi
callq 0x1d49c
movq %r15, %rdi
movq %r14, %rsi
callq 0x1d6f5
movl 0x10(%r13), %eax
movl 0x14(%r13), %ecx
movl 0x1c(%r13), %edi
movb 0x22(%r13), %dl
shrb %dl
testl %ecx, %ecx
sets %sil
andb %dl, %sil
cmpl $0x100, %eax            # imm = 0x100
setb %dl
testb %dl, %sil
movq %r15, %r14
je 0x1e835
movq 0x8(%r13), %r15
movl 0x18(%r13), %edx
jmp 0x1e85c
xorl %edi, %edi
callq 0x46f8c
movq %rax, %r12
xorl %r13d, %r13d
movq %r14, %r15
testq %r14, %r14
je 0x1e7c5
movslq -0x4(%r14), %rax
jmp 0x1e7c7
xorl %eax, %eax
cmpq %rax, %r13
jge 0x1e7e5
movq (%r15), %rsi
movq 0x18(%r15), %rdx
movq %r12, %rdi
callq 0x472ba
addq $0x2, %r13
addq $0x30, %r15
jmp 0x1e7ba
movq %r12, %rdi
callq 0x472c9
movabsq $-0x3000000000000, %rsi # imm = 0xFFFD000000000000
movq %rax, %rdi
callq 0x4f9ad
movq %rax, %xmm0
movq %rax, (%rbx)
shrq $0x2f, %rax
andb $0xf, %al
movl $0x10000, %ecx          # imm = 0x10000
btsl %eax, %ecx
ucomisd %xmm0, %xmm0
movl $0x10001, %eax          # imm = 0x10001
cmovpl %ecx, %eax
movq $-0x1, 0x8(%rbx)
movl %eax, 0x10(%rbx)
movq -0x30(%rbp), %rdi
jmp 0x1e90b
movl %edi, %r13d
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %rax, %r15
movq %r14, %rdi
callq 0x21a40
movl %r13d, %edi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %edx, %edx
movq %r15, (%rbx)
movl %eax, 0x8(%rbx)
movl %ecx, 0xc(%rbx)
movl %edx, 0x10(%rbx)
movl %edi, 0x14(%rbx)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movupd (%rbx), %xmm0
movupd %xmm0, (%rsp)
movzbl %r12b, %esi
movq %r14, %rdi
movl $0x1, %edx
callq 0x21e42
jmp 0x1e913
xorl %edi, %edi
callq 0x48a50
xorl %ecx, %ecx
movq %r14, %rdx
testq %r14, %r14
je 0x1e8aa
movslq -0x4(%r14), %rsi
jmp 0x1e8ac
xorl %esi, %esi
cmpq %rsi, %rcx
jge 0x1e8c1
movq (%rdx), %rsi
movq %rsi, (%rax,%rcx,8)
incq %rcx
addq $0x18, %rdx
jmp 0x1e89f
movq %rax, %rdi
callq 0x48a81
movabsq $-0x4000000000000, %rsi # imm = 0xFFFC000000000000
movq %rax, %rdi
callq 0x4f9ad
movq %rax, %xmm0
movq %rax, (%rbx)
shrq $0x2f, %rax
andb $0xf, %al
movl $0x10000, %ecx          # imm = 0x10000
btsl %eax, %ecx
ucomisd %xmm0, %xmm0
movl $0x10001, %eax          # imm = 0x10001
cmovpl %ecx, %eax
movq $-0x1, 0x8(%rbx)
movl %eax, 0x10(%rbx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x1d6f5
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)