	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function compute_texture_matrix
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_compute_texture_matrix:                ## @compute_texture_matrix
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	24(%rbp), %r14
	movq	_WINED3D_TTFF_DISABLE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_1
LBB0_23:
	movq	%r14, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_identity_matrix            ## TAILCALL
LBB0_1:
	testq	%r8, %r8
	jne	LBB0_23
## %bb.2:
	movl	%edx, %ebx
	movq	_WINED3D_TTFF_COUNT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%ebx, %edx
	je	LBB0_23
## %bb.3:
	movq	_WINED3D_TTFF_PROJECTED@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	orl	%eax, %edx
	cmpl	%ebx, %edx
	jne	LBB0_4
## %bb.24:
	leaq	L_.str(%rip), %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
LBB0_4:
	movq	16(%rbp), %r12
	movss	(%rsi), %xmm13                  ## xmm13 = mem[0],zero,zero,zero
	movss	4(%rsi), %xmm11                 ## xmm11 = mem[0],zero,zero,zero
	movss	8(%rsi), %xmm14                 ## xmm14 = mem[0],zero,zero,zero
	movss	12(%rsi), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	movss	16(%rsi), %xmm15                ## xmm15 = mem[0],zero,zero,zero
	movss	20(%rsi), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	movss	24(%rsi), %xmm5                 ## xmm5 = mem[0],zero,zero,zero
	movss	28(%rsi), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	32(%rsi), %xmm12                ## xmm12 = mem[0],zero,zero,zero
	movss	36(%rsi), %xmm7                 ## xmm7 = mem[0],zero,zero,zero
	movss	40(%rsi), %xmm6                 ## xmm6 = mem[0],zero,zero,zero
	movss	44(%rsi), %xmm8                 ## xmm8 = mem[0],zero,zero,zero
	movl	48(%rsi), %edx
	movl	52(%rsi), %r13d
	movl	56(%rsi), %esi
	testl	%ebx, %eax
	je	LBB0_11
## %bb.5:
	testq	%r12, %r12
	jne	LBB0_6
## %bb.7:
	notl	%eax
	andl	%ebx, %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.9:
	xorps	%xmm4, %xmm4
	movaps	%xmm6, %xmm9
	movaps	%xmm7, %xmm10
	movaps	%xmm12, %xmm3
	xorps	%xmm5, %xmm5
	xorps	%xmm6, %xmm6
	xorps	%xmm7, %xmm7
	jmp	LBB0_22
LBB0_11:
	testq	%rcx, %rcx
	jne	LBB0_17
## %bb.12:
	addl	$-130, %r9d
	cmpl	$4, %r9d
	ja	LBB0_16
## %bb.13:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r9,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_14:
	movl	%esi, %r13d
	movaps	%xmm7, %xmm8
	movaps	%xmm1, %xmm0
	movaps	%xmm14, %xmm5
	jmp	LBB0_17
