	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps_1_0123_dstreg
_ps_1_0123_dstreg:                      ## @ps_1_0123_dstreg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	cmpq	$0, 8(%rsi)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_WARN
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r8d, %r12d
	movl	%ecx, %r15d
	movq	%rsi, %r14
	movl	(%rsi), %eax
	cmpl	$129, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.5:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_map_ps13_temp
	jmp	LBB0_8
LBB0_7:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_map_ps_input
LBB0_8:
	movl	%eax, %r13d
	movq	_D3DSP_DSTSHIFT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	_D3DSP_DSTSHIFT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movl	%r12d, %edi
	callq	_d3d9_dstmod
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_d3d9_writemask
	orl	%r13d, %ebx
	orl	%eax, %ebx
	orl	%r15d, %ebx
	orl	$-2147483648, %ebx              ## imm = 0x80000000
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_dword                      ## TAILCALL
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Relative addressing not supported for destination registers\n"

	.comm	_E_INVALIDARG,8,3               ## @E_INVALIDARG
L_.str.1:                               ## @.str.1
	.asciz	"Invalid dest register type for 1.x pshader\n"

	.comm	_D3DSP_DSTSHIFT_SHIFT,4,2       ## @D3DSP_DSTSHIFT_SHIFT
	.comm	_D3DSP_DSTSHIFT_MASK,4,2        ## @D3DSP_DSTSHIFT_MASK
	.no_dead_strip	_ps_1_0123_dstreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps_1_0123_dstreg
_ps_1_0123_dstreg:                      ; @ps_1_0123_dstreg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x0
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_WARN
Lloh2:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x23]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	ldr	w8, [x1]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x23
	mov	x1, x20
	bl	_map_ps13_temp
	b	LBB0_7
LBB0_6:
	mov	x0, x23
	mov	x1, x20
	bl	_map_ps_input
LBB0_7:
	mov	x23, x0
Lloh5:
	adrp	x8, _D3DSP_DSTSHIFT_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D3DSP_DSTSHIFT_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w8, w22, w8
Lloh8:
	adrp	x9, _D3DSP_DSTSHIFT_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _D3DSP_DSTSHIFT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w22, w8, w9
	mov	x0, x21
	bl	_d3d9_dstmod
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_d3d9_writemask
	orr	w8, w23, w22
	orr	w8, w8, w21
	orr	w8, w8, w0
	orr	w1, w8, #0x80000000
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_put_dword
LBB0_8:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Relative addressing not supported for destination registers\n"

	.comm	_E_INVALIDARG,8,3               ; @E_INVALIDARG
l_.str.1:                               ; @.str.1
	.asciz	"Invalid dest register type for 1.x pshader\n"

	.comm	_D3DSP_DSTSHIFT_SHIFT,4,2       ; @D3DSP_DSTSHIFT_SHIFT
	.comm	_D3DSP_DSTSHIFT_MASK,4,2        ; @D3DSP_DSTSHIFT_MASK
	.no_dead_strip	_ps_1_0123_dstreg
.subsections_via_symbols
