// File: /workspace/github_c_makefile_star2_O1/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 0x47e96
movq %rax, %rbx
movsd (%r15), %xmm0
leaq 0x25f7b(%rip), %rax     # 0x69891
movq %rax, -0x40(%rbp)
ucomisd %xmm0, %xmm0
jp 0x43a4d
cmpl $0x2, %r12d
jge 0x4394e
leaq 0x25f74(%rip), %rdi     # 0x698a5
xorl %ebx, %ebx
movq %r13, %rsi
xorl %eax, %eax
callq 0x3fd86
movq -0x38(%rbp), %rdi
movq %rax, %rsi
callq 0x1bc87
jmp 0x43a3b
je 0x43a3b
movq %rbx, -0x30(%rbp)
decl %r12d
movl $0x1, %r14d
leaq 0x25e94(%rip), %rbx     # 0x697fc
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 0x43a0a
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
jmpq *%rax
leaq 0x25f7d(%rip), %rdi     # 0x6991c
callq 0x47cd3
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x4f9ad
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r13, %rdx
jmp 0x439ed
movq -0x38(%rbp), %rdi
leaq 0x25efc(%rip), %rsi     # 0x698c9
callq 0x1bc9e
jmp 0x43a2b
movabsq $-0x6ffffffffffff, %rdi # imm = 0xFFF9000000000001
callq 0x4f95a
movq -0x30(%rbp), %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x481b3
jmp 0x43a2b
movq %r13, %rdi
callq 0x4f838
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x4847f
jmp 0x43a2b
leaq 0x25ee6(%rip), %rdi     # 0x698f7
movq %r13, %rsi
movq -0x40(%rbp), %rdx
xorl %eax, %eax
callq 0x3fd86
movq -0x38(%rbp), %rdi
movq %rax, %rsi
callq 0x1bc87
incq %r14
cmpq %r14, %r12
jne 0x43968
movq -0x30(%rbp), %rbx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r15), %rdi
movabsq $0x7800000000000, %rax  # imm = 0x7800000000000
andq %rdi, %rax
movabsq $0x2800000000000, %rcx  # imm = 0x2800000000000
cmpq %rcx, %rax
jne 0x43924
callq 0x4f838
movq %rax, -0x40(%rbp)
jmp 0x43924