// File: /workspace/github_cpp_makefile_star2_O3/rossy[P]crossc/SPIRV-Cross/spirv_glsl.cpp
// Function: spirv_cross::CompilerGLSL::to_qualifiers_glsl[abi:cxx11](unsigned int)
string CompilerGLSL::to_qualifiers_glsl(uint32_t id)
{
	auto flags = ir.meta[id].decoration.decoration_flags;
	string res;

	auto *var = maybe_get<SPIRVariable>(id);

	if (var && var->storage == StorageClassWorkgroup && !backend.shared_is_implied)
		res += "shared ";

	res += to_interpolation_qualifiers(flags);
	if (var)
		res += to_storage_qualifiers_glsl(*var);

	auto &type = expression_type(id);
	if (type.image.dim != DimSubpassData && type.image.sampled == 2)
	{
		if (flags.get(DecorationCoherent))
			res += "coherent ";
		if (flags.get(DecorationRestrict))
			res += "restrict ";
		if (flags.get(DecorationNonWritable))
			res += "readonly ";
		if (flags.get(DecorationNonReadable))
			res += "writeonly ";
	}

	res += to_precision_qualifiers_glsl(id);

	return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
movl %edx, %eax
movq 0x38(%rsi), %rcx
imulq $0x148, %rax, %r13      # imm = 0x148
leaq (%rcx,%r13), %rsi
addq $0x68, %rsi
movq -0x8(%rsi), %rax
leaq 0x30(%rsp), %rbx
movq %rax, -0x8(%rbx)
xorl %r12d, %r12d
movq %r12, (%rbx)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rbx)
movq %r12, 0x10(%rbx)
movq 0x18(%rsi), %rax
movq %rax, 0x18(%rbx)
movups 0x20(%rsi), %xmm0
movups %xmm0, 0x20(%rbx)
movq %r12, 0x30(%rbx)
leaq 0x8(%rsp), %rdx
movq %rbx, (%rdx)
movq %rbx, %rdi
callq 0xd3c2
leaq 0x10(%r14), %rax
movq %rax, (%rsp)
movq %rax, (%r14)
movq %r12, 0x8(%r14)
movb $0x0, 0x10(%r14)
movq %r15, %rdi
movl %ebp, %esi
callq 0xc7b4
movq %rax, %r12
testq %rax, %rax
je 0x4bdd5
cmpl $0x4, 0x10(%r12)
jne 0x4bdd5
cmpb $0x0, 0x621(%r15)
jne 0x4bdd5
leaq 0x6e7ec(%rip), %rsi     # 0xba5b9
movq %r14, %rdi
callq 0x64e0
movq (%r15), %rax
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
movq %r15, %rsi
callq *0x140(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x60b0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4be18
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
testq %r12, %r12
je 0x4be37
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
callq *0x130(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x64e0
movq %r15, %rdi
movl %ebp, %esi
callq 0x12a72
cmpl $0x6, 0x84(%rax)
je 0x4bebb
cmpl $0x2, 0x8c(%rax)
jne 0x4bebb
movq 0x28(%rsp), %rax
btl $0x17, %eax
jae 0x4be72
leaq 0x71b08(%rip), %rsi     # 0xbd96d
movq %r14, %rdi
callq 0x64e0
movq 0x28(%rsp), %rax
btl $0x13, %eax
jae 0x4be8c
leaq 0x6b17a(%rip), %rsi     # 0xb6ff9
movq %r14, %rdi
callq 0x64e0
movq 0x28(%rsp), %rax
btl $0x18, %eax
jae 0x4bea6
leaq 0x6b175(%rip), %rsi     # 0xb700e
movq %r14, %rdi
callq 0x64e0
movq 0x28(%rsp), %rax
btl $0x19, %eax
jae 0x4bebb
leaq 0x6b150(%rip), %rsi     # 0xb7003
movq %r14, %rdi
callq 0x64e0
movq %r15, %rdi
movl %ebp, %esi
callq 0x12a72
movq 0x38(%r15), %rcx
leaq (%rcx,%r13), %rdx
addq $0x60, %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0x2b8e0
movq %r14, %rdi
movq %rax, %rsi
callq 0x64e0
movq %rbx, %rdi
callq 0xd570
movq %r14, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4bf28
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x4bf28
jmp 0x4bf25
jmp 0x4bf25
movq %rax, %r15
movq (%r14), %rdi
cmpq (%rsp), %rdi
je 0x4bf40
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x6260
movq %rbx, %rdi
callq 0xd570
movq %r15, %rdi
callq 0x64a0