// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/specials.c
// Function: handleattr
static JanetTable *handleattr(JanetCompiler *c, const char *kind, int32_t argn, const Janet *argv) {
    int32_t i;
    JanetTable *tab = janet_table(2);
    const char *binding_name = janet_type(argv[0]) == JANET_SYMBOL
                               ? ((const char *)janet_unwrap_symbol(argv[0]))
                               : "<multiple bindings>";
    if (argn < 2) {
        janetc_error(c, janet_formatc("expected at least 2 arguments to %s", kind));
        return NULL;
    }
    for (i = 1; i < argn - 1; i++) {
        Janet attr = argv[i];
        switch (janet_type(attr)) {
            case JANET_TUPLE:
                janetc_cerror(c, "unexpected form - did you intend to use defn?");
                break;
            default:
                janetc_error(c, janet_formatc("cannot add metadata %v to binding %s", attr, binding_name));
                break;
            case JANET_KEYWORD:
                janet_table_put(tab, attr, janet_wrap_true());
                break;
            case JANET_STRING:
                janet_table_put(tab, janet_ckeywordv("doc"), attr);
                break;
            case JANET_STRUCT:
                janet_table_merge_struct(tab, janet_unwrap_struct(attr));
                break;
        }
    }
    return tab;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movl %edx, %r12d
movq %rsi, %r13
movq %rdi, -0x38(%rbp)
movl $0x2, %edi
callq 0x47425
movq %rax, %rbx
movsd (%r15), %xmm0
ucomisd %xmm0, %xmm0
setnp %al
movq %xmm0, %rdi
movabsq $0x7800000000000, %rcx  # imm = 0x7800000000000
andq %rdi, %rcx
movabsq $0x2800000000000, %rdx  # imm = 0x2800000000000
cmpq %rdx, %rcx
setne %cl
orb %al, %cl
jne 0x4302c
callq 0x4ebc4
jmp 0x43033
leaq 0x2583e(%rip), %rax     # 0x68871
movq %rax, -0x40(%rbp)
cmpl $0x2, %r12d
jge 0x43061
leaq 0x25841(%rip), %rdi     # 0x68885
xorl %ebx, %ebx
movq %r13, %rsi
xorl %eax, %eax
callq 0x3f652
movq -0x38(%rbp), %rdi
movq %rax, %rsi
callq 0x1bb2f
jmp 0x4314e
je 0x4314e
movq %rbx, -0x30(%rbp)
decl %r12d
movl $0x1, %r14d
leaq 0x25761(%rip), %rbx     # 0x687dc
movq (%r15,%r14,8), %r13
movq %r13, %xmm0
movq %r13, %rax
shrq $0x2f, %rax
andl $0xf, %eax
ucomisd %xmm0, %xmm0
movl $0x0, %ecx
cmovnpl %ecx, %eax
addl $-0x4, %eax
cmpl $0x6, %eax
ja 0x4311d
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
jmpq *%rax
leaq 0x2584a(%rip), %rdi     # 0x688fc
callq 0x47261
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x4ed39
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r13, %rdx
jmp 0x43100
movq -0x38(%rbp), %rdi
leaq 0x257c9(%rip), %rsi     # 0x688a9
callq 0x1bb46
jmp 0x4313e
movabsq $-0x6ffffffffffff, %rdi # imm = 0xFFF9000000000001
callq 0x4ece6
movq -0x30(%rbp), %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x476f0
jmp 0x4313e
movq %r13, %rdi
callq 0x4ebc4
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x479ca
jmp 0x4313e
leaq 0x257b3(%rip), %rdi     # 0x688d7
movq %r13, %rsi
movq -0x40(%rbp), %rdx
xorl %eax, %eax
callq 0x3f652
movq -0x38(%rbp), %rdi
movq %rax, %rsi
callq 0x1bb2f
incq %r14
cmpq %r14, %r12
jne 0x4307b
movq -0x30(%rbp), %rbx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq