// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_glsl.cpp
// Function: spirv_cross::CompilerGLSL::convert_float_to_string[abi:cxx11](spirv_cross::SPIRConstant const&, unsigned int, unsigned int)
string CompilerGLSL::convert_float_to_string(const SPIRConstant &c, uint32_t col, uint32_t row)
{
	string res;
	float float_value = c.scalar_f32(col, row);

	if (std::isnan(float_value) || std::isinf(float_value))
	{
		// Use special representation.
		if (!is_legacy())
		{
			SPIRType out_type;
			SPIRType in_type;
			out_type.basetype = SPIRType::Float;
			in_type.basetype = SPIRType::UInt;
			out_type.vecsize = 1;
			in_type.vecsize = 1;
			out_type.width = 32;
			in_type.width = 32;

			char print_buffer[32];
			sprintf(print_buffer, "0x%xu", c.scalar(col, row));
			res = join(bitcast_glsl_op(out_type, in_type), "(", print_buffer, ")");
		}
		else
		{
			if (float_value == numeric_limits<float>::infinity())
			{
				if (backend.float_literal_suffix)
					res = "(1.0f / 0.0f)";
				else
					res = "(1.0 / 0.0)";
			}
			else if (float_value == -numeric_limits<float>::infinity())
			{
				if (backend.float_literal_suffix)
					res = "(-1.0f / 0.0f)";
				else
					res = "(-1.0 / 0.0)";
			}
			else if (std::isnan(float_value))
			{
				if (backend.float_literal_suffix)
					res = "(0.0f / 0.0f)";
				else
					res = "(0.0 / 0.0)";
			}
			else
				SPIRV_CROSS_THROW("Cannot represent non-finite floating point constant.");
		}
	}
	else
	{
		res = convert_to_string(float_value);
		if (backend.float_literal_suffix)
			res += "f";
	}

	return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movq %rsi, %r14
movb $0x0, 0x10(%rdi)
movl %ecx, %eax
imulq $0x38, %rax, %rbp
leaq (%rdx,%rbp), %rax
movl %r8d, %r13d
movd 0x10(%rax,%r13,8), %xmm0
movd %xmm0, %eax
ucomiss %xmm0, %xmm0
setnp %cl
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpl $0x7f800000, %eax       # imm = 0x7F800000
setne %al
testb %al, %cl
jne 0x2d9cd
movq %rdx, %r12
movss %xmm0, 0xc(%rsp)
movq %r14, %rdi
callq 0x41b9c
testb %al, %al
je 0x2da11
movss 0xc(%rsp), %xmm1
ucomiss 0x63af0(%rip), %xmm1    # 0x914a4
jb 0x2dbec
leaq 0x65821(%rip), %rax     # 0x931e2
leaq 0x657ef(%rip), %rsi     # 0x931b7
jmp 0x2dc1c
leaq 0x78(%rsp), %rdi
callq 0x43231
leaq 0x78(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6320
movq %r15, %rdi
callq 0x6548
cmpb $0x1, 0x600(%r14)
jne 0x2dc30
leaq 0x64230(%rip), %rsi     # 0x91c34
movq %rbx, %rdi
callq 0x64d0
jmp 0x2dc30
leaq 0x78(%rsp), %r15
andl $0x0, 0x8(%r15)
leaq 0xb99ce(%rip), %rdx     # 0xe73f0
addq $0x10, %rdx
movq %rdx, (%r15)
pushq $0x1
popq %rax
movl %eax, 0x18(%r15)
andq $0x0, 0x48(%r15)
andl $0x0, 0x50(%r15)
andq $0x0, 0x58(%r15)
xorl %esi, %esi
movb %sil, 0x60(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r15)
movups %xmm0, 0x30(%r15)
andl $0x0, 0x40(%r15)
pushq $0x8
popq %rdi
movl %edi, 0x64(%r15)
andq $0x0, 0x78(%r15)
movups %xmm0, 0x68(%r15)
andq $0x0, 0x98(%r15)
leaq (%r12,%rbp), %rcx
addq $0x10, %rcx
movl $0xd0, %r8d
leaq (%r15,%r8), %r9
movq %r9, 0xa0(%r15)
pushq $0x1
popq %r9
movq %r9, 0xa8(%r15)
movups %xmm0, 0xb0(%r15)
leaq 0x150(%rsp), %r12
andl $0x0, 0x8(%r12)
movq %rdx, (%r12)
movl %eax, 0x18(%r12)
andq $0x0, 0x48(%r12)
movl $0x3f800000, %edx       # imm = 0x3F800000
andl $0x0, 0x50(%r12)
movl %edx, 0xc0(%r15)
andq $0x0, 0x58(%r12)
movups %xmm0, 0xc8(%r15)
movb %sil, 0x60(%r12)
movups %xmm0, 0x20(%r12)
movups %xmm0, 0x30(%r12)
andl $0x0, 0x40(%r12)
movl %edi, 0x64(%r12)
movups %xmm0, 0x68(%r12)
andq $0x0, 0x78(%r12)
andq $0x0, 0x98(%r12)
addq %r12, %r8
movq %r8, 0xa0(%r12)
movq %r9, 0xa8(%r12)
movups %xmm0, 0xb0(%r12)
movl %edx, 0xc0(%r12)
movups %xmm0, 0xc8(%r12)
movabsq $0x200000000a, %rdx     # imm = 0x200000000A
movq %rdx, 0xc(%r15)
movl $0x5, 0xc(%r12)
movl %eax, 0x14(%r15)
movabsq $0x100000020, %rax      # imm = 0x100000020
movq %rax, 0x10(%r12)
movl (%rcx,%r13,8), %edx
leaq 0x65670(%rip), %rsi     # 0x931dc
leaq 0x30(%rsp), %rdi
xorl %eax, %eax
callq 0x6060
movq (%r14), %rax
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq *0x168(%rax)
leaq 0x70093(%rip), %rdx     # 0x9dc29
leaq 0x67e58(%rip), %r8      # 0x959f5
leaq 0x58(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rcx
callq 0x43326
leaq 0x58(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6320
movq %r14, %rdi
callq 0x6548
leaq 0x10(%rsp), %rdi
callq 0x6548
leaq 0x150(%rsp), %rdi
callq 0x17a3e
leaq 0x78(%rsp), %rdi
callq 0x17a3e
jmp 0x2dc30
movss 0x638b4(%rip), %xmm0    # 0x914a8
ucomiss %xmm1, %xmm0
jb 0x2dc09
leaq 0x655f0(%rip), %rax     # 0x931f0
leaq 0x655bc(%rip), %rsi     # 0x931c3
jmp 0x2dc1c
ucomiss %xmm1, %xmm1
jnp 0x2dc45
leaq 0x655ea(%rip), %rax     # 0x931ff
leaq 0x655b4(%rip), %rsi     # 0x931d0
cmpb $0x0, 0x600(%r14)
cmovneq %rax, %rsi
movq %rbx, %rdi
callq 0x64e0
movq %rbx, %rax
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x6140
movq %rax, %r14
leaq 0x6552b(%rip), %rsi     # 0x93182
leaq 0x78(%rsp), %rdi
leaq 0x150(%rsp), %rdx
callq 0x6100
movb $0x1, %bpl
leaq 0x78(%rsp), %rsi
movq %r14, %rdi
callq 0x6f6e
xorl %ebp, %ebp
leaq 0xb913e(%rip), %rsi     # 0xe6dc0
movq 0xba357(%rip), %rdx     # 0xe7fe0
movq %r14, %rdi
callq 0x6490
movq %rax, %r15
leaq 0x78(%rsp), %rdi
callq 0x6548
testb %bpl, %bpl
jne 0x2dca8
jmp 0x2dce2
movq %rax, %r15
movq %r14, %rdi
callq 0x6200
jmp 0x2dce2
movq %rax, %r15
leaq 0x10(%rsp), %rdi
callq 0x6548
jmp 0x2dcc4
movq %rax, %r15
leaq 0x150(%rsp), %rdi
callq 0x17a3e
leaq 0x78(%rsp), %rdi
callq 0x17a3e
jmp 0x2dce2
jmp 0x2dcdf
movq %rax, %r15
movq %rbx, %rdi
callq 0x6548
movq %r15, %rdi
callq 0x64b0