// File: /workspace/github_c_makefile_star2_O0/lucvoo[P]sparse-dev/compile-i386.c
// Function: emit_regular_preop
static struct storage *emit_regular_preop(struct expression *expr)
{
	struct storage *target = x86_expression(expr->unop);
	struct storage *val, *new = stack_alloc(4);
	const char *opname = NULL;

	switch (expr->op) {
	case '!':
		val = new_storage(STOR_VALUE);
		val->flags = STOR_WANTS_FREE;
		emit_move(val, REG_EDX, NULL, NULL);
		emit_move(target, REG_EAX, expr->unop->ctype, NULL);
		insn("test", REG_EAX, REG_EAX, NULL);
		insn("setz", REG_DL, NULL, NULL);
		emit_move(REG_EDX, new, expr->unop->ctype, NULL);

		break;
	case '~':
		opname = "not";
	case '-':
		if (!opname)
			opname = "neg";
		emit_move(target, REG_EAX, expr->unop->ctype, NULL);
		insn(opname, REG_EAX, NULL, NULL);
		emit_move(REG_EAX, new, expr->unop->ctype, NULL);
		break;
	default:
		assert(0);
		break;
	}

	return new;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x62220
movq %rax, -0x10(%rbp)
movl $0x4, %edi
callq 0x63a00
movq %rax, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x2c(%rbp)
subl $0x21, %eax
je 0x66283
jmp 0x66264
movl -0x2c(%rbp), %eax
subl $0x2d, %eax
je 0x66358
jmp 0x66272
movl -0x2c(%rbp), %eax
subl $0x7e, %eax
je 0x6634d
jmp 0x663d8
movl $0x4, %edi
callq 0x63490
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq $0x2, 0x8(%rax)
movq -0x18(%rbp), %rdi
leaq 0x2c5e8(%rip), %rsi     # 0x92890
addq $0x360, %rsi            # imm = 0x360
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdx
callq 0x63640
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rdx
leaq 0x2c5be(%rip), %rsi     # 0x92890
addq $0x330, %rsi            # imm = 0x330
xorl %eax, %eax
movl %eax, %ecx
callq 0x63640
leaq 0xc7c8(%rip), %rdi      # 0x72ab1
leaq 0x2c5a0(%rip), %rdx     # 0x92890
addq $0x330, %rdx            # imm = 0x330
xorl %eax, %eax
movl %eax, %ecx
movq %rdx, %rsi
callq 0x63500
leaq 0xcd02(%rip), %rdi      # 0x7300c
leaq 0x2c57f(%rip), %rsi     # 0x92890
addq $0x60, %rsi
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdx
callq 0x63500
movq -0x20(%rbp), %rsi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rdx
leaq 0x2c558(%rip), %rdi     # 0x92890
addq $0x360, %rdi            # imm = 0x360
xorl %eax, %eax
movl %eax, %ecx
callq 0x63640
jmp 0x663f7
leaq 0x5cf8(%rip), %rax      # 0x6c04c
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x6636a
leaq 0xa51c(%rip), %rax      # 0x70882
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rdx
leaq 0x2c50f(%rip), %rsi     # 0x92890
addq $0x330, %rsi            # imm = 0x330
xorl %eax, %eax
movl %eax, %ecx
callq 0x63640
movq -0x28(%rbp), %rdi
leaq 0x2c4f4(%rip), %rsi     # 0x92890
addq $0x330, %rsi            # imm = 0x330
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdx
callq 0x63500
movq -0x20(%rbp), %rsi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rdx
leaq 0x2c4ca(%rip), %rdi     # 0x92890
addq $0x330, %rdi            # imm = 0x330
xorl %eax, %eax
movl %eax, %ecx
callq 0x63640
jmp 0x663f7
leaq 0x549a(%rip), %rdi      # 0x6b879
leaq 0xc3ae(%rip), %rsi      # 0x72794
movl $0x6a2, %edx            # imm = 0x6A2
leaq 0xcc1f(%rip), %rcx      # 0x73011
callq 0x11140
movq -0x20(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)