	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function alpha_test_arbfp
LCPI0_0:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_alpha_test_arbfp:                      ## @alpha_test_arbfp
	.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, %ecx
	movq	%rsi, %rbx
	movq	%rdi, %rsi
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	callq	_TRACE
	movq	(%rbx), %rax
	movq	_WINED3D_RS_ALPHATESTENABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_5
## %bb.1:
	movq	_GL_ALPHA_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*16(%r14)
	leaq	L_.str.1(%rip), %rdi
	callq	_checkGLcall
	movq	(%rbx), %rax
	movq	_WINED3D_RS_ALPHAREF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_WINED3D_RS_ALPHAFUNC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_wined3d_gl_compare_func
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	cvtsi2ss	%rbx, %xmm0
	divss	LCPI0_0(%rip), %xmm0
	movl	%eax, %edi
	callq	*(%r14)
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	movq	_GL_ALPHA_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*8(%r14)
	leaq	L_.str.2(%rip), %rdi
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"context %p, state %p, state_id %#x.\n"

	.comm	_WINED3D_RS_ALPHATESTENABLE,8,3 ## @WINED3D_RS_ALPHATESTENABLE
	.comm	_GL_ALPHA_TEST,4,2              ## @GL_ALPHA_TEST
L_.str.1:                               ## @.str.1
	.asciz	"glEnable GL_ALPHA_TEST"

L_.str.2:                               ## @.str.2
	.asciz	"glDisable GL_ALPHA_TEST"

	.comm	_WINED3D_RS_ALPHAREF,8,3        ## @WINED3D_RS_ALPHAREF
	.comm	_WINED3D_RS_ALPHAFUNC,8,3       ## @WINED3D_RS_ALPHAFUNC
L_.str.3:                               ## @.str.3
	.asciz	"glAlphaFunc"

	.no_dead_strip	_alpha_test_arbfp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alpha_test_arbfp
_alpha_test_arbfp:                      ; @alpha_test_arbfp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x3, x2
	mov	x19, x1
	mov	x1, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_TRACE
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _WINED3D_RS_ALPHATESTENABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WINED3D_RS_ALPHATESTENABLE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
Lloh5:
	adrp	x9, _GL_ALPHA_TEST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GL_ALPHA_TEST@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	blr	x8
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _WINED3D_RS_ALPHAREF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WINED3D_RS_ALPHAREF@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x19, [x8, x9, lsl #3]
Lloh13:
	adrp	x9, _WINED3D_RS_ALPHAFUNC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WINED3D_RS_ALPHAFUNC@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	bl	_wined3d_gl_compare_func
	cbz	w0, LBB0_5
; %bb.2:
	scvtf	s0, x19
	mov	w8, #1132396544
	fmov	s1, w8
	fdiv	s0, s0, s1
	ldr	x8, [x20]
	blr	x8
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	x8, [x20, #8]
Lloh18:
	adrp	x9, _GL_ALPHA_TEST@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GL_ALPHA_TEST@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x9]
	blr	x8
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_checkGLcall
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"context %p, state %p, state_id %#x.\n"

	.comm	_WINED3D_RS_ALPHATESTENABLE,8,3 ; @WINED3D_RS_ALPHATESTENABLE
	.comm	_GL_ALPHA_TEST,4,2              ; @GL_ALPHA_TEST
l_.str.1:                               ; @.str.1
	.asciz	"glEnable GL_ALPHA_TEST"

l_.str.2:                               ; @.str.2
	.asciz	"glDisable GL_ALPHA_TEST"

	.comm	_WINED3D_RS_ALPHAREF,8,3        ; @WINED3D_RS_ALPHAREF
	.comm	_WINED3D_RS_ALPHAFUNC,8,3       ; @WINED3D_RS_ALPHAFUNC
l_.str.3:                               ; @.str.3
	.asciz	"glAlphaFunc"

	.no_dead_strip	_alpha_test_arbfp
.subsections_via_symbols
