// File: /workspace/github_c_makefile_star2_O3/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 0x34225
addl $-0x21, %eax
cmpl $0xc, %eax
ja 0x3455d
leaq 0x158bb(%rip), %rcx     # 0x49a7c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r15, %rdi
callq 0x32bf6
movq 0x20(%rbx), %rcx
movl $0xb400, %edx           # imm = 0xB400
andl (%rcx), %edx
movq %rax, %r14
movb %dh, 0x1(%rbx)
testb $-0x80, 0x6a(%rax)
je 0x341fb
movq 0x8(%rbx), %rdi
leaq 0x15f3d(%rip), %rsi     # 0x4a131
xorl %eax, %eax
callq 0x118fc
movzbl (%r14), %eax
movq 0x60(%r14), %rdi
cmpl $0x3, %eax
jne 0x3442f
movq 0x60(%rdi), %rcx
cmpq 0x2bd39(%rip), %rcx     # 0x5ff50
je 0x34472
movzbl (%rdi), %eax
jmp 0x3443b
cmpl $0x7e, %eax
je 0x34252
cmpl $0x101, %eax            # imm = 0x101
je 0x3423c
cmpl $0x103, %eax            # imm = 0x103
jne 0x3455d
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x34642
movzbl (%r14), %eax
cmpl $0x3, %eax
jne 0x34263
movq 0x60(%r14), %r14
movzbl (%r14), %eax
cmpl $0xa, %eax
jne 0x34283
movq %r14, %rdi
callq 0x2b0b8
movq %rax, %r14
movzbl (%rax), %eax
cmpl $0x3, %eax
jne 0x34283
movq 0x60(%r14), %r14
movzbl (%r14), %eax
cmpl $0x9, %eax
jne 0x34290
movq 0x60(%r14), %r14
movzbl (%r14), %eax
cmpl $0x2, %eax
jne 0x342b3
movq 0x60(%r14), %rcx
cmpq 0x2bce8(%rip), %rcx     # 0x5ff88
je 0x34424
cmpq 0x2bca3(%rip), %rcx     # 0x5ff50
je 0x344ad
movl $0x197ff, %ecx          # imm = 0x197FF
btq %rax, %rcx
jb 0x344e9
movl %eax, %ecx
leaq 0x158e5(%rip), %rdx     # 0x49bb0
movl (%rdx,%rcx,4), %r15d
movq 0x20(%rbx), %rcx
movl (%rcx), %ebp
leal -0xf(%rax), %ecx
cmpl $-0x3, %ecx
jbe 0x344b9
movl 0x4(%rbx), %ecx
cmpl $0x2b, %ecx
je 0x344b9
cmpl $0x7e, %ecx
jne 0x345fa
movl 0x50(%r14), %eax
leaq 0x30407(%rip), %rcx     # 0x64708
cmpl (%rcx), %eax
jge 0x344b9
movq %r14, %rdi
callq 0x2bb35
movq %rax, %r14
jmp 0x344b9
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 0x34561
cmpb $0x9, (%r15)
jne 0x3438e
cmpl $0x26, 0x4(%r15)
jne 0x3438e
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 0x34595
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x37765
movq %r14, %rdi
callq 0x2b0b8
movzbl (%r14), %eax
cmpl $0x3, %eax
jne 0x343a6
movq 0x60(%r14), %r14
movl (%r14), %eax
movq 0x60(%r14), %r12
cmpb $0x4, %al
je 0x3459b
movzbl %al, %eax
cmpl $0x5, %eax
je 0x34573
cmpl $0x6, %eax
jne 0x345eb
cmpb $0x9, (%r15)
jne 0x34629
cmpl $0x2a, 0x4(%r15)
jne 0x34629
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 0x2b00b
movq %rax, %r13
movq 0x10(%r15), %rsi
movq %rax, %rdi
callq 0x2b02d
jmp 0x345c2
movl $0x1, %r15d
jmp 0x344b3
movq %rdi, %rcx
cmpq 0x2bb17(%rip), %rdi     # 0x5ff50
je 0x34472
cmpl $0x9, %eax
jne 0x34443
movzbl (%rcx), %eax
leaq 0x372ee(%rip), %r14     # 0x6b738
cmpl $0xe, %eax
jne 0x3455d
callq 0x237c5
movq 0x8(%rbx), %rdi
leaq 0x15a30(%rip), %rsi     # 0x49e93
movq %rax, %rdx
xorl %eax, %eax
callq 0x118fc
jmp 0x3455d
movb $0x16, (%rbx)
movl $0x10a, 0x4(%rbx)       # imm = 0x10A
movq 0x8(%rbx), %r15
xorl %edi, %edi
callq 0x2f9f5
movq %r15, 0x8(%rax)
movw $0x1c, (%rax)
movq %rax, 0x28(%rbx)
movq %r14, 0x10(%rax)
movq 0x28(%rbx), %rax
fldz
fstpt 0x20(%rax)
leaq 0x37290(%rip), %r14     # 0x6b738
jmp 0x3455d
movl $0x9, %r15d
movq 0x20(%rbx), %rax
movl (%rax), %ebp
testb $0x8, %r15b
jne 0x344e1
movl 0x50(%r14), %eax
cmpb $0xb, (%r14)
jne 0x344cd
movq 0x60(%r14), %r14
leaq 0x30234(%rip), %rcx     # 0x64708
cmpl (%rcx), %eax
jge 0x344fa
leaq 0x37259(%rip), %r14     # 0x6b738
jmp 0x34512
movl 0x4(%rbx), %eax
cmpl $0x7e, %eax
jne 0x34525
movq %rbx, %rdi
callq 0x37201
leaq 0x383c0(%rip), %r14     # 0x6c8b8
jmp 0x34561
testb $0x2, 0x57(%r14)
je 0x34512
movq 0x68(%r14), %rax
btl $0xe, %eax
jae 0x344d8
leaq 0x373e6(%rip), %r14     # 0x6b8f8
movq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x32aa9
movq %rax, 0x20(%rbx)
movl 0x4(%rbx), %eax
andl $0xf400, %ebp           # imm = 0xF400
cmpl $0x2b, %eax
jne 0x34552
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 0x34561
movq %r12, %rdi
callq 0x2b0b8
movq 0x8(%rbx), %rdi
movl $0x3, %esi
callq 0x2b00b
movq %rax, %r13
movq 0x68(%r12), %rax
andl $0xe000, %eax           # imm = 0xE000
movq %rax, 0x68(%r13)
movq %r13, %rdi
movq %r14, %rsi
callq 0x2b02d
movl 0x50(%r12), %eax
movl %eax, 0x50(%r13)
movq 0x58(%r12), %rax
movq %rax, 0x58(%r13)
movq %r13, 0x10(%rbx)
movq %r13, %r14
jmp 0x34561
leaq 0x15c96(%rip), %rsi     # 0x4a288
xorl %r14d, %r14d
movq %rbx, %rdi
jmp 0x34636
cmpl $0xe, %eax
jne 0x34603
movq 0x60(%r14), %r14
movq %r14, %rdi
callq 0x237c5
movq 0x8(%rbx), %rdi
leaq 0x1587d(%rip), %rsi     # 0x49e93
movq %rax, %rdx
xorl %eax, %eax
callq 0x118fc
movq 0x60(%r14), %r14
jmp 0x344b9
leaq 0x15c75(%rip), %rsi     # 0x4a2a5
xorl %r14d, %r14d
movq %r15, %rdi
xorl %eax, %eax
callq 0x11b04
jmp 0x34561