	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_hw_sample
_shader_hw_sample:                      ## @shader_hw_sample
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r13d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	16(%rax), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rdx
	movl	(%rdx,%rsi,4), %r15d
	movq	24(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %edi
	callq	_shader_is_pshader_version
	movq	_MAX_FRAGMENT_SAMPLERS@GOTPCREL(%rip), %rdx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rdx), %r12
	jmp	LBB0_3
LBB0_2:
	xorl	%r12d, %r12d
LBB0_3:
	addq	%rbx, %r12
	leal	-128(%r15), %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmpq	*%rax
LBB0_5:
	leaq	L_.str.5(%rip), %rbx
	jmp	LBB0_21
LBB0_6:
	leaq	L_.str.6(%rip), %rdi
	movq	%rdx, %rbx
	movl	%r15d, %esi
	callq	_ERR
	movq	%rbx, %rdx
	leaq	L_.str.7(%rip), %rbx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_7:
	leaq	L_.str.4(%rip), %rbx
	jmp	LBB0_21
LBB0_8:
	movq	8(%r14), %rax
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_12
## %bb.9:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	btl	%r12d, %ecx
	jae	LBB0_12
## %bb.10:
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	_ARB_TEXTURE_RECTANGLE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	$0, (%rcx,%rdx,4)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.2(%rip), %rbx
LBB0_13:
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_shader_is_pshader_version
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %eax
	btl	%r12d, %eax
	jae	LBB0_20
## %bb.15:
	testl	%r13d, %r13d
	je	LBB0_19
## %bb.16:
	leaq	L_.str.3(%rip), %rdi
	callq	_FIXME
	jmp	LBB0_20
LBB0_19:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
LBB0_20:
	movq	_MAX_FRAGMENT_SAMPLERS@GOTPCREL(%rip), %rdx
LBB0_21:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	_WINED3DSPDM_SATURATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	leaq	L_.str.7(%rip), %rcx
	leaq	L_.str.8(%rip), %r14
	cmoveq	%rcx, %r14
	movq	%r12, %rcx
	subq	(%rdx), %rcx
	jb	LBB0_23
## %bb.22:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rcx,8), %r12
LBB0_23:
	movq	%r15, %rbx
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_25
## %bb.24:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	8(%rcx), %rcx
	movl	(%rcx,%r12,4), %edi
	movl	4(%rax), %esi
	callq	_calc_color_correction
	movq	%rax, -120(%rbp)
	movq	%rdx, -112(%rbp)
	leaq	L_.str.9(%rip), %r15
	orq	%rax, %rdx
	cmoveq	%rbx, %r15
LBB0_25:
	movq	_TEX_DERIV@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_33
## %bb.26:
	movq	_TEX_PROJ@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_28
## %bb.27:
	leaq	L_.str.10(%rip), %rdi
	callq	_FIXME
LBB0_28:
	movq	16(%rbp), %rbx
	movq	_TEX_BIAS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_30
## %bb.29:
	leaq	L_.str.11(%rip), %rdi
	callq	_FIXME
