// File: /workspace/github_c_makefile_star2_O1/azhai[P]mlite/mlite.c
// Function: infix_decl
cell infix_decl(int fix) {
	cell	mode;
	int	p, a;

	Token = scan();
	for (;;) {
		if (Token != TOK_ID)
			return error("identifier expected in fix def",
					NOEXPR);
		save(Attr);
		Token = scan();
		if (fix == NONE) {
			if (symbol_p(car(Stack)))
				delfixity(car(Stack));
		}
		else {
			delfixity(car(Stack));
			if (	Attr == S_less ||
				Attr == S_greater ||
				Attr == S_equal
			) {
				mode = Attr;
				Token = scan();
			}
			else {
				unsave(1);
				return error(
					"fix def expected one of {<,=,>}",
					NOEXPR);
			}
			if (Token == TOK_CONS) {
				Attr = S_cons;
			}
			else if (Token != TOK_ID) {
				unsave(1);
				return error(
				 "reference identifier expected in fix def",
					NOEXPR);
			}
			if (	symbol_p(Attr) &&
				!find_binop(symbol_name(Attr), &p, &a)
			) {
				unsave(1);
				return error(
				 "invalid reference identifier in fix def",
					Attr);
			}
			else {
				if (symbol_p(car(Stack)))
					setfixity(car(Stack),
						symbol_name(Attr),
						fix,
						mode);
			}
			Token = scan();
		}
		unsave(1);
		if (Token != TOK_COMMA)
			break;
		Token = scan();
	}
	return UNIT;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edi, %ebx
callq 0x9c07
movl %eax, 0x1117d(%rip)     # 0x1e6d0
cmpl $0xfffffed1, %eax       # imm = 0xFFFFFED1
jne 0xd6f3
leaq -0x28(%rbp), %r14
leaq -0x24(%rbp), %r15
movq 0x10beb(%rip), %rdi     # 0x1e158
movq 0x10bb4(%rip), %rsi     # 0x1e128
xorl %edx, %edx
callq 0x36e8
movq %rax, 0x10ba6(%rip)     # 0x1e128
callq 0x9c07
movl %eax, 0x11143(%rip)     # 0x1e6d0
movq 0x10bdc(%rip), %rax     # 0x1e170
movq 0x10b8d(%rip), %rcx     # 0x1e128
movq (%rax,%rcx,8), %rdi
testl %ebx, %ebx
je 0xd6d3
callq 0xd32c
movq 0x10ba5(%rip), %r12     # 0x1e158
cmpq 0x111be(%rip), %r12     # 0x1e778
je 0xd5d2
cmpq 0x111bd(%rip), %r12     # 0x1e780
je 0xd5d2
cmpq 0x1112c(%rip), %r12     # 0x1e6f8
jne 0xd723
callq 0x9c07
movl %eax, 0x110f3(%rip)     # 0x1e6d0
cmpl $0xfffffed1, %eax       # imm = 0xFFFFFED1
je 0xd5fb
cmpl $-0x67, %eax
jne 0xd736
movq 0x1109c(%rip), %rax     # 0x1e690
movq %rax, 0x10b5d(%rip)     # 0x1e158
movq 0x10b56(%rip), %rax     # 0x1e158
testq %rax, %rax
js 0xd64b
movq 0x10fd2(%rip), %rcx     # 0x1e5e0
testb $0x10, (%rcx,%rax)
je 0xd64b
movq 0x10b55(%rip), %rcx     # 0x1e170
cmpq $-0x22, (%rcx,%rax,8)
jne 0xd64b
movq 0x10f97(%rip), %rcx     # 0x1e5c0
movq (%rcx,%rax,8), %rdi
shlq $0x3, %rdi
addq 0x10fb0(%rip), %rdi     # 0x1e5e8
movq %r14, %rsi
movq %r15, %rdx
callq 0x96d4
testl %eax, %eax
je 0xd749
movq 0x10b1e(%rip), %rax     # 0x1e170
movq 0x10acf(%rip), %rcx     # 0x1e128
movq (%rax,%rcx,8), %rdi
testq %rdi, %rdi
js 0xd69d
movq 0x10f77(%rip), %rcx     # 0x1e5e0
testb $0x10, (%rcx,%rdi)
je 0xd69d
cmpq $-0x22, (%rax,%rdi,8)
jne 0xd69d
movq 0x10f43(%rip), %rax     # 0x1e5c0
movq 0x10ad4(%rip), %rcx     # 0x1e158
movq (%rax,%rcx,8), %rsi
shlq $0x3, %rsi
addq 0x10f55(%rip), %rsi     # 0x1e5e8
movl %ebx, %edx
movl %r12d, %ecx
callq 0xd384
callq 0x9c07
movl %eax, 0x11028(%rip)     # 0x1e6d0
movl $0x1, %edi
callq 0x3851
cmpl $-0x64, 0x11017(%rip)   # 0x1e6d0
jne 0xd71a
callq 0x9c07
movl %eax, 0x1100a(%rip)     # 0x1e6d0
cmpl $0xfffffed1, %eax       # imm = 0xFFFFFED1
je 0xd566
jmp 0xd6f3
testq %rdi, %rdi
js 0xd6a8
movq 0x10f01(%rip), %rcx     # 0x1e5e0
testb $0x10, (%rcx,%rdi)
je 0xd6a8
cmpq $-0x22, (%rax,%rdi,8)
jne 0xd6a8
callq 0xd32c
jmp 0xd6a8
leaq 0x9302(%rip), %rdi      # 0x169fc
movq $-0x8, %rsi
callq 0x33eb
movq $-0x5, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq $-0x6, %rax
jmp 0xd70d
movl $0x1, %edi
callq 0x3851
leaq 0x929e(%rip), %rdi      # 0x169d2
jmp 0xd6fa
movl $0x1, %edi
callq 0x3851
leaq 0x92ab(%rip), %rdi      # 0x169f2
jmp 0xd6fa
movl $0x1, %edi
callq 0x3851
movq 0x109fe(%rip), %rsi     # 0x1e158
leaq 0x92ba(%rip), %rdi      # 0x16a1b
jmp 0xd701