	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_generate_alpha_test
_shader_glsl_generate_alpha_test:       ## @shader_glsl_generate_alpha_test
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_needs_legacy_glsl_syntax
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_WINED3D_CMP_ALWAYS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_1
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_WINED3D_CMP_NEVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	je	LBB0_3
## %bb.2:
	subl	%eax, %ebx
	leaq	_reltable.shader_glsl_generate_alpha_test(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_3:
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_shader_addline                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gl_FragData[0]"

L_.str.1:                               ## @.str.1
	.asciz	"ps_out0"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.shader_glsl_generate_alpha_test
_reltable.shader_glsl_generate_alpha_test:
	.long	L_.str.2-_reltable.shader_glsl_generate_alpha_test
	.long	L_.str.3-_reltable.shader_glsl_generate_alpha_test
	.long	L_.str.4-_reltable.shader_glsl_generate_alpha_test
	.long	L_.str.5-_reltable.shader_glsl_generate_alpha_test
	.long	L_.str.6-_reltable.shader_glsl_generate_alpha_test
	.long	L_.str.7-_reltable.shader_glsl_generate_alpha_test
	.long	L_.str.8-_reltable.shader_glsl_generate_alpha_test
	.long	L_.str.2-_reltable.shader_glsl_generate_alpha_test

	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"<"

L_.str.4:                               ## @.str.4
	.asciz	"=="

L_.str.5:                               ## @.str.5
	.asciz	"<="

L_.str.6:                               ## @.str.6
	.asciz	">"

L_.str.7:                               ## @.str.7
	.asciz	"!="

L_.str.8:                               ## @.str.8
	.asciz	">="

	.comm	_WINED3D_CMP_ALWAYS,4,2         ## @WINED3D_CMP_ALWAYS
	.comm	_WINED3D_CMP_NEVER,4,2          ## @WINED3D_CMP_NEVER
L_.str.9:                               ## @.str.9
	.asciz	"if (!(%s.a %s alpha_test_ref))\n"

L_.str.10:                              ## @.str.10
	.asciz	"    discard;\n"

	.no_dead_strip	_shader_glsl_generate_alpha_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_generate_alpha_test
_shader_glsl_generate_alpha_test:       ; @shader_glsl_generate_alpha_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x0
	mov	x0, x1
	bl	_needs_legacy_glsl_syntax
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
Lloh4:
	adrp	x9, _WINED3D_CMP_ALWAYS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WINED3D_CMP_ALWAYS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
Lloh7:
	adrp	x9, _WINED3D_CMP_NEVER@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WINED3D_CMP_NEVER@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, w20
	b.eq	LBB0_4
; %bb.3:
	sub	w9, w20, w9
Lloh10:
	adrp	x10, _shader_glsl_generate_alpha_test.comparison_operator@PAGE
Lloh11:
	add	x10, x10, _shader_glsl_generate_alpha_test.comparison_operator@PAGEOFF
	ldr	x9, [x10, w9, uxtw #3]
	stp	x8, x9, [sp]
Lloh12:
	adrp	x1, l_.str.9@PAGE
Lloh13:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
LBB0_4:
Lloh14:
	adrp	x1, l_.str.10@PAGE
Lloh15:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_shader_addline
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gl_FragData[0]"

l_.str.1:                               ; @.str.1
	.asciz	"ps_out0"

	.section	__DATA,__const
	.p2align	3                               ; @shader_glsl_generate_alpha_test.comparison_operator
_shader_glsl_generate_alpha_test.comparison_operator:
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7
	.quad	l_.str.8
	.quad	l_.str.2

	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"<"

l_.str.4:                               ; @.str.4
	.asciz	"=="

l_.str.5:                               ; @.str.5
	.asciz	"<="

l_.str.6:                               ; @.str.6
	.asciz	">"

l_.str.7:                               ; @.str.7
	.asciz	"!="

l_.str.8:                               ; @.str.8
	.asciz	">="

	.comm	_WINED3D_CMP_ALWAYS,4,2         ; @WINED3D_CMP_ALWAYS
	.comm	_WINED3D_CMP_NEVER,4,2          ; @WINED3D_CMP_NEVER
l_.str.9:                               ; @.str.9
	.asciz	"if (!(%s.a %s alpha_test_ref))\n"

l_.str.10:                              ; @.str.10
	.asciz	"    discard;\n"

	.no_dead_strip	_shader_glsl_generate_alpha_test
.subsections_via_symbols
