	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function color_key_arbfp
_color_key_arbfp:                       ## @color_key_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rsi), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	(%rdi), %r14
	movq	8(%r14), %rax
	cmpq	_arb_program_shader_backend@GOTPCREL(%rip), %rax
	je	LBB0_2
LBB0_4:
	movl	4(%rbx), %edi
	leaq	-32(%rbp), %r14
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_wined3d_format_get_float_color_key
	movq	_GL_FRAGMENT_PROGRAM_ARB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_ARB_FFP_CONST_COLOR_KEY_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdx
	callq	_glProgramEnvParameter4fvARB
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
	movl	(%rbx), %edi
	movq	_ARB_FFP_CONST_COLOR_KEY_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-28(%rbp), %rdx
	callq	_glProgramEnvParameter4fvARB
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str.1(%rip), %rdi
	callq	_checkGLcall
	jmp	LBB0_5
LBB0_2:
	movq	%rsi, %rdi
	callq	_use_ps
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	(%r14), %r14
	movq	(%r14), %rax
	movq	_ARB_FFP_CONST_COLOR_KEY_LOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	_ARB_FFP_CONST_COLOR_KEY_HIGH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	$1, (%rax,%rsi,4)
	movl	8(%r14), %edi
	incq	%rsi
	callq	_max
	movl	%eax, 8(%r14)
	jmp	LBB0_4
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_arb_program_shader_backend,4,2 ## @arb_program_shader_backend
	.comm	_ARB_FFP_CONST_COLOR_KEY_LOW,8,3 ## @ARB_FFP_CONST_COLOR_KEY_LOW
	.comm	_ARB_FFP_CONST_COLOR_KEY_HIGH,8,3 ## @ARB_FFP_CONST_COLOR_KEY_HIGH
	.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_COLOR_KEY_LOW, &float_key[0].r)"

L_.str.1:                               ## @.str.1
	.asciz	"glProgramEnvParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, ARB_FFP_CONST_COLOR_KEY_HIGH, &float_key[1].r)"

	.no_dead_strip	_color_key_arbfp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function color_key_arbfp
_color_key_arbfp:                       ; @color_key_arbfp
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x8, [x1]
	ldr	x19, [x8]
	cbz	x19, LBB0_4
; %bb.1:
	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_3
LBB0_2:
	ldr	w0, [x19, #4]
	mov	x20, sp
	mov	x2, sp
	mov	x1, x19
	bl	_wined3d_format_get_float_color_key
Lloh5:
	adrp	x19, _GL_FRAGMENT_PROGRAM_ARB@GOTPAGE
Lloh6:
	ldr	x19, [x19, _GL_FRAGMENT_PROGRAM_ARB@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _ARB_FFP_CONST_COLOR_KEY_LOW@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARB_FFP_CONST_COLOR_KEY_LOW@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
	mov	x2, sp
	bl	_glProgramEnvParameter4fvARB
	bl	_GL_EXTCALL
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _ARB_FFP_CONST_COLOR_KEY_HIGH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ARB_FFP_CONST_COLOR_KEY_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	orr	x2, x20, #0x4
	bl	_glProgramEnvParameter4fvARB
	bl	_GL_EXTCALL
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_checkGLcall
	b	LBB0_4
LBB0_3:
	mov	x0, x1
	bl	_use_ps
	cbz	x0, LBB0_6
LBB0_4:
	ldr	x8, [sp, #8]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldr	x20, [x20]
	ldr	x8, [x20]
Lloh20:
	adrp	x9, _ARB_FFP_CONST_COLOR_KEY_LOW@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ARB_FFP_CONST_COLOR_KEY_LOW@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
Lloh23:
	adrp	x9, _ARB_FFP_CONST_COLOR_KEY_HIGH@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ARB_FFP_CONST_COLOR_KEY_HIGH@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	str	w10, [x8, x9, lsl #2]
	ldr	w0, [x20, #8]
	add	x1, x9, #1
	bl	_max
	str	w0, [x20, #8]
	b	LBB0_2
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_arb_program_shader_backend,4,2 ; @arb_program_shader_backend
	.comm	_ARB_FFP_CONST_COLOR_KEY_LOW,8,3 ; @ARB_FFP_CONST_COLOR_KEY_LOW
	.comm	_ARB_FFP_CONST_COLOR_KEY_HIGH,8,3 ; @ARB_FFP_CONST_COLOR_KEY_HIGH
	.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_COLOR_KEY_LOW, &float_key[0].r)"

l_.str.1:                               ; @.str.1
	.asciz	"glProgramEnvParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, ARB_FFP_CONST_COLOR_KEY_HIGH, &float_key[1].r)"

	.no_dead_strip	_color_key_arbfp
.subsections_via_symbols
