	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pshader_hw_cnd
_pshader_hw_cnd:                        ## @pshader_hw_cnd
	.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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	movq	24(%rdi), %rax
	movq	8(%rax), %r15
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	callq	_WINED3D_SHADER_VERSION
	movl	%eax, %r12d
	leaq	-112(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_shader_arb_get_dst_param
	movq	(%rbx), %rsi
	addq	$4, %rsi
	leaq	-222(%rbp), %r14
	movq	%rbx, %rdi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_shader_arb_get_src_param
	movl	$1, %edi
	movl	$3, %esi
	callq	_WINED3D_SHADER_VERSION
	cmpl	%eax, %r12d
	jg	LBB0_4
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.2:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_WINED3DSP_WRITEMASK_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_4:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-273(%rbp), %rsi
	callq	_negate_modifiers
	movl	%eax, -280(%rbp)
	leaq	-280(%rbp), %rsi
	leaq	-272(%rbp), %r13
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_shader_arb_get_src_param
	movq	(%rbx), %rsi
	addq	$8, %rsi
	leaq	-172(%rbp), %r12
	movq	%rbx, %rdi
	movl	$2, %edx
	movq	%r12, %rcx
	callq	_shader_arb_get_src_param
	movsbl	-273(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_shader_addline
	movq	%rbx, %rdi
	callq	_shader_arb_get_modifier
	movsbl	%al, %edx
	leaq	L_.str.2(%rip), %rsi
	leaq	-112(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %r8
	movq	%r12, %r9
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_shader_arb_get_modifier
	movsbl	%al, %edx
	leaq	L_.str(%rip), %rsi
	leaq	-112(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_shader_addline
	jmp	LBB0_5
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3DSP_WRITEMASK_3,8,3      ## @WINED3DSP_WRITEMASK_3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MOV%s %s, %s;\n"

L_.str.1:                               ## @.str.1
	.asciz	"ADD TA, %c%s, coefdiv.x;\n"

L_.str.2:                               ## @.str.2
	.asciz	"CMP%s %s, TA, %s, %s;\n"

	.no_dead_strip	_pshader_hw_cnd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pshader_hw_cnd
_pshader_hw_cnd:                        ; @pshader_hw_cnd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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	x20, 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	x21, [x0, #8]
	ldr	x8, [x0, #24]
	ldp	x8, x19, [x8]
	ldp	w0, w1, [x8]
	bl	_WINED3D_SHADER_VERSION
	mov	x22, x0
	sub	x2, x29, #106
	mov	x0, x20
	mov	x1, x21
	bl	_shader_arb_get_dst_param
	ldr	x8, [x20]
	add	x1, x8, #4
	add	x23, sp, #32
	add	x21, x23, #50
	mov	x0, x20
	mov	w2, #1
	mov	x3, x21
	bl	_shader_arb_get_src_param
	mov	w0, #1
	mov	w1, #3
	bl	_WINED3D_SHADER_VERSION
	cmp	w22, w0
	b.gt	LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _WINED3DSP_WRITEMASK_3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_3@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_3:
	ldr	x8, [x20]
	ldr	w0, [x8]
	add	x1, sp, #23
	bl	_negate_modifiers
	str	w0, [sp, #24]
	add	x1, sp, #24
	add	x3, sp, #32
	mov	x0, x20
	mov	w2, #0
	bl	_shader_arb_get_src_param
	ldr	x8, [x20]
	add	x1, x8, #8
	add	x22, x23, #100
	mov	x0, x20
	mov	w2, #2
	mov	x3, x22
	bl	_shader_arb_get_src_param
	ldrsb	w2, [sp, #23]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #32
	mov	x0, x19
	bl	_shader_addline
	mov	x0, x20
	bl	_shader_arb_get_modifier
	stp	x21, x22, [sp]
	sxtb	w2, w0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	sub	x3, x29, #106
	mov	x0, x19
	bl	_shader_addline
	ldur	x8, [x29, #-56]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_6:
	mov	x0, x20
	bl	_shader_arb_get_modifier
	str	x21, [sp]
	sxtb	w2, w0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3DSP_WRITEMASK_3,8,3      ; @WINED3DSP_WRITEMASK_3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MOV%s %s, %s;\n"

l_.str.1:                               ; @.str.1
	.asciz	"ADD TA, %c%s, coefdiv.x;\n"

l_.str.2:                               ; @.str.2
	.asciz	"CMP%s %s, TA, %s, %s;\n"

	.no_dead_strip	_pshader_hw_cnd
.subsections_via_symbols
