	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vs_1_x_srcreg
_vs_1_x_srcreg:                         ## @vs_1_x_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rsi), %eax
	leal	-132(%rax), %ecx
	cmpl	$6, %ecx
	ja	LBB0_19
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	$89, %edx
	btl	%ecx, %edx
	jb	LBB0_13
## %bb.2:
	movl	$34, %edx
	btl	%ecx, %edx
	jae	LBB0_3
## %bb.12:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	movl	(%r12), %eax
LBB0_13:
	movl	24(%r12), %esi
	movl	%eax, %edi
	callq	_d3dsp_register
	movl	%eax, %ebx
	orl	$-2147483648, %ebx              ## imm = 0x80000000
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	cmpl	$138, (%rax)
	jne	LBB0_17
## %bb.15:
	cmpl	$0, 8(%rax)
	jne	LBB0_17
## %bb.16:
	cmpl	$130, 4(%rax)
	jne	LBB0_17
## %bb.20:
	movq	_D3DVS_ADDRMODE_RELATIVE@GOTPCREL(%rip), %rax
	movq	_D3DVS_ADDRESSMODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	orl	%ecx, %ebx
	jmp	LBB0_21
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_18
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
LBB0_18:
	callq	_WARN
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_22
LBB0_3:
	movl	8(%r12), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_4
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_BWRITERSP_WRITEMASK_2@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_7:
	movq	_BWRITERSP_WRITEMASK_1@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_BWRITERSP_WRITEMASK_0@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_BWRITERSP_WRITEMASK_3@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edx
LBB0_11:
	movl	24(%r12), %esi
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	callq	_map_vs_output
	movl	%eax, %ebx
	orl	$-2147483648, %ebx              ## imm = 0x80000000
LBB0_21:
	movl	8(%r12), %edi
	callq	_d3d9_swizzle
	movl	%eax, %r15d
	movq	_D3DVS_SWIZZLE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movl	4(%r12), %edi
	callq	_d3d9_srcmod
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_put_dword
LBB0_22:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_BWRITERSP_WRITEMASK_0,4,2      ## @BWRITERSP_WRITEMASK_0
	.comm	_BWRITERSP_WRITEMASK_1,4,2      ## @BWRITERSP_WRITEMASK_1
	.comm	_BWRITERSP_WRITEMASK_2,4,2      ## @BWRITERSP_WRITEMASK_2
	.comm	_BWRITERSP_WRITEMASK_3,4,2      ## @BWRITERSP_WRITEMASK_3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected register type %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"Relative addressing in vs_1_x is only allowed with a0.x\n"

	.comm	_E_INVALIDARG,8,3               ## @E_INVALIDARG
	.comm	_D3DVS_ADDRMODE_RELATIVE,4,2    ## @D3DVS_ADDRMODE_RELATIVE
	.comm	_D3DVS_ADDRESSMODE_MASK,4,2     ## @D3DVS_ADDRESSMODE_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Invalid register type for 1.x vshader\n"

	.comm	_D3DVS_SWIZZLE_MASK,4,2         ## @D3DVS_SWIZZLE_MASK
	.no_dead_strip	_vs_1_x_srcreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vs_1_x_srcreg
_vs_1_x_srcreg:                         ; @vs_1_x_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	x21, x0
	ldr	w8, [x1]
	sub	w9, w8, #132
	cmp	w9, #6
	b.hi	LBB0_10
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w10, #89
	tst	w9, w10
	b.ne	LBB0_4
; %bb.2:
	mov	w10, #34
	tst	w9, w10
	b.eq	LBB0_12
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_FIXME
	ldr	w8, [x20]
LBB0_4:
	ldr	w1, [x20, #24]
	mov	x0, x8
	bl	_d3dsp_register
	orr	w22, w0, #0x80000000
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_21
; %bb.5:
	ldr	w9, [x8]
	cmp	w9, #138
	b.ne	LBB0_9
; %bb.6:
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_9
; %bb.7:
	ldr	w8, [x8, #4]
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.8:
Lloh2:
	adrp	x8, _D3DVS_ADDRMODE_RELATIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D3DVS_ADDRMODE_RELATIVE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _D3DVS_ADDRESSMODE_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _D3DVS_ADDRESSMODE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
	orr	w22, w8, w22
	b	LBB0_21
LBB0_9:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	bl	_WARN
Lloh12:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_22
LBB0_12:
	ldr	w8, [x20, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_15
; %bb.13:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_14
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_14:
Lloh17:
	adrp	x8, _BWRITERSP_WRITEMASK_2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BWRITERSP_WRITEMASK_2@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
	mov	w2, #0
	b	LBB0_20
LBB0_16:
Lloh19:
	adrp	x8, _BWRITERSP_WRITEMASK_1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BWRITERSP_WRITEMASK_1@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh21:
	adrp	x8, _BWRITERSP_WRITEMASK_0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BWRITERSP_WRITEMASK_0@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh23:
	adrp	x8, _BWRITERSP_WRITEMASK_3@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BWRITERSP_WRITEMASK_3@GOTPAGEOFF]
LBB0_19:
	ldr	w2, [x8]
LBB0_20:
	ldr	w1, [x20, #24]
	add	x3, sp, #12
	mov	x0, x21
	bl	_map_vs_output
	orr	w22, w0, #0x80000000
LBB0_21:
	ldr	w0, [x20, #8]
	bl	_d3d9_swizzle
Lloh25:
	adrp	x8, _D3DVS_SWIZZLE_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _D3DVS_SWIZZLE_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	and	w8, w8, w0
	orr	w21, w8, w22
	ldr	w0, [x20, #4]
	bl	_d3d9_srcmod
	orr	w1, w21, w0
	mov	x0, x19
	bl	_put_dword
LBB0_22:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_16-LBB0_14)>>2
	.byte	(LBB0_17-LBB0_14)>>2
	.byte	(LBB0_18-LBB0_14)>>2
                                        ; -- End function
	.comm	_BWRITERSP_WRITEMASK_0,4,2      ; @BWRITERSP_WRITEMASK_0
	.comm	_BWRITERSP_WRITEMASK_1,4,2      ; @BWRITERSP_WRITEMASK_1
	.comm	_BWRITERSP_WRITEMASK_2,4,2      ; @BWRITERSP_WRITEMASK_2
	.comm	_BWRITERSP_WRITEMASK_3,4,2      ; @BWRITERSP_WRITEMASK_3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected register type %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"Relative addressing in vs_1_x is only allowed with a0.x\n"

	.comm	_E_INVALIDARG,8,3               ; @E_INVALIDARG
	.comm	_D3DVS_ADDRMODE_RELATIVE,4,2    ; @D3DVS_ADDRMODE_RELATIVE
	.comm	_D3DVS_ADDRESSMODE_MASK,4,2     ; @D3DVS_ADDRESSMODE_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Invalid register type for 1.x vshader\n"

	.comm	_D3DVS_SWIZZLE_MASK,4,2         ; @D3DVS_SWIZZLE_MASK
	.no_dead_strip	_vs_1_x_srcreg
.subsections_via_symbols
