	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vs_12_dstreg
_vs_12_dstreg:                          ## @vs_12_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
	subq	$24, %rsp
	.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, 16(%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)
	jmp	LBB0_22
LBB0_3:
	movl	%ecx, %r15d
	movq	%rsi, %r14
	movl	(%rsi), %eax
	leal	-128(%rax), %ecx
	cmpl	$7, %ecx
	ja	LBB0_17
## %bb.4:
	movl	%r8d, %r12d
	movq	%rdx, %rbx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmpq	*%rcx
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	movl	(%r14), %eax
LBB0_6:
	movl	8(%r14), %esi
	movl	%eax, %edi
LBB0_7:
	callq	_d3dsp_register
	movl	%eax, %r13d
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
LBB0_19:
	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
	orl	%r13d, %ebx
	orl	%r15d, %ebx
	orl	$-2147483648, %ebx              ## imm = 0x80000000
	cmpl	$0, -44(%rbp)
	je	LBB0_21
## %bb.20:
	movl	4(%r14), %edi
	callq	_d3d9_writemask
	orl	%eax, %ebx
LBB0_21:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_put_dword
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_2
LBB0_12:
	movl	8(%r13), %ebx
	movl	$2, %edi
	movl	$1, %esi
	callq	_BWRITERVS_VERSION
	cmpl	%eax, %ebx
	jne	LBB0_13
## %bb.14:
	cmpl	$0, 8(%r14)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_2
LBB0_18:
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	callq	_map_vs_output
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_8:
	cmpl	$0, 8(%r14)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_10:
	movq	_D3DSPR_ADDR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_16:
	movq	_D3DSPR_PREDICATE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edi
	xorl	%esi, %esi
	jmp	LBB0_7
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_12
	.long	L0_0_set_18
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_8
	.end_data_region
                                        ## -- 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	"Unexpected register type %u\n"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.2:                               ## @.str.2
	.asciz	"Only a0 exists\n"

	.comm	_D3DSPR_ADDR,4,2                ## @D3DSPR_ADDR
L_.str.3:                               ## @.str.3
	.asciz	"Predicate register is allowed only in vs_2_x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Only predicate register p0 exists\n"

	.comm	_D3DSPR_PREDICATE,4,2           ## @D3DSPR_PREDICATE
L_.str.5:                               ## @.str.5
	.asciz	"Invalid register type for 1.x-2.x vertex shader\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vs_12_dstreg
_vs_12_dstreg:                          ; @vs_12_dstreg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, #16]
	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]
	b	LBB0_11
LBB0_3:
	mov	x20, x1
	ldr	w8, [x1]
	sub	w9, w8, #128
	cmp	w9, #7
	b.hi	LBB0_12
; %bb.4:
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
Lloh5:
	adrp	x10, lJTI0_0@PAGE
Lloh6:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_5:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x8
	bl	_FIXME
	ldr	w8, [x20]
LBB0_6:
	ldr	w1, [x20, #8]
	mov	x0, x8
LBB0_7:
	bl	_d3dsp_register
	mov	x23, x0
Lloh9:
	adrp	x8, _TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_8:
Lloh12:
	adrp	x8, _D3DSP_DSTSHIFT_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _D3DSP_DSTSHIFT_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w8, w22, w8
Lloh15:
	adrp	x9, _D3DSP_DSTSHIFT_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _D3DSP_DSTSHIFT_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w22, w8, w9
	mov	x0, x21
	bl	_d3d9_dstmod
	orr	w8, w23, w22
	orr	w8, w8, w0
	orr	w21, w8, #0x80000000
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_10
; %bb.9:
	ldr	w0, [x20, #4]
	bl	_d3d9_writemask
	orr	w21, w0, w21
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	bl	_put_dword
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_2
LBB0_13:
	ldr	w24, [x23, #8]
	mov	w0, #2
	mov	w1, #1
	bl	_BWRITERVS_VERSION
	cmp	w24, w0
	b.ne	LBB0_19
; %bb.14:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_21
; %bb.15:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_16:
	ldp	w2, w1, [x20, #4]
	add	x3, sp, #12
	mov	x0, x23
	bl	_map_vs_output
	mov	x23, x0
	b	LBB0_8
LBB0_17:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_20
; %bb.18:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_19:
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_20:
Lloh26:
	adrp	x8, _D3DSPR_ADDR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _D3DSPR_ADDR@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
Lloh28:
	adrp	x8, _D3DSPR_PREDICATE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _D3DSPR_PREDICATE@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	mov	w1, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_16-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_17-LBB0_5)>>2
                                        ; -- 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	"Unexpected register type %u\n"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.2:                               ; @.str.2
	.asciz	"Only a0 exists\n"

	.comm	_D3DSPR_ADDR,4,2                ; @D3DSPR_ADDR
l_.str.3:                               ; @.str.3
	.asciz	"Predicate register is allowed only in vs_2_x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Only predicate register p0 exists\n"

	.comm	_D3DSPR_PREDICATE,4,2           ; @D3DSPR_PREDICATE
l_.str.5:                               ; @.str.5
	.asciz	"Invalid register type for 1.x-2.x vertex shader\n"

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