// File: /workspace/github_cpp_makefile_star2_O1/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), %rcx
cmpq %rcx, %rax
je 0x2bc72
movq %rdx, %r14
movq %rsi, %r15
cmpb $0x1, 0x440(%rsi)
jne 0x2bc9d
leaq 0x10(%rbx), %rax
movq %rax, 0x20(%rsp)
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
leaq 0x98162(%rip), %rsi     # 0xc3d1c
movq %rbx, %rdi
callq 0x64e0
movq 0x28(%r14), %r12
subq 0x20(%r14), %r12
shrq $0x2, %r12
testl %r12d, %r12d
je 0x2bc61
decl %r12d
leaq 0x28(%rsp), %r13
movq %rsp, %rbp
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x420ce
movq %rbp, %rdi
movq %r13, %rdx
callq 0x33218
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x60b0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2bc2a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2bc46
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6260
subl $0x1, %r12d
jb 0x2bc5b
movq %rbx, %rdi
leaq 0x8e8fe(%rip), %rsi     # 0xba554
callq 0x64e0
cmpl $-0x1, %r12d
jne 0x2bbe2
leaq 0x92ece(%rip), %rsi     # 0xbeb36
movq %rbx, %rdi
callq 0x64e0
jmp 0x2bc8b
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x89c2f(%rip), %rdx     # 0xb58af
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x7c64
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
subq %rax, %rcx
cmpq $0x5, %rcx
jb 0x2bd79
movb 0x43c(%r15), %al
movl 0x438(%r15), %ecx
cmpl $0x1ae, %ecx            # imm = 0x1AE
setae %dl
orb %al, %dl
je 0x2bd38
cmpl $0x136, %ecx            # imm = 0x136
setb %cl
andb %cl, %al
cmpb $0x1, %al
jne 0x2bd79
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x8f9d7(%rip), %rsi     # 0xbb6cc
leaq 0x8fa6b(%rip), %rdx     # 0xbb767
movq %rsp, %rdi
callq 0x7c64
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0xd107f(%rip), %rax     # 0xfcd98
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0xd1057(%rip), %rsi     # 0xfcd80
movq 0xd22a8(%rip), %rdx     # 0xfdfd8
movq %rbx, %rdi
callq 0x6470
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x8f96b(%rip), %rsi     # 0xbb6b4
leaq 0x8f97b(%rip), %rdx     # 0xbb6cb
movq %rsp, %rdi
callq 0x7c64
movq %rsp, %rsi
movq %r15, %rdi
callq 0x26a0a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2bd79
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x10(%rbx), %rax
movq %rax, 0x20(%rsp)
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq 0x28(%r14), %r12
subq 0x20(%r14), %r12
shrq $0x2, %r12
decl %r12d
movq %rsp, %rbp
leaq 0x92d8c(%rip), %r13     # 0xbeb36
cmpl $-0x1, %r12d
je 0x2bc8b
movq %rbx, %rdi
leaq 0x97f5e(%rip), %rsi     # 0xc3d1c
callq 0x64e0
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x420ce
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x60b0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2be00
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
decl %r12d
movq %rbx, %rdi
movq %r13, %rsi
callq 0x64e0
jmp 0x2bdaa
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2be31
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x2be31
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x2bee1
movq %rbx, %rdi
callq 0x6200
jmp 0x2bee1
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2bee1
movq 0x10(%rsp), %rsi
jmp 0x2bed9
movq %rax, %r14
jmp 0x2bee1
jmp 0x2bec4
jmp 0x2bec4
jmp 0x2bec4
movq %rax, %r14
jmp 0x2be8c
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2be8c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2bec7
movq 0x38(%rsp), %rsi
jmp 0x2beba
jmp 0x2bec4
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2bec7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x2bec7
movq %rax, %r14
movq (%rbx), %rdi
cmpq 0x20(%rsp), %rdi
je 0x2bee1
movq 0x20(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x6260
movq %r14, %rdi
callq 0x64a0
nop