// File: /workspace/github_c_makefile_star2_O2/azhai[P]mlite/mlite.c
// Function: fun_decl
cell fun_decl(int inner) {
	cell	n, m, def, bind, new;

	bind = node(NIL, NIL);
	save(bind);
	def = node(NIL, NIL);
	save(def);
	for (;;) {
		Token = scan();
		if (Token != TOK_ID) {
			unsave(2);
			return error("identifier expected at", Attr);
		}
		n = node(Attr, NIL);
		n = node(Attr, n);
		set(car(def), node(S_define, n));
		Token = scan();
		n = match(1);
		n = node(cadar(def), n);
		car(bind) = n;
		if (Token != TOK_AND)
			break;
		set(cdr(bind), node(NIL, NIL));
		bind = cdr(bind);
		set(cdr(def), node(NIL, NIL));
		def = cdr(def);
	}
	if (!inner && cdar(Stack) == NIL) {
		m = caadr(Stack);		/* (name pattern)          */
		n = node(S_fn, cdr(m));		/* --> (name (fn pattern)) */
		n = node(n, NIL);
		n = node(car(m), n);
		unsave(2);
		return node(S_define, n);
	}
	def = unsave(1);
	n = node(unsave(1), def);
	n = node(S_letrec, n);
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, -0x2c(%rbp)
pushq $-0x1
popq %r14
movq %r14, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3613
movq %rax, %rbx
movq 0x107dc(%rip), %rsi     # 0x1c128
movq %rax, %rdi
xorl %edx, %edx
callq 0x3613
movq %rax, 0x107cb(%rip)     # 0x1c128
movq %r14, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3613
movq %rax, %r12
movq 0x107b4(%rip), %rsi     # 0x1c128
movq %rax, %rdi
xorl %edx, %edx
callq 0x3613
movq %rax, 0x107a3(%rip)     # 0x1c128
pushq $0x1
popq %r13
callq 0x8d74
movl %eax, 0x10d3c(%rip)     # 0x1c6d0
cmpl $0xfffffed1, %eax       # imm = 0xFFFFFED1
jne 0xba69
movq 0x107b2(%rip), %rdi     # 0x1c158
movq %r14, %rsi
xorl %edx, %edx
callq 0x3613
movq 0x107a1(%rip), %rdi     # 0x1c158
movq %rax, %rsi
xorl %edx, %edx
callq 0x3613
movq 0x10d98(%rip), %rdi     # 0x1c760
movq %rax, %rsi
xorl %edx, %edx
callq 0x3613
movq 0x10797(%rip), %rcx     # 0x1c170
movq %rax, (%rcx,%r12,8)
callq 0x8d74
movl %eax, 0x10ce8(%rip)     # 0x1c6d0
movl %r13d, %edi
callq 0xa484
movq 0x10779(%rip), %rcx     # 0x1c170
movq 0x10bc2(%rip), %rdx     # 0x1c5c0
movq (%rcx,%r12,8), %rsi
movq (%rdx,%rsi,8), %rdx
movq (%rcx,%rdx,8), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x3613
movq 0x10755(%rip), %rcx     # 0x1c170
movq %rax, (%rcx,%rbx,8)
cmpl $0xffffff37, 0x10ca7(%rip) # imm = 0xFFFFFF37
jne 0xba96
movq %r14, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3613
movq %rax, %r15
movq 0x10b7e(%rip), %rax     # 0x1c5c0
movq %r15, (%rax,%rbx,8)
movq %r14, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3613
movq 0x10b66(%rip), %rcx     # 0x1c5c0
movq %rax, (%rcx,%r12,8)
movq %rax, %r12
movq %r15, %rbx
jmp 0xb989
pushq $0x2
popq %rdi
callq 0x3775
movq 0x106e0(%rip), %rsi     # 0x1c158
leaq 0x8e34(%rip), %rdi      # 0x148b3
callq 0x33e4
pushq $-0x5
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, -0x2c(%rbp)
jne 0xbab5
movq 0x10b1d(%rip), %rax     # 0x1c5c0
movq 0x1067e(%rip), %rdx     # 0x1c128
movq (%rcx,%rdx,8), %rsi
cmpq $-0x1, (%rax,%rsi,8)
je 0xbaf5
pushq $0x1
popq %rbx
movl %ebx, %edi
callq 0x3775
movq %rax, %r14
movl %ebx, %edi
callq 0x3775
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3613
movq 0x10c8b(%rip), %rdi     # 0x1c768
movq %rax, %rsi
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3613
movq (%rax,%rdx,8), %rdx
movq (%rcx,%rdx,8), %rdx
movq (%rcx,%rdx,8), %rbx
movq 0x10c00(%rip), %rdi     # 0x1c708
movq (%rax,%rbx,8), %rsi
xorl %edx, %edx
callq 0x3613
pushq $-0x1
popq %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x3613
movq 0x10649(%rip), %rcx     # 0x1c170
movq (%rcx,%rbx,8), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x3613
movq %rax, %rbx
pushq $0x2
popq %rdi
callq 0x3775
movq 0x10c19(%rip), %rdi     # 0x1c760
movq %rbx, %rsi
jmp 0xbae0