// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_glsl.cpp
// Function: spirv_cross::CompilerGLSL::bitcast_glsl_op[abi:cxx11](spirv_cross::SPIRType const&, spirv_cross::SPIRType const&)
string CompilerGLSL::bitcast_glsl_op(const SPIRType &out_type, const SPIRType &in_type)
{
	if (out_type.basetype == SPIRType::UInt && in_type.basetype == SPIRType::Int)
		return type_to_glsl(out_type);
	else if (out_type.basetype == SPIRType::UInt64 && in_type.basetype == SPIRType::Int64)
		return type_to_glsl(out_type);
	else if (out_type.basetype == SPIRType::UInt && in_type.basetype == SPIRType::Float)
		return "floatBitsToUint";
	else if (out_type.basetype == SPIRType::Int && in_type.basetype == SPIRType::UInt)
		return type_to_glsl(out_type);
	else if (out_type.basetype == SPIRType::Int64 && in_type.basetype == SPIRType::UInt64)
		return type_to_glsl(out_type);
	else if (out_type.basetype == SPIRType::Int && in_type.basetype == SPIRType::Float)
		return "floatBitsToInt";
	else if (out_type.basetype == SPIRType::Float && in_type.basetype == SPIRType::UInt)
		return "uintBitsToFloat";
	else if (out_type.basetype == SPIRType::Float && in_type.basetype == SPIRType::Int)
		return "intBitsToFloat";
	else if (out_type.basetype == SPIRType::Int64 && in_type.basetype == SPIRType::Double)
		return "doubleBitsToInt64";
	else if (out_type.basetype == SPIRType::UInt64 && in_type.basetype == SPIRType::Double)
		return "doubleBitsToUint64";
	else if (out_type.basetype == SPIRType::Double && in_type.basetype == SPIRType::Int64)
		return "int64BitsToDouble";
	else if (out_type.basetype == SPIRType::Double && in_type.basetype == SPIRType::UInt64)
		return "uint64BitsToDouble";
	else if (out_type.basetype == SPIRType::UInt64 && in_type.basetype == SPIRType::UInt && in_type.vecsize == 2)
		return "packUint2x32";
	else if (out_type.basetype == SPIRType::Half && in_type.basetype == SPIRType::UInt && in_type.vecsize == 1)
		return "unpackFloat2x16";
	else if (out_type.basetype == SPIRType::UInt && in_type.basetype == SPIRType::Half && in_type.vecsize == 2)
		return "packFloat2x16";
	else
		return "";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl 0xc(%rdx), %r8d
movl %r8d, %eax
xorl $0x5, %eax
movl 0xc(%rcx), %edi
movl %edi, %ebp
xorl $0x4, %ebp
movl %eax, %r9d
orl %ebp, %r9d
je 0x3457d
movl %r8d, %r9d
xorl $0x7, %r9d
movl %edi, %r11d
xorl $0x6, %r11d
movl %r9d, %r10d
orl %r11d, %r10d
jne 0x3459d
movq (%rsi), %rax
movq %rbx, %rdi
xorl %ecx, %ecx
callq *0x98(%rax)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %edi, %r12d
xorl $0xa, %r12d
movl %eax, %r10d
orl %r12d, %r10d
jne 0x345c2
leaq 0x5dd70(%rip), %rsi     # 0x92323
leaq 0xf(%rsp), %rdx
movq %rbx, %rdi
callq 0x6100
jmp 0x3458b
movl %r8d, %r13d
xorl $0x4, %r13d
movl %edi, %r10d
xorl $0x5, %r10d
movl %r13d, %r14d
orl %r10d, %r14d
je 0x3457d
movl %r8d, %r15d
xorl $0x6, %r15d
movl %edi, %r14d
xorl $0x7, %r14d
movl %r15d, 0x14(%rsp)
movl %r14d, 0x10(%rsp)
orl %r14d, %r15d
je 0x3457d
orl %r12d, %r13d
jne 0x34608
leaq 0x5dd13(%rip), %rsi     # 0x92314
leaq 0xe(%rsp), %rdx
jmp 0x345b8
movl %r8d, %edx
xorl $0xa, %edx
movl %edx, %esi
orl %r10d, %esi
jne 0x34623
leaq 0x5e114(%rip), %rsi     # 0x92730
leaq 0xd(%rsp), %rdx
jmp 0x345b8
orl %ebp, %edx
jne 0x34635
leaq 0x5e103(%rip), %rsi     # 0x92731
leaq 0xc(%rsp), %rdx
jmp 0x345b8
movl %edi, %edx
xorl $0xb, %edx
orl %edx, 0x14(%rsp)
jne 0x34651
leaq 0x5f8b0(%rip), %rsi     # 0x93ef7
leaq 0xb(%rsp), %rdx
jmp 0x345b8
orl %r9d, %edx
jne 0x34667
leaq 0x5f8ac(%rip), %rsi     # 0x93f09
leaq 0xa(%rsp), %rdx
jmp 0x345b8
movl %r8d, %edx
xorl $0xb, %edx
orl %edx, %r11d
jne 0x34683
leaq 0x5f8a4(%rip), %rsi     # 0x93f1d
leaq 0x9(%rsp), %rdx
jmp 0x345b8
orl 0x10(%rsp), %edx
jne 0x3469a
leaq 0x5f88c(%rip), %rsi     # 0x93f1c
leaq 0x8(%rsp), %rdx
jmp 0x345b8
orl %r10d, %r9d
movl 0x14(%rcx), %edx
movl %edx, %ecx
xorl $0x2, %ecx
orl %ecx, %r9d
jne 0x346bb
leaq 0x5f87e(%rip), %rsi     # 0x93f2f
leaq 0x7(%rsp), %rdx
jmp 0x345b8
xorl $0x9, %r8d
orl %r10d, %r8d
xorl $0x1, %edx
orl %r8d, %edx
jne 0x346db
leaq 0x6494c(%rip), %rsi     # 0x9901d
leaq 0x6(%rsp), %rdx
jmp 0x345b8
xorl $0x9, %edi
orl %edi, %eax
orl %ecx, %eax
jne 0x346f5
leaq 0x6494e(%rip), %rsi     # 0x99039
leaq 0x5(%rsp), %rdx
jmp 0x345b8
leaq 0x5b18b(%rip), %rsi     # 0x8f887
leaq 0x4(%rsp), %rdx
jmp 0x345b8