// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %rax
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 0x40752
movl %r8d, %r9d
xorl $0x7, %r9d
movl %edi, %r11d
xorl $0x6, %r11d
movl %r9d, %r10d
orl %r11d, %r10d
jne 0x40772
movq (%rsi), %rax
movq %rbx, %rdi
xorl %ecx, %ecx
callq *0x98(%rax)
movq %rbx, %rax
addq $0x8, %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 0x407a0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x77bc4(%rip), %rsi     # 0xb8353
leaq 0x77bcc(%rip), %rdx     # 0xb8362
movq %rbx, %rdi
callq 0x7c64
jmp 0x40760
movl %r8d, %r13d
xorl $0x4, %r13d
movl %edi, %r10d
xorl $0x5, %r10d
movl %r13d, %r14d
orl %r10d, %r14d
je 0x40752
movl %r8d, %r15d
xorl $0x6, %r15d
movl %edi, %r14d
xorl $0x7, %r14d
movl %r15d, 0x4(%rsp)
movl %r14d, (%rsp)
orl %r14d, %r15d
je 0x40752
orl %r12d, %r13d
jne 0x407ee
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x77b5f(%rip), %rsi     # 0xb8344
leaq 0x77b66(%rip), %rdx     # 0xb8352
jmp 0x40796
movl %r8d, %edx
xorl $0xa, %edx
movl %edx, %esi
orl %r10d, %esi
jne 0x40812
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x77f57(%rip), %rsi     # 0xb8760
leaq 0x77f5f(%rip), %rdx     # 0xb876f
jmp 0x40796
orl %ebp, %edx
jne 0x40830
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x77f3d(%rip), %rsi     # 0xb8761
leaq 0x77f44(%rip), %rdx     # 0xb876f
jmp 0x40796
movl %edi, %edx
xorl $0xb, %edx
orl %edx, 0x4(%rsp)
jne 0x40855
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x796de(%rip), %rsi     # 0xb9f27
leaq 0x796e8(%rip), %rdx     # 0xb9f38
jmp 0x40796
orl %r9d, %edx
jne 0x40874
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x796d1(%rip), %rsi     # 0xb9f39
leaq 0x796dc(%rip), %rdx     # 0xb9f4b
jmp 0x40796
movl %r8d, %edx
xorl $0xb, %edx
orl %edx, %r11d
jne 0x40899
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x796c0(%rip), %rsi     # 0xb9f4d
leaq 0x796ca(%rip), %rdx     # 0xb9f5e
jmp 0x40796
orl (%rsp), %edx
jne 0x408b8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x796a0(%rip), %rsi     # 0xb9f4c
leaq 0x796ab(%rip), %rdx     # 0xb9f5e
jmp 0x40796
orl %r10d, %r9d
movl 0x14(%rcx), %edx
movl %edx, %ecx
xorl $0x2, %ecx
orl %ecx, %r9d
jne 0x408e2
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x79689(%rip), %rsi     # 0xb9f5f
leaq 0x7968e(%rip), %rdx     # 0xb9f6b
jmp 0x40796
xorl $0x9, %r8d
orl %r10d, %r8d
xorl $0x1, %edx
orl %r8d, %edx
jne 0x4090b
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x7e786(%rip), %rsi     # 0xbf085
leaq 0x7e78e(%rip), %rdx     # 0xbf094
jmp 0x40796
xorl $0x9, %edi
orl %edi, %eax
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
orl %ecx, %eax
jne 0x4092e
leaq 0x7e77f(%rip), %rsi     # 0xbf0a1
leaq 0x7e785(%rip), %rdx     # 0xbf0ae
jmp 0x40796
leaq 0x74f7a(%rip), %rdx     # 0xb58af
movq %rbx, %rdi
movq %rdx, %rsi
jmp 0x40799