// File: /workspace/github_c_makefile_star2_O1/Oric4ever[P]lcc65/6502/build/../src/expr.c
// Function: postfix
static Tree postfix(p) Tree p; {
	Tree q;
	Type ty;

	for (;;)
		switch (t) {
		case INCR: case DECR:
			p = tree(RIGHT, p->type,
				tree(RIGHT, p->type, p, root(incr(t, p, constnode(1, inttype)))),
				p);
			t = gettok();
			continue;
		case '[':
			t = gettok();
			q = expr(']');
			if (YYnull)
				if (isptr(p->type))
					p = nullcheck(p);
				else if (isptr(q->type))
					q = nullcheck(q);
			q = pointer(q);
			p = (*opnode['+'])(ADD, pointer(p), q);
			if (isptr(p->type) && isarray(p->type->type))
				p = retype(p, p->type->type);
			else
				p = rvalue(p);
			continue;
		case '(': {
			Coordinate pt;
			p = pointer(p);
			if (isptr(p->type) && isfunc(p->type->type))
				ty = p->type->type;
			else {
				error("found `%t' expected a function\n", p->type);
				ty = func(voidtype, 0);
			}
			pt = src;
			t = gettok();
			p = call(p, ty, pt);
			continue;
			}
		case '.':
			t = gettok();
			if (t == ID) {
				if (isstruct(p->type)) {
					q = addrof(p);
					p = field(q, token);	/* refme */
					q = rightkid(q);
					if (isaddrop(q->op) && q->u.sym->temporary) {
						p = tree(RIGHT, p->type, p, 0);
						p->u.sym = q->u.sym;
					}
				} else
					error("left operand of . has incompatible type `%t'\n",
						p->type);
				t = gettok();
			} else
				error("field name expected\n");
			continue;
		case DEREF:
			t = gettok();
			p = pointer(p);
			if (t == ID) {
				if (isptr(p->type))
					ty = deref(p->type);
				if (isptr(p->type) && isstruct(ty)) {
					if (YYnull)
						p = nullcheck(p);
					p = field(p, token);	/* refme */
				} else
					error("left operand of -> has incompatible type `%t'\n",
						p->type);
				t = gettok();
			} else
				error("field name expected\n");
			continue;
		default:
			return p;
		}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x1f8ef(%rip), %r12     # 0x2b9e0
leaq 0x1324d(%rip), %r13     # 0x1f345
movslq (%r12), %r14
cmpq $0x2e, %r14
jne 0xc120
callq 0xe1c6
movl %eax, (%r12)
cmpl $0x20, %eax
je 0xc382
movq %r13, %rdi
xorl %eax, %eax
callq 0x9720
jmp 0xc0f8
cmpl $0x2f, %r14d
jle 0xc149
cmpl $0x5b, %r14d
je 0xc288
cmpl $0x31, %r14d
je 0xc2d5
cmpl $0x30, %r14d
je 0xc205
jmp 0xc9c9
cmpl $0x27, %r14d
je 0xc205
cmpl $0x28, %r14d
jne 0xc9c9
movq %rbx, %rdi
callq 0xac81
movq %rax, %rbx
movq 0x8(%rax), %rsi
cmpl $0xf, (%rsi)
movq %rsi, %rax
jb 0xc178
movq 0x10(%rsi), %rax
cmpl $0x7, (%rax)
jne 0xc193
movq 0x10(%rsi), %r15
cmpl $0xf, (%r15)
movq %r15, %rax
jb 0xc18e
movq 0x10(%r15), %rax
cmpl $0xb, (%rax)
je 0xc1b5
leaq 0x1315d(%rip), %rdi     # 0x1f2f7
xorl %eax, %eax
callq 0x9720
leaq 0x25e38(%rip), %rax     # 0x31fe0
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1911b
movq %rax, %r15
leaq 0x1f77c(%rip), %rax     # 0x2b938
movups (%rax), %xmm0
movaps %xmm0, 0x10(%rsp)
callq 0xe1c6
movl %eax, (%r12)
movaps 0x10(%rsp), %xmm0
movups %xmm0, 0x28(%rsp)
movq %rbx, 0x8(%rsp)
movq 0x18(%r15), %rax
testq %rax, %rax
je 0xc430
movq (%rax), %rcx
leaq 0x25ded(%rip), %rdx     # 0x31fe0
cmpq (%rdx), %rcx
movl $0x0, %r14d
cmovneq %rax, %r14
jmp 0xc433
movq 0x8(%rbx), %r15
leaq 0x25d88(%rip), %rax     # 0x31f98
movq (%rax), %rsi
movl $0x1, %edi
callq 0x9044
leaq 0x12c7c(%rip), %rcx     # 0x1eea0
movl (%rcx,%r14,4), %edi
movq %rbx, %rsi
movq %rax, %rdx
leaq 0x1bf2b(%rip), %rax     # 0x28160
callq *(%rax,%r14,8)
movl $0x30, %edi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x8c8d
movq %rax, %rdi
callq 0x17ccb
movl $0x2a0, %edi            # imm = 0x2A0
movq %r15, %rsi
movq %rbx, %rdx
movq %rax, %rcx
callq 0x17b61
movl $0x2a0, %edi            # imm = 0x2A0
movq %r15, %rsi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x17b61
movq %rax, %rbx
callq 0xe1c6
movl %eax, (%r12)
jmp 0xc0f8
callq 0xe1c6
movl %eax, (%r12)
movl $0x5d, %edi
callq 0xadbc
movq %rax, %r15
leaq 0x1f7bb(%rip), %rax     # 0x2ba60
cmpq $0x0, (%rax)
je 0xc934
movq 0x8(%rbx), %rax
cmpl $0xf, (%rax)
jb 0xc2bc
movq 0x10(%rax), %rax
cmpl $0x7, (%rax)
jne 0xc917
movq %rbx, %rdi
callq 0xbfdf
movq %rax, %rbx
jmp 0xc934
callq 0xe1c6
movl %eax, (%r12)
movq %rbx, %rdi
callq 0xac81
movq %rax, %rbx
cmpl $0x20, (%r12)
jne 0xc114
movq 0x8(%rbx), %rdi
cmpl $0xf, (%rdi)
movq %rdi, %rax
jb 0xc304
movq 0x10(%rdi), %rax
cmpl $0x7, (%rax)
jne 0xc311
callq 0x19254
movq %rax, %rbp
movq 0x8(%rbx), %rsi
cmpl $0xf, (%rsi)
movq %rsi, %rax
jb 0xc321
movq 0x10(%rsi), %rax
cmpl $0x7, (%rax)
jne 0xc9c0
movl (%rbp), %eax
movq %rbp, %rcx
cmpl $0xf, %eax
jb 0xc339
movq 0x10(%rbp), %rcx
cmpl $0x9, (%rcx)
je 0xc353
movq %rbp, %rcx
cmpl $0xf, %eax
jb 0xc34a
movq 0x10(%rbp), %rcx
cmpl $0xa, (%rcx)
jne 0xc9c0
leaq 0x1f706(%rip), %rax     # 0x2ba60
cmpq $0x0, (%rax)
je 0xc36b
movq %rbx, %rdi
callq 0xbfdf
movq %rax, %rbx
leaq 0x1f5d6(%rip), %rax     # 0x2b948
movq (%rax), %rsi
movq %rbx, %rdi
callq 0xb14d
jmp 0xc277
movq 0x8(%rbx), %rsi
movl (%rsi), %eax
movq %rsi, %rcx
cmpl $0xf, %eax
jb 0xc394
movq 0x10(%rsi), %rcx
cmpl $0x9, (%rcx)
je 0xc3ae
movq %rsi, %rcx
cmpl $0xf, %eax
jb 0xc3a5
movq 0x10(%rsi), %rcx
cmpl $0xa, (%rcx)
jne 0xc9ad
movq %rbx, %rdi
callq 0x9c98
movq %rax, %r15
leaq 0x1f588(%rip), %rax     # 0x2b948
movq (%rax), %rsi
movq %r15, %rdi
callq 0xb14d
movq %rax, %rbx
movq %r15, %rdi
callq 0xac0d
movq %rax, %r15
movl (%rax), %eax
movl $0xfffffef9, %ecx       # imm = 0xFFFFFEF9
addl %ecx, %eax
cmpl $0x20, %eax
ja 0xc27a
movabsq $0x100010001, %rcx      # imm = 0x100010001
btq %rax, %rcx
jae 0xc27a
movq 0x28(%r15), %rax
testb $0x2, 0x1b(%rax)
je 0xc27a
movq 0x8(%rbx), %rsi
movl $0x2a0, %edi            # imm = 0x2A0
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x17b61
movq %rax, %rbx
movq 0x28(%r15), %rax
movq %rax, 0x28(%rbx)
jmp 0xc27a
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x17bee
movl $0x0, %r13d
testl %eax, %eax
je 0xc44a
movq 0x8(%rsp), %r13
movq %r15, 0x10(%rsp)
cmpl $0x29, (%r12)
jne 0xc45d
xorl %ebx, %ebx
jmp 0xc82c
movl $0x1, %r15d
xorl %ebx, %ebx
xorl %edi, %edi
callq 0xaeb9
movq %rax, %rdi
callq 0xac81
movq %rax, %rbp
testq %r14, %r14
je 0xc534
movq (%r14), %rax
testq %rax, %rax
je 0xc534
leaq 0x25b4d(%rip), %rcx     # 0x31fe0
cmpq (%rcx), %rax
je 0xc534
movq %rbp, %rdi
callq 0x9e6f
movq %rax, %rbp
movq (%r14), %rdi
movq %rax, %rsi
callq 0x9fe1
testq %rax, %rax
je 0xc6b0
movq %rbp, %rdi
movq %rax, %rsi
callq 0xa341
movq %rax, %rbp
movq 0x8(%rax), %rdi
movl (%rdi), %eax
movq %rdi, %rcx
cmpl $0xf, %eax
jb 0xc4db
movq 0x10(%rdi), %rcx
cmpl $0x3, (%rcx)
jb 0xc4f1
movq %rdi, %rcx
cmpl $0xf, %eax
jb 0xc4ec
movq 0x10(%rdi), %rcx
cmpl $0x7, (%rcx)
jb 0xc506
movq %rdi, %rcx
cmpl $0xf, %eax
jb 0xc4fd
movq 0x10(%rdi), %rcx
cmpl $0xd, (%rcx)
jne 0xc712
movl 0x8(%rdi), %eax
leaq 0x25a88(%rip), %rcx     # 0x31f98
movq (%rcx), %rcx
cmpl 0x8(%rcx), %eax
je 0xc712
callq 0xacd9
movq %rbp, %rdi
movq %rax, %rsi
callq 0xa341
movq %rax, %rbp
jmp 0xc712
movq 0x10(%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0xc5a3
testq %r14, %r14
je 0xc54b
cmpq $0x0, (%r14)
jne 0xc5a3
movq 0x8(%rsp), %rax
movl (%rax), %ecx
movl $0xfffffef9, %edx       # imm = 0xFFFFFEF9
addl %edx, %ecx
leaq 0x12c4b(%rip), %rsi     # 0x1f1ab
cmpl $0x20, %ecx
ja 0xc595
movabsq $0x100010001, %rdx      # imm = 0x100010001
btq %rcx, %rdx
leaq 0x12c31(%rip), %rsi     # 0x1f1ab
jae 0xc595
movq 0x28(%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x12828(%rip), %rdi     # 0x1edb3
xorl %eax, %eax
callq 0x11c7f
movq %rax, %rsi
leaq 0x12e28(%rip), %rdi     # 0x1f3c4
xorl %eax, %eax
callq 0x9720
movq %rbp, %rdi
callq 0x9e6f
movq %rax, %rbp
movq 0x8(%rax), %rdi
leaq 0x259d7(%rip), %rax     # 0x31f90
cmpq (%rax), %rdi
je 0xc68c
movl (%rdi), %eax
movq %rdi, %rcx
cmpl $0xf, %eax
jb 0xc5d0
movq 0x10(%rdi), %rcx
cmpl $0x3, (%rcx)
jb 0xc5e6
movq %rdi, %rcx
cmpl $0xf, %eax
jb 0xc5e1
movq 0x10(%rdi), %rcx
cmpl $0x7, (%rcx)
jb 0xc5f7
movq %rdi, %rcx
cmpl $0xf, %eax
jb 0xc5f2
movq 0x10(%rdi), %rcx
cmpl $0xd, (%rcx)
jne 0xc60d
movl 0x8(%rdi), %ecx
leaq 0x25997(%rip), %rdx     # 0x31f98
movq (%rdx), %rdx
cmpl 0x8(%rdx), %ecx
jne 0xc69b
movq %rdi, %rcx
cmpl $0xf, %eax
jb 0xc619
movq 0x10(%rdi), %rcx
cmpl $0xc, (%rcx)
je 0xc628
cmpl $0x0, 0x8(%rdi)
jne 0xc716
movq 0x8(%rsp), %rax
movl (%rax), %ecx
movl $0xfffffef9, %edx       # imm = 0xFFFFFEF9
addl %edx, %ecx
leaq 0x12b6e(%rip), %rdx     # 0x1f1ab
cmpl $0x20, %ecx
ja 0xc672
movabsq $0x100010001, %rdx      # imm = 0x100010001
btq %rcx, %rdx
leaq 0x12b54(%rip), %rdx     # 0x1f1ab
jae 0xc672
movq 0x28(%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x1274b(%rip), %rdi     # 0x1edb3
xorl %eax, %eax
callq 0x11c7f
movq %rax, %rdx
movq 0x8(%rbp), %rcx
leaq 0x12d61(%rip), %rdi     # 0x1f3de
movl %r15d, %esi
xorl %eax, %eax
callq 0x9720
jmp 0xc716
leaq 0x258f5(%rip), %rax     # 0x31f88
movq (%rax), %rsi
movq %rbp, %rdi
jmp 0xc6a6
callq 0xacd9
movq %rbp, %rdi
movq %rax, %rsi
callq 0xa341
movq %rax, %rbp
jmp 0xc716
movq 0x8(%rsp), %rax
movl (%rax), %ecx
movl $0xfffffef9, %edx       # imm = 0xFFFFFEF9
addl %edx, %ecx
leaq 0x12ae6(%rip), %rdx     # 0x1f1ab
cmpl $0x20, %ecx
ja 0xc6fa
movabsq $0x100010001, %rdx      # imm = 0x100010001
btq %rcx, %rdx
leaq 0x12acc(%rip), %rdx     # 0x1f1ab
jae 0xc6fa
movq 0x28(%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x126c3(%rip), %rdi     # 0x1edb3
xorl %eax, %eax
callq 0x11c7f
movq %rax, %rdx
movq 0x8(%rbp), %rcx
movq (%r14), %r8
leaq 0x12c81(%rip), %rdi     # 0x1f389
movl %r15d, %esi
xorl %eax, %eax
callq 0x9720
addq $0x8, %r14
movq %rbp, %rdi
callq 0x17bee
testl %eax, %eax
je 0xc73f
leaq 0x258b7(%rip), %rax     # 0x31fe0
movq (%rax), %rsi
movl $0x2a0, %edi            # imm = 0x2A0
movq %r13, %rdx
movq %rbp, %rcx
callq 0x17b61
movq %rax, %r13
movq 0x8(%rbp), %rdi
movl (%rdi), %ecx
movq %rdi, %rax
cmpl $0xf, %ecx
jb 0xc751
movq 0x10(%rdi), %rax
cmpl $0x3, (%rax)
jb 0xc76c
movq %rdi, %rdx
cmpl $0xf, %ecx
jb 0xc762
movq 0x10(%rdi), %rdx
movl $0x25, %eax
cmpl $0x7, (%rdx)
jb 0xc78a
movq %rdi, %rdx
cmpl $0xf, %ecx
jb 0xc778
movq 0x10(%rdi), %rdx
movl $0x25, %eax
cmpl $0xd, (%rdx)
je 0xc78a
callq 0x1a3e6
addl $0x20, %eax
movq 0x8(%rbp), %rsi
movl %eax, %edi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x17b61
movq %rax, %rbx
leaq 0x1f2b3(%rip), %rax     # 0x2ba58
cmpl $0x2, (%rax)
setge %al
cmpl $0x20, %r15d
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xc811
movq 0x8(%rsp), %rax
movl (%rax), %ecx
movl $0xfffffef9, %edx       # imm = 0xFFFFFEF9
addl %edx, %ecx
leaq 0x129dd(%rip), %rsi     # 0x1f1ab
cmpl $0x20, %ecx
ja 0xc803
movabsq $0x100010001, %rdx      # imm = 0x100010001
btq %rcx, %rdx
leaq 0x129c3(%rip), %rsi     # 0x1f1ab
jae 0xc803
movq 0x28(%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x125ba(%rip), %rdi     # 0x1edb3
xorl %eax, %eax
callq 0x11c7f
movq %rax, %rsi
leaq 0x12c06(%rip), %rdi     # 0x1f410
xorl %eax, %eax
callq 0x9be3
cmpl $0x2c, (%r12)
jne 0xc82c
callq 0xe1c6
movl %eax, (%r12)
incl %r15d
testl %eax, %eax
jne 0xc465
movl $0x29, %edi
callq 0x983d
testq %r14, %r14
movq 0x10(%rsp), %rbp
je 0xc8ac
movq (%r14), %rax
testq %rax, %rax
je 0xc8ac
leaq 0x25791(%rip), %rcx     # 0x31fe0
cmpq (%rcx), %rax
je 0xc8ac
movq 0x8(%rsp), %rax
movl (%rax), %ecx
movl $0xfffffef9, %edx       # imm = 0xFFFFFEF9
addl %edx, %ecx
leaq 0x12942(%rip), %rsi     # 0x1f1ab
cmpl $0x20, %ecx
ja 0xc89e
movabsq $0x100010001, %rdx      # imm = 0x100010001
btq %rcx, %rdx
leaq 0x12928(%rip), %rsi     # 0x1f1ab
jae 0xc89e
movq 0x28(%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x1251f(%rip), %rdi     # 0x1edb3
xorl %eax, %eax
callq 0x11c7f
movq %rax, %rsi
leaq 0x12b93(%rip), %rdi     # 0x1f438
xorl %eax, %eax
callq 0x9720
testq %r13, %r13
je 0xc8ce
leaq 0x25728(%rip), %rax     # 0x31fe0
movq (%rax), %rsi
movl $0x2a0, %edi            # imm = 0x2A0
movq %r13, %rdx
movq %rbx, %rcx
callq 0x17b61
movq %rax, %rbx
leaq 0x12a70(%rip), %r13     # 0x1f345
leaq 0x1f124(%rip), %rax     # 0x2ba00
movq 0x20(%rax), %rdi
testq %rdi, %rdi
je 0xc8f4
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x102f8
movq 0x8(%rsp), %r15
movq %rbp, %rdi
callq 0x197d4
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x910d
movq %rax, %rbx
jmp 0xc0f8
movq 0x8(%r15), %rax
cmpl $0xf, (%rax)
jb 0xc924
movq 0x10(%rax), %rax
cmpl $0x7, (%rax)
jne 0xc934
movq %r15, %rdi
callq 0xbfdf
movq %rax, %r15
movq %r15, %rdi
callq 0xac81
movq %rax, %r15
leaq 0x1b81a(%rip), %rax     # 0x28160
movq 0x158(%rax), %r14
movq %rbx, %rdi
callq 0xac81
movl $0x130, %edi            # imm = 0x130
movq %rax, %rsi
movq %r15, %rdx
callq *%r14
movq 0x8(%rax), %rcx
cmpl $0xf, (%rcx)
movq %rcx, %rdx
jb 0xc973
movq 0x10(%rcx), %rdx
cmpl $0x7, (%rdx)
jne 0xc99d
movq 0x10(%rcx), %rsi
cmpl $0xf, (%rsi)
movq %rsi, %rcx
jb 0xc988
movq 0x10(%rsi), %rcx
cmpl $0xc, (%rcx)
jne 0xc99d
movq %rax, %rdi
callq 0x17ca2
movq %rax, %rbx
jmp 0xc0f8
movq %rax, %rdi
callq 0xab00
movq %rax, %rbx
jmp 0xc0f8
leaq 0x12963(%rip), %rdi     # 0x1f317
xorl %eax, %eax
callq 0x9720
jmp 0xc27a
leaq 0x12993(%rip), %rdi     # 0x1f35a
jmp 0xc9b4
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop