	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3d_device7_GetTextureStageState
_d3d_device7_GetTextureStageState:      ## @d3d_device7_GetTextureStageState
	.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	%rcx, %r14
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_impl_from_IDirect3DDevice7
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_TRACE
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	_D3DTSS_TEXTURETRANSFORMFLAGS@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jae	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	callq	_WARN
	movq	_DD_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_1:
	movq	_DDERR_INVALIDPARAMS@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_4:
	movq	_tss_lookup@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_wined3d_mutex_lock
	movq	%r13, %rax
	shlq	$4, %rax
	cmpq	$0, 8(%rbx,%rax)
	movl	(%r12), %edi
	je	LBB0_22
## %bb.5:
	movl	4(%rbx,%rax), %edx
	movl	%r15d, %esi
	callq	_wined3d_device_get_sampler_state
	movl	%eax, (%r14)
	cmpq	$135, %r13
	je	LBB0_14
## %bb.6:
	cmpq	$134, %r13
	jne	LBB0_24
## %bb.7:
	cmpl	$128, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$130, %eax
	je	LBB0_12
## %bb.9:
	cmpl	$129, %eax
	je	LBB0_10
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_ERR
LBB0_10:
	movq	_D3DTFP_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_22:
	movl	(%rbx,%rax), %edx
	movl	%r15d, %esi
	callq	_wined3d_device_get_texture_stage_state
LBB0_23:
	movl	%eax, (%r14)
LBB0_24:
	xorl	%eax, %eax
	callq	_wined3d_mutex_unlock
	movq	_D3D_OK@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%eax, %ecx
	addl	$-128, %ecx
	cmpl	$5, %ecx
	ja	LBB0_20
## %bb.15:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_16:
	movq	_D3DTFG_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_11:
	movq	_D3DTFP_POINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_12:
	movq	_D3DTFP_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_20:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_ERR
LBB0_21:
	movq	_D3DTFG_POINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_19:
	movq	_D3DTFG_GAUSSIANCUBIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_18:
	movq	_D3DTFG_FLATCUBIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_17:
	movq	_D3DTFG_ANISOTROPIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_21
	.long	L0_0_set_20
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_18
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iface %p, stage %u, state %#x, value %p.\n"

	.comm	_DDERR_INVALIDPARAMS,4,2        ## @DDERR_INVALIDPARAMS
	.comm	_D3DTSS_TEXTURETRANSFORMFLAGS,8,3 ## @D3DTSS_TEXTURETRANSFORMFLAGS
L_.str.1:                               ## @.str.1
	.asciz	"Invalid state %#x passed.\n"

	.comm	_DD_OK,4,2                      ## @DD_OK
	.comm	_tss_lookup,8,3                 ## @tss_lookup
	.comm	_D3DTFP_NONE,4,2                ## @D3DTFP_NONE
	.comm	_D3DTFP_POINT,4,2               ## @D3DTFP_POINT
	.comm	_D3DTFP_LINEAR,4,2              ## @D3DTFP_LINEAR
L_.str.2:                               ## @.str.2
	.asciz	"Unexpected mipfilter value %#x.\n"

	.comm	_D3DTFG_POINT,4,2               ## @D3DTFG_POINT
	.comm	_D3DTFG_LINEAR,4,2              ## @D3DTFG_LINEAR
	.comm	_D3DTFG_ANISOTROPIC,4,2         ## @D3DTFG_ANISOTROPIC
	.comm	_D3DTFG_FLATCUBIC,4,2           ## @D3DTFG_FLATCUBIC
	.comm	_D3DTFG_GAUSSIANCUBIC,4,2       ## @D3DTFG_GAUSSIANCUBIC
L_.str.3:                               ## @.str.3
	.asciz	"Unexpected wined3d mag filter value %#x.\n"

	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.no_dead_strip	_d3d_device7_GetTextureStageState
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d_device7_GetTextureStageState
_d3d_device7_GetTextureStageState:      ; @d3d_device7_GetTextureStageState
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	bl	_impl_from_IDirect3DDevice7
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_TRACE
	cbz	x19, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _D3DTSS_TEXTURETRANSFORMFLAGS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D3DTSS_TEXTURETRANSFORMFLAGS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x20
	b.hs	LBB0_4
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_WARN
Lloh7:
	adrp	x8, _DD_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DD_OK@GOTPAGEOFF]
	b	LBB0_15
LBB0_3:
Lloh9:
	adrp	x8, _DDERR_INVALIDPARAMS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DDERR_INVALIDPARAMS@GOTPAGEOFF]
	b	LBB0_15
LBB0_4:
Lloh11:
	adrp	x8, _tss_lookup@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tss_lookup@GOTPAGEOFF]
Lloh13:
	ldr	x23, [x8]
	bl	_wined3d_mutex_lock
	add	x8, x23, x20, lsl #4
	ldr	x9, [x8, #8]
	ldr	w0, [x22]
	cbz	x9, LBB0_12
; %bb.5:
	ldr	w2, [x8, #4]
	mov	x1, x21
	bl	_wined3d_device_get_sampler_state
	mov	x1, x0
	str	w0, [x19]
	cmp	x20, #135
	b.eq	LBB0_16
; %bb.6:
	cmp	x20, #134
	b.ne	LBB0_14
; %bb.7:
	cmp	w1, #128
	b.eq	LBB0_19
; %bb.8:
	cmp	w1, #130
	b.eq	LBB0_20
; %bb.9:
	cmp	w1, #129
	b.eq	LBB0_11
; %bb.10:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
LBB0_11:
Lloh16:
	adrp	x8, _D3DTFP_NONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _D3DTFP_NONE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_12:
	lsl	x8, x20, #4
	ldr	w2, [x23, x8]
	mov	x1, x21
	bl	_wined3d_device_get_texture_stage_state
LBB0_13:
	str	w0, [x19]
LBB0_14:
	bl	_wined3d_mutex_unlock
Lloh19:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	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_16:
	sub	w8, w1, #128
	cmp	w8, #5
	b.hi	LBB0_21
; %bb.17:
Lloh21:
	adrp	x9, lJTI0_0@PAGE
Lloh22:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_18
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_18:
Lloh23:
	adrp	x8, _D3DTFG_LINEAR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _D3DTFG_LINEAR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_19:
Lloh26:
	adrp	x8, _D3DTFP_POINT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _D3DTFP_POINT@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_20:
Lloh29:
	adrp	x8, _D3DTFP_LINEAR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _D3DTFP_LINEAR@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_21:
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
LBB0_22:
Lloh34:
	adrp	x8, _D3DTFG_POINT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _D3DTFG_POINT@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_23:
Lloh37:
	adrp	x8, _D3DTFG_GAUSSIANCUBIC@GOTPAGE
Lloh38:
	ldr	x8, [x8, _D3DTFG_GAUSSIANCUBIC@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_24:
Lloh40:
	adrp	x8, _D3DTFG_FLATCUBIC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _D3DTFG_FLATCUBIC@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_25:
Lloh43:
	adrp	x8, _D3DTFG_ANISOTROPIC@GOTPAGE
Lloh44:
	ldr	x8, [x8, _D3DTFG_ANISOTROPIC@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_22-LBB0_18)>>2
	.byte	(LBB0_21-LBB0_18)>>2
	.byte	(LBB0_18-LBB0_18)>>2
	.byte	(LBB0_23-LBB0_18)>>2
	.byte	(LBB0_24-LBB0_18)>>2
	.byte	(LBB0_25-LBB0_18)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iface %p, stage %u, state %#x, value %p.\n"

	.comm	_DDERR_INVALIDPARAMS,4,2        ; @DDERR_INVALIDPARAMS
	.comm	_D3DTSS_TEXTURETRANSFORMFLAGS,8,3 ; @D3DTSS_TEXTURETRANSFORMFLAGS
l_.str.1:                               ; @.str.1
	.asciz	"Invalid state %#x passed.\n"

	.comm	_DD_OK,4,2                      ; @DD_OK
	.comm	_tss_lookup,8,3                 ; @tss_lookup
	.comm	_D3DTFP_NONE,4,2                ; @D3DTFP_NONE
	.comm	_D3DTFP_POINT,4,2               ; @D3DTFP_POINT
	.comm	_D3DTFP_LINEAR,4,2              ; @D3DTFP_LINEAR
l_.str.2:                               ; @.str.2
	.asciz	"Unexpected mipfilter value %#x.\n"

	.comm	_D3DTFG_POINT,4,2               ; @D3DTFG_POINT
	.comm	_D3DTFG_LINEAR,4,2              ; @D3DTFG_LINEAR
	.comm	_D3DTFG_ANISOTROPIC,4,2         ; @D3DTFG_ANISOTROPIC
	.comm	_D3DTFG_FLATCUBIC,4,2           ; @D3DTFG_FLATCUBIC
	.comm	_D3DTFG_GAUSSIANCUBIC,4,2       ; @D3DTFG_GAUSSIANCUBIC
l_.str.3:                               ; @.str.3
	.asciz	"Unexpected wined3d mag filter value %#x.\n"

	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.no_dead_strip	_d3d_device7_GetTextureStageState
.subsections_via_symbols
