	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_sm4_read_dcl_output_topology
_shader_sm4_read_dcl_output_topology:   ## @shader_sm4_read_dcl_output_topology
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	_WINED3D_SM4_PRIMITIVE_TYPE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_WINED3D_SM4_PRIMITIVE_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	%rdi, %r14
	movq	_output_primitive_type_table@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	leaq	(,%rbx,4), %rcx
	addq	(%r15), %rcx
	cmpl	%eax, %ebx
	movq	_WINED3D_PT_UNDEFINED@GOTPCREL(%rip), %rax
	cmovaeq	%rax, %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	cmpl	(%rax), %ecx
	jne	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_SM4_PRIMITIVE_TYPE_MASK,4,2 ## @WINED3D_SM4_PRIMITIVE_TYPE_MASK
	.comm	_WINED3D_SM4_PRIMITIVE_TYPE_SHIFT,4,2 ## @WINED3D_SM4_PRIMITIVE_TYPE_SHIFT
	.comm	_output_primitive_type_table,8,3 ## @output_primitive_type_table
	.comm	_WINED3D_PT_UNDEFINED,4,2       ## @WINED3D_PT_UNDEFINED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled output primitive type %#x.\n"

	.no_dead_strip	_shader_sm4_read_dcl_output_topology
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_sm4_read_dcl_output_topology
_shader_sm4_read_dcl_output_topology:   ; @shader_sm4_read_dcl_output_topology
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, _WINED3D_SM4_PRIMITIVE_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_SM4_PRIMITIVE_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WINED3D_SM4_PRIMITIVE_TYPE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3D_SM4_PRIMITIVE_TYPE_SHIFT@GOTPAGEOFF]
	and	w8, w8, w2
Lloh5:
	ldr	w9, [x9]
	asr	w19, w8, w9
Lloh6:
	adrp	x21, _output_primitive_type_table@GOTPAGE
Lloh7:
	ldr	x21, [x21, _output_primitive_type_table@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	ldr	x8, [x21]
	add	x8, x8, w19, uxtw #2
Lloh8:
	adrp	x9, _WINED3D_PT_UNDEFINED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WINED3D_PT_UNDEFINED@GOTPAGEOFF]
	cmp	w19, w0
	csel	x8, x8, x9, lo
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_FIXME
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_SM4_PRIMITIVE_TYPE_MASK,4,2 ; @WINED3D_SM4_PRIMITIVE_TYPE_MASK
	.comm	_WINED3D_SM4_PRIMITIVE_TYPE_SHIFT,4,2 ; @WINED3D_SM4_PRIMITIVE_TYPE_SHIFT
	.comm	_output_primitive_type_table,8,3 ; @output_primitive_type_table
	.comm	_WINED3D_PT_UNDEFINED,4,2       ; @WINED3D_PT_UNDEFINED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled output primitive type %#x.\n"

	.no_dead_strip	_shader_sm4_read_dcl_output_topology
.subsections_via_symbols
