// File: /workspace/github_cpp_makefile_star2_O1/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 0x9f20b
cmpl $0x2b, %edx
ja 0x9f227
movl %edx, %eax
leaq 0x21bb9(%rip), %rcx     # 0xc0d70
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x24888(%rip), %rsi     # 0xc3a56
leaq 0x24885(%rip), %rdx     # 0xc3a5a
jmp 0x9f281
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x1dcfb(%rip), %rsi     # 0xbcee3
leaq 0x1dcf9(%rip), %rdx     # 0xbcee8
jmp 0x9f281
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2485b(%rip), %rsi     # 0xc3a5d
leaq 0x24859(%rip), %rdx     # 0xc3a62
jmp 0x9f281
cmpl $0x1148, %edx           # imm = 0x1148
je 0x9f1c0
cmpl $0x1149, %edx           # imm = 0x1149
je 0x9f1c0
cmpl $0x114a, %edx           # imm = 0x114A
je 0x9f30d
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x251e8(%rip), %rsi     # 0xc441d
leaq 0x251fa(%rip), %rdx     # 0xc4436
jmp 0x9f281
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x20a1a(%rip), %rsi     # 0xbfc66
leaq 0x20a19(%rip), %rdx     # 0xbfc6c
jmp 0x9f281
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x247ea(%rip), %rsi     # 0xc3a4d
leaq 0x247e9(%rip), %rdx     # 0xc3a53
jmp 0x9f281
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x19540(%rip), %rsi     # 0xb87ba
leaq 0x1953d(%rip), %rdx     # 0xb87be
movq %rbx, %rdi
callq 0x7c64
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x4e1f, 0x7d0(%rsi)    # imm = 0x4E1F
ja 0x9f1c0
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x24a8f(%rip), %rsi     # 0xc3d53
leaq 0x24aa9(%rip), %rdx     # 0xc3d74
leaq 0x8(%rsp), %rdi
callq 0x7c64
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0x5daac(%rip), %rax     # 0xfcd98
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x5da84(%rip), %rsi     # 0xfcd80
movq 0x5ecd5(%rip), %rdx     # 0xfdfd8
movq %rbx, %rdi
callq 0x6470
jmp 0x9f371
movl $0x10, %edi
callq 0x6140
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x249f4(%rip), %rsi     # 0xc3d1e
leaq 0x24a0f(%rip), %rdx     # 0xc3d40
leaq 0x8(%rsp), %rdi
callq 0x7c64
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6320
leaq 0x5da46(%rip), %rax     # 0xfcd98
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x5da1e(%rip), %rsi     # 0xfcd80
movq 0x5ec6f(%rip), %rdx     # 0xfdfd8
movq %rbx, %rdi
callq 0x6470
jmp 0x9f375
jmp 0x9f391
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9f397
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6260
jmp 0x9f397
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x9f3a4
movq %rbx, %rdi
callq 0x6200
movq %r14, %rdi
callq 0x64a0