// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_glsl.cpp
// Function: spirv_cross::CompilerGLSL::binary_op_bitcast_helper(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, spirv_cross::SPIRType::BaseType&, unsigned int, unsigned int, bool)
SPIRType CompilerGLSL::binary_op_bitcast_helper(string &cast_op0, string &cast_op1, SPIRType::BaseType &input_type,
                                                uint32_t op0, uint32_t op1, bool skip_cast_if_equal_type)
{
	auto &type0 = expression_type(op0);
	auto &type1 = expression_type(op1);

	// We have to bitcast if our inputs are of different type, or if our types are not equal to expected inputs.
	// For some functions like OpIEqual and INotEqual, we don't care if inputs are of different types than expected
	// since equality test is exactly the same.
	bool cast = (type0.basetype != type1.basetype) || (!skip_cast_if_equal_type && type0.basetype != input_type);

	// Create a fake type so we can bitcast to it.
	// We only deal with regular arithmetic types here like int, uints and so on.
	SPIRType expected_type;
	expected_type.basetype = input_type;
	expected_type.vecsize = type0.vecsize;
	expected_type.columns = type0.columns;
	expected_type.width = type0.width;

	if (cast)
	{
		cast_op0 = bitcast_glsl(expected_type, op0);
		cast_op1 = bitcast_glsl(expected_type, op1);
	}
	else
	{
		// If we don't cast, our actual input type is that of the first (or second) argument.
		cast_op0 = to_enclosed_unpacked_expression(op0);
		cast_op1 = to_enclosed_unpacked_expression(op1);
		input_type = type0.basetype;
	}

	return expected_type;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r9d, %r14d
movq %r8, %r12
movq %rcx, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq %rsi, %r15
movq %rdi, %rbx
movl 0x70(%rsp), %ebp
movq %rsi, %rdi
movl %r9d, %esi
callq 0x12a72
movq %rax, %r13
movq %r15, %rdi
movl %ebp, %esi
callq 0x12a72
movl 0xc(%r13), %ecx
movl 0xc(%rax), %esi
movq %r12, 0x30(%rsp)
movl (%r12), %edx
cmpb $0x0, 0x78(%rsp)
movl %edx, %eax
cmovnel %esi, %eax
cmpl %esi, %ecx
cmovnel %esi, %eax
leaq 0xc6396(%rip), %rsi     # 0xfc3e0
addq $0x10, %rsi
leaq 0xd0(%rbx), %rdi
xorl %r8d, %r8d
movl %r8d, 0x8(%rbx)
movq %rsi, (%rbx)
movq %r8, 0x48(%rbx)
movl %r8d, 0x50(%rbx)
movq %r8, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
movl %r8d, 0x40(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movl $0x8, 0x64(%rbx)
movq %r8, 0x78(%rbx)
movups %xmm0, 0x68(%rbx)
movq %r8, 0x98(%rbx)
movq %rdi, 0xa0(%rbx)
movq $0x1, 0xa8(%rbx)
movups %xmm0, 0xb0(%rbx)
movl $0x3f800000, 0xc0(%rbx) # imm = 0x3F800000
movups %xmm0, 0xc8(%rbx)
movl %edx, 0xc(%rbx)
movl 0x18(%r13), %edx
movl %edx, 0x18(%rbx)
movq 0x10(%r13), %rdx
movq %rdx, 0x10(%rbx)
cmpl %eax, %ecx
jne 0x3614d
movq %rsp, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x34730
movq %rsp, %r14
movq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x6310
movq (%r14), %rdi
leaq 0x10(%rsp), %rbp
cmpq %rbp, %rdi
je 0x3610c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rsp, %rdi
movq %r15, %rsi
movl 0x70(%rsp), %edx
callq 0x34730
movq %rsp, %r14
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x6310
movq (%r14), %rdi
cmpq %rbp, %rdi
je 0x36140
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movl 0xc(%r13), %eax
movq 0x30(%rsp), %rcx
movl %eax, (%rcx)
jmp 0x361bf
movq %rsp, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movl %r14d, %ecx
callq 0x361ea
movq %rsp, %r14
movq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x6310
movq (%r14), %rdi
leaq 0x10(%rsp), %r12
cmpq %r12, %rdi
je 0x36188
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rsp, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movl 0x70(%rsp), %ecx
callq 0x361ea
movq %rsp, %r14
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x6310
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x361bf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x361d7
jmp 0x361d7
jmp 0x361d7
movq %rax, %r14
movq %rbx, %rdi
callq 0x1be02
movq %r14, %rdi
callq 0x64a0