// File: /workspace/github_c_makefile_star2_O0/eiselekd[P]MinimalLisp/./f1.c
// Function: fdef
v *
fdef(fctx *cctx, char *n, int cnt, ...) 
{
    va_list ap; int i, j; unsigned long b;
    va_start(ap, cnt);
    v *e, *l = mkCons(car(g_DOCOL), 0), *u;
    for (i = 0; i < cnt; i++) {
        e = (v *)va_arg(ap, v *);
        if ((b = ((unsigned long)e)-1) < 128) {
            for (j = 0, e = l; j < b; j++) {
                e = cdr(e);
            }
        }
        l = mkCons(e, l);
    }
    l = nreverse(mkCons(g_EXIT, l));
    u = unique(&cctx->lctx, n, strlen(n));
    cctx->env = mkCons(e = mkCons(u, l),cctx->env);
    va_end(ap);
    FOP_IMMEDIATE_VAL(e,1);
    CONS_WORD_VAL(l,1);
    dbgfdef(cctx, u, l);
    return l;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
testb %al, %al
je 0x9311
movaps %xmm0, -0xe0(%rbp)
movaps %xmm1, -0xd0(%rbp)
movaps %xmm2, -0xc0(%rbp)
movaps %xmm3, -0xb0(%rbp)
movaps %xmm4, -0xa0(%rbp)
movaps %xmm5, -0x90(%rbp)
movaps %xmm6, -0x80(%rbp)
movaps %xmm7, -0x70(%rbp)
movq %r9, -0xe8(%rbp)
movq %r8, -0xf0(%rbp)
movq %rcx, -0xf8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq -0x30(%rbp), %rax
leaq -0x110(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x18, (%rax)
movq 0xaf3c(%rip), %rdi      # 0x14298
callq 0x14f0
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1340
movq %rax, -0x50(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x9450
leaq -0x30(%rbp), %rax
movq %rax, -0x120(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x114(%rbp)
cmpl $0x28, %eax
ja 0x93bf
movq -0x120(%rbp), %rcx
movl -0x114(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x128(%rbp)
jmp 0x93dc
movq -0x120(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x40(%rbp)
cmpq $0x80, %rax
jae 0x9431
movl $0x0, -0x38(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x48(%rbp)
movslq -0x38(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0x942f
movq -0x48(%rbp), %rdi
callq 0x1520
movq %rax, -0x48(%rbp)
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x940d
jmp 0x9431
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x1340
movq %rax, -0x50(%rbp)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x9378
movq 0xae49(%rip), %rdi      # 0x142a0
movq -0x50(%rbp), %rsi
callq 0x1340
movq %rax, %rdi
callq 0x30f0
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x1040
movq -0x138(%rbp), %rdi
movq -0x130(%rbp), %rsi
movl %eax, %edx
callq 0x2f70
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x1340
movq %rax, %rdi
movq %rdi, -0x48(%rbp)
movq -0x8(%rbp), %rax
movq 0x148(%rax), %rsi
callq 0x1340
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x148(%rax)
movq -0x48(%rbp), %rax
movl (%rax), %ecx
orl $0x80, %ecx
movl %ecx, (%rax)
movq -0x50(%rbp), %rax
movl (%rax), %ecx
orl $0x100, %ecx            # imm = 0x100
movl %ecx, (%rax)
movq -0x8(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x65e0
movq -0x50(%rbp), %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopl (%rax)