	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_sm4_read_dst_param
_shader_sm4_read_dst_param:             ## @shader_sm4_read_dst_param
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	cmpq	%rdx, %rax
	jae	LBB0_4
## %bb.1:
	movq	%r8, %rbx
	movl	(%rax), %r14d
	addq	$24, %r8
	leaq	-20(%rbp), %r9
	callq	_shader_sm4_read_param
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	-20(%rbp), %esi
	movq	_WINED3DSPSM_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_6
## %bb.3:
	movq	_WINED3D_SM4_WRITEMASK_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_WINED3D_SM4_WRITEMASK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movl	%r14d, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_WARN
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
LBB0_7:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid ptr %p >= end %p.\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read parameter.\n"

	.comm	_WINED3DSPSM_NONE,4,2           ## @WINED3DSPSM_NONE
L_.str.2:                               ## @.str.2
	.asciz	"Invalid source modifier %#x on destination register.\n"

	.comm	_WINED3D_SM4_WRITEMASK_MASK,4,2 ## @WINED3D_SM4_WRITEMASK_MASK
	.comm	_WINED3D_SM4_WRITEMASK_SHIFT,4,2 ## @WINED3D_SM4_WRITEMASK_SHIFT
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_shader_sm4_read_dst_param
.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_dst_param
_shader_sm4_read_dst_param:             ; @shader_sm4_read_dst_param
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x1]
	cmp	x8, x2
	b.hs	LBB0_4
; %bb.1:
	mov	x19, x4
	ldr	w20, [x8]
	add	x4, x4, #24
	add	x5, sp, #12
	bl	_shader_sm4_read_param
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _WINED3DSPSM_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3DSPSM_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _WINED3D_SM4_WRITEMASK_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3D_SM4_WRITEMASK_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh6:
	adrp	x9, _WINED3D_SM4_WRITEMASK_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WINED3D_SM4_WRITEMASK_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19]
	stp	xzr, xzr, [x19, #8]
Lloh9:
	adrp	x8, _TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_WARN
	b	LBB0_8
LBB0_5:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_ERR
LBB0_8:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid ptr %p >= end %p.\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read parameter.\n"

	.comm	_WINED3DSPSM_NONE,4,2           ; @WINED3DSPSM_NONE
l_.str.2:                               ; @.str.2
	.asciz	"Invalid source modifier %#x on destination register.\n"

	.comm	_WINED3D_SM4_WRITEMASK_MASK,4,2 ; @WINED3D_SM4_WRITEMASK_MASK
	.comm	_WINED3D_SM4_WRITEMASK_SHIFT,4,2 ; @WINED3D_SM4_WRITEMASK_SHIFT
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_shader_sm4_read_dst_param
.subsections_via_symbols
