// File: /workspace/github_c_makefile_star2_O2/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)
pushq $0x2
popq %rdi
callq 0x43b8a
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 0x3fa68
callq 0x4b1f1
jmp 0x3fa6f
leaq 0x24e22(%rip), %rax     # 0x64891
movq %rax, -0x40(%rbp)
cmpl $0x2, %r12d
jge 0x3fa9d
leaq 0x24e25(%rip), %rdi     # 0x648a5
xorl %ebx, %ebx
movq %r13, %rsi
xorl %eax, %eax
callq 0x3c0ed
movq -0x38(%rbp), %rdi
movq %rax, %rsi
callq 0x19f92
jmp 0x3fb87
movq %rbx, -0x30(%rbp)
decl %r12d
pushq $0x1
popq %r14
leaq 0x24d4d(%rip), %rbx     # 0x647fc
cmpq %r14, %r12
je 0x3fb83
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 0x3fb5a
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
jmpq *%rax
leaq 0x24e2d(%rip), %rdi     # 0x6491c
callq 0x439c6
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x4b366
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r13, %rdx
jmp 0x3fb3d
movq -0x38(%rbp), %rdi
leaq 0x24dac(%rip), %rsi     # 0x648c9
callq 0x19fa9
jmp 0x3fb7b
movabsq $-0x6ffffffffffff, %rdi # imm = 0xFFF9000000000001
callq 0x4b313
movq -0x30(%rbp), %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x43e19
jmp 0x3fb7b
movq %r13, %rdi
callq 0x4b1f1
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x4412e
jmp 0x3fb7b
leaq 0x24d96(%rip), %rdi     # 0x648f7
movq %r13, %rsi
movq -0x40(%rbp), %rdx
xorl %eax, %eax
callq 0x3c0ed
movq -0x38(%rbp), %rdi
movq %rax, %rsi
callq 0x19f92
incq %r14
jmp 0x3faaf
movq -0x30(%rbp), %rbx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq