// File: /workspace/github_c_makefile_star2_O3/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, %r14
leaq 0x20914(%rip), %r12     # 0x2c9e0
leaq 0x1d08d(%rip), %rbp     # 0x29160
leaq 0x12d6a(%rip), %rbx     # 0x1ee44
movl (%r12), %r13d
leal -0x27(%r13), %eax
cmpl $0xa, %eax
ja 0xc175
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
jmpq *%rax
movq 0x8(%r14), %r15
leaq 0x26e99(%rip), %rax     # 0x32f98
movq (%rax), %rsi
movl $0x1, %edi
callq 0x908f
movl %r13d, %ecx
leaq 0x12dda(%rip), %rdx     # 0x1eef0
movl (%rdx,%rcx,4), %edi
movq %r14, %rsi
movq %rax, %rdx
callq *(%rbp,%rcx,8)
movl $0x30, %edi
movq %r14, %rsi
movq %rax, %rdx
callq 0x8cee
movq %rax, %rdi
callq 0x17b52
movl $0x2a0, %edi            # imm = 0x2A0
movq %r15, %rsi
movq %r14, %rdx
movq %rax, %rcx
callq 0x179e5
movl $0x2a0, %edi            # imm = 0x2A0
movq %r15, %rsi
movq %rax, %rdx
movq %r14, %rcx
callq 0x179e5
movq %rax, %r14
callq 0xe195
movl %eax, %r13d
movl %eax, (%r12)
jmp 0xc0de
cmpl $0x5b, %r13d
jne 0xc996
callq 0xe195
movl %eax, (%r12)
movl $0x5d, %edi
callq 0xad94
movq %rax, %r15
leaq 0x208c4(%rip), %rax     # 0x2ca60
cmpq $0x0, (%rax)
je 0xc8fd
movq 0x8(%r14), %rcx
movl (%rcx), %eax
cmpl $0xf, %eax
jb 0xc1b7
movq 0x10(%rcx), %rax
movl (%rax), %eax
cmpl $0x7, %eax
jne 0xc8dc
movq %r14, %rdi
callq 0xbfba
movq %rax, %r14
jmp 0xc8fd
callq 0xe195
movl %eax, (%r12)
movq %r14, %rdi
callq 0xac23
movq %rax, %r14
cmpl $0x20, (%r12)
jne 0xc336
movq 0x8(%r14), %rsi
movl (%rsi), %eax
movl %eax, %ecx
cmpl $0xf, %eax
jb 0xc202
movq 0x10(%rsi), %rcx
movl (%rcx), %ecx
cmpl $0x7, %ecx
movq 0x8(%rsp), %rcx
jne 0xc21d
movq %rsi, %rdi
callq 0x19085
movq %rax, %rcx
movq 0x8(%r14), %rsi
movl (%rsi), %eax
cmpl $0xf, %eax
jb 0xc228
movq 0x10(%rsi), %rax
movl (%rax), %eax
cmpl $0x7, %eax
movq %rcx, 0x8(%rsp)
jne 0xc98d
movl (%rcx), %eax
cmpl $0xf, %eax
jb 0xc243
movq 0x10(%rcx), %rax
movl (%rax), %eax
cmpl $0x9, %eax
je 0xc251
cmpl $0xa, %eax
jne 0xc98d
leaq 0x20808(%rip), %rax     # 0x2ca60
cmpq $0x0, (%rax)
je 0xc269
movq %r14, %rdi
callq 0xbfba
movq %rax, %r14
leaq 0x206d8(%rip), %rax     # 0x2c948
movq (%rax), %rsi
movq %r14, %rdi
callq 0xb122
movq %rax, %r14
jmp 0xc97f
callq 0xe195
movl %eax, (%r12)
cmpl $0x20, %eax
jne 0xc336
movq 0x8(%r14), %rsi
movl (%rsi), %eax
cmpl $0xf, %eax
jb 0xc2a6
movq 0x10(%rsi), %rax
movl (%rax), %eax
cmpl $0x9, %eax
je 0xc2b4
cmpl $0xa, %eax
jne 0xc971
movq %r14, %rdi
callq 0x9cb4
movq %rax, %r15
leaq 0x20682(%rip), %rax     # 0x2c948
movq (%rax), %rsi
movq %r15, %rdi
callq 0xb122
movq %rax, %r14
movq %r15, %rdi
callq 0xabb3
movq %rax, %r15
movl (%rax), %eax
movl $0xfffffef9, %ecx       # imm = 0xFFFFFEF9
addl %ecx, %eax
cmpl $0x20, %eax
ja 0xc97f
movabsq $0x100010001, %rcx      # imm = 0x100010001
btq %rax, %rcx
jae 0xc97f
movq 0x28(%r15), %rax
testb $0x2, 0x1b(%rax)
je 0xc97f
movq 0x8(%r14), %rsi
movl $0x2a0, %edi            # imm = 0x2A0
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x179e5
movq %rax, %r14
movq 0x28(%r15), %rax
movq %rax, 0x28(%r14)
jmp 0xc97f
leaq 0x13058(%rip), %rdi     # 0x1f395
xorl %eax, %eax
callq 0x974c
jmp 0xc0da
movq %r14, %rdi
callq 0xac23
movq %rax, %r14
movq 0x8(%rax), %rsi
movl (%rsi), %eax
cmpl $0xf, %eax
jb 0xc365
movq 0x10(%rsi), %rax
movl (%rax), %eax
cmpl $0x7, %eax
jne 0xc381
movq 0x10(%rsi), %r15
movl (%r15), %eax
cmpl $0xf, %eax
jb 0xc37c
movq 0x10(%r15), %rax
movl (%rax), %eax
cmpl $0xb, %eax
je 0xc3a3
leaq 0x12fbf(%rip), %rdi     # 0x1f347
xorl %eax, %eax
callq 0x974c
leaq 0x26c4a(%rip), %rax     # 0x32fe0
movq (%rax), %rdi
xorl %esi, %esi
callq 0x18f4f
movq %rax, %r15
leaq 0x2058e(%rip), %rax     # 0x2c938
movups (%rax), %xmm0
movaps %xmm0, 0x10(%rsp)
callq 0xe195
movl %eax, (%r12)
movaps 0x10(%rsp), %xmm0
movups %xmm0, 0x28(%rsp)
movq %r14, (%rsp)
movq %r15, 0x8(%rsp)
movq 0x18(%r15), %rax
testq %rax, %rax
je 0xc3f0
movq (%rax), %rcx
leaq 0x26bff(%rip), %rdx     # 0x32fe0
cmpq (%rdx), %rcx
movl $0x0, %r13d
cmovneq %rax, %r13
jmp 0xc3f3
xorl %r13d, %r13d
movq %r14, %rdi
callq 0x17a72
movl $0x0, %ecx
testl %eax, %eax
je 0xc408
movq (%rsp), %rcx
movq %rcx, 0x20(%rsp)
cmpl $0x29, (%r12)
jne 0xc4d3
movq $0x0, 0x10(%rsp)
movl $0x29, %edi
callq 0x9869
testq %r13, %r13
movq 0x20(%rsp), %r14
je 0xc4a1
movq (%r13), %rax
testq %rax, %rax
je 0xc4a1
leaq 0x26b9b(%rip), %rcx     # 0x32fe0
cmpq (%rcx), %rax
je 0xc4a1
movq (%rsp), %rax
movl (%rax), %ecx
movl $0xfffffef9, %edx       # imm = 0xFFFFFEF9
addl %edx, %ecx
leaq 0x12d9d(%rip), %rsi     # 0x1f1fb
cmpl $0x20, %ecx
ja 0xc493
movabsq $0x100010001, %rdx      # imm = 0x100010001
btq %rcx, %rdx
leaq 0x12d83(%rip), %rsi     # 0x1f1fb
jae 0xc493
movq 0x28(%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x12942(%rip), %rdi     # 0x1edcb
xorl %eax, %eax
callq 0x11b33
movq %rax, %rsi
leaq 0x12fee(%rip), %rdi     # 0x1f488
xorl %eax, %eax
callq 0x974c
testq %r14, %r14
je 0xc893
leaq 0x26b2f(%rip), %rax     # 0x32fe0
movq (%rax), %rsi
movl $0x2a0, %edi            # imm = 0x2A0
movq %r14, %rdx
movq 0x10(%rsp), %rcx
callq 0x179e5
movq %rax, %r13
movq 0x8(%rsp), %r14
jmp 0xc89d
movl $0x1, %r15d
movq $0x0, 0x10(%rsp)
movq %rbp, %r14
xorl %edi, %edi
callq 0xae91
movq %rax, %rdi
callq 0xac23
movq %rax, %rbp
testq %r13, %r13
je 0xc5a1
movq (%r13), %rax
testq %rax, %rax
je 0xc5af
leaq 0x26acc(%rip), %rcx     # 0x32fe0
cmpq (%rcx), %rax
je 0xc5af
movq %rbp, %rdi
callq 0x9e7a
movq %rax, %rbp
movq (%r13), %rdi
movq %rax, %rsi
callq 0x9ff1
testq %rax, %rax
je 0xc6fb
movq %rbp, %rdi
movq %rax, %rsi
callq 0xa2f7
movq %rax, %rbp
movq 0x8(%rax), %rdi
movl (%rdi), %eax
cmpl $0xf, %eax
jb 0xc55c
movq 0x10(%rdi), %rax
movl (%rax), %eax
cmpl $0x2, %eax
jbe 0xc75d
cmpl $0x7, %eax
jb 0xc573
cmpl $0xd, %eax
jne 0xc75d
movl 0x8(%rdi), %eax
leaq 0x26a1b(%rip), %rcx     # 0x32f98
movq (%rcx), %rcx
cmpl 0x8(%rcx), %eax
je 0xc75d
callq 0xac7b
movq %rbp, %rdi
movq %rax, %rsi
callq 0xa2f7
movq %rax, %rbp
jmp 0xc75d
movq 0x8(%rsp), %rax
cmpq $0x0, 0x18(%rax)
jne 0xc5c0
jmp 0xc617
movq 0x8(%rsp), %rcx
cmpq $0x0, 0x18(%rcx)
je 0xc617
testq %rax, %rax
jne 0xc617
movq (%rsp), %rax
movl (%rax), %ecx
movl $0xfffffef9, %edx       # imm = 0xFFFFFEF9
addl %edx, %ecx
leaq 0x12c27(%rip), %rsi     # 0x1f1fb
cmpl $0x20, %ecx
ja 0xc609
movabsq $0x100010001, %rdx      # imm = 0x100010001
btq %rcx, %rdx
leaq 0x12c0d(%rip), %rsi     # 0x1f1fb
jae 0xc609
movq 0x28(%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x127cc(%rip), %rdi     # 0x1edcb
xorl %eax, %eax
callq 0x11b33
movq %rax, %rsi
leaq 0x12e04(%rip), %rdi     # 0x1f414
xorl %eax, %eax
callq 0x974c
movq %rbp, %rdi
callq 0x9e7a
movq %rax, %rbp
movq 0x8(%rax), %rcx
leaq 0x26963(%rip), %rax     # 0x32f90
cmpq (%rax), %rcx
je 0xc64b
movl (%rcx), %eax
cmpl $0xf, %eax
jb 0xc65d
movq 0x10(%rcx), %rdx
movl (%rdx), %edx
cmpl $0x2, %edx
jbe 0xc689
cmpl $0x7, %edx
jae 0xc669
jmp 0xc66e
leaq 0x26936(%rip), %rax     # 0x32f88
movq (%rax), %rsi
movq %rbp, %rdi
jmp 0xc771
cmpl $0x2, %eax
jbe 0xc694
movl %eax, %edx
cmpl $0x7, %eax
jb 0xc66e
cmpl $0xd, %edx
jne 0xc684
movl 0x8(%rcx), %edx
leaq 0x26920(%rip), %rsi     # 0x32f98
movq (%rsi), %rsi
cmpl 0x8(%rsi), %edx
jne 0xc763
cmpl $0xf, %eax
jb 0xc68f
movq 0x10(%rcx), %rax
movl (%rax), %eax
cmpl $0xc, %eax
je 0xc69e
cmpl $0x0, 0x8(%rcx)
jne 0xc779
movq (%rsp), %rax
movl (%rax), %edx
movl $0xfffffef9, %esi       # imm = 0xFFFFFEF9
addl %esi, %edx
cmpl $0x20, %edx
ja 0xc887
movabsq $0x100010001, %rsi      # imm = 0x100010001
btq %rdx, %rsi
leaq 0x12b32(%rip), %rdx     # 0x1f1fb
jae 0xc6e8
movq 0x28(%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x126f1(%rip), %rdi     # 0x1edcb
xorl %eax, %eax
callq 0x11b33
movq %rax, %rdx
movq 0x8(%rbp), %rcx
leaq 0x12d3f(%rip), %rdi     # 0x1f42e
movl %r15d, %esi
xorl %eax, %eax
callq 0x974c
jmp 0xc779
movq (%rsp), %rax
movl (%rax), %ecx
movl $0xfffffef9, %edx       # imm = 0xFFFFFEF9
addl %edx, %ecx
leaq 0x12aec(%rip), %rdx     # 0x1f1fb
cmpl $0x20, %ecx
ja 0xc744
movabsq $0x100010001, %rdx      # imm = 0x100010001
btq %rcx, %rdx
leaq 0x12ad2(%rip), %rdx     # 0x1f1fb
jae 0xc744
movq 0x28(%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x12691(%rip), %rdi     # 0x1edcb
xorl %eax, %eax
callq 0x11b33
movq %rax, %rdx
movq 0x8(%rbp), %rcx
movq (%r13), %r8
leaq 0x12c86(%rip), %rdi     # 0x1f3d9
movl %r15d, %esi
xorl %eax, %eax
callq 0x974c
addq $0x8, %r13
jmp 0xc779
movq %rcx, %rdi
callq 0xac7b
movq %rbp, %rdi
movq %rax, %rsi
callq 0xa2f7
movq %rax, %rbp
movq %rbp, %rdi
callq 0x17a72
testl %eax, %eax
je 0xc7a6
leaq 0x26854(%rip), %rax     # 0x32fe0
movq (%rax), %rsi
movl $0x2a0, %edi            # imm = 0x2A0
movq 0x20(%rsp), %rdx
movq %rbp, %rcx
callq 0x179e5
movq %rax, 0x20(%rsp)
movq 0x8(%rbp), %rsi
movl (%rsi), %eax
cmpl $0xf, %eax
jb 0xc7b7
movq 0x10(%rsi), %rax
movl (%rax), %eax
cmpl $0x2, %eax
jbe 0xc7cb
movl $0x25, %edi
cmpl $0x7, %eax
jb 0xc7dc
cmpl $0xd, %eax
je 0xc7dc
movq %rsi, %rdi
callq 0x1a1c9
movl %eax, %edi
addl $0x20, %edi
movq 0x8(%rbp), %rsi
movq %rbp, %rdx
movq 0x10(%rsp), %rcx
callq 0x179e5
movq %rax, 0x10(%rsp)
leaq 0x20263(%rip), %rax     # 0x2ca58
cmpl $0x2, (%rax)
setge %al
cmpl $0x20, %r15d
sete %cl
andb %al, %cl
cmpb $0x1, %cl
movq %r14, %rbp
jne 0xc863
movq (%rsp), %rax
movl (%rax), %ecx
movl $0xfffffef9, %edx       # imm = 0xFFFFFEF9
addl %edx, %ecx
leaq 0x129db(%rip), %rsi     # 0x1f1fb
cmpl $0x20, %ecx
ja 0xc855
movabsq $0x100010001, %rdx      # imm = 0x100010001
btq %rcx, %rdx
leaq 0x129c1(%rip), %rsi     # 0x1f1fb
jae 0xc855
movq 0x28(%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x12580(%rip), %rdi     # 0x1edcb
xorl %eax, %eax
callq 0x11b33
movq %rax, %rsi
leaq 0x12c04(%rip), %rdi     # 0x1f460
xorl %eax, %eax
callq 0x9bfd
cmpl $0x2c, (%r12)
jne 0xc421
callq 0xe195
movl %eax, (%r12)
incl %r15d
testl %eax, %eax
jne 0xc4e2
jmp 0xc421
leaq 0x1296d(%rip), %rdx     # 0x1f1fb
jmp 0xc6e8
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %r13
leaq 0x2015c(%rip), %rax     # 0x2ca00
movq 0x20(%rax), %rdi
testq %rdi, %rdi
je 0xc8ba
leaq 0x28(%rsp), %rsi
movq %rsp, %rdx
callq 0x1021b
movq (%rsp), %r15
movq %r14, %rdi
callq 0x195c1
movq %r15, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x9161
movq %rax, %r14
jmp 0xc0da
movq 0x8(%r15), %rcx
movl (%rcx), %eax
cmpl $0xf, %eax
jb 0xc8ed
movq 0x10(%rcx), %rax
movl (%rax), %eax
cmpl $0x7, %eax
jne 0xc8fd
movq %r15, %rdi
callq 0xbfba
movq %rax, %r15
movq %r15, %rdi
callq 0xac23
movq %rax, %r15
movq 0x158(%rbp), %r13
movq %r14, %rdi
callq 0xac23
movl $0x130, %edi            # imm = 0x130
movq %rax, %rsi
movq %r15, %rdx
callq *%r13
movq 0x8(%rax), %rcx
movl (%rcx), %edx
cmpl $0xf, %edx
jb 0xc936
movq 0x10(%rcx), %rdx
movl (%rdx), %edx
cmpl $0x7, %edx
jne 0xc961
movq 0x10(%rcx), %rsi
movl (%rsi), %ecx
cmpl $0xf, %ecx
jb 0xc94c
movq 0x10(%rsi), %rcx
movl (%rcx), %ecx
cmpl $0xc, %ecx
jne 0xc961
movq %rax, %rdi
callq 0x17b29
movq %rax, %r14
jmp 0xc0da
movq %rax, %rdi
callq 0xaaaa
movq %rax, %r14
jmp 0xc0da
leaq 0x129ef(%rip), %rdi     # 0x1f367
xorl %eax, %eax
callq 0x974c
callq 0xe195
movl %eax, (%r12)
jmp 0xc0da
leaq 0x12a16(%rip), %rdi     # 0x1f3aa
jmp 0xc978
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq