// File: /workspace/github_cpp_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
cmpl $0x1147, %edx           # imm = 0x1147
jg 0x9e3f9
cmpl $0x2b, %edx
ja 0x9e415
movl %edx, %eax
leaq 0x219db(%rip), %rcx     # 0xbfd80
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2466a(%rip), %rsi     # 0xc2a26
leaq 0x24667(%rip), %rdx     # 0xc2a2a
jmp 0x9e46f
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x1db15(%rip), %rsi     # 0xbbeeb
leaq 0x1db13(%rip), %rdx     # 0xbbef0
jmp 0x9e46f
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2463d(%rip), %rsi     # 0xc2a2d
leaq 0x2463b(%rip), %rdx     # 0xc2a32
jmp 0x9e46f
cmpl $0x1148, %edx           # imm = 0x1148
je 0x9e3ae
cmpl $0x1149, %edx           # imm = 0x1149
je 0x9e3ae
cmpl $0x114a, %edx           # imm = 0x114A
je 0x9e4fb
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x24fca(%rip), %rsi     # 0xc33ed
leaq 0x24fdc(%rip), %rdx     # 0xc3406
jmp 0x9e46f
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x20834(%rip), %rsi     # 0xbec6e
leaq 0x20833(%rip), %rdx     # 0xbec74
jmp 0x9e46f
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x245cc(%rip), %rsi     # 0xc2a1d
leaq 0x245cb(%rip), %rdx     # 0xc2a23
jmp 0x9e46f
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x19342(%rip), %rsi     # 0xb77aa
leaq 0x1933f(%rip), %rdx     # 0xb77ae
movq %rbx, %rdi
callq 0x7be0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x4e1f, 0x7d0(%rsi)    # imm = 0x4E1F
ja 0x9e3ae
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x24871(%rip), %rsi     # 0xc2d23
leaq 0x2488b(%rip), %rdx     # 0xc2d44
leaq 0x8(%rsp), %rdi
callq 0x7be0
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0x5d8ee(%rip), %rax     # 0xfbdc8
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x5d8c6(%rip), %rsi     # 0xfbdb0
movq 0x5eae7(%rip), %rdx     # 0xfcfd8
movq %rbx, %rdi
callq 0x6470
jmp 0x9e55f
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x247d6(%rip), %rsi     # 0xc2cee
leaq 0x247f1(%rip), %rdx     # 0xc2d10
leaq 0x8(%rsp), %rdi
callq 0x7be0
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0x5d888(%rip), %rax     # 0xfbdc8
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x5d860(%rip), %rsi     # 0xfbdb0
movq 0x5ea81(%rip), %rdx     # 0xfcfd8
movq %rbx, %rdi
callq 0x6470
jmp 0x9e563
jmp 0x9e584
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9e57d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
testb %bpl, %bpl
jne 0x9e587
jmp 0x9e58f
movq %rax, %r14
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64a0
nop