LBB0_30:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rsp)
	movq	%r12, 8(%rsp)
	movq	%rbx, (%rsp)
	leaq	L_.str.12(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_shader_addline
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_32
LBB0_31:
	movq	_WINED3D_SHADER_TYPE_PIXEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_ARB_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_arb_get_helper_value
	movl	%eax, %r13d
	movl	(%r14), %edi
	movq	_ARB_TWO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_arb_get_helper_value
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	8(%rcx), %rcx
	movl	(%rcx,%r12,4), %r9d
	movups	-120(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_gen_color_correction
LBB0_32:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movq	_TEX_LOD@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_39
## %bb.34:
	movq	_TEX_PROJ@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_36
## %bb.35:
	leaq	L_.str.13(%rip), %rdi
	callq	_FIXME
LBB0_36:
	movq	_TEX_BIAS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_38
## %bb.37:
	leaq	L_.str.14(%rip), %rdi
	callq	_FIXME
LBB0_38:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_45
LBB0_39:
	movq	_TEX_BIAS@GOTPCREL(%rip), %rcx
	movq	_TEX_PROJ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r13d, (%rcx)
	je	LBB0_43
## %bb.40:
	testl	%r13d, %eax
	je	LBB0_42
## %bb.41:
	leaq	L_.str.16(%rip), %rdi
	callq	_FIXME
LBB0_42:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	leaq	L_.str.17(%rip), %rsi
	jmp	LBB0_45
LBB0_43:
	testl	%r13d, %eax
	je	LBB0_47
## %bb.44:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	leaq	L_.str.18(%rip), %rsi
LBB0_45:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%r12, %r9
LBB0_46:
	xorl	%eax, %eax
	callq	_shader_addline
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_31
	jmp	LBB0_32
LBB0_47:
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_49
## %bb.48:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	8(%rax), %rax
	movzbl	(%rax,%r12), %eax
	movl	%eax, %edx
	shrl	%edx
	testb	$1, %al
	leaq	L_.str.21(%rip), %rax
	leaq	L_.str.20(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.19(%rip), %rsi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.22(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%r12, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_46
LBB0_49:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	leaq	L_.str.23(%rip), %rsi
	jmp	LBB0_45
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_21
	.end_data_region
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_MAX_FRAGMENT_SAMPLERS,8,3      ## @MAX_FRAGMENT_SAMPLERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1D"

	.comm	_ARB_TEXTURE_RECTANGLE,8,3      ## @ARB_TEXTURE_RECTANGLE
L_.str.1:                               ## @.str.1
	.asciz	"RECT"

L_.str.2:                               ## @.str.2
	.asciz	"2D"

L_.str.3:                               ## @.str.3
	.asciz	"Only ordinary sampling from NP2 textures is supported.\n"

	.comm	_TRUE,8,3                       ## @TRUE
L_.str.4:                               ## @.str.4
	.asciz	"3D"

L_.str.5:                               ## @.str.5
	.asciz	"CUBE"

L_.str.6:                               ## @.str.6
	.asciz	"Unexpected resource type %#x.\n"

L_.str.7:                               ## @.str.7
	.space	1

	.comm	_WINED3DSPDM_SATURATE,4,2       ## @WINED3DSPDM_SATURATE
L_.str.8:                               ## @.str.8
	.asciz	"_SAT"

L_.str.9:                               ## @.str.9
	.asciz	"TA"

	.comm	_TEX_DERIV,4,2                  ## @TEX_DERIV
	.comm	_TEX_PROJ,4,2                   ## @TEX_PROJ
L_.str.10:                              ## @.str.10
	.asciz	"Projected texture sampling with custom derivatives\n"

	.comm	_TEX_BIAS,4,2                   ## @TEX_BIAS
L_.str.11:                              ## @.str.11
	.asciz	"Biased texture sampling with custom derivatives\n"

L_.str.12:                              ## @.str.12
	.asciz	"TXD%s %s, %s, %s, %s, texture[%u], %s;\n"

	.comm	_TEX_LOD,4,2                    ## @TEX_LOD
L_.str.13:                              ## @.str.13
	.asciz	"Projected texture sampling with explicit lod\n"

L_.str.14:                              ## @.str.14
	.asciz	"Biased texture sampling with explicit lod\n"

L_.str.15:                              ## @.str.15
	.asciz	"TXL%s %s, %s, texture[%u], %s;\n"

L_.str.16:                              ## @.str.16
	.asciz	"Biased and Projected texture sampling\n"

L_.str.17:                              ## @.str.17
	.asciz	"TXB%s %s, %s, texture[%u], %s;\n"

L_.str.18:                              ## @.str.18
	.asciz	"TXP%s %s, %s, texture[%u], %s;\n"

L_.str.19:                              ## @.str.19
	.asciz	"MUL TA, np2fixup[%u].%s, %s;\n"

L_.str.20:                              ## @.str.20
	.asciz	"zwxy"

L_.str.21:                              ## @.str.21
	.asciz	"xyzw"

L_.str.22:                              ## @.str.22
	.asciz	"TEX%s %s, TA, texture[%u], %s;\n"

L_.str.23:                              ## @.str.23
	.asciz	"TEX%s %s, %s, texture[%u], %s;\n"

	.comm	_WINED3D_SHADER_TYPE_PIXEL,4,2  ## @WINED3D_SHADER_TYPE_PIXEL
	.comm	_ARB_ONE,4,2                    ## @ARB_ONE
	.comm	_ARB_TWO,4,2                    ## @ARB_TWO
	.no_dead_strip	_shader_hw_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_hw_sample
_shader_hw_sample:                      ; @shader_hw_sample
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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 w27, -88
	.cfi_offset w28, -96
	stp	x6, x5, [sp, #64]               ; 16-byte Folded Spill
	mov	x23, x4
	str	x3, [sp, #80]                   ; 8-byte Folded Spill
	str	x2, [sp, #96]                   ; 8-byte Folded Spill
	mov	x28, x1
	mov	x24, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
	ldr	x10, [x9, #8]
	ldr	w25, [x10, x1, lsl #2]
Lloh0:
	adrp	x10, _FALSE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x27, [x10]
	ldp	x8, x10, [x8, #16]
	str	x10, [sp, #88]                  ; 8-byte Folded Spill
	stur	x8, [x29, #-88]                 ; 8-byte Folded Spill
	ldr	w0, [x9]
	bl	_shader_is_pshader_version
	mov	x21, x0
Lloh3:
	adrp	x20, _MAX_FRAGMENT_SAMPLERS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MAX_FRAGMENT_SAMPLERS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, #0
	csel	x8, x8, xzr, eq
	add	x22, x8, x28
	sub	w8, w25, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh5:
	adrp	x26, l_.str@PAGE
Lloh6:
	add	x26, x26, l_.str@PAGEOFF
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh9:
	adrp	x26, l_.str.5@PAGE
Lloh10:
	add	x26, x26, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_3:
Lloh11:
	adrp	x0, l_.str.6@PAGE
Lloh12:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x25
	bl	_ERR
Lloh13:
	adrp	x26, l_.str.7@PAGE
Lloh14:
	add	x26, x26, l_.str.7@PAGEOFF
	b	LBB0_15
LBB0_4:
Lloh15:
	adrp	x26, l_.str.4@PAGE
Lloh16:
	add	x26, x26, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_5:
	ldr	x8, [x24, #8]
	cbz	x21, LBB0_9
; %bb.6:
	ldur	x9, [x29, #-88]                 ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	w9, [x9]
	lsr	w9, w9, w22
	tbz	w9, #0, LBB0_9
; %bb.7:
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _ARB_TEXTURE_RECTANGLE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ARB_TEXTURE_RECTANGLE@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	ldr	w9, [x9, x10, lsl #2]
	cbz	w9, LBB0_9
; %bb.8:
Lloh20:
	adrp	x26, l_.str.1@PAGE
Lloh21:
	add	x26, x26, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x26, l_.str.2@PAGE
Lloh23:
	add	x26, x26, l_.str.2@PAGEOFF
LBB0_10:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_shader_is_pshader_version
	cbz	x0, LBB0_15
; %bb.11:
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	lsr	w8, w8, w22
	tbz	w8, #0, LBB0_15
; %bb.12:
	cbz	w23, LBB0_14
; %bb.13:
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_FIXME
	b	LBB0_15
LBB0_14:
Lloh26:
	adrp	x8, _TRUE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh28:
	ldr	x27, [x8]
LBB0_15:
	ldr	x8, [x24]
	ldr	w9, [x8]
Lloh29:
	adrp	x10, _WINED3DSPDM_SATURATE@GOTPAGE
Lloh30:
	ldr	x10, [x10, _WINED3DSPDM_SATURATE@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
Lloh32:
	adrp	x11, l_.str.8@PAGE
Lloh33:
	add	x11, x11, l_.str.8@PAGEOFF
Lloh34:
	adrp	x12, l_.str.7@PAGE
Lloh35:
	add	x12, x12, l_.str.7@PAGEOFF
	tst	w10, w9
	csel	x19, x12, x11, eq
	ldr	x9, [x20]
	subs	x9, x22, x9
	b.lo	LBB0_17
; %bb.16:
	ldur	x10, [x29, #-88]                ; 8-byte Folded Reload
	ldr	x10, [x10, #16]
	ldr	x10, [x10]
	ldr	x22, [x10, x9, lsl #3]
LBB0_17:
	cbz	x21, LBB0_20
; %bb.18:
	ldur	x9, [x29, #-88]                 ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	x9, [x9, #8]
	ldr	w0, [x9, x22, lsl #2]
	ldr	w1, [x8, #4]
	bl	_calc_color_correction
	orr	x8, x1, x0
	cbz	x8, LBB0_21
; %bb.19:
	mov	x25, x0
	mov	x24, x1
Lloh36:
	adrp	x28, l_.str.9@PAGE
Lloh37:
	add	x28, x28, l_.str.9@PAGEOFF
	b	LBB0_22
LBB0_20:
	ldr	x28, [sp, #96]                  ; 8-byte Folded Reload
                                        ; implicit-def: $x24
                                        ; implicit-def: $x25
	b	LBB0_22
LBB0_21:
	mov	x24, #0
	mov	x25, #0
	ldr	x28, [sp, #96]                  ; 8-byte Folded Reload
LBB0_22:
Lloh38:
	adrp	x8, _TEX_DERIV@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TEX_DERIV@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_28
; %bb.23:
Lloh41:
	adrp	x8, _TEX_PROJ@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TEX_PROJ@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_25
; %bb.24:
Lloh44:
	adrp	x0, l_.str.10@PAGE
Lloh45:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_FIXME
LBB0_25:
Lloh46:
	adrp	x8, _TEX_BIAS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _TEX_BIAS@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_27
; %bb.26:
Lloh49:
	adrp	x0, l_.str.11@PAGE
Lloh50:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_FIXME
LBB0_27:
	stp	x22, x26, [sp, #40]
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp, #24]
	ldp	x8, x23, [sp, #80]              ; 16-byte Folded Reload
	stp	x28, x8, [sp, #8]
Lloh51:
	adrp	x1, l_.str.12@PAGE
Lloh52:
	add	x1, x1, l_.str.12@PAGEOFF
	str	x19, [sp]
	b	LBB0_43
LBB0_28:
Lloh53:
	adrp	x8, _TEX_LOD@GOTPAGE
Lloh54:
	ldr	x8, [x8, _TEX_LOD@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_34
; %bb.29:
Lloh56:
	adrp	x8, _TEX_PROJ@GOTPAGE
Lloh57:
	ldr	x8, [x8, _TEX_PROJ@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_31
; %bb.30:
Lloh59:
	adrp	x0, l_.str.13@PAGE
Lloh60:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_FIXME
LBB0_31:
Lloh61:
	adrp	x8, _TEX_BIAS@GOTPAGE
Lloh62:
	ldr	x8, [x8, _TEX_BIAS@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_33
; %bb.32:
Lloh64:
	adrp	x0, l_.str.14@PAGE
Lloh65:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_FIXME
LBB0_33:
	stp	x22, x26, [sp, #24]
	ldp	x8, x23, [sp, #80]              ; 16-byte Folded Reload
	stp	x28, x8, [sp, #8]
	str	x19, [sp]
Lloh66:
	adrp	x1, l_.str.15@PAGE
Lloh67:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_43
LBB0_34:
Lloh68:
	adrp	x8, _TEX_BIAS@GOTPAGE
Lloh69:
	ldr	x8, [x8, _TEX_BIAS@GOTPAGEOFF]
Lloh70:
	ldr	w9, [x8]
Lloh71:
	adrp	x8, _TEX_PROJ@GOTPAGE
Lloh72:
	ldr	x8, [x8, _TEX_PROJ@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	and	w8, w8, w23
	tst	w9, w23
	b.eq	LBB0_38
; %bb.35:
	cbz	w8, LBB0_37
; %bb.36:
Lloh74:
	adrp	x0, l_.str.16@PAGE
Lloh75:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_FIXME
LBB0_37:
	stp	x22, x26, [sp, #24]
	ldp	x8, x23, [sp, #80]              ; 16-byte Folded Reload
	stp	x28, x8, [sp, #8]
	str	x19, [sp]
Lloh76:
	adrp	x1, l_.str.17@PAGE
Lloh77:
	add	x1, x1, l_.str.17@PAGEOFF
	b	LBB0_43
LBB0_38:
	cbz	w8, LBB0_40
; %bb.39:
	stp	x22, x26, [sp, #24]
	ldp	x8, x23, [sp, #80]              ; 16-byte Folded Reload
	stp	x28, x8, [sp, #8]
	str	x19, [sp]
Lloh78:
	adrp	x1, l_.str.18@PAGE
Lloh79:
	add	x1, x1, l_.str.18@PAGEOFF
	b	LBB0_43
LBB0_40:
	ldr	x23, [sp, #88]                  ; 8-byte Folded Reload
	cbz	x27, LBB0_42
; %bb.41:
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	ldrb	w8, [x8, x22]
	lsr	w9, w8, #1
Lloh80:
	adrp	x10, l_.str.20@PAGE
Lloh81:
	add	x10, x10, l_.str.20@PAGEOFF
Lloh82:
	adrp	x11, l_.str.21@PAGE
Lloh83:
	add	x11, x11, l_.str.21@PAGEOFF
	tst	w8, #0x1
	csel	x8, x11, x10, eq
	ldr	x10, [sp, #80]                  ; 8-byte Folded Reload
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh84:
	adrp	x1, l_.str.19@PAGE
Lloh85:
	add	x1, x1, l_.str.19@PAGEOFF
	mov	x0, x23
	bl	_shader_addline
	stp	x22, x26, [sp, #16]
	stp	x19, x28, [sp]
Lloh86:
	adrp	x1, l_.str.22@PAGE
Lloh87:
	add	x1, x1, l_.str.22@PAGEOFF
	b	LBB0_43
LBB0_42:
	stp	x22, x26, [sp, #24]
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	stp	x28, x8, [sp, #8]
	str	x19, [sp]
Lloh88:
	adrp	x1, l_.str.23@PAGE
Lloh89:
	add	x1, x1, l_.str.23@PAGEOFF
LBB0_43:
	mov	x0, x23
	bl	_shader_addline
	cbz	x21, LBB0_45
; %bb.44:
Lloh90:
	adrp	x20, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGE
Lloh91:
	ldr	x20, [x20, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh92:
	adrp	x8, _ARB_ONE@GOTPAGE
Lloh93:
	ldr	x8, [x8, _ARB_ONE@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
	bl	_arb_get_helper_value
	mov	x21, x0
	ldr	w0, [x20]
Lloh95:
	adrp	x8, _ARB_TWO@GOTPAGE
Lloh96:
	ldr	x8, [x8, _ARB_TWO@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x8]
	bl	_arb_get_helper_value
	mov	x4, x0
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w5, [x8, x22, lsl #2]
	mov	x0, x23
	ldr	x1, [sp, #96]                   ; 8-byte Folded Reload
	mov	x2, x28
	mov	x3, x21
	mov	x6, x25
	mov	x7, x24
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	b	_gen_color_correction
LBB0_45:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh90, Lloh91
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_MAX_FRAGMENT_SAMPLERS,8,3      ; @MAX_FRAGMENT_SAMPLERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1D"

	.comm	_ARB_TEXTURE_RECTANGLE,8,3      ; @ARB_TEXTURE_RECTANGLE
l_.str.1:                               ; @.str.1
	.asciz	"RECT"

l_.str.2:                               ; @.str.2
	.asciz	"2D"

l_.str.3:                               ; @.str.3
	.asciz	"Only ordinary sampling from NP2 textures is supported.\n"

	.comm	_TRUE,8,3                       ; @TRUE
l_.str.4:                               ; @.str.4
	.asciz	"3D"

l_.str.5:                               ; @.str.5
	.asciz	"CUBE"

l_.str.6:                               ; @.str.6
	.asciz	"Unexpected resource type %#x.\n"

l_.str.7:                               ; @.str.7
	.space	1

	.comm	_WINED3DSPDM_SATURATE,4,2       ; @WINED3DSPDM_SATURATE
l_.str.8:                               ; @.str.8
	.asciz	"_SAT"

l_.str.9:                               ; @.str.9
	.asciz	"TA"

	.comm	_TEX_DERIV,4,2                  ; @TEX_DERIV
	.comm	_TEX_PROJ,4,2                   ; @TEX_PROJ
l_.str.10:                              ; @.str.10
	.asciz	"Projected texture sampling with custom derivatives\n"

	.comm	_TEX_BIAS,4,2                   ; @TEX_BIAS
l_.str.11:                              ; @.str.11
	.asciz	"Biased texture sampling with custom derivatives\n"

l_.str.12:                              ; @.str.12
	.asciz	"TXD%s %s, %s, %s, %s, texture[%u], %s;\n"

	.comm	_TEX_LOD,4,2                    ; @TEX_LOD
l_.str.13:                              ; @.str.13
	.asciz	"Projected texture sampling with explicit lod\n"

l_.str.14:                              ; @.str.14
	.asciz	"Biased texture sampling with explicit lod\n"

l_.str.15:                              ; @.str.15
	.asciz	"TXL%s %s, %s, texture[%u], %s;\n"

l_.str.16:                              ; @.str.16
	.asciz	"Biased and Projected texture sampling\n"

l_.str.17:                              ; @.str.17
	.asciz	"TXB%s %s, %s, texture[%u], %s;\n"

l_.str.18:                              ; @.str.18
	.asciz	"TXP%s %s, %s, texture[%u], %s;\n"

l_.str.19:                              ; @.str.19
	.asciz	"MUL TA, np2fixup[%u].%s, %s;\n"

l_.str.20:                              ; @.str.20
	.asciz	"zwxy"

l_.str.21:                              ; @.str.21
	.asciz	"xyzw"

l_.str.22:                              ; @.str.22
	.asciz	"TEX%s %s, TA, texture[%u], %s;\n"

l_.str.23:                              ; @.str.23
	.asciz	"TEX%s %s, %s, texture[%u], %s;\n"

	.comm	_WINED3D_SHADER_TYPE_PIXEL,4,2  ; @WINED3D_SHADER_TYPE_PIXEL
	.comm	_ARB_ONE,4,2                    ; @ARB_ONE
	.comm	_ARB_TWO,4,2                    ; @ARB_TWO
	.no_dead_strip	_shader_hw_sample
.subsections_via_symbols
