	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps_1_4_srcreg
_ps_1_4_srcreg:                         ## @ps_1_4_srcreg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpq	$0, 24(%rsi)
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_WARN
LBB0_3:
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	(%rsi), %edi
	cmpl	$128, %edi
	je	LBB0_9
## %bb.5:
	cmpl	$130, %edi
	je	LBB0_9
## %bb.6:
	cmpl	$129, %edi
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_map_ps_input
	jmp	LBB0_10
LBB0_9:
	movl	20(%rbx), %esi
	callq	_d3dsp_register
LBB0_10:
	movl	%eax, %r12d
	movl	16(%rbx), %edi
	callq	_d3d9_swizzle
	movq	8(%rbx), %rsi
	movq	_BWRITERSPSM_ABS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_13
## %bb.11:
	movq	_BWRITERSPSM_ABSNEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_13
## %bb.12:
	movq	_BWRITERSPSM_NOT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_13
## %bb.14:
	movq	_D3DVS_SWIZZLE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, %r12d
	movq	%rsi, %rdi
	callq	_d3d9_srcmod
	orl	%eax, %r12d
	orl	$-2147483648, %r12d             ## imm = 0x80000000
	movq	%r14, %rdi
	movl	%r12d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_dword                      ## TAILCALL
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_3
LBB0_8:
	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 in <= ps_3_0\n"

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

	.comm	_D3DVS_SWIZZLE_MASK,4,2         ## @D3DVS_SWIZZLE_MASK
	.comm	_BWRITERSPSM_ABS,8,3            ## @BWRITERSPSM_ABS
	.comm	_BWRITERSPSM_ABSNEG,8,3         ## @BWRITERSPSM_ABSNEG
	.comm	_BWRITERSPSM_NOT,8,3            ## @BWRITERSPSM_NOT
L_.str.2:                               ## @.str.2
	.asciz	"Invalid source modifier %u for ps_1_4\n"

	.no_dead_strip	_ps_1_4_srcreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps_1_4_srcreg
_ps_1_4_srcreg:                         ; @ps_1_4_srcreg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x1, #24]
	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, [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
	add	sp, sp, #64
	ret
LBB0_3:
	mov	x20, x2
	mov	x21, x1
	ldr	w0, [x1]
	cmp	w0, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w0, #130
	b.eq	LBB0_7
; %bb.5:
	cmp	w0, #129
	b.ne	LBB0_11
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	bl	_map_ps_input
	b	LBB0_8
LBB0_7:
	ldr	w1, [x21, #20]
	bl	_d3dsp_register
LBB0_8:
	mov	x22, x0
	ldr	w0, [x21, #16]
	bl	_d3d9_swizzle
	mov	x8, x0
	ldr	x0, [x21, #8]
Lloh5:
	adrp	x9, _BWRITERSPSM_ABS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BWRITERSPSM_ABS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _BWRITERSPSM_ABSNEG@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BWRITERSPSM_ABSNEG@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x11, _BWRITERSPSM_NOT@GOTPAGE
Lloh12:
	ldr	x11, [x11, _BWRITERSPSM_NOT@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x0, x9
	ccmp	x0, x10, #4, ne
	ccmp	x0, x11, #4, ne
	b.ne	LBB0_10
; %bb.9:
	str	x0, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_10:
Lloh16:
	adrp	x9, _D3DVS_SWIZZLE_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _D3DVS_SWIZZLE_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	and	w19, w9, w8
	bl	_d3d9_srcmod
	orr	w8, w22, w19
	orr	w8, w8, w0
	orr	w1, w8, #0x80000000
	mov	x0, x20
	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
	add	sp, sp, #64
	b	_put_dword
LBB0_11:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Relative addressing not supported in <= ps_3_0\n"

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

	.comm	_D3DVS_SWIZZLE_MASK,4,2         ; @D3DVS_SWIZZLE_MASK
	.comm	_BWRITERSPSM_ABS,8,3            ; @BWRITERSPSM_ABS
	.comm	_BWRITERSPSM_ABSNEG,8,3         ; @BWRITERSPSM_ABSNEG
	.comm	_BWRITERSPSM_NOT,8,3            ; @BWRITERSPSM_NOT
l_.str.2:                               ; @.str.2
	.asciz	"Invalid source modifier %u for ps_1_4\n"

	.no_dead_strip	_ps_1_4_srcreg
.subsections_via_symbols
