	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pshader_hw_tex
_pshader_hw_tex:                        ## @pshader_hw_tex
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	24(%rdi), %rbx
	movq	8(%rax), %rcx
	movq	16(%rax), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movl	(%rcx), %edi
	movl	4(%rcx), %esi
	callq	_WINED3D_SHADER_VERSION
	movl	%eax, %r12d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	-96(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_shader_arb_get_dst_param
	movl	$2, %edi
	xorl	%esi, %esi
	callq	_WINED3D_SHADER_VERSION
	cmpl	%eax, %r12d
	jge	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	jmp	LBB0_3
LBB0_2:
	movq	16(%r15), %rax
	movq	24(%rax), %rax
LBB0_3:
	movl	(%rax), %r14d
	movl	$1, %edi
	movl	$4, %esi
	callq	_WINED3D_SHADER_VERSION
	cmpl	%eax, %r12d
	jge	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	leaq	-144(%rbp), %rdi
	movl	%r14d, %edx
	callq	_sprintf
	jmp	LBB0_10
LBB0_5:
	movq	16(%r15), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -160(%rbp)
	movq	-160(%rbp), %rax
	movq	_WINED3DSPSM_DW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_WINED3DSPSM_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -160(%rbp)
LBB0_7:
	movq	_WINED3DSPSM_DZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_WINED3DSPSM_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -160(%rbp)
LBB0_9:
	leaq	-160(%rbp), %rsi
	leaq	-144(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_shader_arb_get_src_param
LBB0_10:
	movl	$1, %edi
	movl	$4, %esi
	callq	_WINED3D_SHADER_VERSION
	cmpl	%eax, %r12d
	jge	LBB0_17
## %bb.11:
	movq	_MAX_TEXTURES@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	movl	$0, %eax
	cmpl	(%rcx), %r14d
	jge	LBB0_13
## %bb.12:
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	_WINED3D_PSARGS_TEXTRANSFORM_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%r14d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
LBB0_13:
	movq	_WINED3D_PSARGS_PROJECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_26
## %bb.14:
	movq	_TEX_PROJ@GOTPCREL(%rip), %rcx
	notl	%edx
	andl	%edx, %eax
	movq	_WINED3D_TTFF_COUNT3@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_16
## %bb.15:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_16:
	movl	(%rcx), %r12d
	jmp	LBB0_26
LBB0_17:
	movl	$2, %edi
	xorl	%esi, %esi
	callq	_WINED3D_SHADER_VERSION
	cmpl	%eax, %r12d
	jge	LBB0_22
## %bb.18:
	movq	16(%r15), %rax
	movl	(%rax), %eax
	movq	_WINED3DSPSM_DZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_21
LBB0_22:
	movl	(%r15), %eax
	movq	_WINED3DSI_TEXLD_PROJECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	andl	%eax, %r12d
	je	LBB0_24
## %bb.23:
	movq	_TEX_PROJ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_24:
	movq	_WINED3DSI_TEXLD_BIAS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_26
## %bb.25:
	movq	_TEX_BIAS@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_26
LBB0_20:
	movq	_WINED3DSPSM_DW@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_26
LBB0_21:
	movq	_TEX_PROJ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_26:
	testq	%r13, %r13
	je	LBB0_28
## %bb.27:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_shader_addline
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
LBB0_28:
	movq	$0, (%rsp)
	leaq	-96(%rbp), %rdx
	leaq	-144(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	callq	_shader_hw_sample
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fragment.texcoord[%u]"

	.comm	_WINED3DSPSM_DW,8,3             ## @WINED3DSPSM_DW
	.comm	_WINED3DSPSM_NONE,8,3           ## @WINED3DSPSM_NONE
	.comm	_WINED3DSPSM_DZ,8,3             ## @WINED3DSPSM_DZ
	.comm	_MAX_TEXTURES,4,2               ## @MAX_TEXTURES
	.comm	_WINED3D_PSARGS_TEXTRANSFORM_SHIFT,4,2 ## @WINED3D_PSARGS_TEXTRANSFORM_SHIFT
	.comm	_WINED3D_PSARGS_PROJECTED,4,2   ## @WINED3D_PSARGS_PROJECTED
	.comm	_TEX_PROJ,4,2                   ## @TEX_PROJ
	.comm	_WINED3D_TTFF_COUNT3,4,2        ## @WINED3D_TTFF_COUNT3
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_WINED3DSI_TEXLD_PROJECT,4,2    ## @WINED3DSI_TEXLD_PROJECT
	.comm	_WINED3DSI_TEXLD_BIAS,4,2       ## @WINED3DSI_TEXLD_BIAS
	.comm	_TEX_BIAS,4,2                   ## @TEX_BIAS
L_.str.1:                               ## @.str.1
	.asciz	"SWZ TA, %s, x, y, z, z;\n"

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

	.no_dead_strip	_pshader_hw_tex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pshader_hw_tex
_pshader_hw_tex:                        ; @pshader_hw_tex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x0, #8]
	ldr	x20, [x0, #24]
	ldp	x8, x23, [x8, #8]
	ldp	w0, w1, [x8]
	bl	_WINED3D_SHADER_VERSION
	mov	x21, x0
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	add	x2, sp, #64
	mov	x0, x19
	mov	x1, x20
	bl	_shader_arb_get_dst_param
	mov	w0, #2
	mov	w1, #0
	bl	_WINED3D_SHADER_VERSION
	cmp	w21, w0
	b.ge	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #24]
LBB0_3:
	ldr	w20, [x8]
	mov	w0, #1
	mov	w1, #4
	bl	_WINED3D_SHADER_VERSION
	cmp	w21, w0
	b.ge	LBB0_5
; %bb.4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	x2, x20
	bl	_sprintf
	b	LBB0_10
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x9, [sp]
Lloh8:
	adrp	x8, _WINED3DSPSM_DW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WINED3DSPSM_DW@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x8]
Lloh11:
	adrp	x8, _WINED3DSPSM_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WINED3DSPSM_NONE@GOTPAGEOFF]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:
	ldr	x9, [x8]
	str	x9, [sp]
LBB0_7:
Lloh13:
	adrp	x10, _WINED3DSPSM_DZ@GOTPAGE
Lloh14:
	ldr	x10, [x10, _WINED3DSPSM_DZ@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x8]
	str	x8, [sp]
LBB0_9:
	mov	x1, sp
	add	x3, sp, #24
	mov	x0, x19
	mov	w2, #0
	bl	_shader_arb_get_src_param
LBB0_10:
	mov	w0, #1
	mov	w1, #4
	bl	_WINED3D_SHADER_VERSION
	cmp	w21, w0
	b.ge	LBB0_13
; %bb.11:
Lloh16:
	adrp	x8, _MAX_TEXTURES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAX_TEXTURES@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_16
; %bb.12:
	ldr	x8, [x23]
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _WINED3D_PSARGS_TEXTRANSFORM_SHIFT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WINED3D_PSARGS_TEXTRANSFORM_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	mul	w9, w9, w20
	asr	w8, w8, w9
	b	LBB0_17
LBB0_13:
	mov	w0, #2
	mov	w1, #0
	bl	_WINED3D_SHADER_VERSION
	cmp	w21, w0
	b.ge	LBB0_19
; %bb.14:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _WINED3DSPSM_DZ@GOTPAGE
Lloh23:
	ldr	x9, [x9, _WINED3DSPSM_DZ@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.15:
Lloh25:
	adrp	x8, _TRUE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh27:
	ldr	x22, [x8]
Lloh28:
	adrp	x8, _TEX_PROJ@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TEX_PROJ@GOTPAGEOFF]
Lloh30:
	ldr	w21, [x8]
	cbnz	x22, LBB0_23
	b	LBB0_24
LBB0_16:
	mov	w8, #0
LBB0_17:
Lloh31:
	adrp	x9, _WINED3D_PSARGS_PROJECTED@GOTPAGE
Lloh32:
	ldr	x9, [x9, _WINED3D_PSARGS_PROJECTED@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.18:
Lloh34:
	adrp	x10, _TEX_PROJ@GOTPAGE
Lloh35:
	ldr	x10, [x10, _TEX_PROJ@GOTPAGEOFF]
Lloh36:
	ldr	w21, [x10]
	bic	w8, w8, w9
Lloh37:
	adrp	x9, _WINED3D_TTFF_COUNT3@GOTPAGE
Lloh38:
	ldr	x9, [x9, _WINED3D_TTFF_COUNT3@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	adrp	x10, _TRUE@GOTPAGE
Lloh41:
	ldr	x10, [x10, _TRUE@GOTPAGEOFF]
Lloh42:
	ldr	x10, [x10]
	cmp	w8, w9
	csel	x22, x10, x22, eq
	cbnz	x22, LBB0_23
	b	LBB0_24
LBB0_19:
	ldr	w8, [x19]
Lloh43:
	adrp	x9, _WINED3DSI_TEXLD_PROJECT@GOTPAGE
Lloh44:
	ldr	x9, [x9, _WINED3DSI_TEXLD_PROJECT@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
Lloh46:
	adrp	x10, _TEX_PROJ@GOTPAGE
Lloh47:
	ldr	x10, [x10, _TEX_PROJ@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w21, wzr, w10, eq
Lloh49:
	adrp	x9, _WINED3DSI_TEXLD_BIAS@GOTPAGE
Lloh50:
	ldr	x9, [x9, _WINED3DSI_TEXLD_BIAS@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.20:
Lloh52:
	adrp	x8, _TEX_BIAS@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TEX_BIAS@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	orr	w21, w8, w21
	cbnz	x22, LBB0_23
	b	LBB0_24
LBB0_21:
	mov	w21, #0
LBB0_22:
	cbz	x22, LBB0_24
LBB0_23:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh55:
	adrp	x1, l_.str.1@PAGE
Lloh56:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #24
	bl	_shader_addline
Lloh57:
	adrp	x1, l_.str.2@PAGE
Lloh58:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	bl	_strcpy
LBB0_24:
	add	x2, sp, #64
	add	x3, sp, #24
	mov	x0, x19
	mov	x1, x20
	mov	x4, x21
	mov	x5, #0
	mov	x6, #0
	bl	_shader_hw_sample
	ldur	x8, [x29, #-56]
Lloh59:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh60:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.25:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_26:
Lloh62:
	adrp	x9, _WINED3DSPSM_DW@GOTPAGE
Lloh63:
	ldr	x9, [x9, _WINED3DSPSM_DW@GOTPAGEOFF]
Lloh64:
	ldr	x9, [x9]
Lloh65:
	adrp	x10, _TEX_PROJ@GOTPAGE
Lloh66:
	ldr	x10, [x10, _TEX_PROJ@GOTPAGEOFF]
Lloh67:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w21, w10, wzr, eq
	cbnz	x22, LBB0_23
	b	LBB0_24
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fragment.texcoord[%u]"

	.comm	_WINED3DSPSM_DW,8,3             ; @WINED3DSPSM_DW
	.comm	_WINED3DSPSM_NONE,8,3           ; @WINED3DSPSM_NONE
	.comm	_WINED3DSPSM_DZ,8,3             ; @WINED3DSPSM_DZ
	.comm	_MAX_TEXTURES,4,2               ; @MAX_TEXTURES
	.comm	_WINED3D_PSARGS_TEXTRANSFORM_SHIFT,4,2 ; @WINED3D_PSARGS_TEXTRANSFORM_SHIFT
	.comm	_WINED3D_PSARGS_PROJECTED,4,2   ; @WINED3D_PSARGS_PROJECTED
	.comm	_TEX_PROJ,4,2                   ; @TEX_PROJ
	.comm	_WINED3D_TTFF_COUNT3,4,2        ; @WINED3D_TTFF_COUNT3
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_WINED3DSI_TEXLD_PROJECT,4,2    ; @WINED3DSI_TEXLD_PROJECT
	.comm	_WINED3DSI_TEXLD_BIAS,4,2       ; @WINED3DSI_TEXLD_BIAS
	.comm	_TEX_BIAS,4,2                   ; @TEX_BIAS
l_.str.1:                               ; @.str.1
	.asciz	"SWZ TA, %s, x, y, z, z;\n"

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

	.no_dead_strip	_pshader_hw_tex
.subsections_via_symbols
