	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arbfp_gen_plain_shader
_arbfp_gen_plain_shader:                ## @arbfp_gen_plain_shader
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rsi), %edi
	callq	_arbfp_texture_target
	movq	%rax, %r15
	leaq	-40(%rbp), %rdi
	callq	_string_buffer_init
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-44(%rbp), %rsi
	movl	$1, %edi
	callq	_glGenProgramsARB
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.4:
	movq	_GL_FRAGMENT_PROGRAM_ARB@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_glBindProgramARB
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movq	_ARBFP_BLIT_PARAM_COLOR_KEY_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movq	_ARBFP_BLIT_PARAM_COLOR_KEY_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.12(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.13(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	leaq	-40(%rbp), %rdi
	callq	_string_buffer_free
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.14(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_7:
	leaq	L_.str.15(%rip), %rsi
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movl	(%r12), %esi
	movl	-40(%rbp), %edx
	movq	%r14, %rdi
	callq	_shader_arb_compile
	movq	%rbx, %rdi
	callq	_string_buffer_free
	movl	-44(%rbp), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize shader buffer.\n"

	.comm	_GL_FRAGMENT_PROGRAM_ARB,4,2    ## @GL_FRAGMENT_PROGRAM_ARB
L_.str.1:                               ## @.str.1
	.asciz	"!!ARBfp1.0\n"

L_.str.2:                               ## @.str.2
	.asciz	"TEMP color;\n"

L_.str.3:                               ## @.str.3
	.asciz	"TEMP less, greater;\n"

L_.str.4:                               ## @.str.4
	.asciz	"PARAM color_key_low = program.local[%u];\n"

	.comm	_ARBFP_BLIT_PARAM_COLOR_KEY_LOW,4,2 ## @ARBFP_BLIT_PARAM_COLOR_KEY_LOW
L_.str.5:                               ## @.str.5
	.asciz	"PARAM color_key_high = program.local[%u];\n"

	.comm	_ARBFP_BLIT_PARAM_COLOR_KEY_HIGH,4,2 ## @ARBFP_BLIT_PARAM_COLOR_KEY_HIGH
L_.str.6:                               ## @.str.6
	.asciz	"TEX color, fragment.texcoord[0], texture[0], %s;\n"

L_.str.7:                               ## @.str.7
	.asciz	"SLT less, color, color_key_low;\n"

L_.str.8:                               ## @.str.8
	.asciz	"SGE greater, color, color_key_high;\n"

L_.str.9:                               ## @.str.9
	.asciz	"ADD less, less, greater;\n"

L_.str.10:                              ## @.str.10
	.asciz	"DP4 less.b, less, less;\n"

L_.str.11:                              ## @.str.11
	.asciz	"SGE less, -less.b, 0.0;\n"

L_.str.12:                              ## @.str.12
	.asciz	"KIL -less;\n"

L_.str.13:                              ## @.str.13
	.asciz	"MOV result.color, color;\n"

L_.str.14:                              ## @.str.14
	.asciz	"TEX result.color, fragment.texcoord[0], texture[0], %s;\n"

L_.str.15:                              ## @.str.15
	.asciz	"END\n"

	.no_dead_strip	_arbfp_gen_plain_shader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arbfp_gen_plain_shader
_arbfp_gen_plain_shader:                ; @arbfp_gen_plain_shader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x1, #8]
	bl	_arbfp_texture_target
	mov	x20, x0
	add	x0, sp, #8
	bl	_string_buffer_init
	cbz	w0, LBB0_4
; %bb.1:
	add	x1, sp, #12
	mov	w0, #1
	bl	_glGenProgramsARB
	bl	_GL_EXTCALL
	ldr	w1, [sp, #12]
	cbz	w1, LBB0_5
; %bb.2:
Lloh0:
	adrp	x22, _GL_FRAGMENT_PROGRAM_ARB@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GL_FRAGMENT_PROGRAM_ARB@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_glBindProgramARB
	bl	_GL_EXTCALL
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.3:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
Lloh8:
	adrp	x8, _ARBFP_BLIT_PARAM_COLOR_KEY_LOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARBFP_BLIT_PARAM_COLOR_KEY_LOW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
Lloh13:
	adrp	x8, _ARBFP_BLIT_PARAM_COLOR_KEY_HIGH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ARBFP_BLIT_PARAM_COLOR_KEY_HIGH@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
	str	x20, [sp]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
Lloh22:
	adrp	x1, l_.str.8@PAGE
Lloh23:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
Lloh24:
	adrp	x1, l_.str.9@PAGE
Lloh25:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
Lloh26:
	adrp	x1, l_.str.10@PAGE
Lloh27:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
Lloh28:
	adrp	x1, l_.str.11@PAGE
Lloh29:
	add	x1, x1, l_.str.11@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
Lloh30:
	adrp	x1, l_.str.12@PAGE
Lloh31:
	add	x1, x1, l_.str.12@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
Lloh32:
	adrp	x1, l_.str.13@PAGE
Lloh33:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	add	x0, sp, #8
	bl	_string_buffer_free
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	str	x20, [sp]
Lloh36:
	adrp	x1, l_.str.14@PAGE
Lloh37:
	add	x1, x1, l_.str.14@PAGEOFF
LBB0_7:
	add	x0, sp, #8
	bl	_shader_addline
Lloh38:
	adrp	x1, l_.str.15@PAGE
Lloh39:
	add	x1, x1, l_.str.15@PAGEOFF
	add	x0, sp, #8
	bl	_shader_addline
	ldr	w1, [x22]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_shader_arb_compile
	add	x0, sp, #8
	bl	_string_buffer_free
	ldr	w0, [sp, #12]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize shader buffer.\n"

	.comm	_GL_FRAGMENT_PROGRAM_ARB,4,2    ; @GL_FRAGMENT_PROGRAM_ARB
l_.str.1:                               ; @.str.1
	.asciz	"!!ARBfp1.0\n"

l_.str.2:                               ; @.str.2
	.asciz	"TEMP color;\n"

l_.str.3:                               ; @.str.3
	.asciz	"TEMP less, greater;\n"

l_.str.4:                               ; @.str.4
	.asciz	"PARAM color_key_low = program.local[%u];\n"

	.comm	_ARBFP_BLIT_PARAM_COLOR_KEY_LOW,4,2 ; @ARBFP_BLIT_PARAM_COLOR_KEY_LOW
l_.str.5:                               ; @.str.5
	.asciz	"PARAM color_key_high = program.local[%u];\n"

	.comm	_ARBFP_BLIT_PARAM_COLOR_KEY_HIGH,4,2 ; @ARBFP_BLIT_PARAM_COLOR_KEY_HIGH
l_.str.6:                               ; @.str.6
	.asciz	"TEX color, fragment.texcoord[0], texture[0], %s;\n"

l_.str.7:                               ; @.str.7
	.asciz	"SLT less, color, color_key_low;\n"

l_.str.8:                               ; @.str.8
	.asciz	"SGE greater, color, color_key_high;\n"

l_.str.9:                               ; @.str.9
	.asciz	"ADD less, less, greater;\n"

l_.str.10:                              ; @.str.10
	.asciz	"DP4 less.b, less, less;\n"

l_.str.11:                              ; @.str.11
	.asciz	"SGE less, -less.b, 0.0;\n"

l_.str.12:                              ; @.str.12
	.asciz	"KIL -less;\n"

l_.str.13:                              ; @.str.13
	.asciz	"MOV result.color, color;\n"

l_.str.14:                              ; @.str.14
	.asciz	"TEX result.color, fragment.texcoord[0], texture[0], %s;\n"

l_.str.15:                              ; @.str.15
	.asciz	"END\n"

	.no_dead_strip	_arbfp_gen_plain_shader
.subsections_via_symbols
