// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/evaluate.c
// Function: usual_conversions
static struct symbol *usual_conversions(int op,
					struct expression *left,
					struct expression *right,
					int lclass, int rclass,
					struct symbol *ltype,
					struct symbol *rtype)
{
	struct symbol *ctype;

	warn_for_different_enum_types(right->pos, left->ctype, right->ctype);

	if ((lclass | rclass) & TYPE_RESTRICT)
		goto Restr;

Normal:
	if (!(lclass & TYPE_FLOAT)) {
		if (!(rclass & TYPE_FLOAT))
			return bigger_int_type(ltype, rtype);
		else
			return rtype;
	} else if (rclass & TYPE_FLOAT) {
		if (rtype->rank > ltype->rank)
			return rtype;
		else
			return ltype;
	} else
		return ltype;

Restr:
	ctype = restricted_binop_type(op, left, right,
				      lclass, rclass, ltype, rtype);
	if (ctype)
		return ctype;

	unrestrict(left, lclass, &ltype);
	unrestrict(right, rclass, &rtype);

	goto Normal;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movl %r8d, %ebp
movl %ecx, %r15d
movq %rdx, %r12
movq %rsi, %r13
movl %edi, %r14d
movq 0x10(%rsi), %rsi
movq 0x8(%rdx), %rdi
movq 0x10(%rdx), %rdx
callq 0x37001
movl %ebp, %eax
orl %r15d, %eax
testb $0x4, %al
jne 0x3737e
movq 0x40(%rsp), %r14
testb $0x8, %r15b
jne 0x37418
testb $0x8, %bpl
jne 0x374bc
movl 0x50(%rbx), %ecx
cmpb $0xb, (%rbx)
jne 0x37361
movq 0x60(%rbx), %rbx
leaq 0x2e3a0(%rip), %rax     # 0x65708
movl (%rax), %eax
cmpl %eax, %ecx
jge 0x37440
leaq 0x353bf(%rip), %rbx     # 0x6c738
jmp 0x3745b
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movl %r14d, %edi
movq %r13, %rsi
movq %r12, %rdx
movl %r15d, %ecx
movl %ebp, %r8d
movq %rbx, %r9
callq 0x37510
testq %rax, %rax
jne 0x37501
movq 0x40(%rsp), %r14
testb $0x4, %r15b
je 0x373dd
testb $0x40, %r15b
je 0x373bc
movq 0x60(%rbx), %rbx
movq %rbx, %rdi
callq 0x2386c
movq 0x8(%r13), %rdi
leaq 0x13b54(%rip), %rsi     # 0x4af23
movq %rax, %rdx
xorl %eax, %eax
callq 0x118b4
movq 0x60(%rbx), %rbx
testb $0x4, %bpl
je 0x37341
testb $0x40, %bpl
je 0x373f1
movq 0x60(%r14), %r14
movq %r14, %rdi
callq 0x2386c
movq 0x8(%r12), %rdi
leaq 0x13b1e(%rip), %rsi     # 0x4af23
movq %rax, %rdx
xorl %eax, %eax
callq 0x118b4
movq 0x60(%r14), %r14
jmp 0x37341
testb $0x8, %bpl
je 0x374fe
movl 0x54(%r14), %eax
shll $0x6, %eax
sarl $0x1d, %eax
movl 0x54(%rbx), %ecx
shll $0x6, %ecx
sarl $0x1d, %ecx
cmpl %ecx, %eax
cmovgq %r14, %rbx
jmp 0x374fe
testb $0x2, 0x57(%rbx)
je 0x3745b
movq 0x68(%rbx), %rcx
btl $0xe, %ecx
jae 0x37372
leaq 0x3549d(%rip), %rbx     # 0x6c8f8
movl 0x50(%r14), %ecx
cmpb $0xb, (%r14)
jne 0x37469
movq 0x60(%r14), %r14
cmpl %eax, %ecx
jge 0x37476
leaq 0x352c4(%rip), %r14     # 0x6c738
jmp 0x3748e
testb $0x2, 0x57(%r14)
je 0x3748e
movq 0x68(%r14), %rax
btl $0xe, %eax
jae 0x3746d
leaq 0x3546a(%rip), %r14     # 0x6c8f8
cmpq %r14, %rbx
je 0x374fe
movq 0x68(%rbx), %rax
movl 0x68(%r14), %ecx
xorl %eax, %ecx
btl $0xe, %ecx
jb 0x374c1
movl 0x54(%rbx), %eax
shll $0x6, %eax
sarl $0x1d, %eax
movl 0x54(%r14), %ecx
shll $0x6, %ecx
sarl $0x1d, %ecx
cmpl %ecx, %eax
cmovgq %rbx, %r14
movq %r14, %rax
jmp 0x37501
btl $0xe, %eax
movq %r14, %rax
cmovaeq %rbx, %rax
cmovaeq %r14, %rbx
movl 0x54(%rbx), %edx
shll $0x6, %edx
sarl $0x1d, %edx
movl 0x54(%rax), %ecx
shll $0x6, %ecx
sarl $0x1d, %ecx
cmpl %ecx, %edx
jge 0x374fe
movl 0x50(%rax), %edx
cmpl 0x50(%rbx), %edx
jg 0x37501
movslq %ecx, %rax
leaq 0x296f8(%rip), %rcx     # 0x60bf0
movq (%rcx,%rax,8), %rax
jmp 0x37501
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq