// File: /workspace/github_cpp_makefile_star2_O3/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 0x2b655
movq %rdx, %r14
movq %rsi, %r15
cmpb $0x1, 0x440(%rsi)
jne 0x2b673
leaq 0x10(%rbx), %rax
movq %rax, 0x20(%rsp)
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
leaq 0x9773e(%rip), %rsi     # 0xc2cec
movq %rbx, %rdi
callq 0x64e0
movq 0x28(%r14), %r12
subq 0x20(%r14), %r12
shrq $0x2, %r12
testl %r12d, %r12d
je 0x2b712
decl %r12d
leaq 0x28(%rsp), %r13
movq %rsp, %rbp
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x418a0
movq %rbp, %rdi
movq %r13, %rdx
callq 0x32b66
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x60b0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2b61e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2b63a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6260
addl $-0x1, %r12d
jae 0x2b712
movq %rbx, %rdi
leaq 0x8def6(%rip), %rsi     # 0xb9544
callq 0x64e0
jmp 0x2b5d6
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x8924c(%rip), %rdx     # 0xb48af
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x7be0
jmp 0x2b721
subq %rax, %r12
cmpq $0x5, %r12
jb 0x2b77c
movb 0x43c(%r15), %al
movl 0x438(%r15), %ecx
cmpl $0x1ae, %ecx            # imm = 0x1AE
setae %dl
orb %al, %dl
je 0x2b733
cmpl $0x136, %ecx            # imm = 0x136
setb %cl
andb %cl, %al
cmpb $0x1, %al
jne 0x2b77c
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x8efed(%rip), %rsi     # 0xba6bc
leaq 0x8f081(%rip), %rdx     # 0xba757
movq %rsp, %rdi
callq 0x7be0
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0xd06d5(%rip), %rax     # 0xfbdc8
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0xd06ad(%rip), %rsi     # 0xfbdb0
movq 0xd18ce(%rip), %rdx     # 0xfcfd8
movq %rbx, %rdi
callq 0x6470
leaq 0x92425(%rip), %rsi     # 0xbdb3e
movq %rbx, %rdi
callq 0x64e0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x8ef60(%rip), %rsi     # 0xba6a4
leaq 0x8ef70(%rip), %rdx     # 0xba6bb
movq %rsp, %rdi
callq 0x7be0
movq %rsp, %rsi
movq %r15, %rdi
callq 0x26356
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2b774
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movq 0x28(%r14), %r12
subq 0x20(%r14), %r12
leaq 0x10(%rbx), %rax
movq %rax, 0x20(%rsp)
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
shrq $0x2, %r12
decl %r12d
movq %rsp, %rbp
leaq 0x92399(%rip), %r13     # 0xbdb3e
cmpl $-0x1, %r12d
je 0x2b721
movq %rbx, %rdi
leaq 0x97533(%rip), %rsi     # 0xc2cec
callq 0x64e0
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x418a0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x60b0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2b7fb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
decl %r12d
movq %rbx, %rdi
movq %r13, %rsi
callq 0x64e0
jmp 0x2b7a5
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2b824
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
testb %bpl, %bpl
jne 0x2b831
jmp 0x2b8d8
movq %rax, %r14
movq %rbx, %rdi
callq 0x6200
jmp 0x2b8d8
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2b8d8
movq 0x10(%rsp), %rsi
jmp 0x2b8d0
movq %rax, %r14
jmp 0x2b8d8
jmp 0x2b8bb
jmp 0x2b8bb
jmp 0x2b8bb
movq %rax, %r14
jmp 0x2b883
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2b883
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2b8be
movq 0x38(%rsp), %rsi
jmp 0x2b8b1
jmp 0x2b8bb
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2b8be
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x2b8be
movq %rax, %r14
movq (%rbx), %rdi
cmpq 0x20(%rsp), %rdi
je 0x2b8d8
movq 0x20(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x6260
movq %r14, %rdi
callq 0x64a0