// File: /workspace/github_cpp_makefile_star2_O2/rossy[P]crossc/SPIRV-Cross/spirv_msl.cpp
// Function: spirv_cross::CompilerMSL::builtin_type_decl[abi:cxx11](spv::BuiltIn)
string CompilerMSL::builtin_type_decl(BuiltIn builtin)
{
	switch (builtin)
	{
	// Vertex function in
	case BuiltInVertexId:
		return "uint";
	case BuiltInVertexIndex:
		return "uint";
	case BuiltInBaseVertex:
		return "uint";
	case BuiltInInstanceId:
		return "uint";
	case BuiltInInstanceIndex:
		return "uint";
	case BuiltInBaseInstance:
		return "uint";
	case BuiltInDrawIndex:
		SPIRV_CROSS_THROW("DrawIndex is not supported in MSL.");

	// Vertex function out
	case BuiltInClipDistance:
		return "float";
	case BuiltInPointSize:
		return "float";
	case BuiltInPosition:
		return "float4";
	case BuiltInLayer:
		return "uint";
	case BuiltInViewportIndex:
		if (!msl_options.supports_msl_version(2, 0))
			SPIRV_CROSS_THROW("ViewportIndex requires Metal 2.0.");
		return "uint";

	// Fragment function in
	case BuiltInFrontFacing:
		return "bool";
	case BuiltInPointCoord:
		return "float2";
	case BuiltInFragCoord:
		return "float4";
	case BuiltInSampleId:
		return "uint";
	case BuiltInSampleMask:
		return "uint";
	case BuiltInSamplePosition:
		return "float2";

	// Fragment function out
	case BuiltInFragDepth:
		return "float";

	// Compute function in
	case BuiltInGlobalInvocationId:
	case BuiltInLocalInvocationId:
	case BuiltInNumWorkgroups:
	case BuiltInWorkgroupId:
		return "uint3";
	case BuiltInLocalInvocationIndex:
		return "uint";

	default:
		return "unsupported-built-in-type";
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
cmpl $0x2b, %edx
ja 0x7bfe4
movl %edx, %eax
leaq 0x1ed59(%rip), %rcx     # 0x9ad10
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x21a17(%rip), %rsi     # 0x9d9de
jmp 0x7c079
leaq 0x1aea8(%rip), %rsi     # 0x96e7b
jmp 0x7c079
leaq 0x21a06(%rip), %rsi     # 0x9d9e5
jmp 0x7c079
cmpl $0x1148, %edx           # imm = 0x1148
je 0x7bfc0
cmpl $0x1149, %edx           # imm = 0x1149
je 0x7bfc0
cmpl $0x114a, %edx           # imm = 0x114A
je 0x7c092
leaq 0x2239e(%rip), %rsi     # 0x9e3a5
jmp 0x7c079
leaq 0x219c5(%rip), %rsi     # 0x9d9d5
jmp 0x7c079
leaq 0x1dbe5(%rip), %rsi     # 0x99bfe
jmp 0x7c079
cmpl $0x4e1f, 0x7d0(%rsi)    # imm = 0x4E1F
ja 0x7bfc0
pushq $0x10
popq %rdi
callq 0x6140
movq %rax, %rbx
leaq 0x21ca2(%rip), %rsi     # 0x9dcdb
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x6100
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x6f6e
xorl %ebp, %ebp
leaq 0x6ad5f(%rip), %rsi     # 0xe6dc0
movq 0x6bf78(%rip), %rdx     # 0xe7fe0
movq %rbx, %rdi
callq 0x6490
jmp 0x7c0db
leaq 0x16711(%rip), %rsi     # 0x9278a
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x6100
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x6140
movq %rax, %rbx
leaq 0x21c02(%rip), %rsi     # 0x9dca6
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x6100
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x6f6e
xorl %ebp, %ebp
leaq 0x6acf4(%rip), %rsi     # 0xe6dc0
movq 0x6bf0d(%rip), %rdx     # 0xe7fe0
movq %rbx, %rdi
callq 0x6490
jmp 0x7c0df
jmp 0x7c0f3
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x6548
testb %bpl, %bpl
jne 0x7c0f6
jmp 0x7c0fe
movq %rax, %r14
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64b0