	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function state_arb_specularenable
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_state_arb_specularenable:              ## @state_arb_specularenable
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	8(%rbx), %rax
	cmpq	_arb_program_shader_backend@GOTPCREL(%rip), %rax
	je	LBB0_1
LBB0_3:
	movq	(%r14), %rax
	movq	_WINED3D_RS_SPECULARENABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	xorps	%xmm0, %xmm0
	je	LBB0_5
## %bb.4:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
LBB0_5:
	xorps	%xmm1, %xmm1
	blendps	$1, %xmm0, %xmm1                ## xmm1 = xmm0[0],xmm1[1,2,3]
	shufps	$64, %xmm1, %xmm1               ## xmm1 = xmm1[0,0,0,1]
	movaps	%xmm1, -32(%rbp)
	movq	_GL_FRAGMENT_PROGRAM_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ARB_FFP_CONST_SPECULAR_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-32(%rbp), %rdx
	callq	_glProgramEnvParameter4fvARB
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
	jmp	LBB0_6
LBB0_1:
	movq	%r14, %rdi
	callq	_use_ps
	testq	%rax, %rax
	je	LBB0_2
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rbx
	movq	(%rbx), %rax
	movq	_ARB_FFP_CONST_SPECULAR_ENABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	$1, (%rax,%rsi,4)
	movl	8(%rbx), %edi
	incq	%rsi
	callq	_max
	movl	%eax, 8(%rbx)
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_arb_program_shader_backend,4,2 ## @arb_program_shader_backend
	.comm	_ARB_FFP_CONST_SPECULAR_ENABLE,8,3 ## @ARB_FFP_CONST_SPECULAR_ENABLE
	.comm	_WINED3D_RS_SPECULARENABLE,8,3  ## @WINED3D_RS_SPECULARENABLE
	.comm	_GL_FRAGMENT_PROGRAM_ARB,4,2    ## @GL_FRAGMENT_PROGRAM_ARB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glProgramEnvParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, ARB_FFP_CONST_SPECULAR_ENABLE, col)"

	.no_dead_strip	_state_arb_specularenable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function state_arb_specularenable
_state_arb_specularenable:              ; @state_arb_specularenable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x20, [x0]
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _arb_program_shader_backend@GOTPAGE
Lloh4:
	ldr	x9, [x9, _arb_program_shader_backend@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_2
LBB0_1:
Lloh5:
	adrp	x8, _WINED3D_RS_SPECULARENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WINED3D_RS_SPECULARENABLE@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, #0
	fmov	s0, #1.00000000
	movi	d1, #0000000000000000
	fcsel	s0, s1, s0, eq
	stp	s0, s0, [sp, #8]
	str	s0, [sp, #16]
	str	wzr, [sp, #20]
Lloh8:
	adrp	x8, _GL_FRAGMENT_PROGRAM_ARB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_FRAGMENT_PROGRAM_ARB@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _ARB_FFP_CONST_SPECULAR_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARB_FFP_CONST_SPECULAR_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x8]
	add	x2, sp, #8
	bl	_glProgramEnvParameter4fvARB
	bl	_GL_EXTCALL
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_use_ps
	cbz	x0, LBB0_5
LBB0_3:
	ldr	x8, [sp, #24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	x20, [x20]
	ldr	x8, [x20]
Lloh19:
	adrp	x9, _ARB_FFP_CONST_SPECULAR_ENABLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ARB_FFP_CONST_SPECULAR_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
	ldr	w0, [x20, #8]
	add	x1, x9, #1
	bl	_max
	str	w0, [x20, #8]
	b	LBB0_1
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_arb_program_shader_backend,4,2 ; @arb_program_shader_backend
	.comm	_ARB_FFP_CONST_SPECULAR_ENABLE,8,3 ; @ARB_FFP_CONST_SPECULAR_ENABLE
	.comm	_WINED3D_RS_SPECULARENABLE,8,3  ; @WINED3D_RS_SPECULARENABLE
	.comm	_GL_FRAGMENT_PROGRAM_ARB,4,2    ; @GL_FRAGMENT_PROGRAM_ARB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glProgramEnvParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, ARB_FFP_CONST_SPECULAR_ENABLE, col)"

	.no_dead_strip	_state_arb_specularenable
.subsections_via_symbols
