// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_glsl.cpp
// Function: spirv_cross::CompilerGLSL::type_to_array_glsl[abi:cxx11](spirv_cross::SPIRType const&)
string CompilerGLSL::type_to_array_glsl(const SPIRType &type)
{
	if (type.array.empty())
		return "";

	if (options.flatten_multidimensional_arrays)
	{
		string res;
		res += "[";
		for (auto i = uint32_t(type.array.size()); i; i--)
		{
			res += enclose_expression(to_array_size(type, i - 1));
			if (i > 1)
				res += " * ";
		}
		res += "]";
		return res;
	}
	else
	{
		if (type.array.size() > 1)
		{
			if (!options.es && options.version < 430)
				require_extension_internal("GL_ARB_arrays_of_arrays");
			else if (options.es && options.version < 310)
				SPIRV_CROSS_THROW("Arrays of arrays not supported before ESSL version 310. "
				                  "Try using --flatten-multidimensional-arrays or set "
				                  "options.flatten_multidimensional_arrays to true.");
		}

		string res;
		for (auto i = uint32_t(type.array.size()); i; i--)
		{
			res += "[";
			res += to_array_size(type, i - 1);
			res += "]";
		}
		return res;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x20(%rdx), %rax
movq 0x28(%rdx), %r12
cmpq %r12, %rax
je 0x25541
movq %rdx, %r14
movq %rsi, %r15
cmpb $0x1, 0x440(%rsi)
jne 0x2555a
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
andq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
leaq 0x787dc(%rip), %rsi     # 0x9dca4
movq %rbx, %rdi
callq 0x64d0
movq 0x28(%r14), %r12
subq 0x20(%r14), %r12
shrq $0x2, %r12
decl %r12d
leaq 0x28(%rsp), %r13
leaq 0x8(%rsp), %rbp
cmpl $-0x1, %r12d
je 0x255de
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x35634
movq %rbp, %rdi
movq %r13, %rdx
callq 0x2aa76
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x64f0
movq %rbp, %rdi
callq 0x6548
movq %r13, %rdi
callq 0x6548
subl $0x1, %r12d
jb 0x254e9
movq %rbx, %rdi
leaq 0x6efea(%rip), %rsi     # 0x94524
callq 0x64d0
jmp 0x254e9
leaq 0x6a33f(%rip), %rsi     # 0x8f887
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x6100
jmp 0x255ed
subq %rax, %r12
cmpq $0x5, %r12
jb 0x25634
movb 0x43c(%r15), %al
movl 0x438(%r15), %ecx
cmpl $0x1ae, %ecx            # imm = 0x1AE
setae %dl
orb %al, %dl
je 0x255ff
cmpl $0x136, %ecx            # imm = 0x136
setb %cl
andb %cl, %al
cmpb $0x1, %al
jne 0x25634
pushq $0x10
popq %rdi
callq 0x6140
movq %rax, %rbx
leaq 0x700f5(%rip), %rsi     # 0x9569c
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x6100
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6f6e
xorl %ebp, %ebp
leaq 0xc17f1(%rip), %rsi     # 0xe6dc0
movq 0xc2a0a(%rip), %rdx     # 0xe7fe0
movq %rbx, %rdi
callq 0x6490
leaq 0x734e9(%rip), %rsi     # 0x98ace
movq %rbx, %rdi
callq 0x64d0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7007e(%rip), %rsi     # 0x95684
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x6100
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x21390
leaq 0x8(%rsp), %rdi
callq 0x6548
movq 0x28(%r14), %r12
subq 0x20(%r14), %r12
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
andq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
shrq $0x2, %r12
decl %r12d
leaq 0x8(%rsp), %rbp
leaq 0x73477(%rip), %r13     # 0x98ace
cmpl $-0x1, %r12d
je 0x255ed
movq %rbx, %rdi
leaq 0x7863d(%rip), %rsi     # 0x9dca4
callq 0x64d0
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x35634
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x64f0
movq %rbp, %rdi
callq 0x6548
decl %r12d
movq %rbx, %rdi
movq %r13, %rsi
callq 0x64d0
jmp 0x25657
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x6548
testb %bpl, %bpl
jne 0x256b7
jmp 0x2570b
movq %rax, %r14
movq %rbx, %rdi
callq 0x6200
jmp 0x2570b
movq %rax, %r14
leaq 0x8(%rsp), %rdi
jmp 0x25706
movq %rax, %r14
jmp 0x2570b
jmp 0x25700
jmp 0x25700
jmp 0x25700
movq %rax, %r14
leaq 0x8(%rsp), %rdi
jmp 0x256f9
jmp 0x25700
movq %rax, %r14
jmp 0x256f4
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x6548
leaq 0x28(%rsp), %rdi
callq 0x6548
jmp 0x25703
movq %rax, %r14
movq %rbx, %rdi
callq 0x6548
movq %r14, %rdi
callq 0x64b0
nop