	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pshader_hw_texkill
_pshader_hw_texkill:                    ## @pshader_hw_texkill
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rax
	movq	8(%rdi), %r12
	movq	8(%rax), %r14
	leaq	-80(%rbp), %r15
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_shader_arb_get_dst_param
	movq	(%rbx), %rax
	movq	(%rax), %rax
	cmpl	$2, (%rax)
	jl	LBB0_4
## %bb.1:
	leaq	8(%r12), %rsi
	leaq	-84(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_shader_arb_get_register_name
	movl	(%r12), %eax
	movq	_WINED3DSP_WRITEMASK_ALL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	$48, %edx
	movl	$120, %ecx
	cmovel	%edx, %ecx
	movq	_WINED3DSP_WRITEMASK_1@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	movl	$121, %r8d
	cmovel	%edx, %r8d
	movq	_WINED3DSP_WRITEMASK_2@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	movl	$122, %r9d
	cmovel	%edx, %r9d
	movq	_WINED3DSP_WRITEMASK_3@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	movl	$119, %eax
	cmovel	%edx, %eax
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str(%rip), %r15
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
	jmp	LBB0_8
LBB0_4:
	cmpl	$3, 4(%rax)
	jg	LBB0_6
## %bb.5:
	movq	8(%r12), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	leaq	-80(%rbp), %rdi
	callq	_sprintf
	jmp	LBB0_7
LBB0_6:
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_shader_arb_get_dst_param
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TA"

	.comm	_WINED3DSP_WRITEMASK_ALL,4,2    ## @WINED3DSP_WRITEMASK_ALL
	.comm	_WINED3DSP_WRITEMASK_0,4,2      ## @WINED3DSP_WRITEMASK_0
	.comm	_WINED3DSP_WRITEMASK_1,4,2      ## @WINED3DSP_WRITEMASK_1
	.comm	_WINED3DSP_WRITEMASK_2,4,2      ## @WINED3DSP_WRITEMASK_2
	.comm	_WINED3DSP_WRITEMASK_3,4,2      ## @WINED3DSP_WRITEMASK_3
L_.str.1:                               ## @.str.1
	.asciz	"SWZ TA, %s, %c, %c, %c, %c;\n"

L_.str.2:                               ## @.str.2
	.asciz	"KIL %s;\n"

L_.str.3:                               ## @.str.3
	.asciz	"fragment.texcoord[%u]"

L_.str.4:                               ## @.str.4
	.asciz	"SWZ TA, %s, x, y, z, 1;\n"

L_.str.5:                               ## @.str.5
	.asciz	"KIL TA;\n"

	.no_dead_strip	_pshader_hw_texkill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pshader_hw_texkill
_pshader_hw_texkill:                    ; @pshader_hw_texkill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldp	x8, x20, [x0]
	ldr	x19, [x8, #8]
	add	x2, sp, #48
	mov	x1, x20
	bl	_shader_arb_get_dst_param
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_4
; %bb.1:
	add	x22, sp, #48
	add	x1, x20, #8
	add	x2, sp, #48
	add	x3, sp, #44
	mov	x0, x21
	bl	_shader_arb_get_register_name
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _WINED3DSP_WRITEMASK_ALL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
Lloh8:
	adrp	x10, _WINED3DSP_WRITEMASK_1@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WINED3DSP_WRITEMASK_1@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _WINED3DSP_WRITEMASK_2@GOTPAGE
Lloh13:
	ldr	x11, [x11, _WINED3DSP_WRITEMASK_2@GOTPAGEOFF]
Lloh14:
	adrp	x12, _WINED3DSP_WRITEMASK_3@GOTPAGE
Lloh15:
	ldr	x12, [x12, _WINED3DSP_WRITEMASK_3@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
Lloh17:
	ldr	w12, [x12]
	tst	w12, w8
	mov	w12, #119
	mov	w13, #48
	csel	x12, x13, x12, eq
	tst	w11, w8
	mov	w11, #122
	csel	x11, x13, x11, eq
	tst	w10, w8
	mov	w10, #121
	csel	x10, x13, x10, eq
	stp	x11, x12, [sp, #24]
	tst	w9, w8
	mov	w8, #120
	csel	x8, x13, x8, eq
	stp	x8, x10, [sp, #8]
	str	x22, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
Lloh20:
	adrp	x22, l_.str@PAGE
Lloh21:
	add	x22, x22, l_.str@PAGEOFF
LBB0_3:
	str	x22, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_4:
	ldr	w8, [x8, #4]
	cmp	w8, #3
	b.gt	LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #48
	bl	_sprintf
	b	LBB0_7
LBB0_6:
	add	x2, sp, #48
	mov	x0, x21
	mov	x1, x20
	bl	_shader_arb_get_dst_param
LBB0_7:
	add	x8, sp, #48
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_shader_addline
	ldur	x8, [x29, #-40]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TA"

	.comm	_WINED3DSP_WRITEMASK_ALL,4,2    ; @WINED3DSP_WRITEMASK_ALL
	.comm	_WINED3DSP_WRITEMASK_0,4,2      ; @WINED3DSP_WRITEMASK_0
	.comm	_WINED3DSP_WRITEMASK_1,4,2      ; @WINED3DSP_WRITEMASK_1
	.comm	_WINED3DSP_WRITEMASK_2,4,2      ; @WINED3DSP_WRITEMASK_2
	.comm	_WINED3DSP_WRITEMASK_3,4,2      ; @WINED3DSP_WRITEMASK_3
l_.str.1:                               ; @.str.1
	.asciz	"SWZ TA, %s, %c, %c, %c, %c;\n"

l_.str.2:                               ; @.str.2
	.asciz	"KIL %s;\n"

l_.str.3:                               ; @.str.3
	.asciz	"fragment.texcoord[%u]"

l_.str.4:                               ; @.str.4
	.asciz	"SWZ TA, %s, x, y, z, 1;\n"

l_.str.5:                               ; @.str.5
	.asciz	"KIL TA;\n"

	.no_dead_strip	_pshader_hw_texkill
.subsections_via_symbols
