// File: /workspace/github_c_makefile_star2_O3/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 0x9ac4
movl %eax, 0x112ec(%rip)     # 0x1e6d0
cmpl $0xfffffed1, %eax       # imm = 0xFFFFFED1
jne 0xd58f
leaq -0x28(%rbp), %r14
leaq -0x24(%rbp), %r15
movq 0x10d5a(%rip), %rdi     # 0x1e158
movq 0x10d23(%rip), %rsi     # 0x1e128
xorl %edx, %edx
callq 0x36e8
movq %rax, 0x10d15(%rip)     # 0x1e128
callq 0x9ac4
movl %eax, 0x112b2(%rip)     # 0x1e6d0
movq 0x10d4b(%rip), %rax     # 0x1e170
movq 0x10cfc(%rip), %rcx     # 0x1e128
movq (%rax,%rcx,8), %rdi
testl %ebx, %ebx
je 0xd48a
callq 0xd1bd
movq 0x10d18(%rip), %r12     # 0x1e158
cmpq 0x11331(%rip), %r12     # 0x1e778
je 0xd45f
cmpq 0x11330(%rip), %r12     # 0x1e780
je 0xd45f
cmpq 0x1129f(%rip), %r12     # 0x1e6f8
jne 0xd5bf
callq 0x9ac4
movl %eax, 0x11266(%rip)     # 0x1e6d0
cmpl $0xfffffed1, %eax       # imm = 0xFFFFFED1
je 0xd4b9
cmpl $-0x67, %eax
jne 0xd5d2
movq 0x1120f(%rip), %rax     # 0x1e690
movq %rax, 0x10cd0(%rip)     # 0x1e158
jmp 0xd4c0
testq %rdi, %rdi
js 0xd566
movq 0x11146(%rip), %rcx     # 0x1e5e0
testb $0x10, (%rcx,%rdi)
je 0xd566
cmpq $-0x22, (%rax,%rdi,8)
jne 0xd566
callq 0xd1bd
jmp 0xd566
movq 0x10c98(%rip), %rax     # 0x1e158
testq %rax, %rax
js 0xd509
movq 0x11114(%rip), %rcx     # 0x1e5e0
testb $0x10, (%rcx,%rax)
je 0xd509
movq 0x10c97(%rip), %rcx     # 0x1e170
cmpq $-0x22, (%rcx,%rax,8)
jne 0xd509
movq 0x110d9(%rip), %rcx     # 0x1e5c0
movq (%rcx,%rax,8), %rdi
shlq $0x3, %rdi
addq 0x110f2(%rip), %rdi     # 0x1e5e8
movq %r14, %rsi
movq %r15, %rdx
callq 0x95dd
testl %eax, %eax
je 0xd5e5
movq 0x10c60(%rip), %rax     # 0x1e170
movq 0x10c11(%rip), %rcx     # 0x1e128
movq (%rax,%rcx,8), %rdi
testq %rdi, %rdi
js 0xd55b
movq 0x110b9(%rip), %rcx     # 0x1e5e0
testb $0x10, (%rcx,%rdi)
je 0xd55b
cmpq $-0x22, (%rax,%rdi,8)
jne 0xd55b
movq 0x11085(%rip), %rax     # 0x1e5c0
movq 0x10c16(%rip), %rcx     # 0x1e158
movq (%rax,%rcx,8), %rsi
shlq $0x3, %rsi
addq 0x11097(%rip), %rsi     # 0x1e5e8
movl %ebx, %edx
movl %r12d, %ecx
callq 0xd215
callq 0x9ac4
movl %eax, 0x1116a(%rip)     # 0x1e6d0
movl $0x1, %edi
callq 0x384f
cmpl $-0x64, 0x11159(%rip)   # 0x1e6d0
jne 0xd5b6
callq 0x9ac4
movl %eax, 0x1114c(%rip)     # 0x1e6d0
cmpl $0xfffffed1, %eax       # imm = 0xFFFFFED1
je 0xd3f7
leaq 0x944b(%rip), %rdi      # 0x169e1
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 0xd5a9
movl $0x1, %edi
callq 0x384f
leaq 0x93e7(%rip), %rdi      # 0x169b7
jmp 0xd596
movl $0x1, %edi
callq 0x384f
leaq 0x93f4(%rip), %rdi      # 0x169d7
jmp 0xd596
movl $0x1, %edi
callq 0x384f
movq 0x10b62(%rip), %rsi     # 0x1e158
leaq 0x9403(%rip), %rdi      # 0x16a00
jmp 0xd59d