// File: /workspace/github_c_makefile_star2_O0/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
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x2, %edi
callq 0x692f0
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movsd (%rax), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x620ad
jmp 0x620c1
movq -0x28(%rbp), %rax
movq (%rax), %rax
shrq $0x2f, %rax
andq $0xf, %rax
movl %eax, -0x5c(%rbp)
jmp 0x620c8
xorl %eax, %eax
movl %eax, -0x5c(%rbp)
jmp 0x620c8
movl -0x5c(%rbp), %eax
cmpl $0x5, %eax
jne 0x620e2
movq -0x28(%rbp), %rax
movq (%rax), %rdi
callq 0x7b260
movq %rax, -0x68(%rbp)
jmp 0x620ef
leaq 0x33c18(%rip), %rax     # 0x95d01
movq %rax, -0x68(%rbp)
jmp 0x620ef
movq -0x68(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpl $0x2, -0x1c(%rbp)
jge 0x62130
movq -0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rsi
leaq 0x33c05(%rip), %rdi     # 0x95d15
movb $0x0, %al
callq 0x5bdd0
movq -0x70(%rbp), %rdi
movq %rax, %rsi
callq 0x1ffb0
movq $0x0, -0x8(%rbp)
jmp 0x622a3
movl $0x1, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl -0x1c(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x6229b
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rbp)
movsd -0x48(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x6216a
jmp 0x6217b
movq -0x48(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
movl %eax, -0x74(%rbp)
jmp 0x62182
xorl %eax, %eax
movl %eax, -0x74(%rbp)
jmp 0x62182
movl -0x74(%rbp), %eax
addl $-0x4, %eax
movl %eax, %ecx
movq %rcx, -0x80(%rbp)
subl $0x6, %eax
ja 0x621bc
movq -0x80(%rbp), %rax
leaq 0x33ace(%rip), %rcx     # 0x95c6c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rdi
leaq 0x33b87(%rip), %rsi     # 0x95d39
callq 0x1fff0
jmp 0x6228b
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rsi
leaq 0x33b91(%rip), %rdi     # 0x95d67
movb $0x0, %al
callq 0x5bdd0
movq -0x88(%rbp), %rdi
movq %rax, %rsi
callq 0x1ffb0
jmp 0x6228b
movq -0x38(%rbp), %rax
movq %rax, -0x90(%rbp)
movabsq $-0x6ffffffffffff, %rdi # imm = 0xFFF9000000000001
callq 0x7b460
movq -0x90(%rbp), %rdi
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x697e0
jmp 0x6228b
movq -0x38(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x33b55(%rip), %rdi     # 0x95d8c
callq 0x68d90
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x7b550
movq -0x98(%rbp), %rdi
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x697e0
jmp 0x6228b
movq -0x38(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x48(%rbp), %rdi
callq 0x7b260
movq -0xa0(%rbp), %rdi
movq %rax, %rsi
callq 0x69e20
jmp 0x6228d
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x62137
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq