// File: /workspace/github_cpp_makefile_star2_O1/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::func_type_decl[abi:cxx11](spirv_cross::SPIRType&)
string CompilerMSL::func_type_decl(SPIRType &type)
{
	// The regular function return type. If not processing the entry point function, that's all we need
	string return_type = type_to_glsl(type) + type_to_array_glsl(type);
	if (!processing_entry_point)
		return return_type;

	// If an outgoing interface block has been defined, and it should be returned, override the entry point return type
	bool ep_should_return_output = !get_is_rasterization_disabled();
	if (stage_out_var_id && ep_should_return_output)
	{
		auto &so_var = get<SPIRVariable>(stage_out_var_id);
		auto &so_type = get<SPIRType>(so_var.basetype);
		return_type = type_to_glsl(so_type) + type_to_array_glsl(type);
	}

	// Prepend a entry type, based on the execution model
	string entry_type;
	auto &execution = get_entry_point();
	switch (execution.model)
	{
	case ExecutionModelVertex:
		entry_type = "vertex";
		break;
	case ExecutionModelFragment:
		entry_type =
		    execution.flags.get(ExecutionModeEarlyFragmentTests) ? "fragment [[ early_fragment_tests ]]" : "fragment";
		break;
	case ExecutionModelGLCompute:
	case ExecutionModelKernel:
		entry_type = "kernel";
		break;
	default:
		entry_type = "unknown";
		break;
	}

	return entry_type + " " + return_type;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsp, %rdi
xorl %ecx, %ecx
callq *0x98(%rax)
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2bb66
leaq 0x10(%rsp), %r12
movq -0x10(%r12), %rcx
movq -0x8(%r12), %r8
movq 0x28(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x9426a
movq 0x10(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x94289
leaq 0x30(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x94284
movq 0x30(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x94298
movq 0x20(%rsp), %rsi
movq %rsp, %rdi
callq 0x60b0
jmp 0x942a6
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x62c0
leaq 0x50(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x942ca
movq %rsi, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x942d0
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x30(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x94308
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6260
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x9431e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
cmpb $0x0, 0x5d8(%r14)
je 0x94346
cmpb $0x1, 0x937(%r14)
jne 0x94370
movq %r14, %rdi
callq 0x16112
cmpl $0x0, 0xb8(%rax)
sete %al
jmp 0x94372
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0x94412
movq %rdx, (%rbx)
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rbx)
jmp 0x94418
xorl %eax, %eax
movl 0x930(%r14), %esi
testl %esi, %esi
sete %cl
orb %al, %cl
jne 0x944e1
movq %r14, %rdi
callq 0xb40a
movl 0xc(%rax), %esi
movq %r14, %rdi
callq 0xa426
movq (%r14), %r8
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq *0x98(%r8)
leaq 0x60(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2bb66
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %r8
movq 0x68(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0x943e2
movq 0x30(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x94401
leaq 0x70(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x943fc
movq 0x70(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x94439
movq 0x60(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x60b0
jmp 0x94447
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x48(%rsp), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, 0x40(%rsp)
movq $0x0, 0x48(%rsp)
movb $0x0, 0x50(%rsp)
jmp 0x94622
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x62c0
movq %r12, (%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x94465
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x9446d
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x40(%rsp), %rdi
movq %rsp, %r15
movq %r15, %rsi
callq 0x6310
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x944af
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x944ca
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x6260
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x944e1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6260
movq %r12, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq %r14, %rdi
callq 0x16254
movl 0xb8(%rax), %ecx
leal -0x5(%rcx), %edx
cmpl $0x2, %edx
jb 0x9453e
testl %ecx, %ecx
je 0x9454d
cmpl $0x4, %ecx
jne 0x9455c
testb $0x2, 0x61(%rax)
leaq 0x2f913(%rip), %rax     # 0xc3e30
leaq 0x2f8e8(%rip), %rcx     # 0xc3e0c
cmoveq %rax, %rcx
movq 0x8(%rsp), %rdx
movl $0x8, %eax
movl $0x23, %r8d
cmoveq %rax, %r8
jmp 0x9456e
movl $0x6, %r8d
leaq 0x2f8ee(%rip), %rcx     # 0xc3e39
jmp 0x94569
movl $0x6, %r8d
leaq 0x2fd2e(%rip), %rcx     # 0xc4288
jmp 0x94569
movl $0x7, %r8d
leaq 0x2f8d7(%rip), %rcx     # 0xc3e40
movq 0x8(%rsp), %rdx
movq %rsp, %rdi
xorl %esi, %esi
callq 0x63f0
leaq 0x20(%rsp), %rdi
movq %r13, (%rdi)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
callq 0xe480
leaq 0x21316(%rip), %rsi     # 0xb58ae
leaq 0x20(%rsp), %rdi
callq 0x64e0
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
leaq 0x20(%rsp), %rdi
callq 0x60b0
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x945d8
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x945de
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x9460c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6260
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x94622
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9463d
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rbx, %rax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x94674
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x94674
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x946c9
movq 0x30(%rsp), %rsi
jmp 0x946c1
jmp 0x9468b
jmp 0x9468b
jmp 0x9468b
movq %rax, %rbx
jmp 0x946c9
jmp 0x94692
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x946b3
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x946b3
jmp 0x946b0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x946c9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9471c
movq 0x50(%rsp), %rsi
jmp 0x94714
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x94701
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x94701
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9471c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6260
movq %rbx, %rdi
callq 0x64a0