LBB0_10:
	movaps	%xmm8, %xmm5
	xorps	%xmm8, %xmm8
	xorps	%xmm9, %xmm9
	xorps	%xmm10, %xmm10
	xorps	%xmm3, %xmm3
	movaps	%xmm0, %xmm4
	movaps	%xmm5, %xmm0
	movaps	%xmm2, %xmm5
	movaps	%xmm6, %xmm2
	movaps	%xmm1, %xmm6
	movaps	%xmm7, %xmm1
	movaps	%xmm11, %xmm7
	movaps	%xmm12, %xmm11
	jmp	LBB0_22
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	movl	%edx, -96(%rbp)                 ## 4-byte Spill
	movl	%esi, -92(%rbp)                 ## 4-byte Spill
	movss	%xmm2, -88(%rbp)                ## 4-byte Spill
	movss	%xmm1, -84(%rbp)                ## 4-byte Spill
	movss	%xmm11, -80(%rbp)               ## 4-byte Spill
	movss	%xmm0, -76(%rbp)                ## 4-byte Spill
	movss	%xmm12, -72(%rbp)               ## 4-byte Spill
	movss	%xmm13, -68(%rbp)               ## 4-byte Spill
	movss	%xmm7, -64(%rbp)                ## 4-byte Spill
	movss	%xmm14, -60(%rbp)               ## 4-byte Spill
	movss	%xmm6, -56(%rbp)                ## 4-byte Spill
	movss	%xmm15, -52(%rbp)               ## 4-byte Spill
	movss	%xmm8, -48(%rbp)                ## 4-byte Spill
	movss	%xmm5, -44(%rbp)                ## 4-byte Spill
	callq	_FIXME
	movss	-44(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm8                ## 4-byte Reload
                                        ## xmm8 = mem[0],zero,zero,zero
	movss	-52(%rbp), %xmm15               ## 4-byte Reload
                                        ## xmm15 = mem[0],zero,zero,zero
	movss	-56(%rbp), %xmm6                ## 4-byte Reload
                                        ## xmm6 = mem[0],zero,zero,zero
	movss	-60(%rbp), %xmm14               ## 4-byte Reload
                                        ## xmm14 = mem[0],zero,zero,zero
	movss	-64(%rbp), %xmm7                ## 4-byte Reload
                                        ## xmm7 = mem[0],zero,zero,zero
	movss	-68(%rbp), %xmm13               ## 4-byte Reload
                                        ## xmm13 = mem[0],zero,zero,zero
	movss	-72(%rbp), %xmm12               ## 4-byte Reload
                                        ## xmm12 = mem[0],zero,zero,zero
	movss	-76(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-80(%rbp), %xmm11               ## 4-byte Reload
                                        ## xmm11 = mem[0],zero,zero,zero
	movss	-84(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-88(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_15:
	movl	%edx, %r13d
	movaps	%xmm6, %xmm8
	movaps	%xmm2, %xmm0
	movaps	%xmm15, %xmm5
LBB0_17:
	testq	%r12, %r12
	je	LBB0_18
LBB0_6:
	movaps	%xmm6, %xmm9
	movaps	%xmm7, %xmm10
	movaps	%xmm12, %xmm3
	movaps	%xmm0, %xmm4
	movaps	%xmm5, %xmm0
	movaps	%xmm2, %xmm5
	movaps	%xmm15, %xmm2
	movaps	%xmm1, %xmm6
	movaps	%xmm14, %xmm1
	movaps	%xmm11, %xmm7
	movaps	%xmm13, %xmm11
LBB0_22:
	movss	%xmm11, (%r14)
	movss	%xmm7, 4(%r14)
	movss	%xmm1, 8(%r14)
	movss	%xmm6, 12(%r14)
	movss	%xmm2, 16(%r14)
	movss	%xmm5, 20(%r14)
	movss	%xmm0, 24(%r14)
	movss	%xmm4, 28(%r14)
	movss	%xmm3, 32(%r14)
	movss	%xmm10, 36(%r14)
	movss	%xmm9, 40(%r14)
	movss	%xmm8, 44(%r14)
	movl	%edx, 48(%r14)
	movl	%r13d, 52(%r14)
	movl	%esi, 56(%r14)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	(%r15), %eax
	notl	%eax
	andl	%ebx, %eax
	movss	LCPI0_0(%rip), %xmm5            ## xmm5 = mem[0],zero,zero,zero
	cmpl	$129, %eax
	jne	LBB0_19
## %bb.20:
	xorps	%xmm8, %xmm8
	xorps	%xmm9, %xmm9
	xorps	%xmm10, %xmm10
	xorps	%xmm3, %xmm3
	jmp	LBB0_21
LBB0_19:
	movaps	%xmm6, %xmm9
	movaps	%xmm7, %xmm10
	movaps	%xmm12, %xmm3
LBB0_21:
	movaps	%xmm0, %xmm4
	movaps	%xmm5, %xmm0
	movaps	%xmm2, %xmm5
	xorps	%xmm2, %xmm2
	movaps	%xmm1, %xmm6
	xorps	%xmm1, %xmm1
	movaps	%xmm11, %xmm7
	xorps	%xmm11, %xmm11
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_WINED3D_TTFF_DISABLE,4,2       ## @WINED3D_TTFF_DISABLE
	.comm	_WINED3D_TTFF_COUNT1,4,2        ## @WINED3D_TTFF_COUNT1
	.comm	_WINED3D_TTFF_PROJECTED,4,2     ## @WINED3D_TTFF_PROJECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid texture transform flags: WINED3D_TTFF_COUNT1 | WINED3D_TTFF_PROJECTED.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected fixed function texture coord input\n"

	.no_dead_strip	_compute_texture_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_texture_matrix
_compute_texture_matrix:                ; @compute_texture_matrix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d15, d14, [sp, #16]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	.cfi_offset b10, -104
	.cfi_offset b11, -112
	.cfi_offset b12, -120
	.cfi_offset b13, -128
	.cfi_offset b14, -136
	.cfi_offset b15, -144
	mov	x19, x7
Lloh0:
	adrp	x8, _WINED3D_TTFF_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_TTFF_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
LBB0_1:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_get_identity_matrix
LBB0_2:
	cbnz	x4, LBB0_1
; %bb.3:
	mov	x20, x2
Lloh3:
	adrp	x8, _WINED3D_TTFF_COUNT1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3D_TTFF_COUNT1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	cmp	w9, w2
	b.eq	LBB0_1
; %bb.4:
Lloh6:
	adrp	x25, _WINED3D_TTFF_PROJECTED@GOTPAGE
Lloh7:
	ldr	x25, [x25, _WINED3D_TTFF_PROJECTED@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w9, w8, w9
	cmp	w9, w20
	b.ne	LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_ERR
LBB0_6:
	mov	x21, x6
	ldp	s17, s10, [x1]
	ldp	s7, s9, [x1, #8]
	ldp	s6, s8, [x1, #16]
	ldp	s15, s11, [x1, #24]
	ldp	s16, s12, [x1, #32]
	ldp	s13, s14, [x1, #40]
	ldp	w22, w24, [x1, #48]
	ldr	w23, [x1, #56]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.7:
	cbnz	x21, LBB0_19
; %bb.8:
	bic	w8, w20, w8
	cmp	w8, #128
	b.eq	LBB0_15
; %bb.9:
	cmp	w8, #129
	b.ne	LBB0_19
; %bb.10:
	movi	d3, #0000000000000000
	fmov	s0, s14
	fmov	s1, s13
	fmov	s2, s12
	fmov	s4, s16
	movi	d5, #0000000000000000
	movi	d6, #0000000000000000
	movi	d7, #0000000000000000
	b	LBB0_20
LBB0_11:
	cbnz	x3, LBB0_18
; %bb.12:
	sub	w8, w5, #130
	cmp	w8, #4
	b.hi	LBB0_16
; %bb.13:
Lloh10:
	adrp	x9, lJTI0_0@PAGE
Lloh11:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_14
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_14:
	mov	x24, x23
	fmov	s14, s12
	fmov	s11, s9
	fmov	s15, s7
	b	LBB0_18
LBB0_15:
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	movi	d2, #0000000000000000
	fmov	s3, s11
	fmov	s11, s14
	fmov	s5, s8
	fmov	s8, s13
	movi	d4, #0000000000000000
	fmov	s6, s9
	fmov	s9, s12
	fmov	s7, s10
	fmov	s10, s16
	b	LBB0_20
LBB0_16:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	stp	s17, s16, [sp, #8]              ; 8-byte Folded Spill
	stp	s6, s7, [sp]                    ; 8-byte Folded Spill
	bl	_FIXME
	ldp	s6, s7, [sp]                    ; 8-byte Folded Reload
	ldp	s17, s16, [sp, #8]              ; 8-byte Folded Reload
	b	LBB0_18
LBB0_17:
	mov	x24, x22
	fmov	s14, s13
	fmov	s11, s8
	fmov	s15, s6
LBB0_18:
	cbz	x21, LBB0_21
LBB0_19:
	fmov	s0, s14
	fmov	s1, s13
	fmov	s2, s12
	fmov	s4, s16
	fmov	s3, s11
	fmov	s11, s15
	fmov	s5, s8
	fmov	s8, s6
	fmov	s6, s9
	fmov	s9, s7
	fmov	s7, s10
	fmov	s10, s17
LBB0_20:
	str	s10, [x19]
	str	s7, [x19, #4]
	str	s9, [x19, #8]
	str	s6, [x19, #12]
	str	s8, [x19, #16]
	str	s5, [x19, #20]
	str	s11, [x19, #24]
	str	s3, [x19, #28]
	str	s4, [x19, #32]
	str	s2, [x19, #36]
	str	s1, [x19, #40]
	str	s0, [x19, #44]
	stp	w22, w24, [x19, #48]
	str	w23, [x19, #56]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_21:
	ldr	w8, [x25]
	bic	w8, w20, w8
	cmp	w8, #129
	b.ne	LBB0_23
; %bb.22:
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	movi	d2, #0000000000000000
	movi	d4, #0000000000000000
	fmov	s3, s11
	fmov	s11, #1.00000000
	fmov	s5, s8
	movi	d8, #0000000000000000
	fmov	s6, s9
	movi	d9, #0000000000000000
	b	LBB0_24
LBB0_23:
	fmov	s0, s14
	fmov	s1, s13
	fmov	s2, s12
	fmov	s3, s11
	fmov	s11, #1.00000000
	fmov	s5, s8
	movi	d8, #0000000000000000
	fmov	s6, s9
	movi	d9, #0000000000000000
	fmov	s4, s16
LBB0_24:
	fmov	s7, s10
	movi	d10, #0000000000000000
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_18-LBB0_14)>>2
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_17-LBB0_14)>>2
	.byte	(LBB0_18-LBB0_14)>>2
	.byte	(LBB0_18-LBB0_14)>>2
                                        ; -- End function
	.comm	_WINED3D_TTFF_DISABLE,4,2       ; @WINED3D_TTFF_DISABLE
	.comm	_WINED3D_TTFF_COUNT1,4,2        ; @WINED3D_TTFF_COUNT1
	.comm	_WINED3D_TTFF_PROJECTED,4,2     ; @WINED3D_TTFF_PROJECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid texture transform flags: WINED3D_TTFF_COUNT1 | WINED3D_TTFF_PROJECTED.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected fixed function texture coord input\n"

	.no_dead_strip	_compute_texture_matrix
.subsections_via_symbols
