// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/evaluate.c
// Function: evaluate_preop
static struct symbol *evaluate_preop(struct expression *expr)
{
	struct symbol *ctype = expr->unop->ctype;

	switch (expr->op) {
	case '(':
		*expr = *expr->unop;
		return ctype;

	case '+':
	case '-':
	case '~':
		return evaluate_sign(expr);

	case '*':
		return evaluate_dereference(expr);

	case '&':
		return evaluate_addressof(expr);

	case SPECIAL_INCREMENT:
	case SPECIAL_DECREMENT:
		/*
		 * From a type evaluation standpoint the preops are
		 * the same as the postops
		 */
		return evaluate_postop(expr);

	case '!':
		ctype = degenerate(expr->unop);
		expr->flags = expr->unop->flags & ~CEF_CONST_MASK;
		/*
		 * A logical negation never yields an address constant
		 * [6.6(9)].
		 */
		expr->flags &= ~CEF_ADDR;

		if (is_safe_type(ctype))
			warning(expr->pos, "testing a 'safe expression'");
		if (is_float_type(ctype)) {
			struct expression *arg = expr->unop;
			expr->type = EXPR_COMPARE;
			expr->op = SPECIAL_EQUAL;
			expr->left = arg;
			expr->right = alloc_expression(expr->pos, EXPR_FVALUE);
			expr->right->ctype = ctype;
			expr->right->fvalue = 0;
		} else if (is_fouled_type(ctype)) {
			warning(expr->pos, "%s degrades to integer",
				show_typename(ctype->ctype.base_type));
		}
		/* the result is int [6.5.3.3(5)]*/
		ctype = &int_ctype;
		break;

	default:
		break;
	}
	expr->ctype = ctype;
	return ctype;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %r15
movq 0x10(%r15), %r14
movl 0x4(%rdi), %eax
cmpl $0x7d, %eax
jg 0x34c83
addl $-0x21, %eax
cmpl $0xc, %eax
ja 0x34f87
leaq 0x15f2c(%rip), %rcx     # 0x4ab0c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r15, %rdi
callq 0x33628
movq 0x20(%rbx), %rcx
movl $0xb400, %edx           # imm = 0xB400
andl (%rcx), %edx
movq %rax, %r15
movb %dh, 0x1(%rbx)
testb $-0x80, 0x6a(%rax)
je 0x34c1a
movq 0x8(%rbx), %rdi
leaq 0x165ae(%rip), %rsi     # 0x4b1c1
xorl %eax, %eax
callq 0x118b4
movzbl (%r15), %ecx
movq %r15, %rax
cmpl $0x3, %ecx
jne 0x34c2a
movq 0x60(%r15), %rax
movq 0x60(%rax), %rax
cmpq 0x2c30b(%rip), %rax     # 0x60f40
je 0x34e25
movq %r15, %rax
cmpl $0x3, %ecx
jne 0x34c47
movq 0x60(%r15), %rax
cmpb $0x9, (%rax)
jne 0x34c50
movq 0x60(%rax), %rax
leaq 0x37ae1(%rip), %r14     # 0x6c738
cmpb $0xe, (%rax)
jne 0x34f87
movq 0x60(%r15), %rdi
callq 0x2386c
movq 0x8(%rbx), %rdi
leaq 0x162af(%rip), %rsi     # 0x4af23
movq %rax, %rdx
xorl %eax, %eax
callq 0x118b4
jmp 0x34f87
cmpl $0x7e, %eax
je 0x34cb0
cmpl $0x101, %eax            # imm = 0x101
je 0x34c9a
cmpl $0x103, %eax            # imm = 0x103
jne 0x34f87
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3503d
cmpb $0x3, (%r14)
jne 0x34cba
movq 0x60(%r14), %r14
cmpb $0xa, (%r14)
jne 0x34cd4
movq %r14, %rdi
callq 0x2b5f4
movq %rax, %r14
cmpb $0x3, (%rax)
jne 0x34cd4
movq 0x60(%r14), %r14
cmpb $0x9, (%r14)
jne 0x34cde
movq 0x60(%r14), %r14
movzbl (%r14), %eax
cmpq $0x2, %rax
jne 0x34d06
movq 0x60(%r14), %rcx
cmpq 0x2c28d(%rip), %rcx     # 0x60f80
je 0x34e1d
cmpq 0x2c240(%rip), %rcx     # 0x60f40
je 0x34e68
leaq 0x15f33(%rip), %rcx     # 0x4ac40
movl (%rcx,%rax,4), %r15d
jmp 0x34e6e
movaps (%r15), %xmm0
movaps 0x10(%r15), %xmm1
movaps 0x20(%r15), %xmm2
movaps 0x30(%r15), %xmm3
movaps %xmm3, 0x30(%rbx)
movaps %xmm2, 0x20(%rbx)
movaps %xmm1, 0x10(%rbx)
movaps %xmm0, (%rbx)
jmp 0x34f8b
cmpb $0x9, (%r15)
jne 0x34d8b
cmpl $0x26, 0x4(%r15)
jne 0x34d8b
movq 0x20(%r15), %rax
movaps (%rax), %xmm0
movaps 0x10(%rax), %xmm1
movaps 0x20(%rax), %xmm2
movaps 0x30(%rax), %xmm3
movaps %xmm0, (%rbx)
movaps %xmm1, 0x10(%rbx)
movaps %xmm3, 0x30(%rbx)
movaps %xmm2, 0x20(%rbx)
movb $0x0, 0x1(%rbx)
jmp 0x34fbf
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x38254
movq %r14, %rdi
callq 0x2b5f4
cmpb $0x3, (%r14)
jne 0x34d9d
movq 0x60(%r14), %r14
movq 0x60(%r14), %r12
movzbl (%r14), %eax
cmpl $0x4, %eax
je 0x34fc5
cmpl $0x5, %eax
je 0x34f9d
cmpl $0x6, %eax
jne 0x35015
cmpb $0x9, (%r15)
jne 0x35024
cmpl $0x2a, 0x4(%r15)
jne 0x35024
movq 0x20(%r15), %rax
movaps (%rax), %xmm0
movaps 0x10(%rax), %xmm1
movaps 0x20(%rax), %xmm2
movaps 0x30(%rax), %xmm3
movaps %xmm0, (%r15)
movaps %xmm1, 0x10(%r15)
movaps %xmm3, 0x30(%r15)
movaps %xmm2, 0x20(%r15)
movq 0x8(%rbx), %rdi
movl $0x3, %esi
callq 0x2b547
movq %rax, %r13
movq 0x10(%r15), %rsi
movq %rax, %rdi
callq 0x2b569
jmp 0x34fec
movl $0x1, %r15d
jmp 0x34e6e
movb $0x16, (%rbx)
movl $0x10a, 0x4(%rbx)       # imm = 0x10A
movq 0x8(%rbx), %r14
xorl %edi, %edi
callq 0x30029
movl (%rax), %ecx
orl $0x1c, %ecx
movq %r14, 0x8(%rax)
andl $0xffff001c, %ecx       # imm = 0xFFFF001C
movl %ecx, (%rax)
movq %rax, 0x28(%rbx)
movq %r15, 0x10(%rax)
movq 0x28(%rbx), %rax
fldz
fstpt 0x20(%rax)
leaq 0x378d5(%rip), %r14     # 0x6c738
jmp 0x34f87
movl $0x9, %r15d
testb $0x1, %r15b
jne 0x34e88
movq %rbx, %rdi
callq 0x37d1e
leaq 0x38a35(%rip), %r14     # 0x6d8b8
jmp 0x34f8b
movq 0x20(%rbx), %rax
movl $0xf400, %ebp           # imm = 0xF400
andl (%rax), %ebp
testb $0x4, %r15b
je 0x34ef8
movl 0x4(%rbx), %eax
movb $0x1, %r12b
cmpl $0x2b, %eax
je 0x34ec8
cmpl $0x7e, %eax
jne 0x34ec5
movl 0x50(%r14), %eax
leaq 0x30854(%rip), %rcx     # 0x65708
cmpl (%rcx), %eax
jge 0x34ec8
movq %r14, %rdi
callq 0x2c061
movq %rax, %r14
jmp 0x34ec8
xorl %r12d, %r12d
testb %r12b, %r12b
jne 0x34ef8
testb $0x40, %r15b
je 0x34ed7
movq 0x60(%r14), %r14
movq %r14, %rdi
callq 0x2386c
movq 0x8(%rbx), %rdi
leaq 0x16039(%rip), %rsi     # 0x4af23
movq %rax, %rdx
xorl %eax, %eax
callq 0x118b4
movq 0x60(%r14), %r14
testb $0x8, %r15b
jne 0x34f20
movl 0x50(%r14), %eax
cmpb $0xb, (%r14)
jne 0x34f0c
movq 0x60(%r14), %r14
leaq 0x307f5(%rip), %rcx     # 0x65708
cmpl (%rcx), %eax
jge 0x34f2c
leaq 0x3781a(%rip), %r14     # 0x6c738
jmp 0x34f44
cmpl $0x7e, 0x4(%rbx)
je 0x34e74
jmp 0x34f54
testb $0x2, 0x57(%r14)
je 0x34f44
movq 0x68(%r14), %rax
btl $0xe, %eax
jae 0x34f17
leaq 0x379b4(%rip), %r14     # 0x6c8f8
movq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x334cd
movq %rax, 0x20(%rbx)
cmpl $0x2b, 0x4(%rbx)
jne 0x34f7c
movq 0x20(%rbx), %rax
movaps (%rax), %xmm0
movaps 0x10(%rax), %xmm1
movaps 0x20(%rax), %xmm2
movaps 0x30(%rax), %xmm3
movaps %xmm0, (%rbx)
movaps %xmm1, 0x10(%rbx)
movaps %xmm3, 0x30(%rbx)
movaps %xmm2, 0x20(%rbx)
movl $0xffff00ff, %eax       # imm = 0xFFFF00FF
andl (%rbx), %eax
orl %ebp, %eax
movl %eax, (%rbx)
movq %r14, 0x10(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movaps (%r15), %xmm0
movaps 0x10(%r15), %xmm1
movaps 0x20(%r15), %xmm2
movaps 0x30(%r15), %xmm3
movaps %xmm1, 0x10(%rbx)
movaps %xmm3, 0x30(%rbx)
movaps %xmm2, 0x20(%rbx)
movaps %xmm0, (%rbx)
movq 0x10(%rbx), %r14
jmp 0x34f8b
movq %r12, %rdi
callq 0x2b5f4
movq 0x8(%rbx), %rdi
movl $0x3, %esi
callq 0x2b547
movq %rax, %r13
movq 0x68(%r12), %rax
andl $0xe000, %eax           # imm = 0xE000
movq %rax, 0x68(%r13)
movq %r13, %rdi
movq %r14, %rsi
callq 0x2b569
movl 0x50(%r12), %eax
movl %eax, 0x50(%r13)
movq 0x58(%r12), %rax
movq %rax, 0x58(%r13)
movq %r13, 0x10(%rbx)
movq %r13, %r14
jmp 0x34f8b
leaq 0x162fc(%rip), %rsi     # 0x4b318
xorl %r14d, %r14d
movq %rbx, %rdi
jmp 0x35031
leaq 0x1630a(%rip), %rsi     # 0x4b335
xorl %r14d, %r14d
movq %r15, %rdi
xorl %eax, %eax
callq 0x11abc
jmp 0x34f8b